@vendorflow/components 3.0.14 → 4.0.0

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 (84) hide show
  1. package/README.md +55 -1
  2. package/lib/components/AudioPlayer/index.d.ts +1 -0
  3. package/lib/components/{material-ui/Button → Button}/Button.d.ts +1 -0
  4. package/lib/components/Button/index.d.ts +1 -0
  5. package/lib/components/{material-ui/ButtonMenu → ButtonMenu}/ButtonMenu.d.ts +1 -1
  6. package/lib/components/ButtonMenu/index.d.ts +1 -0
  7. package/lib/components/{material-ui/ColorPicker → ColorPicker}/ColorPicker.d.ts +1 -1
  8. package/lib/components/ColorPicker/index.d.ts +1 -0
  9. package/lib/components/ColorPicker/styles.d.ts +1 -0
  10. package/lib/components/{material-ui/DataTable → DataTable}/Data.d.ts +1 -1
  11. package/lib/components/{material-ui/DataTable → DataTable}/DataTable.d.ts +15 -15
  12. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/MultiSelectFilter.d.ts +2 -2
  13. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/RangeFilter.d.ts +2 -2
  14. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/SingleSelectFilter.d.ts +2 -2
  15. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/Filters/TextFilter.d.ts +2 -2
  16. package/lib/components/{material-ui/DataTable → DataTable}/FilterTool/index.d.ts +2 -2
  17. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/AppliedFilters.d.ts +1 -1
  18. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/BodyRow.d.ts +1 -1
  19. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/HeaderCell.d.ts +1 -1
  20. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/IndeterminateCheckbox.d.ts +0 -1
  21. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/Toolbar.d.ts +3 -3
  22. package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/ViewColumnTool.d.ts +1 -1
  23. package/lib/components/DataTable/index.d.ts +1 -0
  24. package/lib/components/{material-ui/InputCheckboxGroup → InputCheckboxGroup}/InputCheckboxGroup.d.ts +2 -2
  25. package/lib/components/InputCheckboxGroup/index.d.ts +1 -0
  26. package/lib/components/InputDate/InputDate.d.ts +10 -0
  27. package/lib/components/InputDate/index.d.ts +1 -0
  28. package/lib/components/InputDateTime/InputDateTime.d.ts +11 -0
  29. package/lib/components/InputDateTime/index.d.ts +1 -0
  30. package/lib/components/InputGroup/index.d.ts +1 -0
  31. package/lib/components/{material-ui/InputRadioGroup → InputRadioGroup}/InputRadioGroup.d.ts +1 -1
  32. package/lib/components/InputRadioGroup/index.d.ts +1 -0
  33. package/lib/components/{material-ui/InputSearchDropdown → InputSearchDropdown}/InputSearchDropdown.d.ts +2 -1
  34. package/lib/components/InputSearchDropdown/index.d.ts +1 -0
  35. package/lib/components/{material-ui/InputTime → InputTime}/InputTime.d.ts +3 -3
  36. package/lib/components/InputTime/index.d.ts +1 -0
  37. package/lib/components/{material-ui/Modal → Modal}/Modal.d.ts +1 -1
  38. package/lib/components/Modal/index.d.ts +1 -0
  39. package/lib/components/index.d.ts +13 -13
  40. package/lib/index.css +1 -0
  41. package/lib/index.es.js +36847 -0
  42. package/lib/index.es.js.map +1 -0
  43. package/lib/index.umd.js +640 -0
  44. package/lib/index.umd.js.map +1 -0
  45. package/package.json +51 -83
  46. package/lib/components/material-ui/AudioPlayer/AudioPlayer.story.d.ts +0 -2
  47. package/lib/components/material-ui/AudioPlayer/index.d.ts +0 -1
  48. package/lib/components/material-ui/Button/Button.story.d.ts +0 -2
  49. package/lib/components/material-ui/Button/index.d.ts +0 -1
  50. package/lib/components/material-ui/ButtonMenu/ButtonMenu.story.d.ts +0 -5
  51. package/lib/components/material-ui/ButtonMenu/index.d.ts +0 -1
  52. package/lib/components/material-ui/ColorPicker/ColorPicker.story.d.ts +0 -2
  53. package/lib/components/material-ui/ColorPicker/index.d.ts +0 -1
  54. package/lib/components/material-ui/ColorPicker/styles.d.ts +0 -1
  55. package/lib/components/material-ui/DataTable/DataTable.story.d.ts +0 -2
  56. package/lib/components/material-ui/DataTable/index.d.ts +0 -1
  57. package/lib/components/material-ui/InputCheckboxGroup/InputCheckboxGroup.story.d.ts +0 -2
  58. package/lib/components/material-ui/InputCheckboxGroup/index.d.ts +0 -1
  59. package/lib/components/material-ui/InputDate/InputDate.d.ts +0 -11
  60. package/lib/components/material-ui/InputDate/InputDate.story.d.ts +0 -2
  61. package/lib/components/material-ui/InputDate/index.d.ts +0 -1
  62. package/lib/components/material-ui/InputDateTime/InputDateTime.d.ts +0 -11
  63. package/lib/components/material-ui/InputDateTime/InputDateTime.story.d.ts +0 -2
  64. package/lib/components/material-ui/InputDateTime/index.d.ts +0 -1
  65. package/lib/components/material-ui/InputGroup/InputGroup.story.d.ts +0 -2
  66. package/lib/components/material-ui/InputGroup/index.d.ts +0 -1
  67. package/lib/components/material-ui/InputRadioGroup/InputRadioGroup.story.d.ts +0 -2
  68. package/lib/components/material-ui/InputRadioGroup/index.d.ts +0 -1
  69. package/lib/components/material-ui/InputSearchDropdown/InputSearchDropdown.story.d.ts +0 -4
  70. package/lib/components/material-ui/InputSearchDropdown/index.d.ts +0 -1
  71. package/lib/components/material-ui/InputTime/InputTime.story.d.ts +0 -2
  72. package/lib/components/material-ui/InputTime/index.d.ts +0 -1
  73. package/lib/components/material-ui/Modal/Modal.story.d.ts +0 -2
  74. package/lib/components/material-ui/Modal/index.d.ts +0 -1
  75. package/lib/index.js +0 -3
  76. package/lib/index.js.LICENSE.txt +0 -29
  77. package/lib/index.js.map +0 -1
  78. /package/lib/components/{material-ui/AudioPlayer → AudioPlayer}/AudioPlayer.d.ts +0 -0
  79. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/BodyCell.d.ts +0 -0
  80. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/GlobalSearchFilter.d.ts +0 -0
  81. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/SortIndicator.d.ts +0 -0
  82. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/Table.d.ts +0 -0
  83. /package/lib/components/{material-ui/DataTable → DataTable}/TablePieces/TableBodyContent.d.ts +0 -0
  84. /package/lib/components/{material-ui/InputGroup → InputGroup}/InputGroup.d.ts +0 -0
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@vendorflow/components",
3
- "version": "3.0.14",
3
+ "version": "4.0.0",
4
4
  "description": "React components for vendorflow",
