mainstack-design-system 0.7.45 → 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,754 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { c as fe, a as v } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { u as L, c as Je, b as me } from "./index-5Bhkapwi.js";
|
|
5
|
+
import { u as Qe } from "./index-437EL2iq.js";
|
|
6
|
+
import { P as b, d as en } from "./index-CpDnqHCm.js";
|
|
7
|
+
import { c as nn } from "./index-Dt3HnaYe.js";
|
|
8
|
+
import { u as on } from "./index-ByaXH_ih.js";
|
|
9
|
+
import { P as tn, D as rn } from "./index-Dz5LHXX9.js";
|
|
10
|
+
import { h as an, u as cn, R as sn, F as un } from "./index-BvWMjxZ5.js";
|
|
11
|
+
import { c as Me, R as dn, A as ln, a as pn, C as fn } from "./index-CRdNenpR.js";
|
|
12
|
+
import { P as X } from "./index-BGfrl8IX.js";
|
|
13
|
+
import { c as ve, I as mn, R as Mn } from "./index-DmeJCEwx.js";
|
|
14
|
+
import { u as he } from "./index-0ioNhtNM.js";
|
|
15
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
16
|
+
import { u as le } from "./index-xqkGMOJ8.js";
|
|
17
|
+
var J = ["Enter", " "], vn = ["ArrowDown", "PageUp", "Home"], we = ["ArrowUp", "PageDown", "End"], hn = [...vn, ...we], wn = {
|
|
18
|
+
ltr: [...J, "ArrowRight"],
|
|
19
|
+
rtl: [...J, "ArrowLeft"]
|
|
20
|
+
}, gn = {
|
|
21
|
+
ltr: ["ArrowLeft"],
|
|
22
|
+
rtl: ["ArrowRight"]
|
|
23
|
+
}, F = "Menu", [O, _n, Cn] = nn(F), [P, ge] = fe(F, [
|
|
24
|
+
Cn,
|
|
25
|
+
Me,
|
|
26
|
+
ve
|
|
27
|
+
]), Y = Me(), _e = ve(), [Rn, D] = P(F), [Pn, G] = P(F), Ce = (e) => {
|
|
28
|
+
const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: c, modal: d = !0 } = e, l = Y(o), [m, M] = a.useState(null), p = a.useRef(!1), u = he(c), f = on(r);
|
|
29
|
+
return a.useEffect(() => {
|
|
30
|
+
const _ = () => {
|
|
31
|
+
p.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
|
|
32
|
+
}, h = () => p.current = !1;
|
|
33
|
+
return document.addEventListener("keydown", _, { capture: !0 }), () => {
|
|
34
|
+
document.removeEventListener("keydown", _, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
|
|
35
|
+
};
|
|
36
|
+
}, []), /* @__PURE__ */ s(dn, { ...l, children: /* @__PURE__ */ s(
|
|
37
|
+
Rn,
|
|
38
|
+
{
|
|
39
|
+
scope: o,
|
|
40
|
+
open: n,
|
|
41
|
+
onOpenChange: u,
|
|
42
|
+
content: m,
|
|
43
|
+
onContentChange: M,
|
|
44
|
+
children: /* @__PURE__ */ s(
|
|
45
|
+
Pn,
|
|
46
|
+
{
|
|
47
|
+
scope: o,
|
|
48
|
+
onClose: a.useCallback(() => u(!1), [u]),
|
|
49
|
+
isUsingKeyboardRef: p,
|
|
50
|
+
dir: f,
|
|
51
|
+
modal: d,
|
|
52
|
+
children: t
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
) });
|
|
57
|
+
};
|
|
58
|
+
Ce.displayName = F;
|
|
59
|
+
var Dn = "MenuAnchor", Q = a.forwardRef(
|
|
60
|
+
(e, o) => {
|
|
61
|
+
const { __scopeMenu: n, ...t } = e, r = Y(n);
|
|
62
|
+
return /* @__PURE__ */ s(ln, { ...r, ...t, ref: o });
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
Q.displayName = Dn;
|
|
66
|
+
var ee = "MenuPortal", [En, Re] = P(ee, {
|
|
67
|
+
forceMount: void 0
|
|
68
|
+
}), Pe = (e) => {
|
|
69
|
+
const { __scopeMenu: o, forceMount: n, children: t, container: r } = e, c = D(ee, o);
|
|
70
|
+
return /* @__PURE__ */ s(En, { scope: o, forceMount: n, children: /* @__PURE__ */ s(X, { present: n || c.open, children: /* @__PURE__ */ s(tn, { asChild: !0, container: r, children: t }) }) });
|
|
71
|
+
};
|
|
72
|
+
Pe.displayName = ee;
|
|
73
|
+
var C = "MenuContent", [In, ne] = P(C), De = a.forwardRef(
|
|
74
|
+
(e, o) => {
|
|
75
|
+
const n = Re(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = D(C, e.__scopeMenu), d = G(C, e.__scopeMenu);
|
|
76
|
+
return /* @__PURE__ */ s(O.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(X, { present: t || c.open, children: /* @__PURE__ */ s(O.Slot, { scope: e.__scopeMenu, children: d.modal ? /* @__PURE__ */ s(Sn, { ...r, ref: o }) : /* @__PURE__ */ s(yn, { ...r, ref: o }) }) }) });
|
|
77
|
+
}
|
|
78
|
+
), Sn = a.forwardRef(
|
|
79
|
+
(e, o) => {
|
|
80
|
+
const n = D(C, e.__scopeMenu), t = a.useRef(null), r = L(o, t);
|
|
81
|
+
return a.useEffect(() => {
|
|
82
|
+
const c = t.current;
|
|
83
|
+
if (c) return an(c);
|
|
84
|
+
}, []), /* @__PURE__ */ s(
|
|
85
|
+
oe,
|
|
86
|
+
{
|
|
87
|
+
...e,
|
|
88
|
+
ref: r,
|
|
89
|
+
trapFocus: n.open,
|
|
90
|
+
disableOutsidePointerEvents: n.open,
|
|
91
|
+
disableOutsideScroll: !0,
|
|
92
|
+
onFocusOutside: v(
|
|
93
|
+
e.onFocusOutside,
|
|
94
|
+
(c) => c.preventDefault(),
|
|
95
|
+
{ checkForDefaultPrevented: !1 }
|
|
96
|
+
),
|
|
97
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
), yn = a.forwardRef((e, o) => {
|
|
102
|
+
const n = D(C, e.__scopeMenu);
|
|
103
|
+
return /* @__PURE__ */ s(
|
|
104
|
+
oe,
|
|
105
|
+
{
|
|
106
|
+
...e,
|
|
107
|
+
ref: o,
|
|
108
|
+
trapFocus: !1,
|
|
109
|
+
disableOutsidePointerEvents: !1,
|
|
110
|
+
disableOutsideScroll: !1,
|
|
111
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}), bn = Je("MenuContent.ScrollLock"), oe = a.forwardRef(
|
|
115
|
+
(e, o) => {
|
|
116
|
+
const {
|
|
117
|
+
__scopeMenu: n,
|
|
118
|
+
loop: t = !1,
|
|
119
|
+
trapFocus: r,
|
|
120
|
+
onOpenAutoFocus: c,
|
|
121
|
+
onCloseAutoFocus: d,
|
|
122
|
+
disableOutsidePointerEvents: l,
|
|
123
|
+
onEntryFocus: m,
|
|
124
|
+
onEscapeKeyDown: M,
|
|
125
|
+
onPointerDownOutside: p,
|
|
126
|
+
onFocusOutside: u,
|
|
127
|
+
onInteractOutside: f,
|
|
128
|
+
onDismiss: _,
|
|
129
|
+
disableOutsideScroll: h,
|
|
130
|
+
...E
|
|
131
|
+
} = e, x = D(C, n), I = G(C, n), Xe = Y(n), Ye = _e(n), ce = _n(n), [je, se] = a.useState(null), K = a.useRef(null), He = L(o, K, x.onContentChange), U = a.useRef(0), B = a.useRef(""), We = a.useRef(0), W = a.useRef(null), ue = a.useRef("right"), z = a.useRef(0), ze = h ? sn : a.Fragment, Ze = h ? { as: bn, allowPinchZoom: !0 } : void 0, qe = (i) => {
|
|
132
|
+
const y = B.current + i, R = ce().filter((g) => !g.disabled), A = document.activeElement, Z = R.find((g) => g.ref.current === A)?.textValue, q = R.map((g) => g.textValue), ie = Bn(q, y, Z), N = R.find((g) => g.textValue === ie)?.ref.current;
|
|
133
|
+
(function g(de) {
|
|
134
|
+
B.current = de, window.clearTimeout(U.current), de !== "" && (U.current = window.setTimeout(() => g(""), 1e3));
|
|
135
|
+
})(y), N && setTimeout(() => N.focus());
|
|
136
|
+
};
|
|
137
|
+
a.useEffect(() => () => window.clearTimeout(U.current), []), cn();
|
|
138
|
+
const S = a.useCallback((i) => ue.current === W.current?.side && Vn(i, W.current?.area), []);
|
|
139
|
+
return /* @__PURE__ */ s(
|
|
140
|
+
In,
|
|
141
|
+
{
|
|
142
|
+
scope: n,
|
|
143
|
+
searchRef: B,
|
|
144
|
+
onItemEnter: a.useCallback(
|
|
145
|
+
(i) => {
|
|
146
|
+
S(i) && i.preventDefault();
|
|
147
|
+
},
|
|
148
|
+
[S]
|
|
149
|
+
),
|
|
150
|
+
onItemLeave: a.useCallback(
|
|
151
|
+
(i) => {
|
|
152
|
+
S(i) || (K.current?.focus(), se(null));
|
|
153
|
+
},
|
|
154
|
+
[S]
|
|
155
|
+
),
|
|
156
|
+
onTriggerLeave: a.useCallback(
|
|
157
|
+
(i) => {
|
|
158
|
+
S(i) && i.preventDefault();
|
|
159
|
+
},
|
|
160
|
+
[S]
|
|
161
|
+
),
|
|
162
|
+
pointerGraceTimerRef: We,
|
|
163
|
+
onPointerGraceIntentChange: a.useCallback((i) => {
|
|
164
|
+
W.current = i;
|
|
165
|
+
}, []),
|
|
166
|
+
children: /* @__PURE__ */ s(ze, { ...Ze, children: /* @__PURE__ */ s(
|
|
167
|
+
un,
|
|
168
|
+
{
|
|
169
|
+
asChild: !0,
|
|
170
|
+
trapped: r,
|
|
171
|
+
onMountAutoFocus: v(c, (i) => {
|
|
172
|
+
i.preventDefault(), K.current?.focus({ preventScroll: !0 });
|
|
173
|
+
}),
|
|
174
|
+
onUnmountAutoFocus: d,
|
|
175
|
+
children: /* @__PURE__ */ s(
|
|
176
|
+
rn,
|
|
177
|
+
{
|
|
178
|
+
asChild: !0,
|
|
179
|
+
disableOutsidePointerEvents: l,
|
|
180
|
+
onEscapeKeyDown: M,
|
|
181
|
+
onPointerDownOutside: p,
|
|
182
|
+
onFocusOutside: u,
|
|
183
|
+
onInteractOutside: f,
|
|
184
|
+
onDismiss: _,
|
|
185
|
+
children: /* @__PURE__ */ s(
|
|
186
|
+
Mn,
|
|
187
|
+
{
|
|
188
|
+
asChild: !0,
|
|
189
|
+
...Ye,
|
|
190
|
+
dir: I.dir,
|
|
191
|
+
orientation: "vertical",
|
|
192
|
+
loop: t,
|
|
193
|
+
currentTabStopId: je,
|
|
194
|
+
onCurrentTabStopIdChange: se,
|
|
195
|
+
onEntryFocus: v(m, (i) => {
|
|
196
|
+
I.isUsingKeyboardRef.current || i.preventDefault();
|
|
197
|
+
}),
|
|
198
|
+
preventScrollOnEntryFocus: !0,
|
|
199
|
+
children: /* @__PURE__ */ s(
|
|
200
|
+
fn,
|
|
201
|
+
{
|
|
202
|
+
role: "menu",
|
|
203
|
+
"aria-orientation": "vertical",
|
|
204
|
+
"data-state": Ue(x.open),
|
|
205
|
+
"data-radix-menu-content": "",
|
|
206
|
+
dir: I.dir,
|
|
207
|
+
...Xe,
|
|
208
|
+
...E,
|
|
209
|
+
ref: He,
|
|
210
|
+
style: { outline: "none", ...E.style },
|
|
211
|
+
onKeyDown: v(E.onKeyDown, (i) => {
|
|
212
|
+
const R = i.target.closest("[data-radix-menu-content]") === i.currentTarget, A = i.ctrlKey || i.altKey || i.metaKey, Z = i.key.length === 1;
|
|
213
|
+
R && (i.key === "Tab" && i.preventDefault(), !A && Z && qe(i.key));
|
|
214
|
+
const q = K.current;
|
|
215
|
+
if (i.target !== q || !hn.includes(i.key)) return;
|
|
216
|
+
i.preventDefault();
|
|
217
|
+
const N = ce().filter((g) => !g.disabled).map((g) => g.ref.current);
|
|
218
|
+
we.includes(i.key) && N.reverse(), Kn(N);
|
|
219
|
+
}),
|
|
220
|
+
onBlur: v(e.onBlur, (i) => {
|
|
221
|
+
i.currentTarget.contains(i.target) || (window.clearTimeout(U.current), B.current = "");
|
|
222
|
+
}),
|
|
223
|
+
onPointerMove: v(
|
|
224
|
+
e.onPointerMove,
|
|
225
|
+
k((i) => {
|
|
226
|
+
const y = i.target, R = z.current !== i.clientX;
|
|
227
|
+
if (i.currentTarget.contains(y) && R) {
|
|
228
|
+
const A = i.clientX > z.current ? "right" : "left";
|
|
229
|
+
ue.current = A, z.current = i.clientX;
|
|
230
|
+
}
|
|
231
|
+
})
|
|
232
|
+
)
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
}
|
|
240
|
+
) })
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
De.displayName = C;
|
|
246
|
+
var xn = "MenuGroup", te = a.forwardRef(
|
|
247
|
+
(e, o) => {
|
|
248
|
+
const { __scopeMenu: n, ...t } = e;
|
|
249
|
+
return /* @__PURE__ */ s(b.div, { role: "group", ...t, ref: o });
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
te.displayName = xn;
|
|
253
|
+
var An = "MenuLabel", Ee = a.forwardRef(
|
|
254
|
+
(e, o) => {
|
|
255
|
+
const { __scopeMenu: n, ...t } = e;
|
|
256
|
+
return /* @__PURE__ */ s(b.div, { ...t, ref: o });
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
Ee.displayName = An;
|
|
260
|
+
var $ = "MenuItem", pe = "menu.itemSelect", j = a.forwardRef(
|
|
261
|
+
(e, o) => {
|
|
262
|
+
const { disabled: n = !1, onSelect: t, ...r } = e, c = a.useRef(null), d = G($, e.__scopeMenu), l = ne($, e.__scopeMenu), m = L(o, c), M = a.useRef(!1), p = () => {
|
|
263
|
+
const u = c.current;
|
|
264
|
+
if (!n && u) {
|
|
265
|
+
const f = new CustomEvent(pe, { bubbles: !0, cancelable: !0 });
|
|
266
|
+
u.addEventListener(pe, (_) => t?.(_), { once: !0 }), en(u, f), f.defaultPrevented ? M.current = !1 : d.onClose();
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
return /* @__PURE__ */ s(
|
|
270
|
+
Ie,
|
|
271
|
+
{
|
|
272
|
+
...r,
|
|
273
|
+
ref: m,
|
|
274
|
+
disabled: n,
|
|
275
|
+
onClick: v(e.onClick, p),
|
|
276
|
+
onPointerDown: (u) => {
|
|
277
|
+
e.onPointerDown?.(u), M.current = !0;
|
|
278
|
+
},
|
|
279
|
+
onPointerUp: v(e.onPointerUp, (u) => {
|
|
280
|
+
M.current || u.currentTarget?.click();
|
|
281
|
+
}),
|
|
282
|
+
onKeyDown: v(e.onKeyDown, (u) => {
|
|
283
|
+
const f = l.searchRef.current !== "";
|
|
284
|
+
n || f && u.key === " " || J.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
|
|
285
|
+
})
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
);
|
|
290
|
+
j.displayName = $;
|
|
291
|
+
var Ie = a.forwardRef(
|
|
292
|
+
(e, o) => {
|
|
293
|
+
const { __scopeMenu: n, disabled: t = !1, textValue: r, ...c } = e, d = ne($, n), l = _e(n), m = a.useRef(null), M = L(o, m), [p, u] = a.useState(!1), [f, _] = a.useState("");
|
|
294
|
+
return a.useEffect(() => {
|
|
295
|
+
const h = m.current;
|
|
296
|
+
h && _((h.textContent ?? "").trim());
|
|
297
|
+
}, [c.children]), /* @__PURE__ */ s(
|
|
298
|
+
O.ItemSlot,
|
|
299
|
+
{
|
|
300
|
+
scope: n,
|
|
301
|
+
disabled: t,
|
|
302
|
+
textValue: r ?? f,
|
|
303
|
+
children: /* @__PURE__ */ s(mn, { asChild: !0, ...l, focusable: !t, children: /* @__PURE__ */ s(
|
|
304
|
+
b.div,
|
|
305
|
+
{
|
|
306
|
+
role: "menuitem",
|
|
307
|
+
"data-highlighted": p ? "" : void 0,
|
|
308
|
+
"aria-disabled": t || void 0,
|
|
309
|
+
"data-disabled": t ? "" : void 0,
|
|
310
|
+
...c,
|
|
311
|
+
ref: M,
|
|
312
|
+
onPointerMove: v(
|
|
313
|
+
e.onPointerMove,
|
|
314
|
+
k((h) => {
|
|
315
|
+
t ? d.onItemLeave(h) : (d.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
|
|
316
|
+
})
|
|
317
|
+
),
|
|
318
|
+
onPointerLeave: v(
|
|
319
|
+
e.onPointerLeave,
|
|
320
|
+
k((h) => d.onItemLeave(h))
|
|
321
|
+
),
|
|
322
|
+
onFocus: v(e.onFocus, () => u(!0)),
|
|
323
|
+
onBlur: v(e.onBlur, () => u(!1))
|
|
324
|
+
}
|
|
325
|
+
) })
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
), Nn = "MenuCheckboxItem", Se = a.forwardRef(
|
|
330
|
+
(e, o) => {
|
|
331
|
+
const { checked: n = !1, onCheckedChange: t, ...r } = e;
|
|
332
|
+
return /* @__PURE__ */ s(Ne, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ s(
|
|
333
|
+
j,
|
|
334
|
+
{
|
|
335
|
+
role: "menuitemcheckbox",
|
|
336
|
+
"aria-checked": V(n) ? "mixed" : n,
|
|
337
|
+
...r,
|
|
338
|
+
ref: o,
|
|
339
|
+
"data-state": ae(n),
|
|
340
|
+
onSelect: v(
|
|
341
|
+
r.onSelect,
|
|
342
|
+
() => t?.(V(n) ? !0 : !n),
|
|
343
|
+
{ checkForDefaultPrevented: !1 }
|
|
344
|
+
)
|
|
345
|
+
}
|
|
346
|
+
) });
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
Se.displayName = Nn;
|
|
350
|
+
var ye = "MenuRadioGroup", [Tn, On] = P(
|
|
351
|
+
ye,
|
|
352
|
+
{ value: void 0, onValueChange: () => {
|
|
353
|
+
} }
|
|
354
|
+
), be = a.forwardRef(
|
|
355
|
+
(e, o) => {
|
|
356
|
+
const { value: n, onValueChange: t, ...r } = e, c = he(t);
|
|
357
|
+
return /* @__PURE__ */ s(Tn, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ s(te, { ...r, ref: o }) });
|
|
358
|
+
}
|
|
359
|
+
);
|
|
360
|
+
be.displayName = ye;
|
|
361
|
+
var xe = "MenuRadioItem", Ae = a.forwardRef(
|
|
362
|
+
(e, o) => {
|
|
363
|
+
const { value: n, ...t } = e, r = On(xe, e.__scopeMenu), c = n === r.value;
|
|
364
|
+
return /* @__PURE__ */ s(Ne, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ s(
|
|
365
|
+
j,
|
|
366
|
+
{
|
|
367
|
+
role: "menuitemradio",
|
|
368
|
+
"aria-checked": c,
|
|
369
|
+
...t,
|
|
370
|
+
ref: o,
|
|
371
|
+
"data-state": ae(c),
|
|
372
|
+
onSelect: v(
|
|
373
|
+
t.onSelect,
|
|
374
|
+
() => r.onValueChange?.(n),
|
|
375
|
+
{ checkForDefaultPrevented: !1 }
|
|
376
|
+
)
|
|
377
|
+
}
|
|
378
|
+
) });
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
Ae.displayName = xe;
|
|
382
|
+
var re = "MenuItemIndicator", [Ne, kn] = P(
|
|
383
|
+
re,
|
|
384
|
+
{ checked: !1 }
|
|
385
|
+
), Te = a.forwardRef(
|
|
386
|
+
(e, o) => {
|
|
387
|
+
const { __scopeMenu: n, forceMount: t, ...r } = e, c = kn(re, n);
|
|
388
|
+
return /* @__PURE__ */ s(
|
|
389
|
+
X,
|
|
390
|
+
{
|
|
391
|
+
present: t || V(c.checked) || c.checked === !0,
|
|
392
|
+
children: /* @__PURE__ */ s(
|
|
393
|
+
b.span,
|
|
394
|
+
{
|
|
395
|
+
...r,
|
|
396
|
+
ref: o,
|
|
397
|
+
"data-state": ae(c.checked)
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
);
|
|
404
|
+
Te.displayName = re;
|
|
405
|
+
var Ln = "MenuSeparator", Oe = a.forwardRef(
|
|
406
|
+
(e, o) => {
|
|
407
|
+
const { __scopeMenu: n, ...t } = e;
|
|
408
|
+
return /* @__PURE__ */ s(
|
|
409
|
+
b.div,
|
|
410
|
+
{
|
|
411
|
+
role: "separator",
|
|
412
|
+
"aria-orientation": "horizontal",
|
|
413
|
+
...t,
|
|
414
|
+
ref: o
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
);
|
|
419
|
+
Oe.displayName = Ln;
|
|
420
|
+
var Fn = "MenuArrow", ke = a.forwardRef(
|
|
421
|
+
(e, o) => {
|
|
422
|
+
const { __scopeMenu: n, ...t } = e, r = Y(n);
|
|
423
|
+
return /* @__PURE__ */ s(pn, { ...r, ...t, ref: o });
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
ke.displayName = Fn;
|
|
427
|
+
var Gn = "MenuSub", [zo, Le] = P(Gn), T = "MenuSubTrigger", Fe = a.forwardRef(
|
|
428
|
+
(e, o) => {
|
|
429
|
+
const n = D(T, e.__scopeMenu), t = G(T, e.__scopeMenu), r = Le(T, e.__scopeMenu), c = ne(T, e.__scopeMenu), d = a.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: m } = c, M = { __scopeMenu: e.__scopeMenu }, p = a.useCallback(() => {
|
|
430
|
+
d.current && window.clearTimeout(d.current), d.current = null;
|
|
431
|
+
}, []);
|
|
432
|
+
return a.useEffect(() => p, [p]), a.useEffect(() => {
|
|
433
|
+
const u = l.current;
|
|
434
|
+
return () => {
|
|
435
|
+
window.clearTimeout(u), m(null);
|
|
436
|
+
};
|
|
437
|
+
}, [l, m]), /* @__PURE__ */ s(Q, { asChild: !0, ...M, children: /* @__PURE__ */ s(
|
|
438
|
+
Ie,
|
|
439
|
+
{
|
|
440
|
+
id: r.triggerId,
|
|
441
|
+
"aria-haspopup": "menu",
|
|
442
|
+
"aria-expanded": n.open,
|
|
443
|
+
"aria-controls": r.contentId,
|
|
444
|
+
"data-state": Ue(n.open),
|
|
445
|
+
...e,
|
|
446
|
+
ref: me(o, r.onTriggerChange),
|
|
447
|
+
onClick: (u) => {
|
|
448
|
+
e.onClick?.(u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
449
|
+
},
|
|
450
|
+
onPointerMove: v(
|
|
451
|
+
e.onPointerMove,
|
|
452
|
+
k((u) => {
|
|
453
|
+
c.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !d.current && (c.onPointerGraceIntentChange(null), d.current = window.setTimeout(() => {
|
|
454
|
+
n.onOpenChange(!0), p();
|
|
455
|
+
}, 100));
|
|
456
|
+
})
|
|
457
|
+
),
|
|
458
|
+
onPointerLeave: v(
|
|
459
|
+
e.onPointerLeave,
|
|
460
|
+
k((u) => {
|
|
461
|
+
p();
|
|
462
|
+
const f = n.content?.getBoundingClientRect();
|
|
463
|
+
if (f) {
|
|
464
|
+
const _ = n.content?.dataset.side, h = _ === "right", E = h ? -5 : 5, x = f[h ? "left" : "right"], I = f[h ? "right" : "left"];
|
|
465
|
+
c.onPointerGraceIntentChange({
|
|
466
|
+
area: [
|
|
467
|
+
// Apply a bleed on clientX to ensure that our exit point is
|
|
468
|
+
// consistently within polygon bounds
|
|
469
|
+
{ x: u.clientX + E, y: u.clientY },
|
|
470
|
+
{ x, y: f.top },
|
|
471
|
+
{ x: I, y: f.top },
|
|
472
|
+
{ x: I, y: f.bottom },
|
|
473
|
+
{ x, y: f.bottom }
|
|
474
|
+
],
|
|
475
|
+
side: _
|
|
476
|
+
}), window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
477
|
+
() => c.onPointerGraceIntentChange(null),
|
|
478
|
+
300
|
|
479
|
+
);
|
|
480
|
+
} else {
|
|
481
|
+
if (c.onTriggerLeave(u), u.defaultPrevented) return;
|
|
482
|
+
c.onPointerGraceIntentChange(null);
|
|
483
|
+
}
|
|
484
|
+
})
|
|
485
|
+
),
|
|
486
|
+
onKeyDown: v(e.onKeyDown, (u) => {
|
|
487
|
+
const f = c.searchRef.current !== "";
|
|
488
|
+
e.disabled || f && u.key === " " || wn[t.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
) });
|
|
492
|
+
}
|
|
493
|
+
);
|
|
494
|
+
Fe.displayName = T;
|
|
495
|
+
var Ge = "MenuSubContent", Ke = a.forwardRef(
|
|
496
|
+
(e, o) => {
|
|
497
|
+
const n = Re(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = D(C, e.__scopeMenu), d = G(C, e.__scopeMenu), l = Le(Ge, e.__scopeMenu), m = a.useRef(null), M = L(o, m);
|
|
498
|
+
return /* @__PURE__ */ s(O.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(X, { present: t || c.open, children: /* @__PURE__ */ s(O.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(
|
|
499
|
+
oe,
|
|
500
|
+
{
|
|
501
|
+
id: l.contentId,
|
|
502
|
+
"aria-labelledby": l.triggerId,
|
|
503
|
+
...r,
|
|
504
|
+
ref: M,
|
|
505
|
+
align: "start",
|
|
506
|
+
side: d.dir === "rtl" ? "left" : "right",
|
|
507
|
+
disableOutsidePointerEvents: !1,
|
|
508
|
+
disableOutsideScroll: !1,
|
|
509
|
+
trapFocus: !1,
|
|
510
|
+
onOpenAutoFocus: (p) => {
|
|
511
|
+
d.isUsingKeyboardRef.current && m.current?.focus(), p.preventDefault();
|
|
512
|
+
},
|
|
513
|
+
onCloseAutoFocus: (p) => p.preventDefault(),
|
|
514
|
+
onFocusOutside: v(e.onFocusOutside, (p) => {
|
|
515
|
+
p.target !== l.trigger && c.onOpenChange(!1);
|
|
516
|
+
}),
|
|
517
|
+
onEscapeKeyDown: v(e.onEscapeKeyDown, (p) => {
|
|
518
|
+
d.onClose(), p.preventDefault();
|
|
519
|
+
}),
|
|
520
|
+
onKeyDown: v(e.onKeyDown, (p) => {
|
|
521
|
+
const u = p.currentTarget.contains(p.target), f = gn[d.dir].includes(p.key);
|
|
522
|
+
u && f && (c.onOpenChange(!1), l.trigger?.focus(), p.preventDefault());
|
|
523
|
+
})
|
|
524
|
+
}
|
|
525
|
+
) }) }) });
|
|
526
|
+
}
|
|
527
|
+
);
|
|
528
|
+
Ke.displayName = Ge;
|
|
529
|
+
function Ue(e) {
|
|
530
|
+
return e ? "open" : "closed";
|
|
531
|
+
}
|
|
532
|
+
function V(e) {
|
|
533
|
+
return e === "indeterminate";
|
|
534
|
+
}
|
|
535
|
+
function ae(e) {
|
|
536
|
+
return V(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
537
|
+
}
|
|
538
|
+
function Kn(e) {
|
|
539
|
+
const o = document.activeElement;
|
|
540
|
+
for (const n of e)
|
|
541
|
+
if (n === o || (n.focus(), document.activeElement !== o)) return;
|
|
542
|
+
}
|
|
543
|
+
function Un(e, o) {
|
|
544
|
+
return e.map((n, t) => e[(o + t) % e.length]);
|
|
545
|
+
}
|
|
546
|
+
function Bn(e, o, n) {
|
|
547
|
+
const r = o.length > 1 && Array.from(o).every((M) => M === o[0]) ? o[0] : o, c = n ? e.indexOf(n) : -1;
|
|
548
|
+
let d = Un(e, Math.max(c, 0));
|
|
549
|
+
r.length === 1 && (d = d.filter((M) => M !== n));
|
|
550
|
+
const m = d.find(
|
|
551
|
+
(M) => M.toLowerCase().startsWith(r.toLowerCase())
|
|
552
|
+
);
|
|
553
|
+
return m !== n ? m : void 0;
|
|
554
|
+
}
|
|
555
|
+
function $n(e, o) {
|
|
556
|
+
const { x: n, y: t } = e;
|
|
557
|
+
let r = !1;
|
|
558
|
+
for (let c = 0, d = o.length - 1; c < o.length; d = c++) {
|
|
559
|
+
const l = o[c], m = o[d], M = l.x, p = l.y, u = m.x, f = m.y;
|
|
560
|
+
p > t != f > t && n < (u - M) * (t - p) / (f - p) + M && (r = !r);
|
|
561
|
+
}
|
|
562
|
+
return r;
|
|
563
|
+
}
|
|
564
|
+
function Vn(e, o) {
|
|
565
|
+
if (!o) return !1;
|
|
566
|
+
const n = { x: e.clientX, y: e.clientY };
|
|
567
|
+
return $n(n, o);
|
|
568
|
+
}
|
|
569
|
+
function k(e) {
|
|
570
|
+
return (o) => o.pointerType === "mouse" ? e(o) : void 0;
|
|
571
|
+
}
|
|
572
|
+
var Xn = Ce, Yn = Q, jn = Pe, Hn = De, Wn = te, zn = Ee, Zn = j, qn = Se, Jn = be, Qn = Ae, eo = Te, no = Oe, oo = ke, to = Fe, ro = Ke, H = "DropdownMenu", [ao] = fe(
|
|
573
|
+
H,
|
|
574
|
+
[ge]
|
|
575
|
+
), w = ge(), [co, Be] = ao(H), so = (e) => {
|
|
576
|
+
const {
|
|
577
|
+
__scopeDropdownMenu: o,
|
|
578
|
+
children: n,
|
|
579
|
+
dir: t,
|
|
580
|
+
open: r,
|
|
581
|
+
defaultOpen: c,
|
|
582
|
+
onOpenChange: d,
|
|
583
|
+
modal: l = !0
|
|
584
|
+
} = e, m = w(o), M = a.useRef(null), [p, u] = Qe({
|
|
585
|
+
prop: r,
|
|
586
|
+
defaultProp: c ?? !1,
|
|
587
|
+
onChange: d,
|
|
588
|
+
caller: H
|
|
589
|
+
});
|
|
590
|
+
return /* @__PURE__ */ s(
|
|
591
|
+
co,
|
|
592
|
+
{
|
|
593
|
+
scope: o,
|
|
594
|
+
triggerId: le(),
|
|
595
|
+
triggerRef: M,
|
|
596
|
+
contentId: le(),
|
|
597
|
+
open: p,
|
|
598
|
+
onOpenChange: u,
|
|
599
|
+
onOpenToggle: a.useCallback(() => u((f) => !f), [u]),
|
|
600
|
+
modal: l,
|
|
601
|
+
children: /* @__PURE__ */ s(Xn, { ...m, open: p, onOpenChange: u, dir: t, modal: l, children: n })
|
|
602
|
+
}
|
|
603
|
+
);
|
|
604
|
+
};
|
|
605
|
+
so.displayName = H;
|
|
606
|
+
var $e = "DropdownMenuTrigger", uo = a.forwardRef(
|
|
607
|
+
(e, o) => {
|
|
608
|
+
const { __scopeDropdownMenu: n, disabled: t = !1, ...r } = e, c = Be($e, n), d = w(n);
|
|
609
|
+
return /* @__PURE__ */ s(Yn, { asChild: !0, ...d, children: /* @__PURE__ */ s(
|
|
610
|
+
b.button,
|
|
611
|
+
{
|
|
612
|
+
type: "button",
|
|
613
|
+
id: c.triggerId,
|
|
614
|
+
"aria-haspopup": "menu",
|
|
615
|
+
"aria-expanded": c.open,
|
|
616
|
+
"aria-controls": c.open ? c.contentId : void 0,
|
|
617
|
+
"data-state": c.open ? "open" : "closed",
|
|
618
|
+
"data-disabled": t ? "" : void 0,
|
|
619
|
+
disabled: t,
|
|
620
|
+
...r,
|
|
621
|
+
ref: me(o, c.triggerRef),
|
|
622
|
+
onPointerDown: v(e.onPointerDown, (l) => {
|
|
623
|
+
!t && l.button === 0 && l.ctrlKey === !1 && (c.onOpenToggle(), c.open || l.preventDefault());
|
|
624
|
+
}),
|
|
625
|
+
onKeyDown: v(e.onKeyDown, (l) => {
|
|
626
|
+
t || (["Enter", " "].includes(l.key) && c.onOpenToggle(), l.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
) });
|
|
630
|
+
}
|
|
631
|
+
);
|
|
632
|
+
uo.displayName = $e;
|
|
633
|
+
var io = "DropdownMenuPortal", lo = (e) => {
|
|
634
|
+
const { __scopeDropdownMenu: o, ...n } = e, t = w(o);
|
|
635
|
+
return /* @__PURE__ */ s(jn, { ...t, ...n });
|
|
636
|
+
};
|
|
637
|
+
lo.displayName = io;
|
|
638
|
+
var Ve = "DropdownMenuContent", po = a.forwardRef(
|
|
639
|
+
(e, o) => {
|
|
640
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = Be(Ve, n), c = w(n), d = a.useRef(!1);
|
|
641
|
+
return /* @__PURE__ */ s(
|
|
642
|
+
Hn,
|
|
643
|
+
{
|
|
644
|
+
id: r.contentId,
|
|
645
|
+
"aria-labelledby": r.triggerId,
|
|
646
|
+
...c,
|
|
647
|
+
...t,
|
|
648
|
+
ref: o,
|
|
649
|
+
onCloseAutoFocus: v(e.onCloseAutoFocus, (l) => {
|
|
650
|
+
d.current || r.triggerRef.current?.focus(), d.current = !1, l.preventDefault();
|
|
651
|
+
}),
|
|
652
|
+
onInteractOutside: v(e.onInteractOutside, (l) => {
|
|
653
|
+
const m = l.detail.originalEvent, M = m.button === 0 && m.ctrlKey === !0, p = m.button === 2 || M;
|
|
654
|
+
(!r.modal || p) && (d.current = !0);
|
|
655
|
+
}),
|
|
656
|
+
style: {
|
|
657
|
+
...e.style,
|
|
658
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
659
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
660
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
661
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
662
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
);
|
|
668
|
+
po.displayName = Ve;
|
|
669
|
+
var fo = "DropdownMenuGroup", mo = a.forwardRef(
|
|
670
|
+
(e, o) => {
|
|
671
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
672
|
+
return /* @__PURE__ */ s(Wn, { ...r, ...t, ref: o });
|
|
673
|
+
}
|
|
674
|
+
);
|
|
675
|
+
mo.displayName = fo;
|
|
676
|
+
var Mo = "DropdownMenuLabel", vo = a.forwardRef(
|
|
677
|
+
(e, o) => {
|
|
678
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
679
|
+
return /* @__PURE__ */ s(zn, { ...r, ...t, ref: o });
|
|
680
|
+
}
|
|
681
|
+
);
|
|
682
|
+
vo.displayName = Mo;
|
|
683
|
+
var ho = "DropdownMenuItem", wo = a.forwardRef(
|
|
684
|
+
(e, o) => {
|
|
685
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
686
|
+
return /* @__PURE__ */ s(Zn, { ...r, ...t, ref: o });
|
|
687
|
+
}
|
|
688
|
+
);
|
|
689
|
+
wo.displayName = ho;
|
|
690
|
+
var go = "DropdownMenuCheckboxItem", _o = a.forwardRef((e, o) => {
|
|
691
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
692
|
+
return /* @__PURE__ */ s(qn, { ...r, ...t, ref: o });
|
|
693
|
+
});
|
|
694
|
+
_o.displayName = go;
|
|
695
|
+
var Co = "DropdownMenuRadioGroup", Ro = a.forwardRef((e, o) => {
|
|
696
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
697
|
+
return /* @__PURE__ */ s(Jn, { ...r, ...t, ref: o });
|
|
698
|
+
});
|
|
699
|
+
Ro.displayName = Co;
|
|
700
|
+
var Po = "DropdownMenuRadioItem", Do = a.forwardRef((e, o) => {
|
|
701
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
702
|
+
return /* @__PURE__ */ s(Qn, { ...r, ...t, ref: o });
|
|
703
|
+
});
|
|
704
|
+
Do.displayName = Po;
|
|
705
|
+
var Eo = "DropdownMenuItemIndicator", Io = a.forwardRef((e, o) => {
|
|
706
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
707
|
+
return /* @__PURE__ */ s(eo, { ...r, ...t, ref: o });
|
|
708
|
+
});
|
|
709
|
+
Io.displayName = Eo;
|
|
710
|
+
var So = "DropdownMenuSeparator", yo = a.forwardRef((e, o) => {
|
|
711
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
712
|
+
return /* @__PURE__ */ s(no, { ...r, ...t, ref: o });
|
|
713
|
+
});
|
|
714
|
+
yo.displayName = So;
|
|
715
|
+
var bo = "DropdownMenuArrow", xo = a.forwardRef(
|
|
716
|
+
(e, o) => {
|
|
717
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
718
|
+
return /* @__PURE__ */ s(oo, { ...r, ...t, ref: o });
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
xo.displayName = bo;
|
|
722
|
+
var Ao = "DropdownMenuSubTrigger", No = a.forwardRef((e, o) => {
|
|
723
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
724
|
+
return /* @__PURE__ */ s(to, { ...r, ...t, ref: o });
|
|
725
|
+
});
|
|
726
|
+
No.displayName = Ao;
|
|
727
|
+
var To = "DropdownMenuSubContent", Oo = a.forwardRef((e, o) => {
|
|
728
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
|
|
729
|
+
return /* @__PURE__ */ s(
|
|
730
|
+
ro,
|
|
731
|
+
{
|
|
732
|
+
...r,
|
|
733
|
+
...t,
|
|
734
|
+
ref: o,
|
|
735
|
+
style: {
|
|
736
|
+
...e.style,
|
|
737
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
738
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
739
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
740
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
741
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
);
|
|
745
|
+
});
|
|
746
|
+
Oo.displayName = To;
|
|
747
|
+
export {
|
|
748
|
+
so as D,
|
|
749
|
+
uo as a,
|
|
750
|
+
lo as b,
|
|
751
|
+
po as c,
|
|
752
|
+
wo as d,
|
|
753
|
+
xo as e
|
|
754
|
+
};
|