Update form package

pull/6632/head
Mert Sincan 2024-10-21 15:02:08 +01:00
parent 387f86d0bb
commit 138d4cd302
5 changed files with 12 additions and 20 deletions

View File

@ -13,23 +13,21 @@
"bugs": { "bugs": {
"url": "https://github.com/primefaces/primevue/issues" "url": "https://github.com/primefaces/primevue/issues"
}, },
"main": "./src/index.js", "main": "./src/form/Form.vue",
"module": "./src/index.js", "types": "./src/form/Form.d.ts",
"types": "./src/index.d.ts",
"exports": { "exports": {
".": "./src/index.js", ".": "./src/form/Form.vue",
"./form/style": "./src/form/style/FormStyle.js", "./style": "./src/form/style/FormStyle.js",
"./form": "./src/form/Form.vue",
"./*": "./src/*/index.js" "./*": "./src/*/index.js"
}, },
"publishConfig": { "publishConfig": {
"main": "./index.mjs", "main": "./form/index.mjs",
"module": "./index.mjs", "module": "./form/index.mjs",
"types": "./index.d.ts", "types": "./form/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./index.d.ts", "types": "./form/index.d.ts",
"import": "./index.mjs" "import": "./form/index.mjs"
}, },
"./*": { "./*": {
"types": "./*/index.d.ts", "types": "./*/index.d.ts",
@ -55,4 +53,4 @@
"engines": { "engines": {
"node": ">=12.11.0" "node": ">=12.11.0"
} }
} }

View File

@ -1,6 +1,6 @@
<script> <script>
import BaseComponent from '@primevue/core/basecomponent'; import BaseComponent from '@primevue/core/basecomponent';
import FormStyle from '@primevue/form/form/style'; import FormStyle from '@primevue/form/style';
export default { export default {
name: 'BaseForm', name: 'BaseForm',

View File

@ -1,3 +0,0 @@
export { default as Form } from '@primevue/form/form';
export * from '@primevue/form/resolvers';
export * from '@primevue/form/useform';

View File

@ -1,3 +0,0 @@
export { default as Form } from '@primevue/form/form';
export * from '@primevue/form/resolvers';
export * from '@primevue/form/useform';

View File

@ -96,7 +96,7 @@ export const media: MetaType[] = toMeta(['Carousel', 'Galleria', 'Image', 'Image
export const misc: MetaType[] = toMeta(['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'MeterGroup', 'OverlayBadge', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal']); export const misc: MetaType[] = toMeta(['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'MeterGroup', 'OverlayBadge', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal']);
export const extensions: MetaType[] = toMeta([{ name: 'Form', from: '@primevue/form/form' }]); export const extensions: MetaType[] = toMeta([{ name: 'Form', from: '@primevue/form' }]);
// All PrimeVue Components // All PrimeVue Components
export const components: MetaType[] = [...form, ...button, ...data, ...panel, ...overlay, ...file, ...menu, ...chart, ...messages, ...media, ...misc, ...extensions]; export const components: MetaType[] = [...form, ...button, ...data, ...panel, ...overlay, ...file, ...menu, ...chart, ...messages, ...media, ...misc, ...extensions];