5
- "main": "lib/index.js",
5
+ "type": "module",
6
+ "main": "lib/index.umd.js",
7
+ "module": "lib/index.es.js",
6
8
  "types": "lib/index.d.ts",
7
9
  "private": false,
8
10
  "repository": "https://github.com/vendorflow/vendorflow-components",
@@ -11,11 +13,14 @@
11
13
  "lib/**/*"
12
14
  ],
13
15
  "scripts": {
14
- "build": "webpack && tsc",
15
- "storybook": "start-storybook -p 9009 -s public",
16
- "build-storybook": "build-storybook -s public",
17
- "format": "prettier --write \"src/**/*.ts\"",
16
+ "dev": "vite",
17
+ "transpile": "tsc --project ./tsconfig.build.json",
18
+ "build": "vite --config vite.build.config.ts build && yarn transpile",
18
19
  "lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
20
+ "format": "prettier --write \"src/**/*.ts\"",
21
+ "preview": "vite preview",
22
+ "storybook": "storybook dev -p 6006",
23
+ "build-storybook": "storybook build",
19
24
  "prepare": "npm run build",
20
25
  "prepublishOnly": "npm run lint",
21
26
  "preversion": "npm run lint",
@@ -35,94 +40,56 @@
35
40
  ]
36
41
  },
