@razorpay/blade 12.47.1 → 12.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/native/components/ActionList/ActionListItem.js +51 -0
- package/build/lib/native/components/ActionList/ActionListItem.js.map +1 -1
- package/build/lib/native/components/ActionList/ActionListNoResults.js +51 -0
- package/build/lib/native/components/ActionList/ActionListNoResults.js.map +1 -1
- package/build/lib/native/components/Alert/Alert.js +51 -0
- package/build/lib/native/components/Alert/Alert.js.map +1 -1
- package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js +51 -0
- package/build/lib/native/components/BaseHeaderFooter/BaseHeader.js.map +1 -1
- package/build/lib/native/components/BottomSheet/BottomSheetCommon.js +51 -0
- package/build/lib/native/components/BottomSheet/BottomSheetCommon.js.map +1 -1
- package/build/lib/native/components/Carousel/NavigationButton/NavigationButton.js +51 -0
- package/build/lib/native/components/Carousel/NavigationButton/NavigationButton.js.map +1 -1
- package/build/lib/native/components/Collapsible/CollapsibleChevronIcon.native.js +51 -0
- package/build/lib/native/components/Collapsible/CollapsibleChevronIcon.native.js.map +1 -1
- package/build/lib/native/components/Form/FormHint.js +51 -0
- package/build/lib/native/components/Form/FormHint.js.map +1 -1
- package/build/lib/native/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/EducationFilledIcon/EducationFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/EducationFilledIcon/EducationFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/EngageFilledIcon/EngageFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/EngageFilledIcon/EngageFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/MoreFilledIcon/MoreFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/MoreFilledIcon/MoreFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/PosFilledIcon/PosFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/PosFilledIcon/PosFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/RouteFilledIcon/RouteFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/RouteFilledIcon/RouteFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/SaasFilledIcon/SaasFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/SaasFilledIcon/SaasFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js +13 -0
- package/build/lib/native/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js.map +1 -0
- package/build/lib/native/components/Icons/VolumeOffIcon/VolumeOffIcon.js +13 -0
- package/build/lib/native/components/Icons/VolumeOffIcon/VolumeOffIcon.js.map +1 -0
- package/build/lib/native/components/Icons/VolumeOnIcon/VolumeOnIcon.js +13 -0
- package/build/lib/native/components/Icons/VolumeOnIcon/VolumeOnIcon.js.map +1 -0
- package/build/lib/native/components/Input/DropdownInputTriggers/Chevron.js +51 -0
- package/build/lib/native/components/Input/DropdownInputTriggers/Chevron.js.map +1 -1
- package/build/lib/native/components/Input/PasswordInput/PasswordInput.js +51 -0
- package/build/lib/native/components/Input/PasswordInput/PasswordInput.js.map +1 -1
- package/build/lib/native/components/Input/SearchInput/SearchInput.js +51 -0
- package/build/lib/native/components/Input/SearchInput/SearchInput.js.map +1 -1
- package/build/lib/native/components/Input/TextArea/TextArea.js +51 -0
- package/build/lib/native/components/Input/TextArea/TextArea.js.map +1 -1
- package/build/lib/native/components/Input/TextInput/TextInput.js +52 -1
- package/build/lib/native/components/Input/TextInput/TextInput.js.map +1 -1
- package/build/lib/native/components/Input/TextInput/useFormattedInput.js +1 -1
- package/build/lib/native/components/Input/TextInput/useFormattedInput.js.map +1 -1
- package/build/lib/native/components/Popover/PopoverCloseButton.js +51 -0
- package/build/lib/native/components/Popover/PopoverCloseButton.js.map +1 -1
- package/build/lib/native/components/QuickFilters/QuickFilter.js +51 -0
- package/build/lib/native/components/QuickFilters/QuickFilter.js.map +1 -1
- package/build/lib/native/components/Table/tokens.js +51 -0
- package/build/lib/native/components/Table/tokens.js.map +1 -1
- package/build/lib/native/components/Tag/Tag.js +51 -0
- package/build/lib/native/components/Tag/Tag.js.map +1 -1
- package/build/lib/native/components/index.js +51 -0
- package/build/lib/native/components/index.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js +162 -113
- package/build/lib/web/development/components/DatePicker/BaseDatePicker.web.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js +1 -1
- package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/DateInput.web.js +202 -147
- package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetContext.js +122 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetContext.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetDropdown.web.js +46 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js +19 -19
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/QuickSelection/utils.js +9 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/utils.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/usePopup.js +10 -2
- package/build/lib/web/development/components/DatePicker/usePopup.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/utils.js +419 -1
- package/build/lib/web/development/components/DatePicker/utils.js.map +1 -1
- package/build/lib/web/development/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/AcceptPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/AcceptPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/AffordabilityFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/AffordabilityFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/AutomatePayrollFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/AutomatePayrollFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/BankAccountVerificationFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/BankAccountVerificationFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/BfsiFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/BfsiFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/BillMeFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/BillMeFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js +49 -0
- package/build/lib/web/development/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/BulkPayoutsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/BulkPayoutsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/BusinessSpendManagementFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/BusinessSpendManagementFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js +56 -0
- package/build/lib/web/development/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/CompanyRegistrationFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/CompanyRegistrationFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/CreditsAndLoansFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/CreditsAndLoansFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/CurrentAccountFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/CurrentAccountFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js +64 -0
- package/build/lib/web/development/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/DigitalLendingFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/DigitalLendingFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/DisbursePaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/DisbursePaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/EcommerceFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/EcommerceFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/EducationFilledIcon/EducationFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/EducationFilledIcon/EducationFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/EducationFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/EducationFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/EngageFilledIcon/EngageFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/EngageFilledIcon/EngageFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/EngageFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/EngageFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/EscrowAccountFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/EscrowAccountFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js +56 -0
- package/build/lib/web/development/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/ForexManagementFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/ForexManagementFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/FreelanceFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/FreelanceFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/InstantSettlementFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/InstantSettlementFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js +57 -0
- package/build/lib/web/development/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/InternationalPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/InternationalPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js +49 -0
- package/build/lib/web/development/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/InvoicesFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/InvoicesFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js +49 -0
- package/build/lib/web/development/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/LoansForBusinessesFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/LoansForBusinessesFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/MagicCheckoutFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/MagicCheckoutFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/MagicKonnectFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/MagicKonnectFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/MobileAppFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/MobileAppFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/MoreFilledIcon/MoreFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/MoreFilledIcon/MoreFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/MoreFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/MoreFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/OptimizerFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/OptimizerFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentButtonFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PaymentButtonFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js +48 -0
- package/build/lib/web/development/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentGatewayFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PaymentGatewayFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js +56 -0
- package/build/lib/web/development/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentLinkFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PaymentLinkFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PaymentPagesFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PaymentPagesFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js +45 -0
- package/build/lib/web/development/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollAddonsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PayrollAddonsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js +48 -0
- package/build/lib/web/development/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollForCaFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PayrollForCaFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PayrollForStartupOrSmeFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PayrollForStartupOrSmeFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js +53 -0
- package/build/lib/web/development/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PettyCashBudgetFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PettyCashBudgetFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/PosFilledIcon/PosFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/PosFilledIcon/PosFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/PosFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/PosFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/RazorpayxPayrollFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/RazorpayxPayrollFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/RouteFilledIcon/RouteFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/RouteFilledIcon/RouteFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/RouteFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/RouteFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/SaasFilledIcon/SaasFilledIcon.js +42 -0
- package/build/lib/web/development/components/Icons/SaasFilledIcon/SaasFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/SaasFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/SaasFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js +53 -0
- package/build/lib/web/development/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/SmartCollectFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/SmartCollectFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js +44 -0
- package/build/lib/web/development/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/SolutionsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/SolutionsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js +60 -0
- package/build/lib/web/development/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/SourceToPayFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/SourceToPayFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js +64 -0
- package/build/lib/web/development/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/SubscriptionsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/SubscriptionsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js +50 -0
- package/build/lib/web/development/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/TaxPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/TaxPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js +53 -0
- package/build/lib/web/development/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/TokenHqFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/TokenHqFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js +64 -0
- package/build/lib/web/development/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/UpiAutopayFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/UpiAutopayFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js +52 -0
- package/build/lib/web/development/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/VendorPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/VendorPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js +47 -0
- package/build/lib/web/development/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/ViewLiveDemoFilledIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/ViewLiveDemoFilledIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/VolumeOffIcon/VolumeOffIcon.js +53 -0
- package/build/lib/web/development/components/Icons/VolumeOffIcon/VolumeOffIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/VolumeOffIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/VolumeOffIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/VolumeOnIcon/VolumeOnIcon.js +50 -0
- package/build/lib/web/development/components/Icons/VolumeOnIcon/VolumeOnIcon.js.map +1 -0
- package/build/lib/web/development/components/Icons/VolumeOnIcon/index.js +2 -0
- package/build/lib/web/development/components/Icons/VolumeOnIcon/index.js.map +1 -0
- package/build/lib/web/development/components/Icons/index.js +51 -0
- package/build/lib/web/development/components/Icons/index.js.map +1 -1
- package/build/lib/web/development/components/Input/TextInput/TextInput.js +3 -1
- package/build/lib/web/development/components/Input/TextInput/TextInput.js.map +1 -1
- package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js +21 -0
- package/build/lib/web/development/components/Input/TextInput/useFormattedInput.js.map +1 -1
- package/build/lib/web/development/components/index.js +51 -0
- package/build/lib/web/development/components/index.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js +162 -113
- package/build/lib/web/production/components/DatePicker/BaseDatePicker.web.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js +1 -1
- package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/DateInput.web.js +202 -147
- package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetContext.js +122 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetContext.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetDropdown.web.js +46 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetDropdown.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js +19 -19
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/QuickSelection/utils.js +9 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/utils.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/usePopup.js +10 -2
- package/build/lib/web/production/components/DatePicker/usePopup.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/utils.js +419 -1
- package/build/lib/web/production/components/DatePicker/utils.js.map +1 -1
- package/build/lib/web/production/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/AcceptPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/AcceptPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/AffordabilityFilledIcon/AffordabilityFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/AffordabilityFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/AffordabilityFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/AutomatePayrollFilledIcon/AutomatePayrollFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/AutomatePayrollFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/AutomatePayrollFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/BankAccountVerificationFilledIcon/BankAccountVerificationFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/BankAccountVerificationFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/BankAccountVerificationFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/BfsiFilledIcon/BfsiFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/BfsiFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/BfsiFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/BillMeFilledIcon/BillMeFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/BillMeFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/BillMeFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js +49 -0
- package/build/lib/web/production/components/Icons/BulkPayoutsFilledIcon/BulkPayoutsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/BulkPayoutsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/BulkPayoutsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/BusinessSpendManagementFilledIcon/BusinessSpendManagementFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/BusinessSpendManagementFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/BusinessSpendManagementFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js +56 -0
- package/build/lib/web/production/components/Icons/CompanyRegistrationFilledIcon/CompanyRegistrationFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/CompanyRegistrationFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/CompanyRegistrationFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/CreditsAndLoansFilledIcon/CreditsAndLoansFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/CreditsAndLoansFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/CreditsAndLoansFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/CurrentAccountFilledIcon/CurrentAccountFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/CurrentAccountFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/CurrentAccountFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js +64 -0
- package/build/lib/web/production/components/Icons/DigitalLendingFilledIcon/DigitalLendingFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/DigitalLendingFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/DigitalLendingFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/DisbursePaymentsFilledIcon/DisbursePaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/DisbursePaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/DisbursePaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/EcommerceFilledIcon/EcommerceFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/EcommerceFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/EcommerceFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/EducationFilledIcon/EducationFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/EducationFilledIcon/EducationFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/EducationFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/EducationFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/EngageFilledIcon/EngageFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/EngageFilledIcon/EngageFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/EngageFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/EngageFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/EscrowAccountFilledIcon/EscrowAccountFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/EscrowAccountFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/EscrowAccountFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js +56 -0
- package/build/lib/web/production/components/Icons/ForexManagementFilledIcon/ForexManagementFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/ForexManagementFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/ForexManagementFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/FreelanceFilledIcon/FreelanceFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/FreelanceFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/FreelanceFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/InstantSettlementFilledIcon/InstantSettlementFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/InstantSettlementFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/InstantSettlementFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js +57 -0
- package/build/lib/web/production/components/Icons/InternationalPaymentsFilledIcon/InternationalPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/InternationalPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/InternationalPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js +49 -0
- package/build/lib/web/production/components/Icons/InvoicesFilledIcon/InvoicesFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/InvoicesFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/InvoicesFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js +49 -0
- package/build/lib/web/production/components/Icons/LoansForBusinessesFilledIcon/LoansForBusinessesFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/LoansForBusinessesFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/LoansForBusinessesFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/MagicCheckoutFilledIcon/MagicCheckoutFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/MagicCheckoutFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/MagicCheckoutFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/MagicKonnectFilledIcon/MagicKonnectFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/MagicKonnectFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/MagicKonnectFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/MobileAppFilledIcon/MobileAppFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/MobileAppFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/MobileAppFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/MoreFilledIcon/MoreFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/MoreFilledIcon/MoreFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/MoreFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/MoreFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/OptimizerFilledIcon/OptimizerFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/OptimizerFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/OptimizerFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/PaymentButtonFilledIcon/PaymentButtonFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentButtonFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PaymentButtonFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js +48 -0
- package/build/lib/web/production/components/Icons/PaymentGatewayFilledIcon/PaymentGatewayFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentGatewayFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PaymentGatewayFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js +56 -0
- package/build/lib/web/production/components/Icons/PaymentLinkFilledIcon/PaymentLinkFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentLinkFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PaymentLinkFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/PaymentPagesFilledIcon/PaymentPagesFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PaymentPagesFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PaymentPagesFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js +45 -0
- package/build/lib/web/production/components/Icons/PayrollAddonsFilledIcon/PayrollAddonsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollAddonsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PayrollAddonsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js +48 -0
- package/build/lib/web/production/components/Icons/PayrollForCaFilledIcon/PayrollForCaFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollForCaFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PayrollForCaFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/PayrollForStartupOrSmeFilledIcon/PayrollForStartupOrSmeFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PayrollForStartupOrSmeFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PayrollForStartupOrSmeFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js +53 -0
- package/build/lib/web/production/components/Icons/PettyCashBudgetFilledIcon/PettyCashBudgetFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PettyCashBudgetFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PettyCashBudgetFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/PosFilledIcon/PosFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/PosFilledIcon/PosFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/PosFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/PosFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/RazorpayxPayrollFilledIcon/RazorpayxPayrollFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/RazorpayxPayrollFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/RazorpayxPayrollFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/RouteFilledIcon/RouteFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/RouteFilledIcon/RouteFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/RouteFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/RouteFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/SaasFilledIcon/SaasFilledIcon.js +42 -0
- package/build/lib/web/production/components/Icons/SaasFilledIcon/SaasFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/SaasFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/SaasFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js +53 -0
- package/build/lib/web/production/components/Icons/SmartCollectFilledIcon/SmartCollectFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/SmartCollectFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/SmartCollectFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js +44 -0
- package/build/lib/web/production/components/Icons/SolutionsFilledIcon/SolutionsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/SolutionsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/SolutionsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js +60 -0
- package/build/lib/web/production/components/Icons/SourceToPayFilledIcon/SourceToPayFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/SourceToPayFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/SourceToPayFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js +64 -0
- package/build/lib/web/production/components/Icons/SubscriptionsFilledIcon/SubscriptionsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/SubscriptionsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/SubscriptionsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js +50 -0
- package/build/lib/web/production/components/Icons/TaxPaymentsFilledIcon/TaxPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/TaxPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/TaxPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js +53 -0
- package/build/lib/web/production/components/Icons/TokenHqFilledIcon/TokenHqFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/TokenHqFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/TokenHqFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js +64 -0
- package/build/lib/web/production/components/Icons/UpiAutopayFilledIcon/UpiAutopayFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/UpiAutopayFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/UpiAutopayFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js +52 -0
- package/build/lib/web/production/components/Icons/VendorPaymentsFilledIcon/VendorPaymentsFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/VendorPaymentsFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/VendorPaymentsFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js +47 -0
- package/build/lib/web/production/components/Icons/ViewLiveDemoFilledIcon/ViewLiveDemoFilledIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/ViewLiveDemoFilledIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/ViewLiveDemoFilledIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/VolumeOffIcon/VolumeOffIcon.js +53 -0
- package/build/lib/web/production/components/Icons/VolumeOffIcon/VolumeOffIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/VolumeOffIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/VolumeOffIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/VolumeOnIcon/VolumeOnIcon.js +50 -0
- package/build/lib/web/production/components/Icons/VolumeOnIcon/VolumeOnIcon.js.map +1 -0
- package/build/lib/web/production/components/Icons/VolumeOnIcon/index.js +2 -0
- package/build/lib/web/production/components/Icons/VolumeOnIcon/index.js.map +1 -0
- package/build/lib/web/production/components/Icons/index.js +51 -0
- package/build/lib/web/production/components/Icons/index.js.map +1 -1
- package/build/lib/web/production/components/Input/TextInput/TextInput.js +3 -1
- package/build/lib/web/production/components/Input/TextInput/TextInput.js.map +1 -1
- package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js +21 -0
- package/build/lib/web/production/components/Input/TextInput/useFormattedInput.js.map +1 -1
- package/build/lib/web/production/components/index.js +51 -0
- package/build/lib/web/production/components/index.js.map +1 -1
- package/build/types/components/index.d.ts +113 -6
- package/build/types/components/index.native.d.ts +113 -6
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
3
4
|
|
|
4
5
|
var _excluded = ["formatter"];
|
|
6
|
+
dayjs.extend(customParseFormat);
|
|
5
7
|
var dayjs_locales = ['af', 'ar', 'ar-dz', 'ar-kw', 'ar-ly', 'ar-ma', 'ar-sa', 'ar-tn', 'az', 'be', 'bg', 'bm', 'bn', 'bo', 'br', 'bs', 'ca', 'cs', 'cv', 'cy', 'da', 'de', 'de-at', 'de-ch', 'dv', 'el', 'en', 'en-au', 'en-ca', 'en-gb', 'en-ie', 'en-il', 'en-nz', 'en-SG', 'eo', 'es', 'es-do', 'es-us', 'et', 'eu', 'fa', 'fi', 'fo', 'fr', 'fr-ca', 'fr-ch', 'fy', 'ga', 'gd', 'gl', 'gom-latn', 'gu', 'he', 'hi', 'hr', 'hu', 'hy-am', 'id', 'is', 'it', 'it-ch', 'ja', 'jv', 'ka', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'lb', 'lo', 'lt', 'lv', 'me', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'ms-my', 'mt', 'my', 'nb', 'ne', 'nl', 'nl-be', 'nn', 'oc-lnc', 'pa-in', 'pl', 'pt', 'pt-br', 'ro', 'ru', 'sd', 'se', 'si', 'sk', 'sl', 'sq', 'sr', 'sr-cyrl', 'ss', 'sv', 'sw', 'ta', 'te', 'tet', 'tg', 'th', 'tl-ph', 'tlh', 'tr', 'tzl', 'tzm', 'tzm-latn', 'ug-cn', 'uk', 'ur', 'uz', 'uz-latn', 'vi', 'x-pseudo', 'yo', 'zh-cn', 'zh-hk', 'zh-tw'];
|
|
6
8
|
|
|
7
9
|
// https://github.com/iamkun/dayjs/issues/732#issuecomment-554383261
|
|
@@ -66,6 +68,422 @@ function getFormattedDate(_ref2) {
|
|
|
66
68
|
others = _objectWithoutProperties(_ref2, _excluded);
|
|
67
69
|
return (formatter || defaultDateFormatter)(others);
|
|
68
70
|
}
|
|
71
|
+
var rangeFormattedValue = function rangeFormattedValue(startValue, endValue) {
|
|
72
|
+
// Both values exist
|
|
73
|
+
if (startValue && endValue) {
|
|
74
|
+
if (startValue === endValue) {
|
|
75
|
+
return startValue; // Same date, show single value
|
|
76
|
+
}
|
|
77
|
+
return "".concat(startValue, " \u2192 ").concat(endValue); // Different dates, show range
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Only start value exists
|
|
81
|
+
if (startValue) {
|
|
82
|
+
return "".concat(startValue, " \u2192 ");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Only end value exists
|
|
86
|
+
if (endValue) {
|
|
87
|
+
return " \u2192 ".concat(endValue);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// No values
|
|
91
|
+
return '';
|
|
92
|
+
};
|
|
93
|
+
var rangeInputPlaceHolder = function rangeInputPlaceHolder(placeholder, format) {
|
|
94
|
+
if (placeholder) {
|
|
95
|
+
return "".concat(placeholder, " \u2192 ").concat(placeholder);
|
|
96
|
+
}
|
|
97
|
+
return "".concat(format, " \u2192 ").concat(format);
|
|
98
|
+
};
|
|
99
|
+
var finalInputFormat = function finalInputFormat(startValue, endValue, format) {
|
|
100
|
+
// For case: when start and end are the same, return the format
|
|
101
|
+
if (startValue === endValue && (startValue || endValue)) {
|
|
102
|
+
return format;
|
|
103
|
+
}
|
|
104
|
+
return "".concat(format, " \u2192 ").concat(format);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Converts date format string to TextInput pattern for masking.
|
|
109
|
+
* TextInput format only recognizes # as input placeholder, so we replace
|
|
110
|
+
* date characters (Y,M,D) with # while preserving delimiters.
|
|
111
|
+
*
|
|
112
|
+
* @example "DD/MM/YYYY" → "##/##/####"
|
|
113
|
+
* @example "MMMM" → "################" (longest month: "September")
|
|
114
|
+
* @example "MMM" → "###"
|
|
115
|
+
*/
|
|
116
|
+
var getTextInputFormat = function getTextInputFormat(formatStr, isRangeInput) {
|
|
117
|
+
if (!formatStr) {
|
|
118
|
+
return isRangeInput ? '##/##/#### → ##/##/####' : '##/##/####';
|
|
119
|
+
} else if (formatStr === 'MMMM') {
|
|
120
|
+
return formatStr.replace(/MMMM/g, '#########');
|
|
121
|
+
}
|
|
122
|
+
return formatStr.replace(/[YMD]/g, '#');
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Validates date string using DayJS strict parsing and business rules
|
|
127
|
+
*
|
|
128
|
+
* @param dateStr - The date string to validate in DD/MM/YYYY format
|
|
129
|
+
* @returns Object with validation result, error message if invalid, and parsed Date if valid
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* // Valid date
|
|
133
|
+
* validateDateComponents("25/12/2024")
|
|
134
|
+
* // → { isValid: true, parsedDate: Date(2024, 11, 25) }
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* // Invalid date (non-existent)
|
|
138
|
+
* validateDateComponents("31/02/2024")
|
|
139
|
+
* // → { isValid: false, error: "Invalid date" }
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* // Invalid year range
|
|
143
|
+
* validateDateComponents("25/12/999")
|
|
144
|
+
* // → { isValid: false, error: "Invalid year" }
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* // Empty input
|
|
148
|
+
* validateDateComponents("")
|
|
149
|
+
* // → { isValid: true }
|
|
150
|
+
*/
|
|
151
|
+
var validateDateComponents = function validateDateComponents(dateStr) {
|
|
152
|
+
// Empty strings are considered valid (user hasn't started typing)
|
|
153
|
+
if (!(dateStr !== null && dateStr !== void 0 && dateStr.trim())) {
|
|
154
|
+
return {
|
|
155
|
+
isValid: true
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// Use DayJS strict parsing to validate DD/MM/YYYY format and date existence
|
|
160
|
+
var parsed = dayjs(dateStr, 'DD/MM/YYYY', true);
|
|
161
|
+
|
|
162
|
+
// DayJS strict mode catches invalid days/months and non-existent dates (e.g., Feb 30th)
|
|
163
|
+
if (!parsed.isValid()) {
|
|
164
|
+
return {
|
|
165
|
+
isValid: false,
|
|
166
|
+
error: 'Invalid date'
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Business rule: restrict year range to reasonable values for most applications
|
|
171
|
+
var year = parsed.year();
|
|
172
|
+
if (year < 1000 || year > 3000) {
|
|
173
|
+
return {
|
|
174
|
+
isValid: false,
|
|
175
|
+
error: 'Invalid year'
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Return both validation result AND parsed date to avoid double parsing
|
|
180
|
+
return {
|
|
181
|
+
isValid: true,
|
|
182
|
+
parsedDate: parsed.toDate()
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Detects and parses special single date formats (MMM, MMMM, YYYY)
|
|
188
|
+
* These formats preserve current date/month/year and only change the specified component
|
|
189
|
+
*
|
|
190
|
+
* @param inputValue - The input string to parse
|
|
191
|
+
* @param format - The expected format ('MMM', 'MMMM', or 'YYYY')
|
|
192
|
+
* @returns Object with special format detection, parsed date, and validation result
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* // Year format - preserves current month/day, changes year
|
|
196
|
+
* parseSpecialSingleFormat("2024", "YYYY")
|
|
197
|
+
* // → { isSpecialFormat: true, parsedDate: Date(2024, currentMonth, currentDay), shouldBlock: false }
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* // Short month format - preserves current day/year, changes month
|
|
201
|
+
* parseSpecialSingleFormat("Aug", "MMM")
|
|
202
|
+
* // → { isSpecialFormat: true, parsedDate: Date(currentYear, 7, currentDay), shouldBlock: false }
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* // Full month format - preserves current day/year, changes month
|
|
206
|
+
* parseSpecialSingleFormat("August", "MMMM")
|
|
207
|
+
* // → { isSpecialFormat: true, parsedDate: Date(currentYear, 7, currentDay), shouldBlock: false }
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* // Invalid year
|
|
211
|
+
* parseSpecialSingleFormat("999", "YYYY")
|
|
212
|
+
* // → { isSpecialFormat: true, shouldBlock: true }
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* // Not a special format
|
|
216
|
+
* parseSpecialSingleFormat("25/12/2024", "DD/MM/YYYY")
|
|
217
|
+
* // → { isSpecialFormat: false, shouldBlock: false }
|
|
218
|
+
*/
|
|
219
|
+
var parseSpecialSingleFormat = function parseSpecialSingleFormat(inputValue, format) {
|
|
220
|
+
if (!format) return {
|
|
221
|
+
isSpecialFormat: false,
|
|
222
|
+
shouldBlock: false
|
|
223
|
+
};
|
|
224
|
+
var trimmedInput = inputValue.trim();
|
|
225
|
+
var today = new Date();
|
|
226
|
+
|
|
227
|
+
// Handle year-only format (YYYY) - keep current month and day, change year
|
|
228
|
+
if (format === 'YYYY' && /^\d{4}$/.test(trimmedInput)) {
|
|
229
|
+
var year = parseInt(trimmedInput, 10);
|
|
230
|
+
if (year >= 1000 && year <= 3000) {
|
|
231
|
+
return {
|
|
232
|
+
isSpecialFormat: true,
|
|
233
|
+
parsedDate: new Date(year, today.getMonth(), today.getDate()),
|
|
234
|
+
shouldBlock: false
|
|
235
|
+
};
|
|
236
|
+
} else {
|
|
237
|
+
return {
|
|
238
|
+
isSpecialFormat: true,
|
|
239
|
+
shouldBlock: true
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// Handle month formats (MMM, MMMM) - keep current day and year, change month
|
|
245
|
+
if ((format === 'MMM' || format === 'MMMM') && trimmedInput.length >= 3) {
|
|
246
|
+
// Using DayJS to parse month names (handles both short "Aug" and full "August")
|
|
247
|
+
var monthDate = dayjs(trimmedInput, format === 'MMM' ? 'MMM' : 'MMMM', true);
|
|
248
|
+
if (!monthDate.isValid()) {
|
|
249
|
+
return {
|
|
250
|
+
isSpecialFormat: true,
|
|
251
|
+
shouldBlock: true
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
isSpecialFormat: true,
|
|
256
|
+
parsedDate: new Date(today.getFullYear(), monthDate.month(), today.getDate()),
|
|
257
|
+
shouldBlock: false
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
return {
|
|
261
|
+
isSpecialFormat: false,
|
|
262
|
+
shouldBlock: false
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Validates and parses date input with comprehensive error handling and constraint checking
|
|
268
|
+
* Combines validation + parsing to avoid redundant operations and supports both single dates and ranges
|
|
269
|
+
*
|
|
270
|
+
* @param inputValue - The input string to validate and parse
|
|
271
|
+
* @param isRange - Whether this is a range input (true) or single date (false)
|
|
272
|
+
* @param format - The expected date format ('DD/MM/YYYY', 'MMM', 'MMMM', 'YYYY')
|
|
273
|
+
* @param options - Additional validation constraints
|
|
274
|
+
* @param options.excludeDate - Function to exclude specific dates (single dates only)
|
|
275
|
+
* @param options.minDate - Minimum allowed date
|
|
276
|
+
* @param options.maxDate - Maximum allowed date
|
|
277
|
+
* @returns Object with shouldBlock flag, optional error message, and parsed values if valid
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* // Valid single date
|
|
281
|
+
* validateAndParseDateInput("25/12/2024", false, "DD/MM/YYYY")
|
|
282
|
+
* // → { shouldBlock: false, parsedValue: Date(2024, 11, 25) }
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* // Valid range input
|
|
286
|
+
* validateAndParseDateInput("25/12/2024 → 31/12/2024", true, "DD/MM/YYYY")
|
|
287
|
+
* // → { shouldBlock: false, parsedValue: [Date(2024, 11, 25), Date(2024, 11, 31)] }
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* // Invalid date with error
|
|
291
|
+
* validateAndParseDateInput("31/02/2024", false, "DD/MM/YYYY")
|
|
292
|
+
* // → { shouldBlock: true, error: "Invalid date" }
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* // Date excluded by constraint
|
|
296
|
+
* validateAndParseDateInput("25/12/2024", false, "DD/MM/YYYY", {
|
|
297
|
+
* excludeDate: (date) => date.getDay() === 0 // No Sundays
|
|
298
|
+
* })
|
|
299
|
+
* // → { shouldBlock: true, error: "Date is not allowed" }
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* // Special format - year only
|
|
303
|
+
* validateAndParseDateInput("2024", false, "YYYY")
|
|
304
|
+
* // → { shouldBlock: false, parsedValue: Date(2024, currentMonth, currentDay) }
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* // Incomplete input - allow continued typing
|
|
308
|
+
* validateAndParseDateInput("25/12", false, "DD/MM/YYYY")
|
|
309
|
+
* // → { shouldBlock: false } (no parsedValue, allows user to continue typing)
|
|
310
|
+
*/
|
|
311
|
+
var validateAndParseDateInput = function validateAndParseDateInput(inputValue, isRange, format, options) {
|
|
312
|
+
// Allow empty input - user hasn't started typing yet
|
|
313
|
+
if (!(inputValue !== null && inputValue !== void 0 && inputValue.trim())) return {
|
|
314
|
+
shouldBlock: false
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
// Handle special single date formats (MMM, MMMM, YYYY) - skip normal validation
|
|
318
|
+
if (!isRange && format) {
|
|
319
|
+
var specialParse = parseSpecialSingleFormat(inputValue, format);
|
|
320
|
+
if (specialParse.isSpecialFormat && !specialParse.shouldBlock) {
|
|
321
|
+
return {
|
|
322
|
+
shouldBlock: false,
|
|
323
|
+
parsedValue: specialParse.parsedDate || null
|
|
324
|
+
};
|
|
325
|
+
} else if (specialParse.shouldBlock) {
|
|
326
|
+
return {
|
|
327
|
+
shouldBlock: true,
|
|
328
|
+
error: 'Invalid date'
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
if (isRange) {
|
|
333
|
+
var _parts$, _parts$2, _parts$3, _parts$4;
|
|
334
|
+
// Split range input on arrow separator (e.g., "25/12/2024 → 31/12/2024")
|
|
335
|
+
var parts = inputValue.split(/\s*→\s*/);
|
|
336
|
+
|
|
337
|
+
// Block incomplete input to prevent premature validation (e.g., "25/12/202" is being typed)
|
|
338
|
+
if ((_parts$ = parts[0]) !== null && _parts$ !== void 0 && _parts$.trim() && parts[0].trim().length < 10 || (_parts$2 = parts[1]) !== null && _parts$2 !== void 0 && _parts$2.trim() && parts[1].trim().length < 10) {
|
|
339
|
+
return {
|
|
340
|
+
shouldBlock: true,
|
|
341
|
+
error: 'Invalid date'
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
var startDate = null;
|
|
345
|
+
var endDate = null;
|
|
346
|
+
|
|
347
|
+
// Validate and parse start date if it looks complete (10+ chars = DD/MM/YYYY)
|
|
348
|
+
if ((_parts$3 = parts[0]) !== null && _parts$3 !== void 0 && _parts$3.trim() && parts[0].trim().length >= 10) {
|
|
349
|
+
var startValidation = validateDateComponents(parts[0].trim());
|
|
350
|
+
if (!startValidation.isValid) {
|
|
351
|
+
return {
|
|
352
|
+
shouldBlock: true,
|
|
353
|
+
error: "Start date: ".concat(startValidation.error)
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
// Use the already-parsed date from validation to avoid double parsing
|
|
357
|
+
startDate = startValidation.parsedDate || null;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// Validate and parse end date if it looks complete
|
|
361
|
+
if ((_parts$4 = parts[1]) !== null && _parts$4 !== void 0 && _parts$4.trim() && parts[1].trim().length >= 10) {
|
|
362
|
+
var endValidation = validateDateComponents(parts[1].trim());
|
|
363
|
+
if (!endValidation.isValid) {
|
|
364
|
+
return {
|
|
365
|
+
shouldBlock: true,
|
|
366
|
+
error: "End date: ".concat(endValidation.error)
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
// Use the already-parsed date from validation to avoid double parsing
|
|
370
|
+
endDate = endValidation.parsedDate || null;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Business logic: start date cannot be after end date
|
|
374
|
+
if (startDate && endDate && startDate > endDate) {
|
|
375
|
+
return {
|
|
376
|
+
shouldBlock: true,
|
|
377
|
+
error: 'Start date cannot be greater than end date'
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// Additional validation for date range constraints
|
|
382
|
+
if (options) {
|
|
383
|
+
if (startDate && options.minDate && dayjs(startDate).isBefore(dayjs(options.minDate))) {
|
|
384
|
+
return {
|
|
385
|
+
shouldBlock: true,
|
|
386
|
+
error: 'Start date is not allowed'
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
if (startDate && options.maxDate && dayjs(startDate).isAfter(dayjs(options.maxDate))) {
|
|
390
|
+
return {
|
|
391
|
+
shouldBlock: true,
|
|
392
|
+
error: 'Start date is not allowed'
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
if (endDate && options.minDate && dayjs(endDate).isBefore(dayjs(options.minDate))) {
|
|
396
|
+
return {
|
|
397
|
+
shouldBlock: true,
|
|
398
|
+
error: 'End date is not allowed'
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
if (endDate && options.maxDate && dayjs(endDate).isAfter(dayjs(options.maxDate))) {
|
|
402
|
+
return {
|
|
403
|
+
shouldBlock: true,
|
|
404
|
+
error: 'End date is not allowed'
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// Return parsed dates ready for setControlledValue
|
|
410
|
+
return {
|
|
411
|
+
shouldBlock: false,
|
|
412
|
+
parsedValue: [startDate, endDate]
|
|
413
|
+
};
|
|
414
|
+
} else if (inputValue.length >= 10) {
|
|
415
|
+
// Single date: validate and parse if it looks complete
|
|
416
|
+
var validation = validateDateComponents(inputValue);
|
|
417
|
+
if (!validation.isValid) {
|
|
418
|
+
return {
|
|
419
|
+
shouldBlock: true,
|
|
420
|
+
error: validation.error
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
var parsedDate = validation.parsedDate;
|
|
424
|
+
|
|
425
|
+
// Additional validation for single date constraints
|
|
426
|
+
if (options && parsedDate) {
|
|
427
|
+
var _options$excludeDate;
|
|
428
|
+
if ((_options$excludeDate = options.excludeDate) !== null && _options$excludeDate !== void 0 && _options$excludeDate.call(options, parsedDate)) {
|
|
429
|
+
return {
|
|
430
|
+
shouldBlock: true,
|
|
431
|
+
error: 'Date is not allowed'
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
if (options.minDate && dayjs(parsedDate).isBefore(dayjs(options.minDate))) {
|
|
435
|
+
return {
|
|
436
|
+
shouldBlock: true,
|
|
437
|
+
error: 'Date is not allowed'
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
if (options.maxDate && dayjs(parsedDate).isAfter(dayjs(options.maxDate))) {
|
|
441
|
+
return {
|
|
442
|
+
shouldBlock: true,
|
|
443
|
+
error: 'Date is not allowed'
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Return parsed date ready for setControlledValue
|
|
449
|
+
return {
|
|
450
|
+
shouldBlock: false,
|
|
451
|
+
parsedValue: parsedDate || null
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// Input is incomplete but valid so far - allow continued typing
|
|
456
|
+
return {
|
|
457
|
+
shouldBlock: false
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Removes date delimiters (slashes) from formatted date strings for internal processing
|
|
463
|
+
* Used to convert external formatted values to internal state for easier validation and length checks
|
|
464
|
+
*
|
|
465
|
+
* @param str - The date string with delimiters
|
|
466
|
+
* @returns String without delimiters, or empty string if input is null/undefined
|
|
467
|
+
*
|
|
468
|
+
* @example
|
|
469
|
+
* // Remove slashes from single date
|
|
470
|
+
* stripDelimiters("25/12/2024")
|
|
471
|
+
* // → "25122024"
|
|
472
|
+
*
|
|
473
|
+
* @example
|
|
474
|
+
* // Handle null/undefined input
|
|
475
|
+
* stripDelimiters(undefined)
|
|
476
|
+
* // → ""
|
|
477
|
+
*
|
|
478
|
+
* @example
|
|
479
|
+
* // Used for internal state conversion
|
|
480
|
+
* stripDelimiters("31/12/2024")
|
|
481
|
+
* // → "31122024" (easier for length checks: inputValue.length === 8)
|
|
482
|
+
*/
|
|
483
|
+
var stripDelimiters = function stripDelimiters(str) {
|
|
484
|
+
var _str$replace;
|
|
485
|
+
return (_str$replace = str === null || str === void 0 ? void 0 : str.replace(/\//g, '')) !== null && _str$replace !== void 0 ? _str$replace : '';
|
|
486
|
+
};
|
|
69
487
|
|
|
70
|
-
export { convertIntlToDayjsLocale, getFormattedDate, loadScript };
|
|
488
|
+
export { convertIntlToDayjsLocale, finalInputFormat, getFormattedDate, getTextInputFormat, loadScript, rangeFormattedValue, rangeInputPlaceHolder, stripDelimiters, validateAndParseDateInput, validateDateComponents };
|
|
71
489
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../../src/components/DatePicker/utils.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { DatePickerType, DatePickerValue } from '@mantine/dates';\nimport dayjs from 'dayjs';\n\nconst dayjs_locales = [\n 'af',\n 'ar',\n 'ar-dz',\n 'ar-kw',\n 'ar-ly',\n 'ar-ma',\n 'ar-sa',\n 'ar-tn',\n 'az',\n 'be',\n 'bg',\n 'bm',\n 'bn',\n 'bo',\n 'br',\n 'bs',\n 'ca',\n 'cs',\n 'cv',\n 'cy',\n 'da',\n 'de',\n 'de-at',\n 'de-ch',\n 'dv',\n 'el',\n 'en',\n 'en-au',\n 'en-ca',\n 'en-gb',\n 'en-ie',\n 'en-il',\n 'en-nz',\n 'en-SG',\n 'eo',\n 'es',\n 'es-do',\n 'es-us',\n 'et',\n 'eu',\n 'fa',\n 'fi',\n 'fo',\n 'fr',\n 'fr-ca',\n 'fr-ch',\n 'fy',\n 'ga',\n 'gd',\n 'gl',\n 'gom-latn',\n 'gu',\n 'he',\n 'hi',\n 'hr',\n 'hu',\n 'hy-am',\n 'id',\n 'is',\n 'it',\n 'it-ch',\n 'ja',\n 'jv',\n 'ka',\n 'kk',\n 'km',\n 'kn',\n 'ko',\n 'ku',\n 'ky',\n 'lb',\n 'lo',\n 'lt',\n 'lv',\n 'me',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mr',\n 'ms',\n 'ms-my',\n 'mt',\n 'my',\n 'nb',\n 'ne',\n 'nl',\n 'nl-be',\n 'nn',\n 'oc-lnc',\n 'pa-in',\n 'pl',\n 'pt',\n 'pt-br',\n 'ro',\n 'ru',\n 'sd',\n 'se',\n 'si',\n 'sk',\n 'sl',\n 'sq',\n 'sr',\n 'sr-cyrl',\n 'ss',\n 'sv',\n 'sw',\n 'ta',\n 'te',\n 'tet',\n 'tg',\n 'th',\n 'tl-ph',\n 'tlh',\n 'tr',\n 'tzl',\n 'tzm',\n 'tzm-latn',\n 'ug-cn',\n 'uk',\n 'ur',\n 'uz',\n 'uz-latn',\n 'vi',\n 'x-pseudo',\n 'yo',\n 'zh-cn',\n 'zh-hk',\n 'zh-tw',\n];\n\n// https://github.com/iamkun/dayjs/issues/732#issuecomment-554383261\nfunction patchLocale(locale: string): string | boolean {\n if (['en', 'en-us'].includes(locale)) return 'en';\n if (locale === 'zn') return 'zh-cn';\n if (locale === 'no') return 'nb';\n if (dayjs_locales.includes(locale)) return locale;\n return false;\n}\n\nfunction convertIntlToDayjsLocale(lang: string): string {\n lang = lang.toLowerCase();\n const locale = patchLocale(lang) || (lang.includes('-') && patchLocale(lang.split('-')[0]));\n if (!locale) return 'en';\n\n return `${locale}`;\n}\n\nfunction isScriptLoaded(src: string): boolean {\n return Boolean(document.querySelector(`script[src=\"${src}\"]`));\n}\n\n/**\n * Used to dynamically load a script\n */\nfunction loadScript(src: string, callback?: () => void): void {\n if (isScriptLoaded(src)) {\n callback?.();\n return;\n }\n const localeScript = document.createElement('script');\n localeScript.async = true;\n localeScript.src = src;\n localeScript.onload = () => callback?.();\n document.head.appendChild(localeScript);\n}\n\ninterface DateFormatterInput {\n type: DatePickerType;\n date: DatePickerValue<DatePickerType>;\n locale: string;\n format: string;\n labelSeparator: string;\n}\n\ntype DateFormatter = (input: DateFormatterInput) => string;\n\nfunction defaultDateFormatter({ type, date, locale, format, labelSeparator }: DateFormatterInput) {\n const formatDate = (value: Date) => dayjs(value).locale(locale).format(format);\n\n if (type === 'default') {\n return date === null ? '' : formatDate(date as Date);\n }\n\n if (type === 'range' && Array.isArray(date)) {\n if (date[0] && date[1]) {\n return `${formatDate(date[0])} ${labelSeparator} ${formatDate(date[1])}`;\n }\n\n if (date[0]) {\n return `${formatDate(date[0])} ${labelSeparator} `;\n }\n\n return '';\n }\n\n return '';\n}\n\ninterface GetFormattedDateInput extends DateFormatterInput {\n formatter?: DateFormatter;\n}\n\nfunction getFormattedDate({ formatter, ...others }: GetFormattedDateInput) {\n return (formatter || defaultDateFormatter)(others);\n}\n\nexport { convertIntlToDayjsLocale, loadScript, getFormattedDate };\n"],"names":["dayjs_locales","patchLocale","locale","includes","convertIntlToDayjsLocale","lang","toLowerCase","split","concat","isScriptLoaded","src","Boolean","document","querySelector","loadScript","callback","localeScript","createElement","async","onload","head","appendChild","defaultDateFormatter","_ref","type","date","format","labelSeparator","formatDate","value","dayjs","Array","isArray","getFormattedDate","_ref2","formatter","others","_objectWithoutProperties","_excluded"],"mappings":";;;;AAKA,IAAMA,aAAa,GAAG,CACpB,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,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typescript-eslint/prefer-nullish-coalescing */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\nimport type { DatePickerType, DatePickerValue } from '@mantine/dates';\nimport dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\ndayjs.extend(customParseFormat);\n\nconst dayjs_locales = [\n 'af',\n 'ar',\n 'ar-dz',\n 'ar-kw',\n 'ar-ly',\n 'ar-ma',\n 'ar-sa',\n 'ar-tn',\n 'az',\n 'be',\n 'bg',\n 'bm',\n 'bn',\n 'bo',\n 'br',\n 'bs',\n 'ca',\n 'cs',\n 'cv',\n 'cy',\n 'da',\n 'de',\n 'de-at',\n 'de-ch',\n 'dv',\n 'el',\n 'en',\n 'en-au',\n 'en-ca',\n 'en-gb',\n 'en-ie',\n 'en-il',\n 'en-nz',\n 'en-SG',\n 'eo',\n 'es',\n 'es-do',\n 'es-us',\n 'et',\n 'eu',\n 'fa',\n 'fi',\n 'fo',\n 'fr',\n 'fr-ca',\n 'fr-ch',\n 'fy',\n 'ga',\n 'gd',\n 'gl',\n 'gom-latn',\n 'gu',\n 'he',\n 'hi',\n 'hr',\n 'hu',\n 'hy-am',\n 'id',\n 'is',\n 'it',\n 'it-ch',\n 'ja',\n 'jv',\n 'ka',\n 'kk',\n 'km',\n 'kn',\n 'ko',\n 'ku',\n 'ky',\n 'lb',\n 'lo',\n 'lt',\n 'lv',\n 'me',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mr',\n 'ms',\n 'ms-my',\n 'mt',\n 'my',\n 'nb',\n 'ne',\n 'nl',\n 'nl-be',\n 'nn',\n 'oc-lnc',\n 'pa-in',\n 'pl',\n 'pt',\n 'pt-br',\n 'ro',\n 'ru',\n 'sd',\n 'se',\n 'si',\n 'sk',\n 'sl',\n 'sq',\n 'sr',\n 'sr-cyrl',\n 'ss',\n 'sv',\n 'sw',\n 'ta',\n 'te',\n 'tet',\n 'tg',\n 'th',\n 'tl-ph',\n 'tlh',\n 'tr',\n 'tzl',\n 'tzm',\n 'tzm-latn',\n 'ug-cn',\n 'uk',\n 'ur',\n 'uz',\n 'uz-latn',\n 'vi',\n 'x-pseudo',\n 'yo',\n 'zh-cn',\n 'zh-hk',\n 'zh-tw',\n];\n\n// https://github.com/iamkun/dayjs/issues/732#issuecomment-554383261\nfunction patchLocale(locale: string): string | boolean {\n if (['en', 'en-us'].includes(locale)) return 'en';\n if (locale === 'zn') return 'zh-cn';\n if (locale === 'no') return 'nb';\n if (dayjs_locales.includes(locale)) return locale;\n return false;\n}\n\nfunction convertIntlToDayjsLocale(lang: string): string {\n lang = lang.toLowerCase();\n const locale = patchLocale(lang) || (lang.includes('-') && patchLocale(lang.split('-')[0]));\n if (!locale) return 'en';\n\n return `${locale}`;\n}\n\nfunction isScriptLoaded(src: string): boolean {\n return Boolean(document.querySelector(`script[src=\"${src}\"]`));\n}\n\n/**\n * Used to dynamically load a script\n */\nfunction loadScript(src: string, callback?: () => void): void {\n if (isScriptLoaded(src)) {\n callback?.();\n return;\n }\n const localeScript = document.createElement('script');\n localeScript.async = true;\n localeScript.src = src;\n localeScript.onload = () => callback?.();\n document.head.appendChild(localeScript);\n}\n\ninterface DateFormatterInput {\n type: DatePickerType;\n date: DatePickerValue<DatePickerType>;\n locale: string;\n format: string;\n labelSeparator: string;\n}\n\ntype DateFormatter = (input: DateFormatterInput) => string;\n\nfunction defaultDateFormatter({ type, date, locale, format, labelSeparator }: DateFormatterInput) {\n const formatDate = (value: Date) => dayjs(value).locale(locale).format(format);\n\n if (type === 'default') {\n return date === null ? '' : formatDate(date as Date);\n }\n\n if (type === 'range' && Array.isArray(date)) {\n if (date[0] && date[1]) {\n return `${formatDate(date[0])} ${labelSeparator} ${formatDate(date[1])}`;\n }\n\n if (date[0]) {\n return `${formatDate(date[0])} ${labelSeparator} `;\n }\n\n return '';\n }\n\n return '';\n}\n\ninterface GetFormattedDateInput extends DateFormatterInput {\n formatter?: DateFormatter;\n}\n\nfunction getFormattedDate({ formatter, ...others }: GetFormattedDateInput) {\n return (formatter || defaultDateFormatter)(others);\n}\n\nconst rangeFormattedValue = (startValue: string, endValue: string) => {\n // Both values exist\n if (startValue && endValue) {\n if (startValue === endValue) {\n return startValue; // Same date, show single value\n }\n return `${startValue} → ${endValue}`; // Different dates, show range\n }\n\n // Only start value exists\n if (startValue) {\n return `${startValue} → `;\n }\n\n // Only end value exists\n if (endValue) {\n return ` → ${endValue}`;\n }\n\n // No values\n return '';\n};\n\nconst rangeInputPlaceHolder = (placeholder: string | undefined, format: string) => {\n if (placeholder) {\n return `${placeholder} → ${placeholder}`;\n }\n return `${format} → ${format}`;\n};\n\nconst finalInputFormat = (startValue: string, endValue: string, format: string | undefined) => {\n // For case: when start and end are the same, return the format\n if (startValue === endValue && (startValue || endValue)) {\n return format;\n }\n return `${format} → ${format}`;\n};\n\n/**\n * Converts date format string to TextInput pattern for masking.\n * TextInput format only recognizes # as input placeholder, so we replace\n * date characters (Y,M,D) with # while preserving delimiters.\n *\n * @example \"DD/MM/YYYY\" → \"##/##/####\"\n * @example \"MMMM\" → \"################\" (longest month: \"September\")\n * @example \"MMM\" → \"###\"\n */\nconst getTextInputFormat = (formatStr?: string, isRangeInput?: boolean): string => {\n if (!formatStr) {\n return isRangeInput ? '##/##/#### → ##/##/####' : '##/##/####';\n } else if (formatStr === 'MMMM') {\n return formatStr.replace(/MMMM/g, '#########');\n }\n return formatStr.replace(/[YMD]/g, '#');\n};\n\n/**\n * Validates date string using DayJS strict parsing and business rules\n *\n * @param dateStr - The date string to validate in DD/MM/YYYY format\n * @returns Object with validation result, error message if invalid, and parsed Date if valid\n *\n * @example\n * // Valid date\n * validateDateComponents(\"25/12/2024\")\n * // → { isValid: true, parsedDate: Date(2024, 11, 25) }\n *\n * @example\n * // Invalid date (non-existent)\n * validateDateComponents(\"31/02/2024\")\n * // → { isValid: false, error: \"Invalid date\" }\n *\n * @example\n * // Invalid year range\n * validateDateComponents(\"25/12/999\")\n * // → { isValid: false, error: \"Invalid year\" }\n *\n * @example\n * // Empty input\n * validateDateComponents(\"\")\n * // → { isValid: true }\n */\nconst validateDateComponents = (\n dateStr: string,\n): {\n isValid: boolean;\n error?: string;\n parsedDate?: Date;\n} => {\n // Empty strings are considered valid (user hasn't started typing)\n if (!dateStr?.trim()) {\n return { isValid: true };\n }\n\n // Use DayJS strict parsing to validate DD/MM/YYYY format and date existence\n const parsed = dayjs(dateStr, 'DD/MM/YYYY', true);\n\n // DayJS strict mode catches invalid days/months and non-existent dates (e.g., Feb 30th)\n if (!parsed.isValid()) {\n return { isValid: false, error: 'Invalid date' };\n }\n\n // Business rule: restrict year range to reasonable values for most applications\n const year = parsed.year();\n if (year < 1000 || year > 3000) {\n return { isValid: false, error: 'Invalid year' };\n }\n\n // Return both validation result AND parsed date to avoid double parsing\n return { isValid: true, parsedDate: parsed.toDate() };\n};\n\n/**\n * Detects and parses special single date formats (MMM, MMMM, YYYY)\n * These formats preserve current date/month/year and only change the specified component\n *\n * @param inputValue - The input string to parse\n * @param format - The expected format ('MMM', 'MMMM', or 'YYYY')\n * @returns Object with special format detection, parsed date, and validation result\n *\n * @example\n * // Year format - preserves current month/day, changes year\n * parseSpecialSingleFormat(\"2024\", \"YYYY\")\n * // → { isSpecialFormat: true, parsedDate: Date(2024, currentMonth, currentDay), shouldBlock: false }\n *\n * @example\n * // Short month format - preserves current day/year, changes month\n * parseSpecialSingleFormat(\"Aug\", \"MMM\")\n * // → { isSpecialFormat: true, parsedDate: Date(currentYear, 7, currentDay), shouldBlock: false }\n *\n * @example\n * // Full month format - preserves current day/year, changes month\n * parseSpecialSingleFormat(\"August\", \"MMMM\")\n * // → { isSpecialFormat: true, parsedDate: Date(currentYear, 7, currentDay), shouldBlock: false }\n *\n * @example\n * // Invalid year\n * parseSpecialSingleFormat(\"999\", \"YYYY\")\n * // → { isSpecialFormat: true, shouldBlock: true }\n *\n * @example\n * // Not a special format\n * parseSpecialSingleFormat(\"25/12/2024\", \"DD/MM/YYYY\")\n * // → { isSpecialFormat: false, shouldBlock: false }\n */\nconst parseSpecialSingleFormat = (\n inputValue: string,\n format?: string,\n): { isSpecialFormat: boolean; parsedDate?: Date; shouldBlock: boolean } => {\n if (!format) return { isSpecialFormat: false, shouldBlock: false };\n\n const trimmedInput = inputValue.trim();\n const today = new Date();\n\n // Handle year-only format (YYYY) - keep current month and day, change year\n if (format === 'YYYY' && /^\\d{4}$/.test(trimmedInput)) {\n const year = parseInt(trimmedInput, 10);\n if (year >= 1000 && year <= 3000) {\n return {\n isSpecialFormat: true,\n parsedDate: new Date(year, today.getMonth(), today.getDate()),\n shouldBlock: false,\n };\n } else {\n return {\n isSpecialFormat: true,\n shouldBlock: true,\n };\n }\n }\n\n // Handle month formats (MMM, MMMM) - keep current day and year, change month\n if ((format === 'MMM' || format === 'MMMM') && trimmedInput.length >= 3) {\n // Using DayJS to parse month names (handles both short \"Aug\" and full \"August\")\n const monthDate = dayjs(trimmedInput, format === 'MMM' ? 'MMM' : 'MMMM', true);\n\n if (!monthDate.isValid()) {\n return {\n isSpecialFormat: true,\n shouldBlock: true,\n };\n }\n return {\n isSpecialFormat: true,\n parsedDate: new Date(today.getFullYear(), monthDate.month(), today.getDate()),\n shouldBlock: false,\n };\n }\n\n return { isSpecialFormat: false, shouldBlock: false };\n};\n\n/**\n * Validates and parses date input with comprehensive error handling and constraint checking\n * Combines validation + parsing to avoid redundant operations and supports both single dates and ranges\n *\n * @param inputValue - The input string to validate and parse\n * @param isRange - Whether this is a range input (true) or single date (false)\n * @param format - The expected date format ('DD/MM/YYYY', 'MMM', 'MMMM', 'YYYY')\n * @param options - Additional validation constraints\n * @param options.excludeDate - Function to exclude specific dates (single dates only)\n * @param options.minDate - Minimum allowed date\n * @param options.maxDate - Maximum allowed date\n * @returns Object with shouldBlock flag, optional error message, and parsed values if valid\n *\n * @example\n * // Valid single date\n * validateAndParseDateInput(\"25/12/2024\", false, \"DD/MM/YYYY\")\n * // → { shouldBlock: false, parsedValue: Date(2024, 11, 25) }\n *\n * @example\n * // Valid range input\n * validateAndParseDateInput(\"25/12/2024 → 31/12/2024\", true, \"DD/MM/YYYY\")\n * // → { shouldBlock: false, parsedValue: [Date(2024, 11, 25), Date(2024, 11, 31)] }\n *\n * @example\n * // Invalid date with error\n * validateAndParseDateInput(\"31/02/2024\", false, \"DD/MM/YYYY\")\n * // → { shouldBlock: true, error: \"Invalid date\" }\n *\n * @example\n * // Date excluded by constraint\n * validateAndParseDateInput(\"25/12/2024\", false, \"DD/MM/YYYY\", {\n * excludeDate: (date) => date.getDay() === 0 // No Sundays\n * })\n * // → { shouldBlock: true, error: \"Date is not allowed\" }\n *\n * @example\n * // Special format - year only\n * validateAndParseDateInput(\"2024\", false, \"YYYY\")\n * // → { shouldBlock: false, parsedValue: Date(2024, currentMonth, currentDay) }\n *\n * @example\n * // Incomplete input - allow continued typing\n * validateAndParseDateInput(\"25/12\", false, \"DD/MM/YYYY\")\n * // → { shouldBlock: false } (no parsedValue, allows user to continue typing)\n */\nconst validateAndParseDateInput = (\n inputValue: string,\n isRange: boolean,\n format?: string,\n options?: {\n excludeDate?: (date: Date) => boolean;\n minDate?: Date;\n maxDate?: Date;\n },\n): {\n shouldBlock: boolean;\n error?: string;\n parsedValue?: Date | null | [Date | null, Date | null];\n} => {\n // Allow empty input - user hasn't started typing yet\n if (!inputValue?.trim()) return { shouldBlock: false };\n\n // Handle special single date formats (MMM, MMMM, YYYY) - skip normal validation\n if (!isRange && format) {\n const specialParse = parseSpecialSingleFormat(inputValue, format);\n if (specialParse.isSpecialFormat && !specialParse.shouldBlock) {\n return { shouldBlock: false, parsedValue: specialParse.parsedDate || null };\n } else if (specialParse.shouldBlock) {\n return { shouldBlock: true, error: 'Invalid date' };\n }\n }\n\n if (isRange) {\n // Split range input on arrow separator (e.g., \"25/12/2024 → 31/12/2024\")\n const parts = inputValue.split(/\\s*→\\s*/);\n\n // Block incomplete input to prevent premature validation (e.g., \"25/12/202\" is being typed)\n if (\n (parts[0]?.trim() && parts[0].trim().length < 10) ||\n (parts[1]?.trim() && parts[1].trim().length < 10)\n ) {\n return { shouldBlock: true, error: 'Invalid date' };\n }\n\n let startDate: Date | null = null;\n let endDate: Date | null = null;\n\n // Validate and parse start date if it looks complete (10+ chars = DD/MM/YYYY)\n if (parts[0]?.trim() && parts[0].trim().length >= 10) {\n const startValidation = validateDateComponents(parts[0].trim());\n if (!startValidation.isValid) {\n return { shouldBlock: true, error: `Start date: ${startValidation.error}` };\n }\n // Use the already-parsed date from validation to avoid double parsing\n startDate = startValidation.parsedDate || null;\n }\n\n // Validate and parse end date if it looks complete\n if (parts[1]?.trim() && parts[1].trim().length >= 10) {\n const endValidation = validateDateComponents(parts[1].trim());\n if (!endValidation.isValid) {\n return { shouldBlock: true, error: `End date: ${endValidation.error}` };\n }\n // Use the already-parsed date from validation to avoid double parsing\n endDate = endValidation.parsedDate || null;\n }\n\n // Business logic: start date cannot be after end date\n if (startDate && endDate && startDate > endDate) {\n return { shouldBlock: true, error: 'Start date cannot be greater than end date' };\n }\n\n // Additional validation for date range constraints\n if (options) {\n if (startDate && options.minDate && dayjs(startDate).isBefore(dayjs(options.minDate))) {\n return { shouldBlock: true, error: 'Start date is not allowed' };\n }\n if (startDate && options.maxDate && dayjs(startDate).isAfter(dayjs(options.maxDate))) {\n return { shouldBlock: true, error: 'Start date is not allowed' };\n }\n if (endDate && options.minDate && dayjs(endDate).isBefore(dayjs(options.minDate))) {\n return { shouldBlock: true, error: 'End date is not allowed' };\n }\n if (endDate && options.maxDate && dayjs(endDate).isAfter(dayjs(options.maxDate))) {\n return { shouldBlock: true, error: 'End date is not allowed' };\n }\n }\n\n // Return parsed dates ready for setControlledValue\n return { shouldBlock: false, parsedValue: [startDate, endDate] };\n } else if (inputValue.length >= 10) {\n // Single date: validate and parse if it looks complete\n const validation = validateDateComponents(inputValue);\n if (!validation.isValid) {\n return { shouldBlock: true, error: validation.error };\n }\n\n const parsedDate = validation.parsedDate;\n\n // Additional validation for single date constraints\n if (options && parsedDate) {\n if (options.excludeDate?.(parsedDate)) {\n return { shouldBlock: true, error: 'Date is not allowed' };\n }\n if (options.minDate && dayjs(parsedDate).isBefore(dayjs(options.minDate))) {\n return { shouldBlock: true, error: 'Date is not allowed' };\n }\n if (options.maxDate && dayjs(parsedDate).isAfter(dayjs(options.maxDate))) {\n return { shouldBlock: true, error: 'Date is not allowed' };\n }\n }\n\n // Return parsed date ready for setControlledValue\n return { shouldBlock: false, parsedValue: parsedDate || null };\n }\n\n // Input is incomplete but valid so far - allow continued typing\n return { shouldBlock: false };\n};\n\n/**\n * Removes date delimiters (slashes) from formatted date strings for internal processing\n * Used to convert external formatted values to internal state for easier validation and length checks\n *\n * @param str - The date string with delimiters\n * @returns String without delimiters, or empty string if input is null/undefined\n *\n * @example\n * // Remove slashes from single date\n * stripDelimiters(\"25/12/2024\")\n * // → \"25122024\"\n *\n * @example\n * // Handle null/undefined input\n * stripDelimiters(undefined)\n * // → \"\"\n *\n * @example\n * // Used for internal state conversion\n * stripDelimiters(\"31/12/2024\")\n * // → \"31122024\" (easier for length checks: inputValue.length === 8)\n */\nconst stripDelimiters = (str?: string): string => str?.replace(/\\//g, '') ?? '';\n\nexport {\n convertIntlToDayjsLocale,\n loadScript,\n getFormattedDate,\n rangeFormattedValue,\n rangeInputPlaceHolder,\n finalInputFormat,\n getTextInputFormat,\n validateDateComponents,\n validateAndParseDateInput,\n stripDelimiters,\n};\n"],"names":["dayjs","extend","customParseFormat","dayjs_locales","patchLocale","locale","includes","convertIntlToDayjsLocale","lang","toLowerCase","split","concat","isScriptLoaded","src","Boolean","document","querySelector","loadScript","callback","localeScript","createElement","async","onload","head","appendChild","defaultDateFormatter","_ref","type","date","format","labelSeparator","formatDate","value","Array","isArray","getFormattedDate","_ref2","formatter","others","_objectWithoutProperties","_excluded","rangeFormattedValue","startValue","endValue","rangeInputPlaceHolder","placeholder","finalInputFormat","getTextInputFormat","formatStr","isRangeInput","replace","validateDateComponents","dateStr","trim","isValid","parsed","error","year","parsedDate","toDate","parseSpecialSingleFormat","inputValue","isSpecialFormat","shouldBlock","trimmedInput","today","Date","test","parseInt","getMonth","getDate","length","monthDate","getFullYear","month","validateAndParseDateInput","isRange","options","specialParse","parsedValue","_parts$","_parts$2","_parts$3","_parts$4","parts","startDate","endDate","startValidation","endValidation","minDate","isBefore","maxDate","isAfter","validation","_options$excludeDate","excludeDate","call","stripDelimiters","str","_str$replace"],"mappings":";;;;;AAMAA,KAAK,CAACC,MAAM,CAACC,iBAAiB,CAAC,CAAA;AAE/B,IAAMC,aAAa,GAAG,CACpB,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,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AC6E,OAAO,CAACY,OAAO,CAAC,CAAC,EAAE;QACzE,OAAO;AAAE1B,UAAAA,WAAW,EAAE,IAAI;AAAEP,UAAAA,KAAK,EAAE,qBAAA;SAAuB,CAAA;AAC5D,OAAA;AACA,MAAA,IAAIqB,OAAO,CAACc,OAAO,IAAI3F,KAAK,CAAC0D,UAAU,CAAC,CAACkC,OAAO,CAAC5F,KAAK,CAAC6E,OAAO,CAACc,OAAO,CAAC,CAAC,EAAE;QACxE,OAAO;AAAE5B,UAAAA,WAAW,EAAE,IAAI;AAAEP,UAAAA,KAAK,EAAE,qBAAA;SAAuB,CAAA;AAC5D,OAAA;AACF,KAAA;;AAEA;IACA,OAAO;AAAEO,MAAAA,WAAW,EAAE,KAAK;MAAEgB,WAAW,EAAErB,UAAU,IAAI,IAAA;KAAM,CAAA;AAChE,GAAA;;AAEA;EACA,OAAO;AAAEK,IAAAA,WAAW,EAAE,KAAA;GAAO,CAAA;AAC/B,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMkC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAY,EAAA;AAAA,EAAA,IAAAC,YAAA,CAAA;AAAA,EAAA,OAAA,CAAAA,YAAA,GAAaD,GAAG,aAAHA,GAAG,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAHA,GAAG,CAAEhD,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,MAAA,IAAA,IAAAiD,YAAA,KAAAA,KAAAA,CAAAA,GAAAA,YAAA,GAAI,EAAE,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import '../_Svg/index.js';
|
|
4
|
+
import '../useIconProps/index.js';
|
|
5
|
+
import '../../../utils/assignWithoutSideEffects/index.js';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
import useIconProps from '../useIconProps/useIconProps.js';
|
|
8
|
+
import Svg from '../_Svg/Svg/Svg.web.js';
|
|
9
|
+
import Path from '../_Svg/Path/Path.web.js';
|
|
10
|
+
import { assignWithoutSideEffects } from '../../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js';
|
|
11
|
+
|
|
12
|
+
var _excluded = ["size", "color"];
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
var _AcceptPaymentsFilledIcon = function _AcceptPaymentsFilledIcon(_ref) {
|
|
16
|
+
var size = _ref.size,
|
|
17
|
+
color = _ref.color,
|
|
18
|
+
styledProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var _useIconProps = useIconProps({
|
|
20
|
+
size: size,
|
|
21
|
+
color: color
|
|
22
|
+
}),
|
|
23
|
+
height = _useIconProps.height,
|
|
24
|
+
width = _useIconProps.width,
|
|
25
|
+
iconColor = _useIconProps.iconColor;
|
|
26
|
+
return /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({}, styledProps), {}, {
|
|
27
|
+
width: width,
|
|
28
|
+
height: height,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
children: [/*#__PURE__*/jsx(Path, {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M19.8535 11.2703C20.5771 11.9166 21.663 11.9166 22.3866 11.2703H23.0401V18.0811C23.0401 19.6932 21.7506 21 20.1601 21H2.88001C1.28942 21 0 19.6932 0 18.0811V11.2703H19.8535ZM4.32001 15.6486C3.78982 15.6486 3.36001 16.0843 3.36001 16.6216C3.36001 17.159 3.78982 17.5946 4.32001 17.5946H6.24002C6.77021 17.5946 7.20002 17.159 7.20002 16.6216C7.20002 16.0843 6.77021 15.6486 6.24002 15.6486H4.32001ZM8.64003 15.6486C8.10983 15.6486 7.68002 16.0843 7.68002 16.6216C7.68002 17.159 8.10983 17.5946 8.64003 17.5946H12.48C13.0102 17.5946 13.44 17.159 13.44 16.6216C13.44 16.0843 13.0102 15.6486 12.48 15.6486H8.64003Z",
|
|
35
|
+
fill: iconColor
|
|
36
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
37
|
+
d: "M21.1201 3C21.6503 3 22.0801 3.43561 22.0801 3.97297V7.46199L22.3613 7.17694C22.7362 6.79697 23.3439 6.79697 23.7188 7.17694C24.0937 7.55691 24.0937 8.17282 23.7188 8.55279L21.7988 10.4987C21.4239 10.8787 20.8162 10.8787 20.4413 10.4987L18.5213 8.55279C18.1464 8.17282 18.1464 7.55691 18.5213 7.17694C18.8962 6.79697 19.5039 6.79697 19.8788 7.17694L20.1601 7.46199V3.97297C20.1601 3.43562 20.5899 3 21.1201 3Z",
|
|
38
|
+
fill: iconColor
|
|
39
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
40
|
+
d: "M19.2629 3.48649C19.2233 3.64215 19.2001 3.80478 19.2001 3.97297V5.91892C18.7087 5.91892 18.2175 6.10905 17.8426 6.48902C17.0927 7.24896 17.0927 8.48077 17.8426 9.24071L17.9251 9.32432H0V6.40541C0 4.79333 1.28942 3.48649 2.88001 3.48649H19.2629Z",
|
|
41
|
+
fill: iconColor
|
|
42
|
+
})]
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
var AcceptPaymentsFilledIcon = /*#__PURE__*/assignWithoutSideEffects(_AcceptPaymentsFilledIcon, {
|
|
46
|
+
componentId: 'AcceptPaymentsFilledIcon'
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { AcceptPaymentsFilledIcon as default };
|
|
50
|
+
//# sourceMappingURL=AcceptPaymentsFilledIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptPaymentsFilledIcon.js","sources":["../../../../../../../src/components/Icons/AcceptPaymentsFilledIcon/AcceptPaymentsFilledIcon.tsx"],"sourcesContent":["import { Svg, Path } from '../_Svg';\nimport type { IconComponent } from '..';\nimport useIconProps from '../useIconProps';\nimport { assignWithoutSideEffects } from '~utils/assignWithoutSideEffects';\n\nconst _AcceptPaymentsFilledIcon: IconComponent = ({ size, color, ...styledProps }) => {\n const { height, width, iconColor } = useIconProps({ size, color });\n\n return (\n <Svg {...styledProps} width={width} height={height} viewBox=\"0 0 24 24\" fill=\"none\">\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.8535 11.2703C20.5771 11.9166 21.663 11.9166 22.3866 11.2703H23.0401V18.0811C23.0401 19.6932 21.7506 21 20.1601 21H2.88001C1.28942 21 0 19.6932 0 18.0811V11.2703H19.8535ZM4.32001 15.6486C3.78982 15.6486 3.36001 16.0843 3.36001 16.6216C3.36001 17.159 3.78982 17.5946 4.32001 17.5946H6.24002C6.77021 17.5946 7.20002 17.159 7.20002 16.6216C7.20002 16.0843 6.77021 15.6486 6.24002 15.6486H4.32001ZM8.64003 15.6486C8.10983 15.6486 7.68002 16.0843 7.68002 16.6216C7.68002 17.159 8.10983 17.5946 8.64003 17.5946H12.48C13.0102 17.5946 13.44 17.159 13.44 16.6216C13.44 16.0843 13.0102 15.6486 12.48 15.6486H8.64003Z\"\n fill={iconColor}\n />\n <Path\n d=\"M21.1201 3C21.6503 3 22.0801 3.43561 22.0801 3.97297V7.46199L22.3613 7.17694C22.7362 6.79697 23.3439 6.79697 23.7188 7.17694C24.0937 7.55691 24.0937 8.17282 23.7188 8.55279L21.7988 10.4987C21.4239 10.8787 20.8162 10.8787 20.4413 10.4987L18.5213 8.55279C18.1464 8.17282 18.1464 7.55691 18.5213 7.17694C18.8962 6.79697 19.5039 6.79697 19.8788 7.17694L20.1601 7.46199V3.97297C20.1601 3.43562 20.5899 3 21.1201 3Z\"\n fill={iconColor}\n />\n <Path\n d=\"M19.2629 3.48649C19.2233 3.64215 19.2001 3.80478 19.2001 3.97297V5.91892C18.7087 5.91892 18.2175 6.10905 17.8426 6.48902C17.0927 7.24896 17.0927 8.48077 17.8426 9.24071L17.9251 9.32432H0V6.40541C0 4.79333 1.28942 3.48649 2.88001 3.48649H19.2629Z\"\n fill={iconColor}\n />\n </Svg>\n );\n};\n\nconst AcceptPaymentsFilledIcon = assignWithoutSideEffects(_AcceptPaymentsFilledIcon, {\n componentId: 'AcceptPaymentsFilledIcon',\n});\n\nexport default AcceptPaymentsFilledIcon;\n"],"names":["_AcceptPaymentsFilledIcon","_ref","size","color","styledProps","_objectWithoutProperties","_excluded","_useIconProps","useIconProps","height","width","iconColor","_jsxs","Svg","_objectSpread","viewBox","fill","children","_jsx","Path","fillRule","clipRule","d","AcceptPaymentsFilledIcon","assignWithoutSideEffects","componentId"],"mappings":";;;;;;;;;;;;;;AAKA,IAAMA,yBAAwC,GAAG,SAA3CA,yBAAwCA,CAAAC,IAAA,EAAwC;AAAA,EAAA,IAAlCC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;AAAKC,IAAAA,WAAW,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EAC7E,IAAAC,aAAA,GAAqCC,YAAY,CAAC;AAAEN,MAAAA,IAAI,EAAJA,IAAI;AAAEC,MAAAA,KAAK,EAALA,KAA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