@unchainedshop/admin-ui 4.8.26 → 4.8.27
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/dist/chunk-45H2WVIC.js +51 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6TXD4TA7.js +1196 -0
- package/dist/chunk-BGCKJQGS.js +58 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QNLGYFV7.js +22 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-RHUFQVKL.js +514 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-UFYR5WZT.js +165 -0
- package/dist/chunk-UXG7EYHC.js +614 -0
- package/dist/chunk-VDKQGOMV.js +840 -0
- package/dist/chunk-XHOCXPD5.js +9 -0
- package/dist/chunk-XJBPMIC4.js +284 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-YSKZE2KN.js +652 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +14 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +6 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +17 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +41 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +30108 -0
- package/dist/gql/types.d.ts +17209 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +114 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1013 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1121 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +51 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +353 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +448 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +563 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +251 -0
- package/dist/modules/product.js +1929 -0
- package/dist/modules/quotation.js +297 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +308 -0
- package/dist/plugins.js +8 -0
- package/dist/providers.js +6 -0
- package/dist/sdk/hooks.d.ts +9 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +67 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +21540 -0
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
- package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
- package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
- package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
- package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
- package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/manifest.json +48 -0
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +1 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
import { textColor, bgColor, borderColor } from './chunk-VDKQGOMV.js';
|
|
2
|
+
import { useField_default, validateRequiredTag, useFormContext_default } from './chunk-UXG7EYHC.js';
|
|
3
|
+
import { QuestionMarkCircleIcon_default } from './chunk-XJBPMIC4.js';
|
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
import { useRouter } from 'next/router';
|
|
6
|
+
import * as React2 from 'react';
|
|
7
|
+
import React2__default, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
|
+
import { useFormContext } from 'react-hook-form';
|
|
10
|
+
|
|
11
|
+
// ../node_modules/clsx/dist/clsx.mjs
|
|
12
|
+
function r(e) {
|
|
13
|
+
var t, f, n = "";
|
|
14
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
15
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
16
|
+
var o = e.length;
|
|
17
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
18
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
19
|
+
return n;
|
|
20
|
+
}
|
|
21
|
+
function clsx() {
|
|
22
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
var clsx_default = clsx;
|
|
26
|
+
var Badge = ({
|
|
27
|
+
text,
|
|
28
|
+
className: classes = "",
|
|
29
|
+
dotted = null,
|
|
30
|
+
color = "green",
|
|
31
|
+
square = null,
|
|
32
|
+
onClick = null
|
|
33
|
+
}) => {
|
|
34
|
+
const normalizedColor = color?.trim();
|
|
35
|
+
const isRainbow = normalizedColor === "rainbow";
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
"span",
|
|
38
|
+
{
|
|
39
|
+
id: "badge",
|
|
40
|
+
className: clsx_default(
|
|
41
|
+
isRainbow ? "inline-flex items-center text-sm font-bold text-text-primary shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500" : `inline-flex items-center border ${borderColor(
|
|
42
|
+
normalizedColor,
|
|
43
|
+
400
|
|
44
|
+
)} px-2.5 py-0.5 text-sm font-medium ${bgColor(
|
|
45
|
+
normalizedColor,
|
|
46
|
+
100
|
|
47
|
+
)} ${textColor(normalizedColor, 800)}`,
|
|
48
|
+
classes,
|
|
49
|
+
{
|
|
50
|
+
"rounded-full": !square,
|
|
51
|
+
"rounded-md": square
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
children: isRainbow ? /* @__PURE__ */ jsxs(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
className: clsx_default(
|
|
58
|
+
"inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",
|
|
59
|
+
{
|
|
60
|
+
"rounded-full": !square,
|
|
61
|
+
"rounded-md": square
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
children: [
|
|
65
|
+
dotted && /* @__PURE__ */ jsx(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
className: "text-text-primary -ml-1 mr-1.5 h-2 w-2",
|
|
69
|
+
fill: "currentColor",
|
|
70
|
+
viewBox: "0 0 8 8",
|
|
71
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "3" })
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
text,
|
|
75
|
+
onClick && /* @__PURE__ */ jsx(
|
|
76
|
+
"button",
|
|
77
|
+
{
|
|
78
|
+
id: "badge-x-button",
|
|
79
|
+
type: "button",
|
|
80
|
+
onClick,
|
|
81
|
+
className: "ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",
|
|
82
|
+
children: /* @__PURE__ */ jsx(
|
|
83
|
+
"svg",
|
|
84
|
+
{
|
|
85
|
+
className: "h-2 w-2",
|
|
86
|
+
stroke: "currentColor",
|
|
87
|
+
fill: "none",
|
|
88
|
+
viewBox: "0 0 8 8",
|
|
89
|
+
children: /* @__PURE__ */ jsx(
|
|
90
|
+
"path",
|
|
91
|
+
{
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeWidth: "1.5",
|
|
94
|
+
d: "M1 1l6 6m0-6L1 7"
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
104
|
+
dotted && /* @__PURE__ */ jsx(
|
|
105
|
+
"svg",
|
|
106
|
+
{
|
|
107
|
+
className: `-ml-1 mr-1.5 h-2 w-2 ${textColor(normalizedColor, 400)}`,
|
|
108
|
+
fill: "currentColor",
|
|
109
|
+
viewBox: "0 0 8 8",
|
|
110
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "3" })
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
text,
|
|
114
|
+
onClick && /* @__PURE__ */ jsx(
|
|
115
|
+
"button",
|
|
116
|
+
{
|
|
117
|
+
id: "badge-x-button",
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick,
|
|
120
|
+
className: `ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${textColor(
|
|
121
|
+
normalizedColor,
|
|
122
|
+
400
|
|
123
|
+
)} hover:${bgColor(
|
|
124
|
+
normalizedColor,
|
|
125
|
+
200
|
|
126
|
+
)} hover:text-${normalizedColor}-500 focus:outline-hidden focus:${bgColor(
|
|
127
|
+
normalizedColor,
|
|
128
|
+
500
|
|
129
|
+
)} focus:text-white`,
|
|
130
|
+
children: /* @__PURE__ */ jsx(
|
|
131
|
+
"svg",
|
|
132
|
+
{
|
|
133
|
+
className: "h-2 w-2",
|
|
134
|
+
stroke: "currentColor",
|
|
135
|
+
fill: "none",
|
|
136
|
+
viewBox: "0 0 8 8",
|
|
137
|
+
children: /* @__PURE__ */ jsx(
|
|
138
|
+
"path",
|
|
139
|
+
{
|
|
140
|
+
strokeLinecap: "round",
|
|
141
|
+
strokeWidth: "1.5",
|
|
142
|
+
d: "M1 1l6 6m0-6L1 7"
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] })
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
var Badge_default = Badge;
|
|
154
|
+
var Tab = ({
|
|
155
|
+
children,
|
|
156
|
+
tabItems,
|
|
157
|
+
defaultTab,
|
|
158
|
+
updateRoute = true
|
|
159
|
+
}) => {
|
|
160
|
+
const router = useRouter();
|
|
161
|
+
const { tab = defaultTab } = router?.query || {};
|
|
162
|
+
const currentTab = Array.isArray(tab) ? tab[0] : tab;
|
|
163
|
+
const { formatMessage } = useIntl();
|
|
164
|
+
const onTabSelected = (selectedTab) => {
|
|
165
|
+
if (updateRoute) {
|
|
166
|
+
const { sort, ...queryWithoutSort } = router?.query || {};
|
|
167
|
+
router.push(
|
|
168
|
+
{
|
|
169
|
+
query: { ...queryWithoutSort, tab: selectedTab }
|
|
170
|
+
},
|
|
171
|
+
void 0,
|
|
172
|
+
{
|
|
173
|
+
shallow: true
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
return /* @__PURE__ */ jsxs("div", { className: "mt-10", children: [
|
|
179
|
+
/* @__PURE__ */ jsxs("div", { className: "lg:hidden", children: [
|
|
180
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "selected-tab", className: "sr-only", children: formatMessage({
|
|
181
|
+
id: "select_tab",
|
|
182
|
+
defaultMessage: "Select a tab"
|
|
183
|
+
}) }),
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
"select",
|
|
186
|
+
{
|
|
187
|
+
onChange: (e) => onTabSelected(e.target.value),
|
|
188
|
+
id: "selected-tab",
|
|
189
|
+
name: "selected-tab",
|
|
190
|
+
className: "mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-border-default py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-focus-ring focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",
|
|
191
|
+
value: currentTab,
|
|
192
|
+
children: tabItems.filter(Boolean).map((value) => /* @__PURE__ */ jsx("option", { value: value.id, className: "dark:text-white", children: value?.title || value?.id }, value.id))
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] }),
|
|
196
|
+
/* @__PURE__ */ jsx("div", { className: "mt-5 hidden lg:block", children: /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx("nav", { className: "flex flex-wrap gap-3", children: tabItems.filter(Boolean).map((option) => /* @__PURE__ */ jsx(
|
|
197
|
+
"a",
|
|
198
|
+
{
|
|
199
|
+
id: option.id,
|
|
200
|
+
tabIndex: 0,
|
|
201
|
+
onClick: () => onTabSelected(option.id),
|
|
202
|
+
onKeyDown: (e) => {
|
|
203
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
204
|
+
e.preventDefault();
|
|
205
|
+
onTabSelected(option.id);
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
className: clsx_default(
|
|
209
|
+
{
|
|
210
|
+
"cursor-pointer rounded-lg border border-border-default bg-white text-text-primary dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900": currentTab === option.id
|
|
211
|
+
},
|
|
212
|
+
"cursor-pointer relative whitespace-nowrap border border-border-subtle py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900"
|
|
213
|
+
),
|
|
214
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
215
|
+
/* @__PURE__ */ jsx("div", { children: option.Icon }),
|
|
216
|
+
/* @__PURE__ */ jsx("div", { className: "capitalize", children: option?.title || option?.id }),
|
|
217
|
+
option?.length ? /* @__PURE__ */ jsx("span", { className: "absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900", children: option?.length }) : null
|
|
218
|
+
] })
|
|
219
|
+
},
|
|
220
|
+
option.id
|
|
221
|
+
)) }) }) }),
|
|
222
|
+
/* @__PURE__ */ jsx("div", { className: "mt-5", children: React2__default.cloneElement(children, { selectedView: currentTab }) })
|
|
223
|
+
] });
|
|
224
|
+
};
|
|
225
|
+
var Tab_default = Tab;
|
|
226
|
+
var JSONView = ({
|
|
227
|
+
value,
|
|
228
|
+
className,
|
|
229
|
+
onChange = () => {
|
|
230
|
+
},
|
|
231
|
+
rows: defaultRows = 7,
|
|
232
|
+
...props
|
|
233
|
+
}) => {
|
|
234
|
+
const lineCount = value ? value.split("\n").length : 1;
|
|
235
|
+
const rows = Math.max(lineCount, defaultRows);
|
|
236
|
+
return /* @__PURE__ */ jsx(
|
|
237
|
+
"textarea",
|
|
238
|
+
{
|
|
239
|
+
className: clsx_default(
|
|
240
|
+
"text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",
|
|
241
|
+
className
|
|
242
|
+
),
|
|
243
|
+
value,
|
|
244
|
+
onChange,
|
|
245
|
+
rows,
|
|
246
|
+
...props
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
};
|
|
250
|
+
var JSONView_default = JSONView;
|
|
251
|
+
var normalizeTagValue = (tags) => {
|
|
252
|
+
if (tags) {
|
|
253
|
+
if (Array.isArray(tags)) return tags;
|
|
254
|
+
return tags.toString()?.split(",")?.map((str) => str.trim());
|
|
255
|
+
}
|
|
256
|
+
return [];
|
|
257
|
+
};
|
|
258
|
+
var TagInput = ({
|
|
259
|
+
tagList: tags,
|
|
260
|
+
onChange,
|
|
261
|
+
disabled = false,
|
|
262
|
+
name = "tag-input",
|
|
263
|
+
id = "tag-input",
|
|
264
|
+
placeholder = "",
|
|
265
|
+
selectOptions = [],
|
|
266
|
+
className = "",
|
|
267
|
+
buttonText = "",
|
|
268
|
+
showTagsInline = true
|
|
269
|
+
}) => {
|
|
270
|
+
const { formatMessage } = useIntl();
|
|
271
|
+
const [tagList, setTagList] = useState(normalizeTagValue(tags));
|
|
272
|
+
const [inputValue, setInputValue] = useState("");
|
|
273
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
274
|
+
const wrapperRef = useRef(null);
|
|
275
|
+
useEffect(() => {
|
|
276
|
+
setTagList(normalizeTagValue(tags));
|
|
277
|
+
}, [tags]);
|
|
278
|
+
useEffect(() => {
|
|
279
|
+
const handleClickOutside = (e) => {
|
|
280
|
+
if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
|
|
281
|
+
setIsOpen(false);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
285
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
286
|
+
}, []);
|
|
287
|
+
const onRemoveTag = (tag) => {
|
|
288
|
+
const index = tagList.indexOf(tag);
|
|
289
|
+
if (index !== -1) {
|
|
290
|
+
const newTags = [...tagList];
|
|
291
|
+
newTags.splice(index, 1);
|
|
292
|
+
onChange(newTags);
|
|
293
|
+
setTagList(newTags);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
const addTag = useCallback(
|
|
297
|
+
(tag) => {
|
|
298
|
+
if (!tagList.includes(tag) && tag) {
|
|
299
|
+
const newTags = [...tagList, tag];
|
|
300
|
+
setTagList(newTags);
|
|
301
|
+
onChange(newTags);
|
|
302
|
+
setInputValue("");
|
|
303
|
+
setIsOpen(false);
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
[tagList, onChange]
|
|
307
|
+
);
|
|
308
|
+
const filteredOptions = useMemo(() => {
|
|
309
|
+
const available = selectOptions.filter(
|
|
310
|
+
(option) => !(tagList || []).includes(option.value)
|
|
311
|
+
);
|
|
312
|
+
if (!inputValue) return available;
|
|
313
|
+
return available.filter(
|
|
314
|
+
(opt) => opt.label.toLowerCase().includes(inputValue.toLowerCase())
|
|
315
|
+
);
|
|
316
|
+
}, [selectOptions, tagList, inputValue]);
|
|
317
|
+
const showCreateOption = inputValue.trim() && !tagList.includes(inputValue.trim()) && !filteredOptions.some(
|
|
318
|
+
(opt) => opt.value.toLowerCase() === inputValue.trim().toLowerCase()
|
|
319
|
+
);
|
|
320
|
+
const handleKeyDown = (e) => {
|
|
321
|
+
if (e.key === "Enter" && inputValue.trim()) {
|
|
322
|
+
e.preventDefault();
|
|
323
|
+
addTag(inputValue.trim());
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const TagInputComponent = /* @__PURE__ */ jsxs("div", { className: "relative", ref: wrapperRef, children: [
|
|
327
|
+
/* @__PURE__ */ jsx(
|
|
328
|
+
"input",
|
|
329
|
+
{
|
|
330
|
+
id,
|
|
331
|
+
name,
|
|
332
|
+
type: "text",
|
|
333
|
+
role: "combobox",
|
|
334
|
+
"aria-expanded": isOpen,
|
|
335
|
+
"aria-autocomplete": "list",
|
|
336
|
+
disabled,
|
|
337
|
+
className: clsx_default(
|
|
338
|
+
"w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
|
|
339
|
+
className
|
|
340
|
+
),
|
|
341
|
+
placeholder,
|
|
342
|
+
value: inputValue,
|
|
343
|
+
onChange: (e) => {
|
|
344
|
+
setInputValue(e.target.value);
|
|
345
|
+
setIsOpen(true);
|
|
346
|
+
},
|
|
347
|
+
onFocus: () => setIsOpen(true),
|
|
348
|
+
onKeyDown: handleKeyDown
|
|
349
|
+
}
|
|
350
|
+
),
|
|
351
|
+
isOpen && (showCreateOption || filteredOptions.length > 0) && /* @__PURE__ */ jsxs(
|
|
352
|
+
"ul",
|
|
353
|
+
{
|
|
354
|
+
role: "listbox",
|
|
355
|
+
className: "absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",
|
|
356
|
+
children: [
|
|
357
|
+
showCreateOption && /* @__PURE__ */ jsx(
|
|
358
|
+
"li",
|
|
359
|
+
{
|
|
360
|
+
role: "option",
|
|
361
|
+
"aria-selected": false,
|
|
362
|
+
className: "cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",
|
|
363
|
+
onMouseDown: (e) => {
|
|
364
|
+
e.preventDefault();
|
|
365
|
+
addTag(inputValue.trim());
|
|
366
|
+
},
|
|
367
|
+
children: buttonText || formatMessage(
|
|
368
|
+
{
|
|
369
|
+
id: "add_new_tag",
|
|
370
|
+
defaultMessage: 'Add "{inputValue}"'
|
|
371
|
+
},
|
|
372
|
+
{ inputValue: inputValue.trim() }
|
|
373
|
+
)
|
|
374
|
+
}
|
|
375
|
+
),
|
|
376
|
+
filteredOptions.map((opt) => /* @__PURE__ */ jsx(
|
|
377
|
+
"li",
|
|
378
|
+
{
|
|
379
|
+
role: "option",
|
|
380
|
+
"aria-selected": false,
|
|
381
|
+
className: "cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",
|
|
382
|
+
onMouseDown: (e) => {
|
|
383
|
+
e.preventDefault();
|
|
384
|
+
addTag(opt.value);
|
|
385
|
+
},
|
|
386
|
+
children: opt.label
|
|
387
|
+
},
|
|
388
|
+
opt.value
|
|
389
|
+
))
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
] });
|
|
394
|
+
if (!showTagsInline) {
|
|
395
|
+
return TagInputComponent;
|
|
396
|
+
}
|
|
397
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
398
|
+
TagInputComponent,
|
|
399
|
+
/* @__PURE__ */ jsx(
|
|
400
|
+
"div",
|
|
401
|
+
{
|
|
402
|
+
className: clsx_default(
|
|
403
|
+
"ml-4 flex items-center flex-wrap gap-5",
|
|
404
|
+
tagList.length > 0 && "mt-1"
|
|
405
|
+
),
|
|
406
|
+
children: tagList?.map((tag) => /* @__PURE__ */ jsx(
|
|
407
|
+
Badge_default,
|
|
408
|
+
{
|
|
409
|
+
text: tag,
|
|
410
|
+
color: "slate",
|
|
411
|
+
onClick: () => onRemoveTag(tag)
|
|
412
|
+
},
|
|
413
|
+
tag
|
|
414
|
+
))
|
|
415
|
+
}
|
|
416
|
+
)
|
|
417
|
+
] });
|
|
418
|
+
};
|
|
419
|
+
var TagInput_default = TagInput;
|
|
420
|
+
var FieldWrapper = ({
|
|
421
|
+
children,
|
|
422
|
+
className,
|
|
423
|
+
error,
|
|
424
|
+
disabled,
|
|
425
|
+
required,
|
|
426
|
+
name,
|
|
427
|
+
label,
|
|
428
|
+
hideLabel,
|
|
429
|
+
labelClassName
|
|
430
|
+
}) => {
|
|
431
|
+
return /* @__PURE__ */ jsxs(
|
|
432
|
+
"div",
|
|
433
|
+
{
|
|
434
|
+
className: clsx_default(
|
|
435
|
+
"container",
|
|
436
|
+
{
|
|
437
|
+
"is-invalid": !!error,
|
|
438
|
+
disabled,
|
|
439
|
+
required
|
|
440
|
+
},
|
|
441
|
+
className
|
|
442
|
+
),
|
|
443
|
+
children: [
|
|
444
|
+
/* @__PURE__ */ jsx(
|
|
445
|
+
"label",
|
|
446
|
+
{
|
|
447
|
+
"aria-label": label,
|
|
448
|
+
htmlFor: name,
|
|
449
|
+
className: clsx_default(
|
|
450
|
+
"mb-2 block text-left text-sm font-light text-text-secondary",
|
|
451
|
+
{
|
|
452
|
+
"mt-1 rounded-sm border border-rose-100 dark:border-rose-800 bg-rose-50 dark:bg-rose-900/20 p-2 pl-4 text-rose-700 dark:text-rose-400": !!error,
|
|
453
|
+
"sr-only": hideLabel
|
|
454
|
+
},
|
|
455
|
+
labelClassName
|
|
456
|
+
),
|
|
457
|
+
children: error || label
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
children
|
|
461
|
+
]
|
|
462
|
+
}
|
|
463
|
+
);
|
|
464
|
+
};
|
|
465
|
+
var FieldWrapper_default = FieldWrapper;
|
|
466
|
+
var TagInputField = ({
|
|
467
|
+
buttonText = "",
|
|
468
|
+
validators = [],
|
|
469
|
+
selectOptions = [],
|
|
470
|
+
...props
|
|
471
|
+
}) => {
|
|
472
|
+
const field = useField_default({
|
|
473
|
+
validators: [...validators, validateRequiredTag(props?.required)],
|
|
474
|
+
label: "Tags",
|
|
475
|
+
...props
|
|
476
|
+
});
|
|
477
|
+
return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, children: /* @__PURE__ */ jsx(
|
|
478
|
+
TagInput_default,
|
|
479
|
+
{
|
|
480
|
+
disabled: field.disabled,
|
|
481
|
+
id: field.id,
|
|
482
|
+
name: field.name,
|
|
483
|
+
className: clsx_default({
|
|
484
|
+
"border-rose-300": !!field.error
|
|
485
|
+
}),
|
|
486
|
+
onChange: (value) => field.setValue(value, true),
|
|
487
|
+
placeholder: field.placeholder,
|
|
488
|
+
tagList: field.value,
|
|
489
|
+
buttonText,
|
|
490
|
+
selectOptions
|
|
491
|
+
}
|
|
492
|
+
) });
|
|
493
|
+
};
|
|
494
|
+
var TagInputField_default = TagInputField;
|
|
495
|
+
var SubmitButton = ({
|
|
496
|
+
label,
|
|
497
|
+
disabled: disabledProp = false,
|
|
498
|
+
className = "",
|
|
499
|
+
hidden = false,
|
|
500
|
+
...props
|
|
501
|
+
}) => {
|
|
502
|
+
const { formState } = useFormContext();
|
|
503
|
+
const { ...restProps } = props;
|
|
504
|
+
const hasError = Object.keys(formState.errors).length > 0 && Object.values(formState.errors).some((err) => !!err);
|
|
505
|
+
const { disabled: contextDisabled } = useFormContext_default();
|
|
506
|
+
const disabled = disabledProp || contextDisabled || formState.isSubmitting || hasError;
|
|
507
|
+
const isSubmitting = formState.isSubmitting && !hasError;
|
|
508
|
+
const hasErrorOrDisabled = (disabledProp || contextDisabled || hasError) && !formState.isSubmitting;
|
|
509
|
+
return /* @__PURE__ */ jsx(
|
|
510
|
+
"input",
|
|
511
|
+
{
|
|
512
|
+
className: clsx_default(
|
|
513
|
+
"inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",
|
|
514
|
+
className,
|
|
515
|
+
{
|
|
516
|
+
"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900": hasErrorOrDisabled,
|
|
517
|
+
"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600": isSubmitting,
|
|
518
|
+
"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent": !disabled,
|
|
519
|
+
hidden
|
|
520
|
+
}
|
|
521
|
+
),
|
|
522
|
+
"aria-label": label,
|
|
523
|
+
type: "submit",
|
|
524
|
+
value: label,
|
|
525
|
+
disabled,
|
|
526
|
+
...restProps
|
|
527
|
+
}
|
|
528
|
+
);
|
|
529
|
+
};
|
|
530
|
+
var SubmitButton_default = SubmitButton;
|
|
531
|
+
var HelpText = ({
|
|
532
|
+
messageKey,
|
|
533
|
+
defaultMessage,
|
|
534
|
+
values,
|
|
535
|
+
className = "",
|
|
536
|
+
showIcon = true
|
|
537
|
+
}) => {
|
|
538
|
+
const { formatMessage } = useIntl();
|
|
539
|
+
const helpText = formatMessage(
|
|
540
|
+
{
|
|
541
|
+
id: messageKey,
|
|
542
|
+
defaultMessage
|
|
543
|
+
},
|
|
544
|
+
values
|
|
545
|
+
);
|
|
546
|
+
if (!helpText) return null;
|
|
547
|
+
return /* @__PURE__ */ jsxs(
|
|
548
|
+
"div",
|
|
549
|
+
{
|
|
550
|
+
className: `flex items-start space-x-1 text-sm text-text-secondary ${className}`,
|
|
551
|
+
children: [
|
|
552
|
+
showIcon && /* @__PURE__ */ jsx(QuestionMarkCircleIcon_default, { className: "h-4 w-4 mt-0.5 flex-shrink-0" }),
|
|
553
|
+
/* @__PURE__ */ jsx("span", { children: helpText })
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
);
|
|
557
|
+
};
|
|
558
|
+
var HelpText_default = HelpText;
|
|
559
|
+
function CheckIcon({
|
|
560
|
+
title,
|
|
561
|
+
titleId,
|
|
562
|
+
...props
|
|
563
|
+
}, svgRef) {
|
|
564
|
+
return /* @__PURE__ */ React2.createElement("svg", Object.assign({
|
|
565
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
566
|
+
viewBox: "0 0 20 20",
|
|
567
|
+
fill: "currentColor",
|
|
568
|
+
"aria-hidden": "true",
|
|
569
|
+
"data-slot": "icon",
|
|
570
|
+
ref: svgRef,
|
|
571
|
+
"aria-labelledby": titleId
|
|
572
|
+
}, props), title ? /* @__PURE__ */ React2.createElement("title", {
|
|
573
|
+
id: titleId
|
|
574
|
+
}, title) : null, /* @__PURE__ */ React2.createElement("path", {
|
|
575
|
+
fillRule: "evenodd",
|
|
576
|
+
d: "M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",
|
|
577
|
+
clipRule: "evenodd"
|
|
578
|
+
}));
|
|
579
|
+
}
|
|
580
|
+
var ForwardRef = /* @__PURE__ */ React2.forwardRef(CheckIcon);
|
|
581
|
+
var CheckIcon_default = ForwardRef;
|
|
582
|
+
function ChevronDownIcon({
|
|
583
|
+
title,
|
|
584
|
+
titleId,
|
|
585
|
+
...props
|
|
586
|
+
}, svgRef) {
|
|
587
|
+
return /* @__PURE__ */ React2.createElement("svg", Object.assign({
|
|
588
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
589
|
+
viewBox: "0 0 20 20",
|
|
590
|
+
fill: "currentColor",
|
|
591
|
+
"aria-hidden": "true",
|
|
592
|
+
"data-slot": "icon",
|
|
593
|
+
ref: svgRef,
|
|
594
|
+
"aria-labelledby": titleId
|
|
595
|
+
}, props), title ? /* @__PURE__ */ React2.createElement("title", {
|
|
596
|
+
id: titleId
|
|
597
|
+
}, title) : null, /* @__PURE__ */ React2.createElement("path", {
|
|
598
|
+
fillRule: "evenodd",
|
|
599
|
+
d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
|
|
600
|
+
clipRule: "evenodd"
|
|
601
|
+
}));
|
|
602
|
+
}
|
|
603
|
+
var ForwardRef2 = /* @__PURE__ */ React2.forwardRef(ChevronDownIcon);
|
|
604
|
+
var ChevronDownIcon_default = ForwardRef2;
|
|
605
|
+
function ChevronUpDownIcon({
|
|
606
|
+
title,
|
|
607
|
+
titleId,
|
|
608
|
+
...props
|
|
609
|
+
}, svgRef) {
|
|
610
|
+
return /* @__PURE__ */ React2.createElement("svg", Object.assign({
|
|
611
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
612
|
+
viewBox: "0 0 20 20",
|
|
613
|
+
fill: "currentColor",
|
|
614
|
+
"aria-hidden": "true",
|
|
615
|
+
"data-slot": "icon",
|
|
616
|
+
ref: svgRef,
|
|
617
|
+
"aria-labelledby": titleId
|
|
618
|
+
}, props), title ? /* @__PURE__ */ React2.createElement("title", {
|
|
619
|
+
id: titleId
|
|
620
|
+
}, title) : null, /* @__PURE__ */ React2.createElement("path", {
|
|
621
|
+
fillRule: "evenodd",
|
|
622
|
+
d: "M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",
|
|
623
|
+
clipRule: "evenodd"
|
|
624
|
+
}));
|
|
625
|
+
}
|
|
626
|
+
var ForwardRef3 = /* @__PURE__ */ React2.forwardRef(ChevronUpDownIcon);
|
|
627
|
+
var ChevronUpDownIcon_default = ForwardRef3;
|
|
628
|
+
function ChevronUpIcon({
|
|
629
|
+
title,
|
|
630
|
+
titleId,
|
|
631
|
+
...props
|
|
632
|
+
}, svgRef) {
|
|
633
|
+
return /* @__PURE__ */ React2.createElement("svg", Object.assign({
|
|
634
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
635
|
+
viewBox: "0 0 20 20",
|
|
636
|
+
fill: "currentColor",
|
|
637
|
+
"aria-hidden": "true",
|
|
638
|
+
"data-slot": "icon",
|
|
639
|
+
ref: svgRef,
|
|
640
|
+
"aria-labelledby": titleId
|
|
641
|
+
}, props), title ? /* @__PURE__ */ React2.createElement("title", {
|
|
642
|
+
id: titleId
|
|
643
|
+
}, title) : null, /* @__PURE__ */ React2.createElement("path", {
|
|
644
|
+
fillRule: "evenodd",
|
|
645
|
+
d: "M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",
|
|
646
|
+
clipRule: "evenodd"
|
|
647
|
+
}));
|
|
648
|
+
}
|
|
649
|
+
var ForwardRef4 = /* @__PURE__ */ React2.forwardRef(ChevronUpIcon);
|
|
650
|
+
var ChevronUpIcon_default = ForwardRef4;
|
|
651
|
+
|
|
652
|
+
export { Badge_default, CheckIcon_default, ChevronDownIcon_default, ChevronUpDownIcon_default, ChevronUpIcon_default, FieldWrapper_default, HelpText_default, JSONView_default, SubmitButton_default, Tab_default, TagInputField_default, TagInput_default, clsx, clsx_default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const Accordion: ({ data, containerCSS, headerCSS, bodyCSS, itemContainerCSS, hideChevron, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
data: any;
|
|
4
|
+
containerCSS?: string;
|
|
5
|
+
headerCSS?: string;
|
|
6
|
+
bodyCSS?: string;
|
|
7
|
+
itemContainerCSS?: string;
|
|
8
|
+
hideChevron?: boolean;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default Accordion;
|
|
11
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Accordion/Accordion.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,SAAS,GAAI;;;;;;;;CAQlB,gCAiBA,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Accordion/AccordionHeader.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,GAAI;;;CAAwB,gCAahD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const AccordionItem: ({ header, body, headerCSS, bodyCSS, itemContainerCSS, itemindex, hideChevron, }: {
|
|
2
|
+
header: any;
|
|
3
|
+
body: any;
|
|
4
|
+
headerCSS?: string;
|
|
5
|
+
bodyCSS?: string;
|
|
6
|
+
itemContainerCSS?: string;
|
|
7
|
+
itemindex?: number;
|
|
8
|
+
hideChevron?: boolean;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default AccordionItem;
|
|
11
|
+
//# sourceMappingURL=AccordionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,aAAa,GAAI;;;;;;;;CAQtB,gCAsCA,CAAC;AAEF,eAAe,aAAa,CAAC"}
|