37
42
  "dependencies": {
38
- "@date-io/date-fns": "1.x",
39
- "@svgr/webpack": "4.3.3",
40
- "@types/faker": "^5.5.8",
41
- "@types/node": "^12.0.0",
42
- "@types/react": "^17.0.27",
43
- "@types/react-dom": "^17.0.9",
44
- "@types/react-table": "^7.7.6",
45
- "@typescript-eslint/eslint-plugin": "^4.32.0",
46
- "@typescript-eslint/parser": "^4.32.0",
43
+ "@mui/x-date-pickers": "^5.0.20",
47
44
  "@vendorflow/common": "^1.0.50",
45
+ "@vendorflow/types": "^1.7.2",
48
46
  "classnames": "^2.3.1",
49
- "css-loader": "3.4.2",
50
47
  "date-fns": "^2.12.0",
51
- "eslint": "^7.32.0",
52
- "eslint-config-react-app": "^6.0.0",
53
- "eslint-loader": "3.0.3",
54
- "eslint-plugin-flowtype": "4.6.0",
55
- "eslint-plugin-import": "^2.24.2",
56
- "eslint-plugin-jsx-a11y": "^6.4.1",
57
- "eslint-plugin-react": "^7.26.1",
58
- "eslint-plugin-react-hooks": "^4.2.0",
59
48
  "faker": "^5.5.3",
60
- "file-loader": "4.3.0",
61
- "html-webpack-plugin": "4.0.0-beta.11",
62
49
  "immer": "^9.0.6",
63
50
  "lodash": "^4.17.21",
64
- "material-ui-popup-state": "^2.0.0",
65
- "mini-css-extract-plugin": "0.9.0",
66
- "nanoid": "3.1.31",
67
- "optimize-css-assets-webpack-plugin": "5.0.3",
68
- "pnp-webpack-plugin": "1.6.4",
69
- "postcss-flexbugs-fixes": "4.1.0",
70
- "postcss-loader": "3.0.0",
71
- "postcss-normalize": "8.0.1",
72
- "postcss-preset-env": "6.7.0",
73
- "postcss-safe-parser": "4.0.1",
74
- "react-app-polyfill": "^1.0.6",
75
- "react-color-palette": "^6.1.0",
76
- "react-dev-utils": "11.0.4",
51
+ "nanoid": "5.0.8",
52
+ "react-color-palette": "^6.2.0",
77
53
  "react-h5-audio-player": "^3.8.1",
78
- "react-measure": "^2.5.2",
79
- "react-scripts": "^4.0.3",
80
54
  "react-scrollbar-size": "^4.0.0",
81
55
  "react-table": "^7.7.0",
82
- "react-text-mask": "^5.4.3",
83
- "react-textarea-autosize": "^8.3.3",
84
56
  "react-virtualized": "^9.22.3",
85
- "resolve": "1.15.0",
86
- "resolve-url-loader": "3.1.1",
87
- "sass-loader": "8.0.2",
88
- "semver": "6.3.0",
89
- "short-uuid": "^4.2.0",
90
- "style-loader": "0.23.1",
91
- "terser-webpack-plugin": "2.3.5",
92
- "ts-pnp": "1.1.6",
93
- "typescript": "^4.5.5",
94
- "url-loader": "2.3.0",
95
- "webpack": "^5.68.0",
96
- "webpack-dev-server": "3.10.3",
97
- "webpack-manifest-plugin": "2.2.0",
98
- "workbox-webpack-plugin": "4.3.1"
57
+ "regenerator-runtime": "^0.14.1"
99
58
  },
