@fairmint/ui 0.3.32 → 0.3.34
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/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts +1 -1
- package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.d.ts.map +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.d.ts +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintBrandLogo.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogo.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogo.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoGraphic.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoGraphic.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMark.d.ts.map +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts +1 -1
- package/dist/components/FairmintLogo/FairmintLogoMarkRounded.d.ts.map +1 -1
- package/dist/components/FairmintProvider/FairmintNotifications.d.ts +1 -1
- package/dist/components/FairmintProvider/FairmintNotifications.d.ts.map +1 -1
- package/dist/components/FairmintProvider/FairmintProvider.d.ts +1 -1
- package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +1 -1
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts +1 -1
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts.map +1 -1
- package/dist/components/form/EmailField.d.ts +1 -1
- package/dist/components/form/EmailField.d.ts.map +1 -1
- package/dist/components/form/EthereumAddressField/EthereumAddressField.d.ts +1 -1
- package/dist/components/form/EthereumAddressField/EthereumAddressField.d.ts.map +1 -1
- package/dist/components/form/Form.d.ts +1 -1
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form/FormField.d.ts +1 -1
- package/dist/components/form/FormField.d.ts.map +1 -1
- package/dist/components/form/PasswordField.d.ts +1 -1
- package/dist/components/form/PasswordField.d.ts.map +1 -1
- package/dist/components/form/PhoneField.d.ts +2 -1
- package/dist/components/form/PhoneField.d.ts.map +1 -1
- package/dist/components/form/SignatureNameField/SignatureNameField.d.ts +1 -1
- package/dist/components/form/SignatureNameField/SignatureNameField.d.ts.map +1 -1
- package/dist/components/form/USStateField/USStateField.d.ts +1 -1
- package/dist/components/form/USStateField/USStateField.d.ts.map +1 -1
- package/dist/components/form/ZipField/ZipField.d.ts +1 -1
- package/dist/components/form/ZipField/ZipField.d.ts.map +1 -1
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts +2 -2
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts.map +1 -1
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts +1 -1
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts.map +1 -1
- package/dist/components/generic/Banner/Banner.d.ts +1 -1
- package/dist/components/generic/Banner/Banner.d.ts.map +1 -1
- package/dist/components/generic/BottomSheet/BottomSheet.cjs +133 -0
- package/dist/components/generic/BottomSheet/BottomSheet.cjs.map +1 -0
- package/dist/components/generic/BottomSheet/BottomSheet.d.ts +31 -0
- package/dist/components/generic/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/dist/components/generic/BottomSheet/BottomSheet.js +133 -0
- package/dist/components/generic/BottomSheet/BottomSheet.js.map +1 -0
- package/dist/components/generic/ClickableCard/ClickableCard.d.ts +1 -1
- package/dist/components/generic/ClickableCard/ClickableCard.d.ts.map +1 -1
- package/dist/components/generic/ColorDot/ColorDot.d.ts +1 -1
- package/dist/components/generic/ColorDot/ColorDot.d.ts.map +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.d.ts +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.d.ts.map +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.d.ts +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.d.ts.map +1 -1
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/generic/Currency/Currency.d.ts +2 -1
- package/dist/components/generic/Currency/Currency.d.ts.map +1 -1
- package/dist/components/generic/DataRow/DataRow.d.ts +3 -3
- package/dist/components/generic/DataRow/DataRow.d.ts.map +1 -1
- package/dist/components/generic/DataTable/DataTable.d.ts +1 -1
- package/dist/components/generic/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts.map +1 -1
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts +1 -1
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts.map +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.d.ts +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.d.ts.map +1 -1
- package/dist/components/generic/EditableSection/EditableSection.d.ts +1 -1
- package/dist/components/generic/EditableSection/EditableSection.d.ts.map +1 -1
- package/dist/components/generic/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/generic/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.d.ts.map +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.d.ts +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.d.ts.map +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.d.ts +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.d.ts.map +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.d.ts +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.d.ts.map +1 -1
- package/dist/components/generic/Percent/Percent.d.ts +1 -1
- package/dist/components/generic/Percent/Percent.d.ts.map +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.d.ts.map +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.d.ts +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.d.ts.map +1 -1
- package/dist/components/generic/RadioCard/RadioCard.d.ts +1 -1
- package/dist/components/generic/RadioCard/RadioCard.d.ts.map +1 -1
- package/dist/components/generic/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/generic/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/generic/StatCard/StatCard.d.ts +1 -1
- package/dist/components/generic/StatCard/StatCard.d.ts.map +1 -1
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts.map +1 -1
- package/dist/components/generic/StepFlow/StepFlow.d.ts +1 -1
- package/dist/components/generic/StepFlow/StepFlow.d.ts.map +1 -1
- package/dist/components/generic/StepProgress/StepProgress.d.ts +1 -1
- package/dist/components/generic/StepProgress/StepProgress.d.ts.map +1 -1
- package/dist/components/generic/TablePagination/TablePagination.d.ts +1 -1
- package/dist/components/generic/TablePagination/TablePagination.d.ts.map +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts.map +1 -1
- package/dist/components/generic/TaskRow/TaskRow.d.ts +1 -1
- package/dist/components/generic/TaskRow/TaskRow.d.ts.map +1 -1
- package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts +1 -1
- package/dist/components/generic/ValidationWarning/ValidationWarning.d.ts.map +1 -1
- package/dist/components/layout/AccountSheet/AccountSheet.cjs +123 -0
- package/dist/components/layout/AccountSheet/AccountSheet.cjs.map +1 -0
- package/dist/components/layout/AccountSheet/AccountSheet.d.ts +46 -0
- package/dist/components/layout/AccountSheet/AccountSheet.d.ts.map +1 -0
- package/dist/components/layout/AccountSheet/AccountSheet.js +123 -0
- package/dist/components/layout/AccountSheet/AccountSheet.js.map +1 -0
- package/dist/components/layout/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/layout/AppHeader/AppHeader.d.ts.map +1 -1
- package/dist/components/layout/MobileNav/MobileNav.cjs +267 -0
- package/dist/components/layout/MobileNav/MobileNav.cjs.map +1 -0
- package/dist/components/layout/MobileNav/MobileNav.d.ts +49 -0
- package/dist/components/layout/MobileNav/MobileNav.d.ts.map +1 -0
- package/dist/components/layout/MobileNav/MobileNav.js +267 -0
- package/dist/components/layout/MobileNav/MobileNav.js.map +1 -0
- package/dist/components/layout/PageHeader/PageHeader.d.ts +1 -1
- package/dist/components/layout/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/layout/SideNav/SideNav.d.ts +1 -1
- package/dist/components/layout/SideNav/SideNav.d.ts.map +1 -1
- package/dist/components/layout/UserMenu/UserMenu.d.ts +1 -1
- package/dist/components/layout/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/primitives/Alert/Alert.d.ts +1 -1
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -1
- package/dist/components/primitives/Drawer/Drawer.d.ts +1 -1
- package/dist/components/primitives/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/primitives/Loader/Loader.d.ts +1 -1
- package/dist/components/primitives/Loader/Loader.d.ts.map +1 -1
- package/dist/components/primitives/Menu/Menu.d.ts +1 -1
- package/dist/components/primitives/Menu/Menu.d.ts.map +1 -1
- package/dist/components/primitives/Modal/Modal.d.ts +1 -1
- package/dist/components/primitives/Modal/Modal.d.ts.map +1 -1
- package/dist/components/primitives/Pdf/Pdf.d.ts +2 -2
- package/dist/components/primitives/Pdf/Pdf.d.ts.map +1 -1
- package/dist/components/primitives/Popover/Popover.d.ts +1 -1
- package/dist/components/primitives/Popover/Popover.d.ts.map +1 -1
- package/dist/components/primitives/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/primitives/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/primitives/Table/Table.d.ts +1 -1
- package/dist/components/primitives/Table/Table.d.ts.map +1 -1
- package/dist/components/primitives/Tabs/Tabs.d.ts +3 -3
- package/dist/components/primitives/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/primitives/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/primitives/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/primitives/layout.d.ts +8 -8
- package/dist/components/primitives/layout.d.ts.map +1 -1
- package/dist/components/primitives/muiCompat.cjs.map +1 -1
- package/dist/components/primitives/muiCompat.d.ts +41 -42
- package/dist/components/primitives/muiCompat.d.ts.map +1 -1
- package/dist/components/primitives/muiCompat.js.map +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts.map +1 -1
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts +1 -1
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts +1 -1
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts.map +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts +1 -1
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts.map +1 -1
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts +1 -1
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts.map +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts.map +1 -1
- package/dist/components/specific/WalletList/WalletList.d.ts +1 -1
- package/dist/components/specific/WalletList/WalletList.d.ts.map +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.d.ts +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.d.ts.map +1 -1
- package/dist/fairmint-ui.cjs +9 -0
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +9 -0
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconActivity.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconActivity.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsExchange.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsExchange.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsMaximize.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsMaximize.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAward.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAward.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBell.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBell.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandFacebook.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandFacebook.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandInstagram.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandInstagram.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandLinkedin.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandLinkedin.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandYoutube.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBrandYoutube.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBriefcase.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBriefcase.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuilding.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuilding.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuildingBank.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconBuildingBank.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendarEvent.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendarEvent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCashBanknote.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCashBanknote.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCategory.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCategory.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCertificate.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCertificate.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartBar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartBar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartDots.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartPie.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChartPie.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClipboardCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClipboardCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClock.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconClock.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFile.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFile.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileDownload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileDownload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypePdf.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypePdf.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHourglass.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconHourglass.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLanguage.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLanguage.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftCollapse.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftCollapse.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftExpand.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutSidebarLeftExpand.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMail.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMail.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMapPin.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconMapPin.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconNews.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconNews.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPause.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPause.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlay.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlay.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconReload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconReload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRocket.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconRocket.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSend.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSend.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldDollar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldDollar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldOff.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconShieldOff.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSitemap.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSitemap.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStar.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconStar.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTable.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbDown.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbDown.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconThumbUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTimeline.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTimeline.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrendingUp.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrophy.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrophy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCheck.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCircle.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUserPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersGroup.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersGroup.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersPlus.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconUsersPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconX.cjs.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js.map +1 -1
- package/dist/node_modules/dayjs/dayjs.min.cjs +4 -4
- package/dist/node_modules/dayjs/dayjs.min.cjs.map +1 -1
- package/dist/node_modules/dayjs/dayjs.min.js +4 -4
- package/dist/node_modules/dayjs/dayjs.min.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/checks.cjs +0 -1
- package/dist/node_modules/zod/v4/classic/checks.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/checks.js +0 -1
- package/dist/node_modules/zod/v4/classic/checks.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/coerce.cjs +1 -2
- package/dist/node_modules/zod/v4/classic/coerce.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +1 -2
- package/dist/node_modules/zod/v4/classic/coerce.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/compat.cjs +0 -1
- package/dist/node_modules/zod/v4/classic/compat.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.cjs +4 -5
- package/dist/node_modules/zod/v4/classic/errors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/errors.js +4 -5
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/external.cjs +2 -0
- package/dist/node_modules/zod/v4/classic/external.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/external.js +3 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +16 -10
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.js +16 -10
- package/dist/node_modules/zod/v4/classic/from-json-schema.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/iso.cjs +2 -3
- package/dist/node_modules/zod/v4/classic/iso.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/iso.js +2 -3
- package/dist/node_modules/zod/v4/classic/iso.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/parse.cjs +1 -2
- package/dist/node_modules/zod/v4/classic/parse.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/parse.js +1 -2
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.cjs +325 -112
- package/dist/node_modules/zod/v4/classic/schemas.cjs.map +1 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +327 -114
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/api.cjs +2 -2
- package/dist/node_modules/zod/v4/core/api.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/api.js +2 -2
- package/dist/node_modules/zod/v4/core/api.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.cjs +6 -4
- package/dist/node_modules/zod/v4/core/core.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +6 -4
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/errors.cjs +24 -21
- package/dist/node_modules/zod/v4/core/errors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/errors.js +24 -21
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/index.cjs +1 -0
- package/dist/node_modules/zod/v4/core/index.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/index.js +2 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +15 -22
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +15 -22
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/parse.cjs +7 -7
- package/dist/node_modules/zod/v4/core/parse.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/parse.js +7 -7
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.cjs +3 -1
- package/dist/node_modules/zod/v4/core/regexes.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.js +3 -1
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.cjs +176 -53
- package/dist/node_modules/zod/v4/core/schemas.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.js +178 -55
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +8 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +8 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
- package/dist/node_modules/zod/v4/core/util.cjs +45 -27
- package/dist/node_modules/zod/v4/core/util.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/util.js +45 -27
- package/dist/node_modules/zod/v4/core/util.js.map +1 -1
- package/dist/node_modules/zod/v4/core/versions.cjs +2 -2
- package/dist/node_modules/zod/v4/core/versions.cjs.map +1 -1
- package/dist/node_modules/zod/v4/core/versions.js +2 -2
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/el.cjs +112 -0
- package/dist/node_modules/zod/v4/locales/el.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/el.js +113 -0
- package/dist/node_modules/zod/v4/locales/el.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +4 -0
- package/dist/node_modules/zod/v4/locales/en.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/en.js +4 -0
- package/dist/node_modules/zod/v4/locales/en.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/fr.cjs +25 -8
- package/dist/node_modules/zod/v4/locales/fr.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/fr.js +25 -8
- package/dist/node_modules/zod/v4/locales/fr.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/hr.cjs +125 -0
- package/dist/node_modules/zod/v4/locales/hr.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/hr.js +126 -0
- package/dist/node_modules/zod/v4/locales/hr.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +6 -0
- package/dist/node_modules/zod/v4/locales/index.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/index.js +88 -82
- package/dist/node_modules/zod/v4/locales/index.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/it.cjs +1 -1
- package/dist/node_modules/zod/v4/locales/it.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/it.js +1 -1
- package/dist/node_modules/zod/v4/locales/it.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/ka.cjs +8 -8
- package/dist/node_modules/zod/v4/locales/ka.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/ka.js +8 -8
- package/dist/node_modules/zod/v4/locales/ka.js.map +1 -1
- package/dist/node_modules/zod/v4/locales/ro.cjs +122 -0
- package/dist/node_modules/zod/v4/locales/ro.cjs.map +1 -0
- package/dist/node_modules/zod/v4/locales/ro.js +123 -0
- package/dist/node_modules/zod/v4/locales/ro.js.map +1 -0
- package/dist/node_modules/zod/v4/locales/uz.cjs +2 -1
- package/dist/node_modules/zod/v4/locales/uz.cjs.map +1 -1
- package/dist/node_modules/zod/v4/locales/uz.js +2 -1
- package/dist/node_modules/zod/v4/locales/uz.js.map +1 -1
- package/package.json +22 -22
|
@@ -1,15 +1,52 @@
|
|
|
1
|
+
import { stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, undefinedProcessor, nullProcessor, anyProcessor, unknownProcessor, neverProcessor, voidProcessor, dateProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, recordProcessor, mapProcessor, setProcessor, enumProcessor, literalProcessor, fileProcessor, transformProcessor, optionalProcessor, nullableProcessor, defaultProcessor, prefaultProcessor, nonoptionalProcessor, successProcessor, catchProcessor, nanProcessor, pipeProcessor, readonlyProcessor, templateLiteralProcessor, lazyProcessor, promiseProcessor, functionProcessor, customProcessor } from "../core/json-schema-processors.js";
|
|
2
|
+
import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
|
|
3
|
+
import { datetime, date as date$1, time, duration } from "./iso.js";
|
|
4
|
+
import { parse, safeParse, parseAsync, safeParseAsync, encode, decode, encodeAsync, decodeAsync, safeEncode, safeDecode, safeEncodeAsync, safeDecodeAsync } from "./parse.js";
|
|
5
|
+
import { describe as describe$1, meta as meta$1, _any, _array, _base64, _base64url, _bigint, _boolean, _cidrv4, _cidrv6, _cuid, _cuid2, _custom, _date, _e164, _email, _emoji, _file, _float32, _float64, _guid, _stringFormat, _url, _int, _int32, _int64, _ipv4, _ipv6, _jwt, _ksuid, _mac, _nan, _nanoid, _never, _null as _null$1, _number, _refine, _string, _stringbool, _superRefine, _symbol, _uint32, _uint64, _ulid, _undefined as _undefined$1, _unknown, _uuid, _uuidv4, _uuidv6, _uuidv7, _void as _void$1, _xid, _gte, _gt, _lt, _lte, _multipleOf, _minSize, _maxSize, _size, _mime, _overwrite, _slugify, _toUpperCase, _toLowerCase, _normalize, _trim, _uppercase, _lowercase, _minLength, _length, _maxLength, _endsWith, _startsWith, _includes, _regex } from "../core/api.js";
|
|
1
6
|
import { $constructor, $ZodEncodeError } from "../core/core.js";
|
|
2
|
-
import { shallowClone, normalizeParams, clone,
|
|
3
|
-
import { $ZodType, $ZodString, $ZodStringFormat, $ZodEmail, $ZodGUID, $ZodUUID, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodIPv4, $ZodMAC, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodReadonly, $ZodTemplateLiteral, $ZodLazy, $ZodPromise, $ZodFunction, $ZodCustom } from "../core/schemas.js";
|
|
7
|
+
import { shallowClone, normalizeParams, clone, defineLazy, issue, mergeDefs, required, partial, omit, pick, merge, safeExtend, extend } from "../core/util.js";
|
|
4
8
|
import { $ZodCheck } from "../core/checks.js";
|
|
5
9
|
import * as regexes from "../core/regexes.js";
|
|
6
|
-
import { hex as hex$1, hostname as hostname$1, domain } from "../core/regexes.js";
|
|
10
|
+
import { hex as hex$1, hostname as hostname$1, domain, httpProtocol } from "../core/regexes.js";
|
|
11
|
+
import { $ZodType, $ZodString, $ZodStringFormat, $ZodEmail, $ZodGUID, $ZodUUID, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodIPv4, $ZodMAC, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodPreprocess, $ZodReadonly, $ZodTemplateLiteral, $ZodLazy, $ZodPromise, $ZodFunction, $ZodCustom } from "../core/schemas.js";
|
|
7
12
|
import { globalRegistry } from "../core/registries.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
function _installLazyMethods(inst, group, methods) {
|
|
15
|
+
const proto = Object.getPrototypeOf(inst);
|
|
16
|
+
let installed = _installedGroups.get(proto);
|
|
17
|
+
if (!installed) {
|
|
18
|
+
installed = /* @__PURE__ */ new Set();
|
|
19
|
+
_installedGroups.set(proto, installed);
|
|
20
|
+
}
|
|
21
|
+
if (installed.has(group))
|
|
22
|
+
return;
|
|
23
|
+
installed.add(group);
|
|
24
|
+
for (const key in methods) {
|
|
25
|
+
const fn = methods[key];
|
|
26
|
+
Object.defineProperty(proto, key, {
|
|
27
|
+
configurable: true,
|
|
28
|
+
enumerable: false,
|
|
29
|
+
get() {
|
|
30
|
+
const bound = fn.bind(this);
|
|
31
|
+
Object.defineProperty(this, key, {
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
value: bound
|
|
36
|
+
});
|
|
37
|
+
return bound;
|
|
38
|
+
},
|
|
39
|
+
set(v) {
|
|
40
|
+
Object.defineProperty(this, key, {
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
enumerable: true,
|
|
44
|
+
value: v
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
13
50
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
14
51
|
$ZodType.init(inst, def);
|
|
15
52
|
Object.assign(inst["~standard"], {
|
|
@@ -22,23 +59,6 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
22
59
|
inst.def = def;
|
|
23
60
|
inst.type = def.type;
|
|
24
61
|
Object.defineProperty(inst, "_def", { value: def });
|
|
25
|
-
inst.check = (...checks) => {
|
|
26
|
-
return inst.clone(mergeDefs(def, {
|
|
27
|
-
checks: [
|
|
28
|
-
...def.checks ?? [],
|
|
29
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
30
|
-
]
|
|
31
|
-
}), {
|
|
32
|
-
parent: true
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
inst.with = inst.check;
|
|
36
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
37
|
-
inst.brand = () => inst;
|
|
38
|
-
inst.register = ((reg, meta2) => {
|
|
39
|
-
reg.add(inst, meta2);
|
|
40
|
-
return inst;
|
|
41
|
-
});
|
|
42
62
|
inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
|
|
43
63
|
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
44
64
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -52,45 +72,108 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
52
72
|
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
53
73
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
54
74
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
55
|
-
inst
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_installLazyMethods(inst, "ZodType", {
|
|
76
|
+
check(...chks) {
|
|
77
|
+
const def2 = this.def;
|
|
78
|
+
return this.clone(mergeDefs(def2, {
|
|
79
|
+
checks: [
|
|
80
|
+
...def2.checks ?? [],
|
|
81
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
82
|
+
]
|
|
83
|
+
}), { parent: true });
|
|
84
|
+
},
|
|
85
|
+
with(...chks) {
|
|
86
|
+
return this.check(...chks);
|
|
87
|
+
},
|
|
88
|
+
clone(def2, params) {
|
|
89
|
+
return clone(this, def2, params);
|
|
90
|
+
},
|
|
91
|
+
brand() {
|
|
92
|
+
return this;
|
|
93
|
+
},
|
|
94
|
+
register(reg, meta2) {
|
|
95
|
+
reg.add(this, meta2);
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
refine(check2, params) {
|
|
99
|
+
return this.check(refine(check2, params));
|
|
100
|
+
},
|
|
101
|
+
superRefine(refinement, params) {
|
|
102
|
+
return this.check(superRefine(refinement, params));
|
|
103
|
+
},
|
|
104
|
+
overwrite(fn) {
|
|
105
|
+
return this.check(_overwrite(fn));
|
|
106
|
+
},
|
|
107
|
+
optional() {
|
|
108
|
+
return optional(this);
|
|
109
|
+
},
|
|
110
|
+
exactOptional() {
|
|
111
|
+
return exactOptional(this);
|
|
112
|
+
},
|
|
113
|
+
nullable() {
|
|
114
|
+
return nullable(this);
|
|
115
|
+
},
|
|
116
|
+
nullish() {
|
|
117
|
+
return optional(nullable(this));
|
|
118
|
+
},
|
|
119
|
+
nonoptional(params) {
|
|
120
|
+
return nonoptional(this, params);
|
|
121
|
+
},
|
|
122
|
+
array() {
|
|
123
|
+
return array(this);
|
|
124
|
+
},
|
|
125
|
+
or(arg) {
|
|
126
|
+
return union([this, arg]);
|
|
127
|
+
},
|
|
128
|
+
and(arg) {
|
|
129
|
+
return intersection(this, arg);
|
|
130
|
+
},
|
|
131
|
+
transform(tx) {
|
|
132
|
+
return pipe(this, transform(tx));
|
|
133
|
+
},
|
|
134
|
+
default(d) {
|
|
135
|
+
return _default(this, d);
|
|
136
|
+
},
|
|
137
|
+
prefault(d) {
|
|
138
|
+
return prefault(this, d);
|
|
139
|
+
},
|
|
140
|
+
catch(params) {
|
|
141
|
+
return _catch(this, params);
|
|
142
|
+
},
|
|
143
|
+
pipe(target) {
|
|
144
|
+
return pipe(this, target);
|
|
145
|
+
},
|
|
146
|
+
readonly() {
|
|
147
|
+
return readonly(this);
|
|
148
|
+
},
|
|
149
|
+
describe(description) {
|
|
150
|
+
const cl = this.clone();
|
|
151
|
+
globalRegistry.add(cl, { description });
|
|
152
|
+
return cl;
|
|
153
|
+
},
|
|
154
|
+
meta(...args) {
|
|
155
|
+
if (args.length === 0)
|
|
156
|
+
return globalRegistry.get(this);
|
|
157
|
+
const cl = this.clone();
|
|
158
|
+
globalRegistry.add(cl, args[0]);
|
|
159
|
+
return cl;
|
|
160
|
+
},
|
|
161
|
+
isOptional() {
|
|
162
|
+
return this.safeParse(void 0).success;
|
|
163
|
+
},
|
|
164
|
+
isNullable() {
|
|
165
|
+
return this.safeParse(null).success;
|
|
166
|
+
},
|
|
167
|
+
apply(fn) {
|
|
168
|
+
return fn(this);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
77
171
|
Object.defineProperty(inst, "description", {
|
|
78
172
|
get() {
|
|
79
173
|
return globalRegistry.get(inst)?.description;
|
|
80
174
|
},
|
|
81
175
|
configurable: true
|
|
82
176
|
});
|
|
83
|
-
inst.meta = (...args) => {
|
|
84
|
-
if (args.length === 0) {
|
|
85
|
-
return globalRegistry.get(inst);
|
|
86
|
-
}
|
|
87
|
-
const cl = inst.clone();
|
|
88
|
-
globalRegistry.add(cl, args[0]);
|
|
89
|
-
return cl;
|
|
90
|
-
};
|
|
91
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
92
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
93
|
-
inst.apply = (fn) => fn(inst);
|
|
94
177
|
return inst;
|
|
95
178
|
});
|
|
96
179
|
const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -101,21 +184,53 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
101
184
|
inst.format = bag.format ?? null;
|
|
102
185
|
inst.minLength = bag.minimum ?? null;
|
|
103
186
|
inst.maxLength = bag.maximum ?? null;
|
|
104
|
-
inst
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
187
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
188
|
+
regex(...args) {
|
|
189
|
+
return this.check(_regex(...args));
|
|
190
|
+
},
|
|
191
|
+
includes(...args) {
|
|
192
|
+
return this.check(_includes(...args));
|
|
193
|
+
},
|
|
194
|
+
startsWith(...args) {
|
|
195
|
+
return this.check(_startsWith(...args));
|
|
196
|
+
},
|
|
197
|
+
endsWith(...args) {
|
|
198
|
+
return this.check(_endsWith(...args));
|
|
199
|
+
},
|
|
200
|
+
min(...args) {
|
|
201
|
+
return this.check(_minLength(...args));
|
|
202
|
+
},
|
|
203
|
+
max(...args) {
|
|
204
|
+
return this.check(_maxLength(...args));
|
|
205
|
+
},
|
|
206
|
+
length(...args) {
|
|
207
|
+
return this.check(_length(...args));
|
|
208
|
+
},
|
|
209
|
+
nonempty(...args) {
|
|
210
|
+
return this.check(_minLength(1, ...args));
|
|
211
|
+
},
|
|
212
|
+
lowercase(params) {
|
|
213
|
+
return this.check(_lowercase(params));
|
|
214
|
+
},
|
|
215
|
+
uppercase(params) {
|
|
216
|
+
return this.check(_uppercase(params));
|
|
217
|
+
},
|
|
218
|
+
trim() {
|
|
219
|
+
return this.check(_trim());
|
|
220
|
+
},
|
|
221
|
+
normalize(...args) {
|
|
222
|
+
return this.check(_normalize(...args));
|
|
223
|
+
},
|
|
224
|
+
toLowerCase() {
|
|
225
|
+
return this.check(_toLowerCase());
|
|
226
|
+
},
|
|
227
|
+
toUpperCase() {
|
|
228
|
+
return this.check(_toUpperCase());
|
|
229
|
+
},
|
|
230
|
+
slugify() {
|
|
231
|
+
return this.check(_slugify());
|
|
232
|
+
}
|
|
233
|
+
});
|
|
119
234
|
});
|
|
120
235
|
const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
121
236
|
$ZodString.init(inst, def);
|
|
@@ -194,7 +309,7 @@ function url(params) {
|
|
|
194
309
|
}
|
|
195
310
|
function httpUrl(params) {
|
|
196
311
|
return _url(ZodURL, {
|
|
197
|
-
protocol:
|
|
312
|
+
protocol: httpProtocol,
|
|
198
313
|
hostname: domain,
|
|
199
314
|
...normalizeParams(params)
|
|
200
315
|
});
|
|
@@ -336,21 +451,53 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
336
451
|
$ZodNumber.init(inst, def);
|
|
337
452
|
ZodType.init(inst, def);
|
|
338
453
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2);
|
|
339
|
-
inst
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
454
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
455
|
+
gt(value, params) {
|
|
456
|
+
return this.check(_gt(value, params));
|
|
457
|
+
},
|
|
458
|
+
gte(value, params) {
|
|
459
|
+
return this.check(_gte(value, params));
|
|
460
|
+
},
|
|
461
|
+
min(value, params) {
|
|
462
|
+
return this.check(_gte(value, params));
|
|
463
|
+
},
|
|
464
|
+
lt(value, params) {
|
|
465
|
+
return this.check(_lt(value, params));
|
|
466
|
+
},
|
|
467
|
+
lte(value, params) {
|
|
468
|
+
return this.check(_lte(value, params));
|
|
469
|
+
},
|
|
470
|
+
max(value, params) {
|
|
471
|
+
return this.check(_lte(value, params));
|
|
472
|
+
},
|
|
473
|
+
int(params) {
|
|
474
|
+
return this.check(int(params));
|
|
475
|
+
},
|
|
476
|
+
safe(params) {
|
|
477
|
+
return this.check(int(params));
|
|
478
|
+
},
|
|
479
|
+
positive(params) {
|
|
480
|
+
return this.check(_gt(0, params));
|
|
481
|
+
},
|
|
482
|
+
nonnegative(params) {
|
|
483
|
+
return this.check(_gte(0, params));
|
|
484
|
+
},
|
|
485
|
+
negative(params) {
|
|
486
|
+
return this.check(_lt(0, params));
|
|
487
|
+
},
|
|
488
|
+
nonpositive(params) {
|
|
489
|
+
return this.check(_lte(0, params));
|
|
490
|
+
},
|
|
491
|
+
multipleOf(value, params) {
|
|
492
|
+
return this.check(_multipleOf(value, params));
|
|
493
|
+
},
|
|
494
|
+
step(value, params) {
|
|
495
|
+
return this.check(_multipleOf(value, params));
|
|
496
|
+
},
|
|
497
|
+
finite() {
|
|
498
|
+
return this;
|
|
499
|
+
}
|
|
500
|
+
});
|
|
354
501
|
const bag = inst._zod.bag;
|
|
355
502
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
356
503
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -497,11 +644,23 @@ const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
497
644
|
ZodType.init(inst, def);
|
|
498
645
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
499
646
|
inst.element = def.element;
|
|
500
|
-
inst
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
647
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
648
|
+
min(n, params) {
|
|
649
|
+
return this.check(_minLength(n, params));
|
|
650
|
+
},
|
|
651
|
+
nonempty(params) {
|
|
652
|
+
return this.check(_minLength(1, params));
|
|
653
|
+
},
|
|
654
|
+
max(n, params) {
|
|
655
|
+
return this.check(_maxLength(n, params));
|
|
656
|
+
},
|
|
657
|
+
length(n, params) {
|
|
658
|
+
return this.check(_length(n, params));
|
|
659
|
+
},
|
|
660
|
+
unwrap() {
|
|
661
|
+
return this.element;
|
|
662
|
+
}
|
|
663
|
+
});
|
|
505
664
|
});
|
|
506
665
|
function array(element, params) {
|
|
507
666
|
return _array(ZodArray, element, params);
|
|
@@ -517,23 +676,47 @@ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
517
676
|
defineLazy(inst, "shape", () => {
|
|
518
677
|
return def.shape;
|
|
519
678
|
});
|
|
520
|
-
inst
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
679
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
680
|
+
keyof() {
|
|
681
|
+
return _enum(Object.keys(this._zod.def.shape));
|
|
682
|
+
},
|
|
683
|
+
catchall(catchall) {
|
|
684
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
685
|
+
},
|
|
686
|
+
passthrough() {
|
|
687
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
688
|
+
},
|
|
689
|
+
loose() {
|
|
690
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
691
|
+
},
|
|
692
|
+
strict() {
|
|
693
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
694
|
+
},
|
|
695
|
+
strip() {
|
|
696
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
697
|
+
},
|
|
698
|
+
extend(incoming) {
|
|
699
|
+
return extend(this, incoming);
|
|
700
|
+
},
|
|
701
|
+
safeExtend(incoming) {
|
|
702
|
+
return safeExtend(this, incoming);
|
|
703
|
+
},
|
|
704
|
+
merge(other) {
|
|
705
|
+
return merge(this, other);
|
|
706
|
+
},
|
|
707
|
+
pick(mask) {
|
|
708
|
+
return pick(this, mask);
|
|
709
|
+
},
|
|
710
|
+
omit(mask) {
|
|
711
|
+
return omit(this, mask);
|
|
712
|
+
},
|
|
713
|
+
partial(...args) {
|
|
714
|
+
return partial(ZodOptional, this, args[0]);
|
|
715
|
+
},
|
|
716
|
+
required(...args) {
|
|
717
|
+
return required(ZodNonOptional, this, args[0]);
|
|
718
|
+
}
|
|
719
|
+
});
|
|
537
720
|
});
|
|
538
721
|
function object(shape, params) {
|
|
539
722
|
const def = {
|
|
@@ -638,6 +821,14 @@ const ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
638
821
|
inst.valueType = def.valueType;
|
|
639
822
|
});
|
|
640
823
|
function record(keyType, valueType, params) {
|
|
824
|
+
if (!valueType || !valueType._zod) {
|
|
825
|
+
return new ZodRecord({
|
|
826
|
+
type: "record",
|
|
827
|
+
keyType: string(),
|
|
828
|
+
valueType: keyType,
|
|
829
|
+
...normalizeParams(valueType)
|
|
830
|
+
});
|
|
831
|
+
}
|
|
641
832
|
return new ZodRecord({
|
|
642
833
|
type: "record",
|
|
643
834
|
keyType,
|
|
@@ -809,10 +1000,12 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
|
|
|
809
1000
|
if (output instanceof Promise) {
|
|
810
1001
|
return output.then((output2) => {
|
|
811
1002
|
payload.value = output2;
|
|
1003
|
+
payload.fallback = true;
|
|
812
1004
|
return payload;
|
|
813
1005
|
});
|
|
814
1006
|
}
|
|
815
1007
|
payload.value = output;
|
|
1008
|
+
payload.fallback = true;
|
|
816
1009
|
return payload;
|
|
817
1010
|
};
|
|
818
1011
|
});
|
|
@@ -967,6 +1160,20 @@ function codec(in_, out, params) {
|
|
|
967
1160
|
reverseTransform: params.encode
|
|
968
1161
|
});
|
|
969
1162
|
}
|
|
1163
|
+
function invertCodec(codec2) {
|
|
1164
|
+
const def = codec2._zod.def;
|
|
1165
|
+
return new ZodCodec({
|
|
1166
|
+
type: "pipe",
|
|
1167
|
+
in: def.out,
|
|
1168
|
+
out: def.in,
|
|
1169
|
+
transform: def.reverseTransform,
|
|
1170
|
+
reverseTransform: def.transform
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
const ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
1174
|
+
ZodPipe.init(inst, def);
|
|
1175
|
+
$ZodPreprocess.init(inst, def);
|
|
1176
|
+
});
|
|
970
1177
|
const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
971
1178
|
$ZodReadonly.init(inst, def);
|
|
972
1179
|
ZodType.init(inst, def);
|
|
@@ -1046,8 +1253,8 @@ function custom(fn, _params) {
|
|
|
1046
1253
|
function refine(fn, _params = {}) {
|
|
1047
1254
|
return _refine(ZodCustom, fn, _params);
|
|
1048
1255
|
}
|
|
1049
|
-
function superRefine(fn) {
|
|
1050
|
-
return _superRefine(fn);
|
|
1256
|
+
function superRefine(fn, params) {
|
|
1257
|
+
return _superRefine(fn, params);
|
|
1051
1258
|
}
|
|
1052
1259
|
const describe = describe$1;
|
|
1053
1260
|
const meta = meta$1;
|
|
@@ -1085,7 +1292,11 @@ function json(params) {
|
|
|
1085
1292
|
return jsonSchema;
|
|
1086
1293
|
}
|
|
1087
1294
|
function preprocess(fn, schema) {
|
|
1088
|
-
return
|
|
1295
|
+
return new ZodPreprocess({
|
|
1296
|
+
type: "pipe",
|
|
1297
|
+
in: transform(fn),
|
|
1298
|
+
out: schema
|
|
1299
|
+
});
|
|
1089
1300
|
}
|
|
1090
1301
|
export {
|
|
1091
1302
|
ZodAny,
|
|
@@ -1135,6 +1346,7 @@ export {
|
|
|
1135
1346
|
ZodOptional,
|
|
1136
1347
|
ZodPipe,
|
|
1137
1348
|
ZodPrefault,
|
|
1349
|
+
ZodPreprocess,
|
|
1138
1350
|
ZodPromise,
|
|
1139
1351
|
ZodReadonly,
|
|
1140
1352
|
ZodRecord,
|
|
@@ -1195,6 +1407,7 @@ export {
|
|
|
1195
1407
|
int32,
|
|
1196
1408
|
int64,
|
|
1197
1409
|
intersection,
|
|
1410
|
+
invertCodec,
|
|
1198
1411
|
ipv4,
|
|
1199
1412
|
ipv6,
|
|
1200
1413
|
json,
|