mainstack-design-system 0.7.44 → 1.0.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/README.md +702 -15
- package/dist/FormCountryOptionsList-BTIDLbxV.cjs +8 -0
- package/dist/FormCountryOptionsList-BWbi-SZ_.js +1790 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Accordion/AccordionContent.js +1 -0
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionItem.js +1 -0
- package/dist/components/Accordion/AccordionRoot.js +1 -0
- package/dist/components/Accordion/AccordionSubtitle.js +1 -0
- package/dist/components/Accordion/AccordionTitle.js +1 -0
- package/dist/components/Accordion/AccordionTrigger.js +1 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Avatar/Avatar.js +2 -0
- package/dist/components/Avatar/avatarVariants.js +1 -0
- package/dist/components/Avatar/getAvatarSize.js +1 -0
- package/dist/components/Avatar/index.js +1 -0
- package/dist/components/Banner/BannerAction.js +1 -0
- package/dist/components/Banner/BannerContent.js +1 -0
- package/dist/components/Banner/BannerHeader.js +1 -0
- package/dist/components/Banner/BannerIcon.js +1 -0
- package/dist/components/Banner/BannerRoot.js +1 -0
- package/dist/components/Banner/BannerText.js +1 -0
- package/dist/components/Banner/bannerVariants.js +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/Button/Button.js +1 -0
- package/dist/components/Button/ButtonIcon.js +1 -0
- package/dist/components/Button/ButtonLabel.js +1 -0
- package/dist/components/Button/ButtonRoot.js +1 -0
- package/dist/components/Button/buttonVariants.js +87 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Checkbox/CheckboxIndicator.js +2 -0
- package/dist/components/Checkbox/CheckboxLabel.js +1 -0
- package/dist/components/Checkbox/CheckboxRoot.js +1 -0
- package/dist/components/Checkbox/CheckboxSubtext.js +1 -0
- package/dist/components/Checkbox/CheckboxTitle.js +1 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Chip/Chip.js +1 -0
- package/dist/components/Chip/ChipLabel.js +1 -0
- package/dist/components/Chip/ChipRoot.js +1 -0
- package/dist/components/Chip/ChipSlot.js +1 -0
- package/dist/components/Chip/chipVariants.js +1 -0
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/Form/FormCharacterCounter.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptions.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsList.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsSearchField.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountrySelect.js +1 -0
- package/dist/components/Form/FormCountrySelect/constant.js +1 -0
- package/dist/components/Form/FormCountrySelect/getCountryFlagComp.js +1 -0
- package/dist/components/Form/FormItem.js +1 -0
- package/dist/components/Form/FormLabel.js +1 -0
- package/dist/components/Form/FormStatus/FormErrorStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormHintStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusRoot.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusText.js +1 -0
- package/dist/components/Form/FormStatus/FormSuccessStatus.js +1 -0
- package/dist/components/Form/index.js +1 -0
- package/dist/components/Icons/AccountBalanceIcon.js +1 -0
- package/dist/components/Icons/AccountBalanceWalletIcon.js +1 -0
- package/dist/components/Icons/AccountCircleIcon.js +1 -0
- package/dist/components/Icons/AdGroupIcon.js +1 -0
- package/dist/components/Icons/AdaptiveAudioMicIcon.js +1 -0
- package/dist/components/Icons/AddAPhotoIcon.js +1 -0
- package/dist/components/Icons/AddBusinessIcon.js +1 -0
- package/dist/components/Icons/AddCircleIcon.js +1 -0
- package/dist/components/Icons/AddIcon.js +1 -0
- package/dist/components/Icons/AddLinkIcon.js +1 -0
- package/dist/components/Icons/AddPhotoAlternateIcon.js +1 -0
- package/dist/components/Icons/AddShoppingCartIcon.js +1 -0
- package/dist/components/Icons/AdminPanelSettingsIcon.js +1 -0
- package/dist/components/Icons/AdsClickIcon.js +1 -0
- package/dist/components/Icons/AlarmIcon.js +1 -0
- package/dist/components/Icons/AllInboxIcon.js +1 -0
- package/dist/components/Icons/AnimationIcon.js +1 -0
- package/dist/components/Icons/ApartmentIcon.js +1 -0
- package/dist/components/Icons/AppsIcon.js +1 -0
- package/dist/components/Icons/ArchiveIcon.js +1 -0
- package/dist/components/Icons/ArrowBackIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleDownIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleUpIcon.js +1 -0
- package/dist/components/Icons/ArrowDownwardIcon.js +1 -0
- package/dist/components/Icons/ArrowDropDownIcon.js +1 -0
- package/dist/components/Icons/ArrowDropUpIcon.js +1 -0
- package/dist/components/Icons/ArrowForwardIcon.js +1 -0
- package/dist/components/Icons/ArrowUpwardIcon.js +1 -0
- package/dist/components/Icons/ArtTrackIcon.js +1 -0
- package/dist/components/Icons/ArticleIcon.js +1 -0
- package/dist/components/Icons/AttachMoneyIcon.js +1 -0
- package/dist/components/Icons/AttachmentIcon.js +1 -0
- package/dist/components/Icons/AudioFileIcon.js +1 -0
- package/dist/components/Icons/AutoAwesomeMosaic.js +1 -0
- package/dist/components/Icons/AvatarIcon.js +1 -0
- package/dist/components/Icons/AwardStarIcon.js +1 -0
- package/dist/components/Icons/BarChartIcon.js +1 -0
- package/dist/components/Icons/BarcodeScannerIcon.js +1 -0
- package/dist/components/Icons/BlockIcon.js +1 -0
- package/dist/components/Icons/BoltIcon.js +1 -0
- package/dist/components/Icons/Book5Icon.js +1 -0
- package/dist/components/Icons/BookOnlineIcon.js +1 -0
- package/dist/components/Icons/BugReportIcon.js +1 -0
- package/dist/components/Icons/BusinessCenterIcon.js +1 -0
- package/dist/components/Icons/CalendarAddOnIcon.js +1 -0
- package/dist/components/Icons/CalendarClockIcon.js +1 -0
- package/dist/components/Icons/CalendarMonthIcon.js +1 -0
- package/dist/components/Icons/CalendarTodayIcon.js +1 -0
- package/dist/components/Icons/CallIcon.js +1 -0
- package/dist/components/Icons/CallMadeIcon.js +1 -0
- package/dist/components/Icons/CallMissedIcon.js +1 -0
- package/dist/components/Icons/CallMissedOutgoingIcon.js +1 -0
- package/dist/components/Icons/CallReceivedIcon.js +1 -0
- package/dist/components/Icons/CampaignIcon.js +1 -0
- package/dist/components/Icons/CancelIcon.js +1 -0
- package/dist/components/Icons/CancelScheduleSendIcon.js +1 -0
- package/dist/components/Icons/CaptivePortalIcon.js +1 -0
- package/dist/components/Icons/CardLayoutIcon.js +1 -0
- package/dist/components/Icons/CasesIcon.js +1 -0
- package/dist/components/Icons/CategoryIcon.js +1 -0
- package/dist/components/Icons/ChairIcon.js +1 -0
- package/dist/components/Icons/ChangeCircleIcon.js +1 -0
- package/dist/components/Icons/ChatBubbleIcon.js +1 -0
- package/dist/components/Icons/ChatIcon.js +1 -0
- package/dist/components/Icons/CheckBoxIcon.js +1 -0
- package/dist/components/Icons/CheckBoxOutlineBlankIcon.js +1 -0
- package/dist/components/Icons/CheckCircleIcon.js +1 -0
- package/dist/components/Icons/CheckIcon.js +1 -0
- package/dist/components/Icons/ChevronLeftIcon.js +1 -0
- package/dist/components/Icons/ChevronRightIcon.js +1 -0
- package/dist/components/Icons/ClinicalNoteIcon.js +1 -0
- package/dist/components/Icons/CloseIcon.js +1 -0
- package/dist/components/Icons/CloudUploadIcon.js +1 -0
- package/dist/components/Icons/CodeIcon.js +1 -0
- package/dist/components/Icons/CoffeeIcon.js +1 -0
- package/dist/components/Icons/CollectionsBookmarkIcon.js +1 -0
- package/dist/components/Icons/ColorPickerIcon.js +1 -0
- package/dist/components/Icons/CompareArrowsIcon.js +1 -0
- package/dist/components/Icons/ConfirmationNumberIcon.js +1 -0
- package/dist/components/Icons/ContactMailIcon.js +1 -0
- package/dist/components/Icons/ContactPageIcon.js +1 -0
- package/dist/components/Icons/ContactPhoneIcon.js +1 -0
- package/dist/components/Icons/ContactSupportIcon.js +1 -0
- package/dist/components/Icons/ContactsIcon.js +1 -0
- package/dist/components/Icons/ContentCopyIcon.js +1 -0
- package/dist/components/Icons/CreditCardGearIcon.js +1 -0
- package/dist/components/Icons/CreditCardIcon.js +1 -0
- package/dist/components/Icons/CsvIcon.js +1 -0
- package/dist/components/Icons/CurrencyExchangeIcon.js +1 -0
- package/dist/components/Icons/DNSIcon.js +1 -0
- package/dist/components/Icons/DangerousIcon.js +1 -0
- package/dist/components/Icons/DarkModeIcon.js +1 -0
- package/dist/components/Icons/DashboardIcon.js +1 -0
- package/dist/components/Icons/DataCheckIcon.js +1 -0
- package/dist/components/Icons/DataObjectIcon.js +1 -0
- package/dist/components/Icons/DatabaseIcon.js +1 -0
- package/dist/components/Icons/DehazeIcon.js +1 -0
- package/dist/components/Icons/DeployedCodeAccountIcon.js +1 -0
- package/dist/components/Icons/DescriptionIcon.js +1 -0
- package/dist/components/Icons/DesktopMacIcon.js +1 -0
- package/dist/components/Icons/DevicesIcon.js +1 -0
- package/dist/components/Icons/DiamondIcon.js +1 -0
- package/dist/components/Icons/DirectionsWalkIcon.js +1 -0
- package/dist/components/Icons/Diversity1Icon.js +1 -0
- package/dist/components/Icons/Diversity2Icon.js +1 -0
- package/dist/components/Icons/Diversity3Icon.js +1 -0
- package/dist/components/Icons/DoNotDisturbOnIcon.js +1 -0
- package/dist/components/Icons/DomainAddIcon.js +1 -0
- package/dist/components/Icons/DomainIcon.js +1 -0
- package/dist/components/Icons/DomainVerificationIcon.js +1 -0
- package/dist/components/Icons/DownloadIcon.js +1 -0
- package/dist/components/Icons/DraftsIcon.js +1 -0
- package/dist/components/Icons/DragHandleIcon.js +1 -0
- package/dist/components/Icons/DragIndicatorIcon.js +1 -0
- package/dist/components/Icons/DuoIcon.js +1 -0
- package/dist/components/Icons/EarlyOnIcon.js +1 -0
- package/dist/components/Icons/EditIcon.js +1 -0
- package/dist/components/Icons/EmojiFoodBeverageIcon.js +1 -0
- package/dist/components/Icons/EmojiIcon.js +1 -0
- package/dist/components/Icons/EncryptedIcon.js +1 -0
- package/dist/components/Icons/EnterpriseIcon.js +1 -0
- package/dist/components/Icons/EqualIcon.js +1 -0
- package/dist/components/Icons/ErrorIcon.js +1 -0
- package/dist/components/Icons/EventBusyIcon.js +1 -0
- package/dist/components/Icons/EventIcon.js +1 -0
- package/dist/components/Icons/ExpandAllIcon.js +1 -0
- package/dist/components/Icons/FastForwardIcon.js +1 -0
- package/dist/components/Icons/FastRewindIcon.js +1 -0
- package/dist/components/Icons/FavoriteIcon.js +1 -0
- package/dist/components/Icons/FeaturedSeasonalAndGiftsIcon.js +1 -0
- package/dist/components/Icons/FeedIcon.js +1 -0
- package/dist/components/Icons/FilePresentIcon.js +1 -0
- package/dist/components/Icons/FilterListIcon.js +1 -0
- package/dist/components/Icons/FingerPrintIcon.js +1 -0
- package/dist/components/Icons/FlagIcon.js +1 -0
- package/dist/components/Icons/FolderCopyIcon.js +1 -0
- package/dist/components/Icons/FolderIcon.js +1 -0
- package/dist/components/Icons/FolderZipIcon.js +1 -0
- package/dist/components/Icons/FootPrintIcon.js +1 -0
- package/dist/components/Icons/FormatAlignCenterIcon.js +1 -0
- package/dist/components/Icons/FormatAlignJustifyIcon.js +1 -0
- package/dist/components/Icons/FormatAlignLeftIcon.js +1 -0
- package/dist/components/Icons/FormatAlignRightIcon.js +1 -0
- package/dist/components/Icons/FormatBoldIcon.js +1 -0
- package/dist/components/Icons/FormatItalicIcon.js +1 -0
- package/dist/components/Icons/FormatListBulletedIcon.js +1 -0
- package/dist/components/Icons/FormatListNumberedIcon.js +1 -0
- package/dist/components/Icons/FormatSizeIcon.js +1 -0
- package/dist/components/Icons/FormatUnderlinedIcon.js +1 -0
- package/dist/components/Icons/ForumIcon.js +1 -0
- package/dist/components/Icons/ForwardToInboxIcon.js +1 -0
- package/dist/components/Icons/FullScreenIcon.js +1 -0
- package/dist/components/Icons/GalleryThumbnailIcon.js +1 -0
- package/dist/components/Icons/GppBadIcon.js +1 -0
- package/dist/components/Icons/GppMaybeIcon.js +1 -0
- package/dist/components/Icons/GridViewIcon.js +1 -0
- package/dist/components/Icons/GroupIcon.js +1 -0
- package/dist/components/Icons/GroupsTwoIcon.js +1 -0
- package/dist/components/Icons/HandShakeIcon.js +1 -0
- package/dist/components/Icons/HeadphonesIcon.js +1 -0
- package/dist/components/Icons/HelpIcon.js +1 -0
- package/dist/components/Icons/HomeIcon.js +1 -0
- package/dist/components/Icons/HomePinIcon.js +1 -0
- package/dist/components/Icons/HomeRepairServiceIcon.js +1 -0
- package/dist/components/Icons/HourGlassTopIcon.js +1 -0
- package/dist/components/Icons/HourglassEmptyIcon.js +1 -0
- package/dist/components/Icons/HubIcon.js +1 -0
- package/dist/components/Icons/IFrameIcon.js +1 -0
- package/dist/components/Icons/IconWrapper.js +1 -0
- package/dist/components/Icons/IdCardIcon.js +1 -0
- package/dist/components/Icons/IndeterminateCheckBoxIcon.js +1 -0
- package/dist/components/Icons/InfoIcon.js +1 -0
- package/dist/components/Icons/InsertChartIcon.js +1 -0
- package/dist/components/Icons/IntegrationInstructionsIcon.js +1 -0
- package/dist/components/Icons/Inventory2Icon.js +1 -0
- package/dist/components/Icons/IosShareIcon.js +1 -0
- package/dist/components/Icons/KeepIcon.js +1 -0
- package/dist/components/Icons/KeyIcon.js +1 -0
- package/dist/components/Icons/KeyOffIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowDownIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowUpIcon.js +1 -0
- package/dist/components/Icons/KeyboardBackSpaceIcon.js +1 -0
- package/dist/components/Icons/KeyboardDoubleArrowDownIcon.js +1 -0
- package/dist/components/Icons/LabProfileIcon.js +1 -0
- package/dist/components/Icons/LabelIcon.js +1 -0
- package/dist/components/Icons/LabelOffIcon.js +1 -0
- package/dist/components/Icons/LanguageIcon.js +1 -0
- package/dist/components/Icons/LeftPanelCloseIcon.js +1 -0
- package/dist/components/Icons/LeftPanelOpenIcon.js +1 -0
- package/dist/components/Icons/LibraryMusicIcon.js +1 -0
- package/dist/components/Icons/LinkIcon.js +1 -0
- package/dist/components/Icons/LinkOffIcon.js +1 -0
- package/dist/components/Icons/LocalActivityIcon.js +1 -0
- package/dist/components/Icons/LocalFloristIcon.js +1 -0
- package/dist/components/Icons/LocalLibraryIcon.js +1 -0
- package/dist/components/Icons/LocationOnIcon.js +1 -0
- package/dist/components/Icons/LockIcon.js +1 -0
- package/dist/components/Icons/LockOpenIcon.js +1 -0
- package/dist/components/Icons/LoginIcon.js +1 -0
- package/dist/components/Icons/LogoutIcon.js +1 -0
- package/dist/components/Icons/MailIcon.js +1 -0
- package/dist/components/Icons/ManageAccountsIcon.js +1 -0
- package/dist/components/Icons/MarkUnreadChatAltIcon.js +1 -0
- package/dist/components/Icons/MediaLinkIcon.js +1 -0
- package/dist/components/Icons/MenuOpenIcon.js +1 -0
- package/dist/components/Icons/MetabolismIcon.js +1 -0
- package/dist/components/Icons/MilitaryTechIcon.js +1 -0
- package/dist/components/Icons/MoneyBagIcon.js +1 -0
- package/dist/components/Icons/MonitorIcon.js +1 -0
- package/dist/components/Icons/MonitoringIcon.js +1 -0
- package/dist/components/Icons/MoreHorizIcon.js +1 -0
- package/dist/components/Icons/MoreVertIcon.js +1 -0
- package/dist/components/Icons/MotionPhotosPausedIcon.js +1 -0
- package/dist/components/Icons/NotificationsIcon.js +1 -0
- package/dist/components/Icons/OpenInNewIcon.js +1 -0
- package/dist/components/Icons/Package2Icon.js +1 -0
- package/dist/components/Icons/PageviewIcon.js +1 -0
- package/dist/components/Icons/PaidIcon.js +1 -0
- package/dist/components/Icons/PaletteIcon.js +1 -0
- package/dist/components/Icons/PatientListIcon.js +1 -0
- package/dist/components/Icons/PauseIcon.js +1 -0
- package/dist/components/Icons/PaymentsIcon.js +1 -0
- package/dist/components/Icons/PendingActionsIcon.js +1 -0
- package/dist/components/Icons/PercentIcon.js +1 -0
- package/dist/components/Icons/PermMediaIcon.js +1 -0
- package/dist/components/Icons/PersonAddIcon.js +1 -0
- package/dist/components/Icons/PersonBookIcon.js +1 -0
- package/dist/components/Icons/PersonIcon.js +1 -0
- package/dist/components/Icons/PhotoCameraIcon.js +1 -0
- package/dist/components/Icons/PhotoIcon.js +1 -0
- package/dist/components/Icons/PhotoLibraryIcon.js +1 -0
- package/dist/components/Icons/PictureAsPdfIcon.js +1 -0
- package/dist/components/Icons/PlayArrowIcon.js +1 -0
- package/dist/components/Icons/PlayCircleIcon.js +1 -0
- package/dist/components/Icons/PolicyIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsCircleIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsNewIcon.js +1 -0
- package/dist/components/Icons/PreviewIcon.js +1 -0
- package/dist/components/Icons/PriorityHighIcon.js +1 -0
- package/dist/components/Icons/PsychologyAltIcon.js +1 -0
- package/dist/components/Icons/PublicIcon.js +1 -0
- package/dist/components/Icons/PublishIcon.js +1 -0
- package/dist/components/Icons/QRCode2Icon.js +1 -0
- package/dist/components/Icons/QuestionMarkIcon.js +1 -0
- package/dist/components/Icons/QuizIcon.js +1 -0
- package/dist/components/Icons/RadioButtonCheckedIcon.js +1 -0
- package/dist/components/Icons/RadioButtonUncheckedIcon.js +1 -0
- package/dist/components/Icons/RateReviewIcon.js +1 -0
- package/dist/components/Icons/ReceiptLongIcon.js +1 -0
- package/dist/components/Icons/RecordVoiceOverIcon.js +1 -0
- package/dist/components/Icons/RedeemIcon.js +1 -0
- package/dist/components/Icons/RedoIcon.js +1 -0
- package/dist/components/Icons/RemoveIcon.js +1 -0
- package/dist/components/Icons/RemoveRoadIcon.js +1 -0
- package/dist/components/Icons/RequestQuoteIcon.js +1 -0
- package/dist/components/Icons/ReviewIcon.js +1 -0
- package/dist/components/Icons/SavingsIcon.js +1 -0
- package/dist/components/Icons/ScheduleIcon.js +1 -0
- package/dist/components/Icons/ScheduleSendIcon.js +1 -0
- package/dist/components/Icons/SearchIcon.js +1 -0
- package/dist/components/Icons/SellIcon.js +1 -0
- package/dist/components/Icons/SendIcon.js +1 -0
- package/dist/components/Icons/SettingsIcon.js +1 -0
- package/dist/components/Icons/ShareIcon.js +1 -0
- package/dist/components/Icons/ShoppingCartIcon.js +1 -0
- package/dist/components/Icons/ShoppingModeIcon.js +1 -0
- package/dist/components/Icons/ShuffleIcon.js +1 -0
- package/dist/components/Icons/SocialLeaderBoardIcon.js +1 -0
- package/dist/components/Icons/Speed15xIcon.js +1 -0
- package/dist/components/Icons/Speed1xIcon.js +1 -0
- package/dist/components/Icons/Speed2xIcon.js +1 -0
- package/dist/components/Icons/StarHalfIcon.js +1 -0
- package/dist/components/Icons/StarIcon.js +1 -0
- package/dist/components/Icons/StorefrontIcon.js +1 -0
- package/dist/components/Icons/StrikethroughSIcon.js +1 -0
- package/dist/components/Icons/SubscriptionsIcon.js +1 -0
- package/dist/components/Icons/SupervisorAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchesIcon.js +1 -0
- package/dist/components/Icons/SyncSavedLocallyIcon.js +1 -0
- package/dist/components/Icons/TabletIcon.js +1 -0
- package/dist/components/Icons/ThumbDownIcon.js +1 -0
- package/dist/components/Icons/ThumbUpIcon.js +1 -0
- package/dist/components/Icons/TocIcon.js +1 -0
- package/dist/components/Icons/TrashDeleteBinIcon.js +1 -0
- package/dist/components/Icons/TrendingUpIcon.js +1 -0
- package/dist/components/Icons/TrophyIcon.js +1 -0
- package/dist/components/Icons/UndoIcon.js +1 -0
- package/dist/components/Icons/UnfoldMoreIcon.js +1 -0
- package/dist/components/Icons/UnsubscribeIcon.js +1 -0
- package/dist/components/Icons/UploadIcon.js +1 -0
- package/dist/components/Icons/VerifiedIcon.js +1 -0
- package/dist/components/Icons/VideoCamIcon.js +1 -0
- package/dist/components/Icons/VideoFileIcon.js +1 -0
- package/dist/components/Icons/ViewAgendaIcon.js +1 -0
- package/dist/components/Icons/ViewArrayIcon.js +1 -0
- package/dist/components/Icons/ViewCarouselIcon.js +1 -0
- package/dist/components/Icons/ViewCozyIcon.js +1 -0
- package/dist/components/Icons/ViewModuleIcon.js +1 -0
- package/dist/components/Icons/VisibilityIcon.js +1 -0
- package/dist/components/Icons/VisibilityOffIcon.js +1 -0
- package/dist/components/Icons/VolumeUpIcon.js +1 -0
- package/dist/components/Icons/VolunteerActivismIcon.js +1 -0
- package/dist/components/Icons/WandStarsGradientIcon.js +1 -0
- package/dist/components/Icons/WandStarsIcon.js +1 -0
- package/dist/components/Icons/WarningIcon.js +1 -0
- package/dist/components/Icons/WbSunnyIcon.js +1 -0
- package/dist/components/Icons/WebAssetIcon.js +1 -0
- package/dist/components/Icons/WebTrafficIcon.js +1 -0
- package/dist/components/Icons/WebhookIcon.js +1 -0
- package/dist/components/Icons/WidgetsIcon.js +1 -0
- package/dist/components/Icons/WorkHistoryIcon.js +1 -0
- package/dist/components/Icons/WorkIcon.js +1 -0
- package/dist/components/Icons/enums.js +1 -0
- package/dist/components/Icons/icons.js +1 -0
- package/dist/components/Icons/index.js +1 -0
- package/dist/components/Icons/types.js +1 -0
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/InputField.js +1 -0
- package/dist/components/Input/InputRoot.js +1 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/PasswordField/PasswordField.js +2 -0
- package/dist/components/PasswordField/index.js +1 -0
- package/dist/components/PhoneNumber/PhoneNumberDigitField.js +3 -0
- package/dist/components/PhoneNumber/PhoneNumberFields.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberFlagField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberInput.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptions.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsList.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsSearchField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberPortal.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberRoot.js +2 -0
- package/dist/components/PhoneNumber/index.js +1 -0
- package/dist/components/PhoneNumber/phoneNumberContext.js +1 -0
- package/dist/components/PriceField/PriceFieldDigitField.js +2 -0
- package/dist/components/PriceField/PriceFieldFields.js +2 -0
- package/dist/components/PriceField/PriceFieldFlagField.js +2 -0
- package/dist/components/PriceField/PriceFieldInput.js +2 -0
- package/dist/components/PriceField/PriceFieldOptions.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsList.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsSearchField.js +2 -0
- package/dist/components/PriceField/PriceFieldPortal.js +2 -0
- package/dist/components/PriceField/PriceFieldRoot.js +2 -0
- package/dist/components/PriceField/index.js +1 -0
- package/dist/components/PriceField/priceFieldContext.js +1 -0
- package/dist/components/Provider/MainstackDesignSystemProvider.js +1 -0
- package/dist/components/Provider/index.js +1 -0
- package/dist/components/Provider/providerContext.js +1 -0
- package/dist/components/Provider/useMainstackDesignSystemTheme.js +1 -0
- package/dist/components/Radio/RadioItem.js +1 -0
- package/dist/components/Radio/RadioItemIndicator.js +1 -0
- package/dist/components/Radio/RadioItemLabel.js +1 -0
- package/dist/components/Radio/RadioItemSubtext.js +1 -0
- package/dist/components/Radio/RadioItemTitle.js +1 -0
- package/dist/components/Radio/RadioRoot.js +1 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/SearchField/SearchField.js +2 -0
- package/dist/components/SearchField/index.js +1 -0
- package/dist/components/Select/MultiSelect.js +2 -0
- package/dist/components/Select/Select.js +2 -0
- package/dist/components/Select/SelectInputField.js +2 -0
- package/dist/components/Select/SelectOptionInputPreview.js +2 -0
- package/dist/components/Select/SelectOptionItem.js +2 -0
- package/dist/components/Select/SelectOptionItemWithCheckbox.js +2 -0
- package/dist/components/Select/SelectOptions.js +2 -0
- package/dist/components/Select/SelectPortal.js +2 -0
- package/dist/components/Select/SelectRoot.js +2 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/Select/selectContext.js +1 -0
- package/dist/components/Select/utils.js +1 -0
- package/dist/components/Tab/TabsContent.js +1 -0
- package/dist/components/Tab/TabsContext.js +1 -0
- package/dist/components/Tab/TabsList.js +1 -0
- package/dist/components/Tab/TabsRoot.js +1 -0
- package/dist/components/Tab/TabsTrigger.js +1 -0
- package/dist/components/Tab/index.js +1 -0
- package/dist/components/Tab/tabsVariants.js +1 -0
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/Tag/TagIcon.js +1 -0
- package/dist/components/Tag/TagLabel.js +1 -0
- package/dist/components/Tag/TagRoot.js +1 -0
- package/dist/components/Tag/index.js +1 -0
- package/dist/components/Tag/tagVariants.js +1 -0
- package/dist/components/TextEditor/TextEditorField.js +4 -0
- package/dist/components/TextEditor/TextEditorInput.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/BoldMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/CodeMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ColorPickerMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/GenerateWithAiMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ImageUploadMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ItalicMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/LinkMenu.js +6 -0
- package/dist/components/TextEditor/TextEditorMenuBar/OrderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/StrikethroughMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextAlignMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuAction.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuBar.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextSizesMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnderlineMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnorderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorRoot.js +42 -0
- package/dist/components/TextEditor/index.js +1 -0
- package/dist/components/TextEditor/textEditorContext.js +1 -0
- package/dist/components/Textarea/Textarea.js +1 -0
- package/dist/components/Textarea/TextareaField.js +1 -0
- package/dist/components/Textarea/TextareaRoot.js +1 -0
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/Tile/TileCheckbox.js +1 -0
- package/dist/components/Tile/TileContent.js +1 -0
- package/dist/components/Tile/TileDescription.js +1 -0
- package/dist/components/Tile/TileHeader.js +1 -0
- package/dist/components/Tile/TileMedia.js +3 -0
- package/dist/components/Tile/TileRoot.js +2 -0
- package/dist/components/Tile/TileTitle.js +1 -0
- package/dist/components/Tile/index.js +1 -0
- package/dist/components/Tile/tileVariants.js +1 -0
- package/dist/components/Toggle/Toggle.js +1 -0
- package/dist/components/Toggle/ToggleLabel.js +1 -0
- package/dist/components/Toggle/ToggleRoot.js +1 -0
- package/dist/components/Toggle/ToggleSubtext.js +1 -0
- package/dist/components/Toggle/ToggleSwitch.js +2 -0
- package/dist/components/Toggle/ToggleTitle.js +1 -0
- package/dist/components/Toggle/index.js +1 -0
- package/dist/components/Toggle/toggleVariants.js +1 -0
- package/dist/components/Tooltip/TooltipArrow.js +1 -0
- package/dist/components/Tooltip/TooltipBody.js +1 -0
- package/dist/components/Tooltip/TooltipContent.js +1 -0
- package/dist/components/Tooltip/TooltipContext.js +1 -0
- package/dist/components/Tooltip/TooltipFooter.js +1 -0
- package/dist/components/Tooltip/TooltipHeader.js +1 -0
- package/dist/components/Tooltip/TooltipRoot.js +2 -0
- package/dist/components/Tooltip/TooltipTitle.js +1 -0
- package/dist/components/Tooltip/TooltipTrigger.js +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/Tooltip/useTooltipContext.js +1 -0
- package/dist/components/Typography/BodyText/BodyText.js +1 -0
- package/dist/components/Typography/BodyText/bodyTextVariants.js +1 -0
- package/dist/components/Typography/BodyText/index.js +1 -0
- package/dist/components/Typography/DisplayText/DisplayText.js +1 -0
- package/dist/components/Typography/DisplayText/displayTextVariants.js +1 -0
- package/dist/components/Typography/DisplayText/index.js +1 -0
- package/dist/components/Typography/HeadlineText/HeadlineText.js +1 -0
- package/dist/components/Typography/HeadlineText/headlineTextVariants.js +1 -0
- package/dist/components/Typography/HeadlineText/index.js +1 -0
- package/dist/en.json-BPy-6DYI.cjs +1 -0
- package/dist/en.json-VbJG9vrN.js +263 -0
- package/dist/floating-ui.dom-C224prEy.cjs +1 -0
- package/dist/floating-ui.dom-CauyjNxS.js +1131 -0
- package/dist/fonts/degular/Degular-Black.woff2 +0 -0
- package/dist/fonts/degular/Degular-Black_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Regular.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin_Italic.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Black.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BlackIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Bold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BoldIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Book.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BookIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Medium.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-MediumIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Regular.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-RegularIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Semibold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-SemiboldIt.woff2 +0 -0
- package/dist/getInternationalPhoneNumberPrefix-C4Qc97tE.cjs +34 -0
- package/dist/getInternationalPhoneNumberPrefix-C8O8VTpp.js +4368 -0
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-437EL2iq.js +52 -0
- package/dist/index-5Bhkapwi.js +82 -0
- package/dist/index-B0dI0L76.cjs +2 -0
- package/dist/index-BGQepRFJ.js +27 -0
- package/dist/index-BGfrl8IX.js +71 -0
- package/dist/index-BI11g55_.cjs +42 -0
- package/dist/index-BRRTyZ1e.js +75 -0
- package/dist/index-BZCybroW.cjs +2 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-B_Bwy8wX.cjs +1 -0
- package/dist/index-BbQbyYHN.cjs +2 -0
- package/dist/index-BfKbXbc8.cjs +1 -0
- package/dist/index-BvWMjxZ5.js +675 -0
- package/dist/index-Bx2vBAJ5.cjs +2 -0
- package/dist/index-ByaXH_ih.js +10 -0
- package/dist/index-C2mPf2xD.cjs +1 -0
- package/dist/index-C8aODXfJ.cjs +1 -0
- package/dist/index-CAgJYdlN.cjs +1 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/index-CRDKsB5y.cjs +2 -0
- package/dist/index-CRdNenpR.js +422 -0
- package/dist/index-CajSSBH7.cjs +1 -0
- package/dist/index-Cje7xxa1.cjs +1 -0
- package/dist/index-CpDnqHCm.js +36 -0
- package/dist/index-CsK1LjrZ.cjs +2 -0
- package/dist/index-CvknVH0W.js +754 -0
- package/dist/index-CwR-dC8j.cjs +2 -0
- package/dist/index-CyFz8fal.cjs +131 -0
- package/dist/index-CzY-WZXL.cjs +1 -0
- package/dist/index-D-KHlZ2P.js +20 -0
- package/dist/index-D29mdTf5.js +34 -0
- package/dist/index-D9S-9HH_.js +332 -0
- package/dist/index-DCXkdCW2.js +227 -0
- package/dist/index-DLcgu_3m.js +159 -0
- package/dist/index-DVuTCIJE.cjs +2 -0
- package/dist/index-DWQmix6e.js +234 -0
- package/dist/index-DYxWvftI.cjs +1 -0
- package/dist/index-DgIcguCG.cjs +2 -0
- package/dist/index-DmeJCEwx.js +181 -0
- package/dist/index-Dt3HnaYe.js +48 -0
- package/dist/index-Dz5LHXX9.js +145 -0
- package/dist/index-MQ0c3ZX_.cjs +1 -0
- package/dist/index-ZhUVW4CS.cjs +2 -0
- package/dist/index-bSPhqlcX.cjs +1 -0
- package/dist/index-fw7dUmQl.js +352 -0
- package/dist/index-ojFnBVkh.cjs +2 -0
- package/dist/index-q-4o5Ie4.cjs +2 -0
- package/dist/index-twi8FX77.js +13814 -0
- package/dist/index-xqkGMOJ8.js +13 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +1 -0
- package/dist/lib/useElementWidth.js +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +89 -66
- package/build/index.css +0 -6
- package/build/index.d.ts +0 -1419
- package/build/mainstack-design-system.js +0 -25463
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";const E=require("react/jsx-runtime"),s=require("react"),i=require("./getInternationalPhoneNumberPrefix-C4Qc97tE.cjs"),G=require("./en.json-BPy-6DYI.cjs"),Ue=require("./_commonjsHelpers-DwGv2jUC.cjs"),M=require("./lib/utils.js"),Me=require("./components/Form/FormCountrySelect/getCountryFlagComp.js");var Y={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/var ae;function Be(){return ae||(ae=1,(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(a=o(a,t(l)))}return a}function t(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var l in a)n.call(a,l)&&a[l]&&(u=o(u,l));return u}function o(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Y)),Y.exports}var qe=Be();const q=Ue.getDefaultExportFromCjs(qe);function ke(){var e=i.normalizeArguments(arguments),n=e.text,r=e.options,t=e.metadata;return i.parsePhoneNumber(n,r,t)}function H(e){return new i.Metadata(e).getCountries()}function Ve(e){return ie(e[0])+ie(e[1])}function ie(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var We=["value","onChange","options","disabled","readOnly"],De=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Ze(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ze(e))||n){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(e,n){if(e){if(typeof e=="string")return ue(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(e,n)}}function ue(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},k.apply(this,arguments)}function ge(e,n){if(e==null)return{};var r=Xe(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function Xe(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ve(e){var n=e.value,r=e.onChange,t=e.options,o=e.disabled,a=e.readOnly,u=ge(e,We),l=s.useCallback(function(c){var p=c.target.value;r(p==="ZZ"?void 0:p)},[r]);return s.useMemo(function(){return he(t,n)},[t,n]),s.createElement("select",k({},u,{disabled:o||a,readOnly:a,value:n||"ZZ",onChange:l}),t.map(function(c){var p=c.value,m=c.label,g=c.divider;return s.createElement("option",{key:g?"|":p||"ZZ",value:g?"|":p||"ZZ",disabled:!!g,style:g?Ke:void 0},m)}))}ve.propTypes={value:i.PropTypes.string,onChange:i.PropTypes.func.isRequired,options:i.PropTypes.arrayOf(i.PropTypes.shape({value:i.PropTypes.string,label:i.PropTypes.string,divider:i.PropTypes.bool})).isRequired,disabled:i.PropTypes.bool,readOnly:i.PropTypes.bool};var Ke={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function be(e){var n=e.value,r=e.options,t=e.className,o=e.iconComponent;e.getIconAspectRatio;var a=e.arrowComponent,u=a===void 0?Ye:a,l=e.unicodeFlags,c=ge(e,De),p=s.useMemo(function(){return he(r,n)},[r,n]);return s.createElement("div",{className:"PhoneInputCountry"},s.createElement(ve,k({},c,{value:n,options:r,className:q("PhoneInputCountrySelect",t)})),p&&(l&&n?s.createElement("div",{className:"PhoneInputCountryIconUnicode"},Ve(n)):s.createElement(o,{"aria-hidden":!0,country:n,label:p.label,aspectRatio:l?1:void 0})),s.createElement(u,null))}be.propTypes={iconComponent:i.PropTypes.elementType,arrowComponent:i.PropTypes.elementType,unicodeFlags:i.PropTypes.bool};function Ye(){return s.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function he(e,n){for(var r=Ze(e),t;!(t=r()).done;){var o=t.value;if(!o.divider&&Ge(o.value,n))return o}}function Ge(e,n){return e==null?n==null:e===n}var He=["country","countryName","flags","flagUrl"];function J(){return J=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},J.apply(this,arguments)}function Je(e,n){if(e==null)return{};var r=Qe(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function Qe(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ne(e){var n=e.country,r=e.countryName,t=e.flags,o=e.flagUrl,a=Je(e,He);return t&&t[n]?t[n]({title:r}):s.createElement("img",J({},a,{alt:r,role:r?void 0:"presentation",src:o.replace("{XX}",n).replace("{xx}",n.toLowerCase())}))}ne.propTypes={country:i.PropTypes.string.isRequired,countryName:i.PropTypes.string.isRequired,flags:i.PropTypes.objectOf(i.PropTypes.elementType),flagUrl:i.PropTypes.string.isRequired};var et=["aspectRatio"],tt=["title"],nt=["title"];function V(){return V=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},V.apply(this,arguments)}function re(e,n){if(e==null)return{};var r=rt(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function rt(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function D(e){var n=e.aspectRatio,r=re(e,et);return n===1?s.createElement(Oe,r):s.createElement(Ce,r)}D.propTypes={title:i.PropTypes.string.isRequired,aspectRatio:i.PropTypes.number};function Ce(e){var n=e.title,r=re(e,tt);return s.createElement("svg",V({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),s.createElement("title",null,n),s.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},s.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),s.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),s.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),s.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),s.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),s.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),s.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Ce.propTypes={title:i.PropTypes.string.isRequired};function Oe(e){var n=e.title,r=re(e,nt);return s.createElement("svg",V({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),s.createElement("title",null,n),s.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},s.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),s.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),s.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),s.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),s.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),s.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),s.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}Oe.propTypes={title:i.PropTypes.string.isRequired};function ot(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=at(e))||n){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e,n){if(e){if(typeof e=="string")return le(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,n)}}function le(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function it(e,n){if(!n)return e;for(var r=[],t=[],o=r,a=function(){var p=l.value;if(p==="|")o.push({divider:!0});else if(p==="..."||p==="…")o=t;else{var m;p==="🌐"?m=void 0:m=p;var g=e.indexOf(e.filter(function(b){return b.value===m})[0]),d=e[g];e.splice(g,1),o.push(d)}},u=ot(n),l;!(l=u()).done;)a();return r.concat(e).concat(t)}function ut(e,n){if(e&&(e=e.filter(function(r){switch(r){case"🌐":case"|":case"...":case"…":return!0;default:return Z(r,n)}}),e.length>0))return e}function Z(e,n){return i.isSupportedCountry(e,n)?!0:(console.error("Country not found: ".concat(e)),!1)}function Pe(e,n){return e&&(e=e.filter(function(r){return Z(r,n)}),e.length===0&&(e=void 0)),e}var lt=["country","label","aspectRatio"];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},Q.apply(this,arguments)}function st(e,n){if(e==null)return{};var r=ct(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function ct(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Se(e){var n=e.flags,r=e.flagUrl,t=e.flagComponent,o=e.internationalIcon;function a(u){var l=u.country,c=u.label,p=u.aspectRatio,m=st(u,lt),g=o===D?p:void 0;return s.createElement("div",Q({},m,{className:q("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":l})}),l?s.createElement(t,{country:l,countryName:c,flags:n,flagUrl:r,className:"PhoneInputCountryIconImg"}):s.createElement(o,{title:c,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:i.PropTypes.string,label:i.PropTypes.string.isRequired,aspectRatio:i.PropTypes.number},a}Se({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:ne,internationalIcon:D});function pt(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ft(e))||n){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(e,n){if(e){if(typeof e=="string")return se(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(e,n)}}function se(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function yt(e,n){for(var r=pt(e),t;!(t=r()).done;){var o=t.value;o&&dt(o,n)}}function dt(e,n){typeof e=="function"?e(n):e.current=n}function mt(e){var n=e.value,r=e.phoneNumber,t=e.defaultCountry,o=e.getAnyCountry,a=e.countries,u=e.required,l=e.metadata,c;return r&&r.country?c=r.country:t&&(!n||F(n,t,l))&&(c=t),a&&a.indexOf(c)<0&&(c=void 0),!c&&u&&a&&a.length>0&&(c=o()),c}function gt(e){var n=e.countries,r=e.countryNames,t=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=St);var u=n.map(function(l){return{value:l,label:r[l]||l}});return u.sort(function(l,c){return a(l.label,c.label,o)}),t&&u.unshift({label:r.ZZ}),u}function Ie(e,n){return ke(e||"",n)}function vt(e){return e.formatNational().replace(/\D/g,"")}function bt(e,n){var r=n.prevCountry,t=n.newCountry,o=n.metadata,a=n.useNationalFormat;if(r===t)return e;if(!e)return a?"":t?i.getInternationalPhoneNumberPrefix(t,o):"";if(t){if(e[0]==="+"){if(a)return e.indexOf("+"+i.getCountryCallingCode(t,o))===0?It(e,t,o):"";if(r){var u=i.getInternationalPhoneNumberPrefix(t,o);return e.indexOf(u)===0?e:u}else{var l=i.getInternationalPhoneNumberPrefix(t,o);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return A(e,r,o)||"";return e}function A(e,n,r){if(e){if(e[0]==="+"){if(e==="+")return;var t=new i.AsYouType(n,r);return t.input(e),t.getNumberValue()}if(n){var o=Ne(e,n,r);return"+".concat(i.getCountryCallingCode(n,r)).concat(o||"")}}}function ht(e,n,r){var t=Ne(e,n,r);if(t){var o=t.length-Ct(n,r);if(o>0)return e.slice(0,e.length-o)}return e}function Ct(e,n){return n=new i.Metadata(n),n.selectNumberingPlan(e),n.numberingPlan.possibleLengths()[n.numberingPlan.possibleLengths().length-1]}function je(e,n){var r=n.country,t=n.countries,o=n.defaultCountry,a=n.latestCountrySelectedByUser,u=n.required,l=n.metadata;if(e==="+")return r;var c=Pt(e,l);if(c)return!t||t.indexOf(c)>=0?c:void 0;if(r){if(F(e,r,l)){if(a&&F(e,a,l))return a;if(o&&F(e,o,l))return o;if(!u)return}else if(!u)return}return r}function Ot(e,n){var r=n.prevPhoneDigits,t=n.country,o=n.defaultCountry,a=n.latestCountrySelectedByUser,u=n.countryRequired,l=n.getAnyCountry,c=n.countries,p=n.international,m=n.limitMaxLength,g=n.countryCallingCodeEditable,d=n.metadata;if(p&&g===!1&&t){var b=i.getInternationalPhoneNumberPrefix(t,d);if(e.indexOf(b)!==0){var h,x=e&&e[0]!=="+";return x?(e=b+e,h=A(e,t,d)):e=b,{phoneDigits:e,value:h,country:t}}}p===!1&&t&&e&&e[0]==="+"&&(e=ce(e,t,d)),e&&t&&m&&(e=ht(e,t,d)),e&&e[0]!=="+"&&(!t||p)&&(e="+"+e),!e&&r&&r[0]==="+"&&(p?t=void 0:t=o),e==="+"&&r&&r[0]==="+"&&r.length>1&&(t=void 0);var f;return e&&(e[0]==="+"&&(e==="+"||t&&i.getInternationalPhoneNumberPrefix(t,d).indexOf(e)===0)?f=void 0:f=A(e,t,d)),f&&(t=je(f,{country:t,countries:c,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:d}),p===!1&&t&&e&&e[0]==="+"&&(e=ce(e,t,d),f=A(e,t,d))),!t&&u&&(t=o||l()),{phoneDigits:e,country:t,value:f}}function ce(e,n,r){if(e.indexOf(i.getInternationalPhoneNumberPrefix(n,r))===0){var t=new i.AsYouType(n,r);t.input(e);var o=t.getNumber();return o?o.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function Pt(e,n){var r=new i.AsYouType(null,n);return r.input(e),r.getCountry()}function St(e,n,r){return String.prototype.localeCompare?e.localeCompare(n,r):e<n?-1:e>n?1:0}function It(e,n,r){if(n){var t="+"+i.getCountryCallingCode(n,r);if(e.length<t.length){if(t.indexOf(e)===0)return""}else if(e.indexOf(t)===0)return e.slice(t.length)}for(var o=0,a=Object.keys(r.country_calling_codes);o<a.length;o++){var u=a[o];if(e.indexOf(u)===1)return e.slice(1+u.length)}return""}function Ne(e,n,r){var t=new i.AsYouType(n,r);t.input(e);var o=t.getNumber();return o&&o.nationalNumber}function F(e,n,r){for(var t=i.getInternationalPhoneNumberPrefix(n,r),o=0;o<e.length&&o<t.length;){if(e[o]!==t[o])return!1;o++}return!0}function Te(e){var n=e.value,r=e.phoneNumber,t=e.defaultCountry,o=e.international,a=e.useNationalFormat,u=e.metadata;return(o===!1||a)&&r&&r.country?vt(r):!n&&o&&t?i.getInternationalPhoneNumberPrefix(t,u):n}function U(e){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},U(e)}function pe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,t)}return r}function B(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?pe(Object(r),!0).forEach(function(t){jt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jt(e,n,r){return n=Nt(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Nt(e){var n=Tt(e,"string");return U(n)=="symbol"?n:n+""}function Tt(e,n){if(U(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var t=r.call(e,n);if(U(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function wt(e,n,r){var t=e.metadata,o=e.countries,a=e.defaultCountry,u=e.value,l=e.reset,c=e.international,p=e.displayInitialValueAsLocalNumber,m=e.initialValueFormat,g=n.defaultCountry,d=n.value,b=n.reset;r.country;var h=r.value,x=r.hasUserSelectedACountry,f=r.latestCountrySelectedByUser,y=function(_){return Te(B(B({},_),{},{international:c,useNationalFormat:p||m==="national",metadata:t}))};if(l!==b)return{phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==g){var O=!a||Z(a,t),P=!h||c&&h===y({value:void 0,defaultCountry:g}),T=!u&&P;if(!x&&O&&T)return{country:a,phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0}}if(!fe(u,d)&&!fe(u,h)){var C,v;if(u){u&&i.validateE164Number(u),C=Ie(u,t);var j=Pe(o,t);C&&C.country?(!j||j.indexOf(C.country)>=0)&&(v=C.country):(v=je(u,{country:void 0,countries:j,metadata:t}),v||a&&u.indexOf(i.getInternationalPhoneNumberPrefix(a,t))===0&&(v=a))}var N;if(u){if(f){var S=v?f===v:F(u,f,t);S?v||(v=f):N={latestCountrySelectedByUser:void 0}}}else N={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return B(B({},N),{},{phoneDigits:y({phoneNumber:C,value:u,defaultCountry:a}),value:u,country:u?v:a})}}function fe(e,n){return e===null&&(e=void 0),n===null&&(n=void 0),e===n}var xt=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function $(e){"@babel/helpers - typeof";return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$(e)}function ye(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,t)}return r}function we(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?ye(Object(r),!0).forEach(function(t){I(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},R.apply(this,arguments)}function Et(e,n){if(e==null)return{};var r=At(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function At(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ft(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function de(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,Ee(t.key),t)}}function Rt(e,n,r){return n&&de(e.prototype,n),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $t(e,n,r){return n=W(n),_t(e,xe()?Reflect.construct(n,r||[],W(e).constructor):n.apply(e,r))}function _t(e,n){if(n&&($(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lt(e)}function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xe=function(){return!!e})()}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},W(e)}function Ut(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ee(e,n)}function ee(e,n){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},ee(e,n)}function I(e,n,r){return n=Ee(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Ee(e){var n=Mt(e,"string");return $(n)=="symbol"?n:n+""}function Mt(e,n){if($(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var t=r.call(e,n);if($(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Bt=(function(e){function n(r){var t;Ft(this,n),t=$t(this,n,[r]),I(t,"setInputRef",function(f){yt([t.props.inputRef,t.inputRef],f)}),I(t,"isCountrySupportedWithError",function(f){var y=t.props.metadata;return Z(f,y)}),I(t,"onCountryChange",function(f){var y=t.props,O=y.international,P=y.metadata,T=y.onChange,C=y.focusInputOnCountrySelection,v=t.state,j=v.phoneDigits,N=v.country,S=bt(j,{prevCountry:N,newCountry:f,metadata:P,useNationalFormat:!O}),w=A(S,f,P);C&&t.inputRef.current.focus(),t.setState({country:f,latestCountrySelectedByUser:f,hasUserSelectedACountry:!0,phoneDigits:S,value:w},function(){T(w)})}),I(t,"onChange",function(f){var y=t.props,O=y.defaultCountry,P=y.onChange,T=y.addInternationalOption,C=y.international,v=y.limitMaxLength,j=y.countryCallingCodeEditable,N=y.metadata,S=t.state,w=S.countries,_=S.phoneDigits,_e=S.country,z=S.latestCountrySelectedByUser,X=Ot(f,{prevPhoneDigits:_,country:_e,countryRequired:!T,defaultCountry:O,latestCountrySelectedByUser:z,getAnyCountry:function(){return t.getFirstSupportedCountry({countries:w})},countries:w,international:C,limitMaxLength:v,countryCallingCodeEditable:j,metadata:N}),oe=X.phoneDigits,Le=X.country,L=X.value,K={phoneDigits:oe,value:L,country:Le};z&&L&&!F(L,z,N)&&(K.latestCountrySelectedByUser=void 0),j===!1&&!L&&oe===t.state.phoneDigits&&(K.forceRerender={}),t.setState(K,function(){return P(L)})}),I(t,"_onFocus",function(){return t.setState({isFocused:!0})}),I(t,"_onBlur",function(){return t.setState({isFocused:!1})}),I(t,"onFocus",function(f){t._onFocus();var y=t.props.onFocus;y&&y(f)}),I(t,"onBlur",function(f){var y=t.props.onBlur;t._onBlur(),y&&y(f)}),I(t,"onCountryFocus",function(f){t._onFocus();var y=t.props.countrySelectProps;if(y){var O=y.onFocus;O&&O(f)}}),I(t,"onCountryBlur",function(f){t._onBlur();var y=t.props.countrySelectProps;if(y){var O=y.onBlur;O&&O(f)}}),t.inputRef=s.createRef();var o=t.props,a=o.value;o.labels;var u=o.international,l=o.addInternationalOption,c=o.displayInitialValueAsLocalNumber,p=o.initialValueFormat,m=o.metadata,g=t.props,d=g.defaultCountry,b=g.countries;d&&(t.isCountrySupportedWithError(d)||(d=void 0)),a&&i.validateE164Number(a),b=Pe(b,m);var h=Ie(a,m);t.CountryIcon=Se(t.props);var x=mt({value:a,phoneNumber:h,defaultCountry:d,required:!l,countries:b||H(m),getAnyCountry:function(){return t.getFirstSupportedCountry({countries:b})},metadata:m});return t.state={props:t.props,country:x,countries:b,phoneDigits:Te({value:a,phoneNumber:h,defaultCountry:d,international:u,useNationalFormat:c||p==="national",metadata:m}),value:a},t}return Ut(n,e),Rt(n,[{key:"componentDidMount",value:function(){var t=this.props.onCountryChange,o=this.props.defaultCountry,a=this.state.country;t&&(o&&(this.isCountrySupportedWithError(o)||(o=void 0)),a!==o&&t(a))}},{key:"componentDidUpdate",value:function(t,o){var a=this.props.onCountryChange,u=this.state.country;a&&u!==o.country&&a(u)}},{key:"getCountrySelectOptions",value:function(t){var o=t.countries,a=this.props,u=a.international,l=a.countryCallingCodeEditable,c=a.countryOptionsOrder,p=a.addInternationalOption,m=a.labels,g=a.locales,d=a.metadata;return this.useMemoCountrySelectOptions(function(){return it(gt({countries:o||H(d),countryNames:m,addInternationalOption:u&&l===!1?!1:p,compareStringsLocales:g}),ut(c,d))},[o,c,p,m,d])}},{key:"useMemoCountrySelectOptions",value:function(t,o){return(!this.countrySelectOptionsMemoDependencies||!kt(o,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=t(),this.countrySelectOptionsMemoDependencies=o),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(t){var o=t.countries,a=this.getCountrySelectOptions({countries:o});return a[0].value}},{key:"render",value:function(){var t=this.props,o=t.name,a=t.disabled,u=t.readOnly,l=t.autoComplete,c=t.style,p=t.className;t.inputRef;var m=t.inputComponent,g=t.numberInputProps,d=t.smartCaret,b=t.countrySelectComponent,h=t.countrySelectProps,x=t.containerComponent,f=t.containerComponentProps;t.defaultCountry,t.countries,t.countryOptionsOrder;var y=t.labels;t.flags,t.flagComponent,t.flagUrl,t.addInternationalOption,t.internationalIcon,t.displayInitialValueAsLocalNumber,t.initialValueFormat,t.onCountryChange,t.limitMaxLength,t.countryCallingCodeEditable,t.focusInputOnCountrySelection,t.reset;var O=t.metadata,P=t.international;t.locales;var T=Et(t,xt),C=this.state,v=C.country,j=C.countries,N=C.phoneDigits,S=C.isFocused,w=d?i.InputSmart:i.InputBasic,_=this.getCountrySelectOptions({countries:j});return s.createElement(x,R({style:c,className:q(p,"PhoneInput",{"PhoneInput--focus":S,"PhoneInput--disabled":a,"PhoneInput--readOnly":u})},f),s.createElement(b,R({name:o?"".concat(o,"Country"):void 0,"aria-label":y.country},h,{value:v,options:_,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:a||h&&h.disabled,readOnly:u||h&&h.readOnly,iconComponent:this.CountryIcon})),s.createElement(w,R({ref:this.setInputRef,type:"tel",autoComplete:l},g,T,{inputFormat:P===!0?"INTERNATIONAL":P===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:P?!0:void 0,withCountryCallingCode:P?!0:void 0,name:o,metadata:O,country:v,value:N||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:a,readOnly:u,inputComponent:m,className:q("PhoneInputInput",g&&g.className,T.className)})))}}],[{key:"getDerivedStateFromProps",value:function(t,o){return we({props:t},wt(t,o.props,o))}}])})(s.PureComponent),Ae=s.forwardRef(function(e,n){return s.createElement(Bt,R({},qt(e),{inputRef:n}))});Ae.propTypes={value:i.PropTypes.string,onChange:i.PropTypes.func.isRequired,onFocus:i.PropTypes.func,onBlur:i.PropTypes.func,disabled:i.PropTypes.bool,readOnly:i.PropTypes.bool,autoComplete:i.PropTypes.string,initialValueFormat:i.PropTypes.oneOf(["national"]),displayInitialValueAsLocalNumber:i.PropTypes.bool,defaultCountry:i.PropTypes.string,countries:i.PropTypes.arrayOf(i.PropTypes.string),labels:i.labels,locales:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.arrayOf(i.PropTypes.string)]),flagUrl:i.PropTypes.string,flags:i.PropTypes.objectOf(i.PropTypes.elementType),flagComponent:i.PropTypes.elementType,addInternationalOption:i.PropTypes.bool,internationalIcon:i.PropTypes.elementType,countryOptionsOrder:i.PropTypes.arrayOf(i.PropTypes.string),style:i.PropTypes.object,className:i.PropTypes.string,countrySelectComponent:i.PropTypes.elementType,countrySelectProps:i.PropTypes.object,inputComponent:i.PropTypes.elementType,numberInputProps:i.PropTypes.object,containerComponent:i.PropTypes.elementType,containerComponentProps:i.PropTypes.object,smartCaret:i.PropTypes.bool,international:i.PropTypes.bool,limitMaxLength:i.PropTypes.bool,countryCallingCodeEditable:i.PropTypes.bool,metadata:i.metadata,onCountryChange:i.PropTypes.func,focusInputOnCountrySelection:i.PropTypes.bool};var me={autoComplete:"tel",countrySelectComponent:be,flagComponent:ne,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:D,inputComponent:"input",containerComponent:"div",reset:i.PropTypes.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function qt(e){e=we({},e);for(var n in me)e[n]===void 0&&(e[n]=me[n]);return e}function kt(e,n){if(e.length!==n.length)return!1;for(var r=0;r<e.length;){if(e[r]!==n[r])return!1;r++}return!0}var Vt=["metadata","labels"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},te.apply(this,arguments)}function Wt(e,n){if(e==null)return{};var r=Dt(e,n),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function Dt(e,n){if(e==null)return{};var r={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Fe(e){var n=s.forwardRef(function(r,t){var o=r.metadata,a=o===void 0?e:o,u=r.labels,l=u===void 0?G.countriesEnglishNames:u,c=Wt(r,Vt);return s.createElement(Ae,te({},c,{ref:t,metadata:a,labels:l}))});return n.propTypes={metadata:i.metadata,labels:i.labels},n}Fe();function Re(e,n){var r=Array.prototype.slice.call(n);return r.push(i.metadata$1),e.apply(this,r)}Fe(i.metadata$1);function Zt(){return Re(H,arguments)}function zt(){return Re(i.getCountryCallingCode,arguments)}const $e=s.forwardRef(({onOptionOpenChange:e,searchCountry:n,activeCountry:r,setActiveCountry:t,getCountryMetaInfo:o,className:a,...u},l)=>{const c=s.useMemo(()=>{const p=Zt();return n?p.filter(m=>G.countriesEnglishNames[m].toLowerCase().includes(n.toLowerCase())):p},[n]);return E.jsx("div",{className:M.cn("flex flex-col gap-8 overflow-auto max-h-188",a),ref:l,...u,children:c.length?c.map(p=>E.jsxs("button",{role:"option","aria-selected":p===r,onClick:()=>{t(p),e(!1)},className:"flex cursor-pointer py-8 px-10 rounded-12 items-center justify-between hover:bg-interactive-secondary-hover",children:[E.jsxs("div",{className:"flex items-center gap-8",children:[E.jsx("div",{className:"size-20 flex items-center justify-center overflow-hidden rounded-full",children:Me.getCountryFlagComp(p)}),E.jsx("p",{className:M.cn("body-extrasmall-medium","text-primary"),children:G.countriesEnglishNames[p]})]}),E.jsx("p",{className:M.cn("body-extrasmall-regular","text-secondary"),children:o(p)})]},p)):E.jsx("p",{className:M.cn("body-extrasmall-regular","text-tertiary text-center"),children:"No option found"})})});$e.displayName="FormCountryOptionsList";exports.FormCountryOptionsList=$e;exports.getCountryCallingCode=zt;
|