100
59
  "devDependencies": {
101
- "@babel/cli": "^7.15.7",
102
- "@babel/core": "^7.22.5",
103
- "@babel/preset-env": "^7.22.5",
104
- "@babel/preset-react": "^7.9.4",
105
- "@babel/preset-typescript": "^7.22.5",
106
- "@emotion/babel-plugin": "^11.3.0",
107
- "@storybook/addon-actions": "^6.5.14",
108
- "@storybook/addon-knobs": "^6.3.1",
109
- "@storybook/addon-links": "^6.5.14",
110
- "@storybook/addons": "^6.5.14",
111
- "@storybook/preset-create-react-app": "^2.1.1",
112
- "@storybook/react": "^6.5.14",
113
- "@types/lodash": "^4.14.150",
114
- "@types/react-measure": "^2.0.7",
115
- "@types/react-text-mask": "^5.4.6",
60
+ "@chromatic-com/storybook": "^3.2.2",
61
+ "@eslint/js": "^9.15.0",
62
+ "@storybook/addon-essentials": "^8.4.7",
63
+ "@storybook/addon-interactions": "^8.4.7",
64
+ "@storybook/addon-onboarding": "^8.4.7",
65
+ "@storybook/blocks": "^8.4.7",
66
+ "@storybook/react": "^8.4.7",
67
+ "@storybook/react-vite": "^8.4.7",
68
+ "@storybook/test": "^8.4.7",
69
+ "@types/faker": "^5.5.8",
70
+ "@types/lodash": "^4.17.14",
71
+ "@types/react": "^18.3.12",
72
+ "@types/react-dom": "^18.3.1",
73
+ "@types/react-table": "^7.7.6",
116
74
  "@types/react-virtualized": "^9.21.21",
117
- "babel-loader": "^9.1.2",
118
- "eslint-config-prettier": "^8.3.0",
119
- "eslint-plugin-prettier": "^3.4.0",
120
- "eslint-plugin-storybook": "^0.6.8",
121
- "eslint-webpack-plugin": "^2.5.4",
122
- "prettier": "^2.0.5",
123
- "tslint": "^6.1.2",
124
- "tslint-config-prettier": "^1.18.0",
125
- "webpack-cli": "^5.1.4"
75
+ "@types/regenerator-runtime": "^0.13.8",
76
+ "@vitejs/plugin-react": "^4.3.4",
77
+ "esbuild-plugin-react-virtualized": "^1.0.4",
78
+ "eslint": "^9.15.0",
79
+ "eslint-config-prettier": "^9.1.0",
80
+ "eslint-plugin-prettier": "^5.2.1",
81
+ "eslint-plugin-react-hooks": "^5.0.0",
82
+ "eslint-plugin-react-refresh": "^0.4.14",
83
+ "eslint-plugin-storybook": "^0.11.1",
84
+ "globals": "^15.12.0",
85
+ "prettier": "^3.4.2",
86
+ "storybook": "^8.4.7",
87
+ "typescript": "~5.6.2",
88
+ "typescript-eslint": "^8.15.0",
89
+ "vite": "6.0.1",
90
+ "vite-plugin-dts": "^4.5.0",
91
+ "vite-plugin-lib-inject-css": "^2.2.1",
92
+ "vite-tsconfig-paths": "^5.1.4"
126
93
  },
127
94
  "peerDependencies": {
128
95
  "@emotion/react": "^11.4.0",
@@ -130,8 +97,9 @@
130
97
  "@mui/icons-material": "^5.2.1",
131
98
  "@mui/lab": "^5.0.0-alpha.50",
132
99
  "@mui/material": "^5.0.3",
100
+ "@mui/styled-engine": "^5.16.14",
133
101
  "@mui/styles": "^5.0.1",
134
- "react": "^17.0.2",
135
- "react-dom": "^17.0.2"
102
+ "react": "^18.3.1",
103
+ "react-dom": "^18.3.1"
136
104
  }
137
105
  }
