umwd-components 0.1.714 → 0.1.716
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/README.md +273 -0
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/dist/node_modules/@mollie/api-client/dist/mollie.esm.js +1 -1
- package/dist/node_modules/axios/index.js +6 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +1 -1
- package/dist/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/dist/node_modules/axios/lib/adapters/xhr.js +1 -1
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +1 -1
- package/dist/node_modules/axios/lib/core/Axios.js +1 -1
- package/dist/node_modules/axios/lib/core/AxiosError.js +1 -1
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +1 -1
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/dist/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/dist/node_modules/axios/lib/core/transformData.js +1 -1
- package/dist/node_modules/axios/lib/defaults/index.js +1 -1
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -1
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -1
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +1 -1
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +1 -1
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
- package/dist/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/dist/node_modules/axios/lib/helpers/toFormData.js +1 -1
- package/dist/node_modules/axios/lib/helpers/trackStream.js +1 -1
- package/dist/node_modules/axios/lib/helpers/validator.js +1 -1
- package/dist/node_modules/axios/lib/platform/index.js +1 -1
- package/dist/node_modules/axios/lib/utils.js +1 -1
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js +6 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js +6 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js +6 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js +6 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +6 -0
- package/dist/node_modules/call-bound/index.js +6 -0
- package/dist/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/node_modules/dunder-proto/get.js +6 -0
- package/dist/node_modules/es-define-property/index.js +1 -1
- package/dist/{_virtual/index7.js → node_modules/es-object-atoms/index.js} +1 -1
- package/dist/node_modules/function-bind/implementation.js +1 -1
- package/dist/node_modules/function-bind/index.js +1 -1
- package/dist/node_modules/get-intrinsic/index.js +1 -1
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +6 -0
- package/dist/node_modules/get-proto/index.js +6 -0
- package/dist/{_virtual/index5.js → node_modules/gopd/gOPD.js} +1 -1
- package/dist/node_modules/gopd/index.js +1 -1
- package/dist/node_modules/has-symbols/index.js +1 -1
- package/dist/node_modules/has-symbols/shams.js +1 -1
- package/dist/node_modules/hasown/index.js +1 -1
- package/dist/{_virtual/index8.js → node_modules/math-intrinsics/abs.js} +1 -1
- package/dist/{_virtual/types.js → node_modules/math-intrinsics/floor.js} +1 -1
- package/dist/node_modules/math-intrinsics/isNaN.js +6 -0
- package/dist/{_virtual/index6.js → node_modules/math-intrinsics/max.js} +1 -1
- package/dist/node_modules/math-intrinsics/min.js +6 -0
- package/dist/node_modules/math-intrinsics/pow.js +6 -0
- package/dist/node_modules/math-intrinsics/round.js +6 -0
- package/dist/node_modules/math-intrinsics/sign.js +6 -0
- package/dist/node_modules/object-assign/index.js +1 -1
- package/dist/node_modules/object-inspect/index.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/qs/lib/index.js +1 -1
- package/dist/node_modules/qs/lib/parse.js +1 -1
- package/dist/node_modules/qs/lib/stringify.js +1 -1
- package/dist/node_modules/qs/lib/utils.js +1 -1
- package/dist/node_modules/react-csv/lib/components/Download.js +1 -1
- package/dist/node_modules/react-csv/lib/components/Link.js +1 -1
- package/dist/node_modules/react-csv/lib/core.js +1 -1
- package/dist/node_modules/safe-buffer/index.js +2 -2
- package/dist/node_modules/sax/lib/sax.js +1 -1
- package/dist/node_modules/side-channel/index.js +1 -1
- package/dist/node_modules/side-channel-list/index.js +6 -0
- package/dist/node_modules/side-channel-map/index.js +6 -0
- package/dist/node_modules/side-channel-weakmap/index.js +6 -0
- package/dist/node_modules/string_decoder/lib/string_decoder.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +1 -1
- package/dist/node_modules/xml-js/lib/js2xml.js +1 -1
- package/dist/node_modules/xml-js/lib/xml2json.js +1 -1
- package/dist/src/components/ContactForm.js +1 -1
- package/dist/src/components/FluidBackground.js +1 -1
- package/dist/src/components/LogoutButton.js +1 -1
- package/dist/src/components/WebsitePlaceholder.js +1 -1
- package/dist/src/components/ZodErrors.js +1 -1
- package/dist/src/components/auth/AuthWidget.js +1 -1
- package/dist/src/components/common/Address.js +1 -1
- package/dist/src/components/common/AmountUpdater.js +1 -1
- package/dist/src/components/common/EnhancedTable/EnhancedTable.js +1 -1
- package/dist/src/components/common/EnhancedTable/EnhancedTableFilterRow.js +1 -1
- package/dist/src/components/common/EnhancedTable/EnhancedTableHead.js +1 -1
- package/dist/src/components/common/EnhancedTable/EnhancedTableRow.js +1 -1
- package/dist/src/components/common/EnhancedTable/EnhancedTableToolbar.js +1 -1
- package/dist/src/components/common/NumberInput.js +1 -1
- package/dist/src/components/common/WeekPicker.js +1 -1
- package/dist/src/components/common/cookie-consent/CookieConsentContext.js +1 -1
- package/dist/src/components/common/csv/CsvDownloader.js +1 -1
- package/dist/src/components/common/media/MediaGrid.js +1 -1
- package/dist/src/components/common/media/MediaLibraryDialog.js +1 -1
- package/dist/src/components/common/media/UploadBase64MediaForm.js +1 -1
- package/dist/src/components/common/media/UploadMediaForm.js +1 -1
- package/dist/src/components/common/snackbar/GlobalSnackbar.js +1 -1
- package/dist/src/components/e-commerce/cart/CartSummary.js +1 -1
- package/dist/src/components/e-commerce/cart/hooks.js +1 -1
- package/dist/src/components/e-commerce/categories/AddCategoryForm.js +1 -1
- package/dist/src/components/e-commerce/categories/CategorySelectorV2.js +1 -1
- package/dist/src/components/e-commerce/categories/EditCategoryForm.js +1 -1
- package/dist/src/components/e-commerce/checkout/CheckoutForm.js +1 -1
- package/dist/src/components/e-commerce/checkout/Step2.js +1 -1
- package/dist/src/components/e-commerce/checkout/Step4.js +1 -1
- package/dist/src/components/e-commerce/checkout/Step5.js +1 -1
- package/dist/src/components/e-commerce/customer/BusinessCredentials.js +1 -1
- package/dist/src/components/e-commerce/customer/CustomerCompletenessWarning.js +1 -1
- package/dist/src/components/e-commerce/customer/CustomerProfileDisplay.js +1 -1
- package/dist/src/components/e-commerce/customer/CustomerProfileEditForm.js +1 -1
- package/dist/src/components/e-commerce/customer/CustomerSelector.js +1 -1
- package/dist/src/components/e-commerce/enduser/EnduserProfileEditForm.js +1 -1
- package/dist/src/components/e-commerce/invoice/CreateInvoiceForm.js +1 -1
- package/dist/src/components/e-commerce/invoice/InvoiceItemFields.js +1 -1
- package/dist/src/components/e-commerce/invoice/InvoicePDF.js +1 -1
- package/dist/src/components/e-commerce/iro/CreateIROForm.js +1 -1
- package/dist/src/components/e-commerce/iro/IROItemFields.js +1 -1
- package/dist/src/components/e-commerce/iro/IroItemDisplay.js +1 -1
- package/dist/src/components/e-commerce/iro/IroItemUpdater.js +1 -1
- package/dist/src/components/e-commerce/iro/IroStatusIndicator.js +1 -1
- package/dist/src/components/e-commerce/iro/ManageIROForm.js +1 -1
- package/dist/src/components/e-commerce/iro/RmaForm.js +1 -1
- package/dist/src/components/e-commerce/iro/TextualIROItemUpdater.js +1 -1
- package/dist/src/components/e-commerce/iro/TextualManageIROForm.js +1 -1
- package/dist/src/components/e-commerce/opo/CreateOpoForm.js +1 -1
- package/dist/src/components/e-commerce/opo/ManageOpoForm.js +1 -1
- package/dist/src/components/e-commerce/opo/OPOItemFields.js +1 -1
- package/dist/src/components/e-commerce/opo/OpoItemDisplay.js +1 -1
- package/dist/src/components/e-commerce/opo/OpoItemUpdater.js +1 -1
- package/dist/src/components/e-commerce/opo/OpoStatusIndicator.js +1 -1
- package/dist/src/components/e-commerce/opo/OpoSummary.js +1 -1
- package/dist/src/components/e-commerce/opo/PaymentStatusIndicator.js +1 -1
- package/dist/src/components/e-commerce/opo/TextualManageOpoForm.js +1 -1
- package/dist/src/components/e-commerce/opo/TextualOpoItemUpdater.js +1 -1
- package/dist/src/components/e-commerce/products/AddProductForm.js +1 -1
- package/dist/src/components/e-commerce/products/EditProductForm.js +1 -1
- package/dist/src/components/e-commerce/products/EditStockForm.js +1 -1
- package/dist/src/components/e-commerce/products/PriceFields.js +1 -1
- package/dist/src/components/e-commerce/products/ProductCategoryCard.js +1 -1
- package/dist/src/components/e-commerce/products/ProductSelector.js +1 -1
- package/dist/src/components/e-commerce/products/SingleProduct.js +1 -1
- package/dist/src/components/layout/Footer.js +1 -1
- package/dist/src/components/layout/Navbar.js +1 -1
- package/dist/src/components/layout/NavbarV2.js +1 -1
- package/dist/src/components/layout/SideNav.js +1 -1
- package/dist/src/components/logistics/dispatcher/DispatcherProfileEditForm.js +1 -1
- package/dist/src/components/logistics/ipo/AddIPOForm.js +1 -1
- package/dist/src/components/logistics/ipo/IPOItemFields.js +1 -1
- package/dist/src/components/logistics/ipo/IPOItemUpdater.js +1 -1
- package/dist/src/components/logistics/ipo/IpoStatusIndicator.js +1 -1
- package/dist/src/components/logistics/ipo/ManageIPOForm.js +1 -1
- package/dist/src/components/logistics/ipo/TextualIPOItemUpdater.js +1 -1
- package/dist/src/components/logistics/ipo/TextualManageIPOForm.js +1 -1
- package/dist/src/components/logistics/note/NoteTakingComponent.js +1 -1
- package/dist/src/components/logistics/note/NotesDisplay.js +1 -1
- package/dist/src/components/logistics/report/PreReportsDisplay.js +1 -1
- package/dist/src/components/logistics/report/ReportMakingComponent.js +1 -1
- package/dist/src/components/logistics/report/ReportsDisplay.js +1 -1
- package/dist/src/components/logistics/vendor/AddVendorForm.js +1 -1
- package/dist/src/components/logistics/vendor/EditVendorForm.js +1 -1
- package/dist/src/components/logistics/vendor/VendorDisplay.js +1 -1
- package/dist/src/components/logistics/vendor/VendorSelector.js +1 -1
- package/dist/src/components/page-builder/ColumnsSection.js +1 -1
- package/dist/src/components/page-builder/FleetSection.js +1 -1
- package/dist/src/components/page-builder/IconSection.js +1 -1
- package/dist/src/components/page-builder/LogoBarSection.js +1 -1
- package/dist/src/components/page-builder/PBFeaturesSection.js +1 -1
- package/dist/src/components/page-builder/PBPersonaliaSection.js +1 -1
- package/dist/src/components/page-builder/PBTextImageSection.js +1 -1
- package/dist/src/components/page-builder/PictureBarSection.js +1 -1
- package/dist/src/components/page-elements/CategoryBlock.js +1 -1
- package/dist/src/components/page-elements/ColumnsSection.js +1 -1
- package/dist/src/components/page-elements/FeaturesSection.js +1 -1
- package/dist/src/components/page-elements/FleetSection.js +1 -1
- package/dist/src/components/page-elements/IconSection.js +1 -1
- package/dist/src/components/page-elements/LogoBarSection.js +1 -1
- package/dist/src/components/page-elements/PersonaliaSection.js +1 -1
- package/dist/src/components/page-elements/PictureBarSection.js +1 -1
- package/dist/src/components/page-elements/TextImageSection.js +1 -1
- package/dist/src/components/public-information/PublicInformationForm.js +1 -1
- package/dist/src/context/auth/SessionContext.js +1 -1
- package/dist/src/context/common/SnackbarContext.js +1 -1
- package/dist/src/context/e-commerce/cart/CartContext.js +1 -1
- package/dist/src/context/e-commerce/checkout/CheckoutContext.js +1 -1
- package/dist/src/data/actions/auth-actions.js +1 -1
- package/dist/src/data/actions/e-commerce/categories/createCategoryAction.js +1 -1
- package/dist/src/data/actions/e-commerce/categories/updateCategoryAction.js +1 -1
- package/dist/src/data/actions/e-commerce/checkout-action.js +1 -1
- package/dist/src/data/actions/e-commerce/enduser/profile-actions.js +1 -1
- package/dist/src/data/actions/e-commerce/invoices/createInvoiceAction.js +1 -1
- package/dist/src/data/actions/e-commerce/iro/createIroAction.js +1 -1
- package/dist/src/data/actions/e-commerce/iro/requestRmaAction.js +1 -1
- package/dist/src/data/actions/e-commerce/iro/updateIroAction.js +1 -1
- package/dist/src/data/actions/e-commerce/opo/createOpoAction.js +1 -1
- package/dist/src/data/actions/e-commerce/opo/updateOpoAction.js +1 -1
- package/dist/src/data/actions/e-commerce/product/createProductAction.js +1 -1
- package/dist/src/data/actions/e-commerce/product/updateProductAction.js +1 -1
- package/dist/src/data/actions/logistics/dispatcher/profile-actions.js +1 -1
- package/dist/src/data/actions/logistics/ipo/createIPOAction.js +1 -1
- package/dist/src/data/actions/logistics/ipo/updateIpoAction.js +1 -1
- package/dist/src/data/actions/logistics/note/createNoteAction.js +1 -1
- package/dist/src/data/actions/logistics/report/createReportAction.js +1 -1
- package/dist/src/data/actions/logistics/vendor/createVendorAction.js +1 -1
- package/dist/src/data/actions/logistics/vendor/updateVendorAction.js +1 -1
- package/dist/src/data/actions/media/updateMediaAction.js +1 -1
- package/dist/src/data/actions/media/uploadBase64MediaAction.js +1 -1
- package/dist/src/data/actions/media/uploadMediaAction.js +1 -1
- package/dist/src/data/actions/pagebuilder-actions.js +1 -1
- package/dist/src/data/actions/profile-actions.js +1 -1
- package/dist/src/data/actions/public-information/updatePublicInformationAction.js +1 -1
- package/dist/src/data/loaders/common/media/downloadBase64File.js +1 -1
- package/dist/src/data/loaders/common/media/getAllMedia.js +1 -1
- package/dist/src/data/loaders/e-commerce/getAllCategoryNames.js +1 -1
- package/dist/src/data/loaders/e-commerce/getAllCustomers.js +1 -1
- package/dist/src/data/loaders/e-commerce/getAllInvoices.js +1 -1
- package/dist/src/data/loaders/e-commerce/getAllOpos.js +1 -1
- package/dist/src/data/loaders/e-commerce/getCustomerLabels.js +1 -1
- package/dist/src/data/loaders/e-commerce/getCustomerModel.js +1 -1
- package/dist/src/data/loaders/e-commerce/getOpoModel.js +1 -1
- package/dist/src/data/loaders/e-commerce/getPaginatedCategories.js +1 -1
- package/dist/src/data/loaders/e-commerce/getProductModel.js +1 -1
- package/dist/src/data/loaders/e-commerce/getProductNames.js +1 -1
- package/dist/src/data/loaders/e-commerce/getShop.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleCategory.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleCustomer.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleOpo.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleProduct.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleStock.js +1 -1
- package/dist/src/data/loaders/e-commerce/getTableProducts.js +1 -1
- package/dist/src/data/loaders/e-commerce/iros/getAllIros.js +1 -1
- package/dist/src/data/loaders/e-commerce/iros/getIroModel.js +1 -1
- package/dist/src/data/loaders/e-commerce/iros/getSingleIro.js +1 -1
- package/dist/src/data/loaders/e-commerce/iros/queryAllIros.js +1 -1
- package/dist/src/data/loaders/e-commerce/queryAllCustomers.js +1 -1
- package/dist/src/data/loaders/e-commerce/queryAllOpos.js +1 -1
- package/dist/src/data/loaders/e-commerce/queryAllProducts.js +1 -1
- package/dist/src/data/loaders/e-commerce-loaders.js +1 -1
- package/dist/src/data/loaders/loaders.js +1 -1
- package/dist/src/data/loaders/logistics/getIpoModel.js +1 -1
- package/dist/src/data/loaders/logistics/getIpoNames.js +1 -1
- package/dist/src/data/loaders/logistics/getSingleIpo.js +1 -1
- package/dist/src/data/loaders/logistics/getSingleVendor.js +1 -1
- package/dist/src/data/loaders/logistics/getTableIpos.js +1 -1
- package/dist/src/data/loaders/logistics/getTableVendors.js +1 -1
- package/dist/src/data/loaders/logistics/getVendorModel.js +1 -1
- package/dist/src/data/loaders/logistics/getVendorNames.js +1 -1
- package/dist/src/data/loaders/logistics/queryAllIpos.js +1 -1
- package/dist/src/data/loaders/logistics/queryAllVendors.js +1 -1
- package/dist/src/data/loaders/page-builder/getTablePages.js +1 -1
- package/dist/src/data/loaders/page-elements/getSinglePage.js +1 -1
- package/dist/src/data/loaders/public-information/getPublicInformation.js +1 -1
- package/dist/src/data/loaders/user/getUserMeLoader.js +1 -1
- package/dist/src/data/services/archive-service.js +1 -1
- package/dist/src/data/services/auth-service.js +1 -1
- package/dist/src/data/services/common/cancellation-service.js +1 -1
- package/dist/src/data/services/common/confirmation-service.js +1 -1
- package/dist/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +1 -1
- package/dist/src/data/services/file-service.js +1 -1
- package/dist/src/data/services/get-token.js +1 -1
- package/dist/src/data/services/get-user-me-loader.js +1 -1
- package/dist/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +1 -1
- package/dist/src/data/services/mutate-data.js +1 -1
- package/dist/src/lib/eoriValidate.js +1 -1
- package/dist/src/lib/molliePaymentProvider.js +1 -1
- package/dist/src/lib/parseNavigation.js +1 -1
- package/dist/src/lib/processFilters.js +1 -1
- package/dist/src/lib/utils.js +1 -1
- package/dist/src/lib/vatValidate.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/StrapiErrors.d.ts +2 -2
- package/dist/types/components/e-commerce/cart/hooks.d.ts +2 -3
- package/dist/types/components/e-commerce/products/AddProductForm.d.ts +3 -3
- package/dist/types/lib/getIcon.d.ts +0 -1
- package/dist/types/types/StrapiImageProps.d.ts +0 -1
- package/dist/types/types/common/Contact.d.ts +0 -1
- package/dist/types/types/common/Socials.d.ts +0 -1
- package/dist/types/types/common/enhancedTable/types.d.ts +0 -1
- package/package.json +15 -25
- package/postcss.config.js +5 -6
- package/rollup.config.mjs +9 -0
- package/src/components/Logo.tsx +20 -9
- package/src/components/LogoutButton.tsx +1 -29
- package/src/components/StrapiErrors.tsx +5 -1
- package/src/components/e-commerce/invoice/InvoicePDF.tsx +54 -48
- package/src/components/e-commerce/iro/ManageIROForm.tsx +3 -3
- package/src/components/e-commerce/opo/ManageOpoForm.tsx +7 -2
- package/src/components/e-commerce/opo/OpoItemUpdater.tsx +16 -6
- package/src/index.ts +327 -327
- package/src/lib/APIcon.svg +6 -6
- package/src/lib/utils.ts +0 -7
- package/src/styles/globals.css +2 -3
- package/tsconfig.json +24 -34
- package/.storybook/main.js +0 -26
- package/.storybook/preview.js +0 -50
- package/dist/_virtual/inherits_browser.js +0 -6
- package/dist/_virtual/punycode.js +0 -6
- package/dist/_virtual/url.js +0 -6
- package/dist/_virtual/util.js +0 -6
- package/dist/node_modules/available-typed-arrays/index.js +0 -6
- package/dist/node_modules/base64-js/index.js +0 -6
- package/dist/node_modules/buffer/index.js +0 -12
- package/dist/node_modules/call-bind/callBound.js +0 -6
- package/dist/node_modules/call-bind/index.js +0 -6
- package/dist/node_modules/define-data-property/index.js +0 -6
- package/dist/node_modules/for-each/index.js +0 -6
- package/dist/node_modules/has-property-descriptors/index.js +0 -6
- package/dist/node_modules/has-proto/index.js +0 -6
- package/dist/node_modules/has-tostringtag/shams.js +0 -6
- package/dist/node_modules/ieee754/index.js +0 -7
- package/dist/node_modules/inherits/inherits_browser.js +0 -6
- package/dist/node_modules/is-arguments/index.js +0 -6
- package/dist/node_modules/is-callable/index.js +0 -6
- package/dist/node_modules/is-generator-function/index.js +0 -6
- package/dist/node_modules/is-typed-array/index.js +0 -6
- package/dist/node_modules/set-function-length/index.js +0 -6
- package/dist/node_modules/url/node_modules/punycode/punycode.js +0 -7
- package/dist/node_modules/url/url.js +0 -6
- package/dist/node_modules/util/support/isBufferBrowser.js +0 -6
- package/dist/node_modules/util/support/types.js +0 -6
- package/dist/node_modules/util/util.js +0 -6
- package/dist/node_modules/which-typed-array/index.js +0 -6
- package/dist/types/app/checkout/layout.d.ts +0 -4
- package/dist/types/app/checkout/page.d.ts +0 -3
- package/dist/types/app/layout.d.ts +0 -8
- package/dist/types/app/page.d.ts +0 -2
- package/dist/types/components/e-commerce/cart/CartWidgetOld.d.ts +0 -9
- package/next-env.d.ts +0 -5
- package/next.config.js +0 -18
- package/public/AMH/BulletSVG.svg +0 -9
- package/public/AMH/desktop_wallpaper@0.25x.png +0 -0
- package/public/Logo.svg +0 -6
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo.png +0 -0
- package/public/logo_decorated.png +0 -0
- package/public/logo_text.png +0 -0
- package/public/logo_thick.png +0 -0
- package/public/manifest.json +0 -25
- package/public/placeholders/fullscreen_1920X1080.png +0 -0
- package/public/placeholders/highres_2400X1600.png +0 -0
- package/public/placeholders/large_1200X800.png +0 -0
- package/public/placeholders/medium_600X400.png +0 -0
- package/public/placeholders/small_300X200.png +0 -0
- package/public/placeholders/thumbnail_100X100.png +0 -0
- package/public/robots.txt +0 -3
- package/readme.MD +0 -0
- package/rollup.config copy.mjs +0 -80
- package/src/app/checkout/layout.tsx +0 -28
- package/src/app/checkout/page.tsx +0 -9
- package/src/app/layout.tsx +0 -16
- package/src/app/page.tsx +0 -38
- package/src/stories/ContactForm.stories.js +0 -13
- package/src/stories/FeatureSection.stories.js +0 -86
- package/src/stories/FluidBackground.stories.js +0 -29
- package/src/stories/Footer.stories.js +0 -130
- package/src/stories/HeroSection.stories.js +0 -101
- package/src/stories/LogoutButton.stories.js +0 -15
- package/src/stories/Page.stories.js +0 -536
- package/src/stories/PageBuilder.stories.js +0 -396
- package/src/stories/RegisterForm.stories.js +0 -13
- package/src/stories/ScrollNavbar.stories.js +0 -121
- package/src/stories/SideNav.stories.js +0 -47
- package/src/stories/SigninForm.stories.js +0 -13
- package/src/stories/StrapiImage.stories.js +0 -23
- package/src/stories/TextImageSection.stories.js +0 -73
- package/src/stories/WebsitePlaceholder.stories.js +0 -178
- package/src/stories/WhatsAppClickToChatButton.stories.js +0 -69
- package/src/stories/styles.css +0 -39
- package/tailwind.config.ts +0 -80
package/README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# UMWD Components
|
|
2
|
+
|
|
3
|
+
A comprehensive React component library for e-commerce and logistics
|
|
4
|
+
applications, built with TypeScript and Material-UI.
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
UMWD Components is a feature-rich component library designed for building modern
|
|
9
|
+
e-commerce platforms with integrated logistics management. It provides
|
|
10
|
+
ready-to-use components for customer management, product catalogs, order
|
|
11
|
+
processing, invoicing, vendor management, and logistics operations.
|
|
12
|
+
|
|
13
|
+
## Key Features
|
|
14
|
+
|
|
15
|
+
### 🛒 E-commerce Components
|
|
16
|
+
|
|
17
|
+
- **Product Management**: Product displays, forms, categories, pricing, and
|
|
18
|
+
inventory
|
|
19
|
+
- **Shopping Cart**: Cart functionality with add/remove items, quantity updates,
|
|
20
|
+
and checkout process
|
|
21
|
+
- **Customer Profiles**: Customer registration, authentication, and profile
|
|
22
|
+
management
|
|
23
|
+
- **Order Processing**: Order placement, tracking, and management (OPO -
|
|
24
|
+
Outbound Purchase Orders)
|
|
25
|
+
- **Returns Management**: Return merchandise authorization (RMA) and processing
|
|
26
|
+
(IRO - Inbound Return Orders)
|
|
27
|
+
- **Invoice Generation**: PDF invoice creation and management
|
|
28
|
+
- **Payment Integration**: Mollie payment provider integration
|
|
29
|
+
|
|
30
|
+
### 📦 Logistics Components
|
|
31
|
+
|
|
32
|
+
- **Vendor Management**: Vendor profiles, business credentials, and contact
|
|
33
|
+
management
|
|
34
|
+
- **Inventory Processing**: Inbound Purchase Orders (IPO) management
|
|
35
|
+
- **Dispatcher Profiles**: Logistics operator management and tracking
|
|
36
|
+
- **Shipping & Fulfillment**: Order fulfillment and delivery tracking
|
|
37
|
+
|
|
38
|
+
### 🏗️ Page Builder Components
|
|
39
|
+
|
|
40
|
+
- **Dynamic Page Building**: Flexible page construction with reusable blocks
|
|
41
|
+
- **Hero Sections**: Landing page components with images and CTAs
|
|
42
|
+
- **Feature Sections**: Product and service highlighting components
|
|
43
|
+
- **Contact Forms**: Customizable contact and inquiry forms
|
|
44
|
+
|
|
45
|
+
### 🔐 Authentication & Authorization
|
|
46
|
+
|
|
47
|
+
- **User Authentication**: Login, registration, and password reset
|
|
48
|
+
- **Session Management**: Secure session handling with context providers
|
|
49
|
+
- **Role-based Access**: Customer, dispatcher, and admin role management
|
|
50
|
+
|
|
51
|
+
### 🎨 UI Components
|
|
52
|
+
|
|
53
|
+
- **Layout Components**: Headers, footers, navigation, and sidebars
|
|
54
|
+
- **Common Elements**: Forms, buttons, modals, and utility components
|
|
55
|
+
- **Responsive Design**: Mobile-first approach with Material-UI integration
|
|
56
|
+
- **Theming**: Customizable themes and styling with Material-UI
|
|
57
|
+
|
|
58
|
+
## Technology Stack
|
|
59
|
+
|
|
60
|
+
- **Framework**: Next.js 14+ with React 18
|
|
61
|
+
- **Language**: TypeScript
|
|
62
|
+
- **UI Library**: Material-UI (MUI) v5
|
|
63
|
+
- **Styling**: CSS-in-JS with Material-UI's sx prop
|
|
64
|
+
- **State Management**: React Context API
|
|
65
|
+
- **Form Handling**: React Hook Form with Zod validation
|
|
66
|
+
- **Date Handling**: Day.js
|
|
67
|
+
- **PDF Generation**: @react-pdf/renderer
|
|
68
|
+
- **Build Tools**: Rollup for library bundling
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm install umwd-components
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Peer Dependencies
|
|
77
|
+
|
|
78
|
+
Make sure to install the required peer dependencies:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm install @mui/icons-material @mui/material @mui/x-date-pickers @react-pdf/renderer @types/validator mui-markdown next react react-dom validator zod
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
### Basic Setup
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
import { SessionProvider, CartProvider } from "umwd-components";
|
|
90
|
+
|
|
91
|
+
function App() {
|
|
92
|
+
return (
|
|
93
|
+
<SessionProvider>
|
|
94
|
+
<CartProvider>{/* Your app components */}</CartProvider>
|
|
95
|
+
</SessionProvider>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Product Display
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
import { ProductCard, Price } from "umwd-components";
|
|
104
|
+
import { Grid } from "@mui/material";
|
|
105
|
+
|
|
106
|
+
function ProductGrid({ products }) {
|
|
107
|
+
return (
|
|
108
|
+
<Grid container spacing={2}>
|
|
109
|
+
{products.map((product) => (
|
|
110
|
+
<Grid item xs={12} md={4} key={product.id}>
|
|
111
|
+
<ProductCard data={product} />
|
|
112
|
+
</Grid>
|
|
113
|
+
))}
|
|
114
|
+
</Grid>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Customer Profile Management
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import {
|
|
123
|
+
CustomerProfileDisplay,
|
|
124
|
+
CustomerProfileEditForm,
|
|
125
|
+
} from "umwd-components";
|
|
126
|
+
|
|
127
|
+
function CustomerDashboard({ customer }) {
|
|
128
|
+
return (
|
|
129
|
+
<div>
|
|
130
|
+
<CustomerProfileDisplay data={customer} />
|
|
131
|
+
<CustomerProfileEditForm
|
|
132
|
+
data={customer}
|
|
133
|
+
revalidateCallback={() => window.location.reload()}
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Shopping Cart
|
|
141
|
+
|
|
142
|
+
```tsx
|
|
143
|
+
import { CartWidget, AddToCartButton, useCart } from "umwd-components";
|
|
144
|
+
|
|
145
|
+
function ProductPage({ product }) {
|
|
146
|
+
const { addItem } = useCart();
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<div>
|
|
150
|
+
<h1>{product.name}</h1>
|
|
151
|
+
<AddToCartButton product={product} />
|
|
152
|
+
<CartWidget />
|
|
153
|
+
</div>
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Business Domain Features
|
|
159
|
+
|
|
160
|
+
### Business Credentials Management
|
|
161
|
+
|
|
162
|
+
- **VAT Number Validation**: Automatic VAT number verification
|
|
163
|
+
- **EORI Number Validation**: Economic Operators Registration validation
|
|
164
|
+
- **Chamber of Commerce**: Business registration details
|
|
165
|
+
- **Multi-address Support**: Separate billing, delivery, and company addresses
|
|
166
|
+
|
|
167
|
+
### Order Management Workflow
|
|
168
|
+
|
|
169
|
+
1. **OPO (Outbound Purchase Orders)**: Customer orders placed on the platform
|
|
170
|
+
2. **IPO (Inbound Purchase Orders)**: Vendor purchase orders for inventory
|
|
171
|
+
3. **IRO (Inbound Return Orders)**: Customer returns and RMA processing
|
|
172
|
+
4. **Invoice Generation**: Automated PDF invoice creation
|
|
173
|
+
5. **Payment Processing**: Integrated payment workflows
|
|
174
|
+
|
|
175
|
+
### Logistics Integration
|
|
176
|
+
|
|
177
|
+
- **Vendor Management**: Complete vendor profile and product catalog management
|
|
178
|
+
- **Dispatcher Coordination**: Logistics operator assignment and tracking
|
|
179
|
+
- **Inventory Tracking**: Stock levels and product movement
|
|
180
|
+
- **Shipping Coordination**: Delivery scheduling and tracking
|
|
181
|
+
|
|
182
|
+
## Component Categories
|
|
183
|
+
|
|
184
|
+
### Layout Components
|
|
185
|
+
|
|
186
|
+
- `Footer`, `Navbar`, `NavbarV2`, `SideNav`
|
|
187
|
+
- `WebsitePlaceholder`, `FluidBackground`
|
|
188
|
+
|
|
189
|
+
### Authentication
|
|
190
|
+
|
|
191
|
+
- `AuthWidget`, `RegisterForm`, `SigninForm`, `LogoutButton`
|
|
192
|
+
- `ForgotPasswordForm`, `PasswordResetForm`
|
|
193
|
+
|
|
194
|
+
### E-commerce
|
|
195
|
+
|
|
196
|
+
- `ProductCard`, `SingleProduct`, `AddProductForm`, `EditProductForm`
|
|
197
|
+
- `CartDisplay`, `AddToCartButton`, `CheckoutForm`
|
|
198
|
+
- `CustomerProfileDisplay`, `CustomerProfileEditForm`
|
|
199
|
+
- `CreateInvoiceForm`, `InvoicePDFViewer`
|
|
200
|
+
|
|
201
|
+
### Logistics
|
|
202
|
+
|
|
203
|
+
- `VendorDisplay`, `AddVendorForm`, `EditVendorForm`
|
|
204
|
+
- `DispatcherProfileDisplay`, `ManageIPOForm`
|
|
205
|
+
|
|
206
|
+
### Common Utilities
|
|
207
|
+
|
|
208
|
+
- `Address`, `BusinessCredentials`, `Pagination`
|
|
209
|
+
- `StrapiImage`, `ContactForm`, `ScrollLink`
|
|
210
|
+
|
|
211
|
+
## Development
|
|
212
|
+
|
|
213
|
+
### Local Development
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# Install dependencies
|
|
217
|
+
npm install
|
|
218
|
+
|
|
219
|
+
# Build library
|
|
220
|
+
npm run build-lib
|
|
221
|
+
|
|
222
|
+
# Type checking
|
|
223
|
+
npm run type-check
|
|
224
|
+
|
|
225
|
+
# Lint code
|
|
226
|
+
npm run lint
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Building for Production
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# Build the component library
|
|
233
|
+
npm run build-lib
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Configuration
|
|
237
|
+
|
|
238
|
+
### Environment Variables
|
|
239
|
+
|
|
240
|
+
The library expects certain environment variables for proper functionality:
|
|
241
|
+
|
|
242
|
+
- `NEXT_PUBLIC_STRAPI_API_URL`: Backend API URL
|
|
243
|
+
- `NEXT_PUBLIC_STRAPI_API_TOKEN`: API authentication token
|
|
244
|
+
|
|
245
|
+
### Styling
|
|
246
|
+
|
|
247
|
+
The library uses Material-UI for all styling. Components follow Material Design
|
|
248
|
+
principles and can be customized using MUI's theming system and sx props.
|
|
249
|
+
|
|
250
|
+
## Contributing
|
|
251
|
+
|
|
252
|
+
1. Clone the repository
|
|
253
|
+
2. Install dependencies: `npm install`
|
|
254
|
+
3. Create a feature branch
|
|
255
|
+
4. Make your changes
|
|
256
|
+
5. Build the library: `npm run build-lib`
|
|
257
|
+
6. Submit a pull request
|
|
258
|
+
|
|
259
|
+
## License
|
|
260
|
+
|
|
261
|
+
MIT License - see LICENSE file for details.
|
|
262
|
+
|
|
263
|
+
## Support
|
|
264
|
+
|
|
265
|
+
For issues, feature requests, or questions, please create an issue in the
|
|
266
|
+
project repository.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
**Note**: This is a comprehensive component library designed for enterprise
|
|
271
|
+
e-commerce and logistics applications. It integrates with Strapi CMS for content
|
|
272
|
+
management and includes sophisticated business logic for European VAT/EORI
|
|
273
|
+
validation and multi-currency support.
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(
|
|
6
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),o}export{e as commonjsGlobal,o as getAugmentedNamespace,t as getDefaultExportFromCjs};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var
|
|
6
|
+
function t(t,r){this.v=t,this.k=r}function r(r){var e={},n=!1;function o(e,o){return n=!0,o=new Promise(function(t){t(r[e](o))}),{done:!1,value:new t(o,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):o("next",t)},"function"==typeof r.throw&&(e.throw=function(t){if(n)throw n=!1,t;return o("throw",t)}),"function"==typeof r.return&&(e.return=function(t){return n?(n=!1,t):o("return",t)}),e}function e(t){var r,e,o,i=2;for("undefined"!=typeof Symbol&&(e=Symbol.asyncIterator,o=Symbol.iterator);i--;){if(e&&null!=(r=t[e]))return r.call(t);if(o&&null!=(r=t[o]))return new n(r.call(t));e="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function n(t){function r(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var r=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:r}})}return n=function(t){this.s=t,this.n=t.next},n.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(t){var e=this.s.return;return void 0===e?Promise.resolve({value:t,done:!0}):r(e.apply(this.s,arguments))},throw:function(t){var e=this.s.return;return void 0===e?Promise.reject(t):r(e.apply(this.s,arguments))}},new n(t)}function o(r){return new t(r,0)}function i(t,r,e){return(r=f(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},u.apply(null,arguments)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function c(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach(function(r){i(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function s(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function f(t){var r=s(t,"string");return"symbol"==typeof r?r:r+""}function l(t){return function(){return new y(t.apply(this,arguments))}}function y(r){var e,n;function o(e,n){try{var u=r[e](n),a=u.value,c=a instanceof t;Promise.resolve(c?a.v:a).then(function(t){if(c){var n="return"===e?"return":"next";if(!a.k||t.done)return o(n,t);t=r[n](t).value}i(u.done?"return":"normal",t)},function(t){o("throw",t)})}catch(t){i("throw",t)}}function i(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?o(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise(function(i,u){var a={key:t,arg:r,resolve:i,reject:u,next:null};n?n=n.next=a:(e=n=a,o(t,r))})},"function"!=typeof r.return&&(this.return=void 0)}y.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},y.prototype.next=function(t){return this._invoke("next",t)},y.prototype.throw=function(t){return this._invoke("throw",t)},y.prototype.return=function(t){return this._invoke("return",t)};export{t as OverloadYield,r as asyncGeneratorDelegate,e as asyncIterator,o as awaitAsyncGenerator,i as defineProperty,u as extends,c as objectSpread2,s as toPrimitive,f as toPropertyKey,l as wrapAsyncGenerator};
|