@@ -1,2 +0,0 @@
1
- declare const AudioPlayer: () => JSX.Element;
2
- export default AudioPlayer;
@@ -1 +0,0 @@
1
- export { default } from './AudioPlayer';
@@ -1,2 +0,0 @@
1
- declare const Button: () => JSX.Element;
2
- export default Button;
@@ -1 +0,0 @@
1
- export { default } from './Button';
@@ -1,5 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
3
- export declare const ButtonMenuUsingDefault: () => JSX.Element;
4
- export declare const ButtonMenuUsingCustom: () => JSX.Element;
5
- export declare const ButtonMenuDisableTest: () => JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from './ButtonMenu';
@@ -1,2 +0,0 @@
1
- declare function ColorPicker(): JSX.Element;
2
- export default ColorPicker;
@@ -1 +0,0 @@
1
- export { default } from './ColorPicker';
@@ -1 +0,0 @@
1
- export declare const colorPaletteStyles: import("@emotion/react").SerializedStyles;
@@ -1,2 +0,0 @@
1
- declare function DataTable(): JSX.Element;
2
- export default DataTable;
@@ -1 +0,0 @@
1
- export { DataTable, getColumnFilterConfig, SingleLineCell, usePluginConfig, useDefaultTableInstance } from './DataTable';
@@ -1,2 +0,0 @@
1
- declare const InputCheckboxGroup: () => JSX.Element;
2
- export default InputCheckboxGroup;
@@ -1 +0,0 @@
1
- export { default } from './InputCheckboxGroup';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps } from '@mui/lab';
3
- import { SimpleEventHandler } from '../../../types';
4
- import { TextFieldProps } from '@mui/material';
5
- type Props = {
6
- name?: string;
7
- onChange: SimpleEventHandler<string>;
8
- InputProps?: Omit<TextFieldProps, 'id'>;
9
- } & Omit<DatePickerProps<any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
10
- export default function InputDate(props: Props): JSX.Element;
11
- export {};
@@ -1,2 +0,0 @@
1
- declare const InputDate: () => JSX.Element;
2
- export default InputDate;
@@ -1 +0,0 @@
1
- export { default } from './InputDate';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { DateTimePickerProps } from '@mui/lab';
3
- import { SimpleEventHandler } from '../../../types';
4
- import { TextFieldProps } from '@mui/material';
5
- type Props = {
6
- name?: string;
7
- onChange: SimpleEventHandler<string>;
8
- InputProps?: Omit<TextFieldProps, 'id'>;
9
- } & Omit<DateTimePickerProps<any>, 'onChange' | 'renderInput' | 'date' | 'rawValue' | 'openPicker' | 'InputProps'> & React.RefAttributes<HTMLDivElement>;
10
- export default function InputDateTime(props: Props): JSX.Element;
11
- export {};
@@ -1,2 +0,0 @@
1
- declare const InputDateTime: () => JSX.Element;
2
- export default InputDateTime;
@@ -1 +0,0 @@
1
- export { default } from './InputDateTime';
@@ -1,2 +0,0 @@
1
- declare const InputGroup: () => JSX.Element;
2
- export default InputGroup;
@@ -1 +0,0 @@
1
- export { default } from './InputGroup';
@@ -1,2 +0,0 @@
1
- declare const InputRadioGroup: () => JSX.Element;
2
- export default InputRadioGroup;
@@ -1 +0,0 @@
1
- export { default } from './InputRadioGroup';
@@ -1,4 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
3
- export declare const InputSearchDropdownSingle: () => JSX.Element;
4
- export declare const InputSearchDropdownMulti: () => JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from './InputSearchDropdown';
@@ -1,2 +0,0 @@
1
- declare const InputTime: () => JSX.Element;
2
- export default InputTime;
@@ -1 +0,0 @@
1
- export { default } from './InputTime';
@@ -1,2 +0,0 @@
1
- declare const Modal: () => JSX.Element;
2
- export default Modal;
@@ -1 +0,0 @@
1
- export { default } from './Modal';