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,159 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { c as x, a as g } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { c as C, I as E, R as F } from "./index-DmeJCEwx.js";
|
|
5
|
+
import { P as w } from "./index-BGfrl8IX.js";
|
|
6
|
+
import { P as b } from "./index-CpDnqHCm.js";
|
|
7
|
+
import { u as D } from "./index-ByaXH_ih.js";
|
|
8
|
+
import { u as V } from "./index-437EL2iq.js";
|
|
9
|
+
import { u as G } from "./index-xqkGMOJ8.js";
|
|
10
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
11
|
+
var p = "Tabs", [L] = x(p, [
|
|
12
|
+
C
|
|
13
|
+
]), I = C(), [$, T] = L(p), h = v.forwardRef(
|
|
14
|
+
(e, r) => {
|
|
15
|
+
const {
|
|
16
|
+
__scopeTabs: s,
|
|
17
|
+
value: t,
|
|
18
|
+
onValueChange: n,
|
|
19
|
+
defaultValue: c,
|
|
20
|
+
orientation: a = "horizontal",
|
|
21
|
+
dir: d,
|
|
22
|
+
activationMode: f = "automatic",
|
|
23
|
+
...m
|
|
24
|
+
} = e, i = D(d), [o, l] = V({
|
|
25
|
+
prop: t,
|
|
26
|
+
onChange: n,
|
|
27
|
+
defaultProp: c ?? "",
|
|
28
|
+
caller: p
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ u(
|
|
31
|
+
$,
|
|
32
|
+
{
|
|
33
|
+
scope: s,
|
|
34
|
+
baseId: G(),
|
|
35
|
+
value: o,
|
|
36
|
+
onValueChange: l,
|
|
37
|
+
orientation: a,
|
|
38
|
+
dir: i,
|
|
39
|
+
activationMode: f,
|
|
40
|
+
children: /* @__PURE__ */ u(
|
|
41
|
+
b.div,
|
|
42
|
+
{
|
|
43
|
+
dir: i,
|
|
44
|
+
"data-orientation": a,
|
|
45
|
+
...m,
|
|
46
|
+
ref: r
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
h.displayName = p;
|
|
54
|
+
var R = "TabsList", _ = v.forwardRef(
|
|
55
|
+
(e, r) => {
|
|
56
|
+
const { __scopeTabs: s, loop: t = !0, ...n } = e, c = T(R, s), a = I(s);
|
|
57
|
+
return /* @__PURE__ */ u(
|
|
58
|
+
F,
|
|
59
|
+
{
|
|
60
|
+
asChild: !0,
|
|
61
|
+
...a,
|
|
62
|
+
orientation: c.orientation,
|
|
63
|
+
dir: c.dir,
|
|
64
|
+
loop: t,
|
|
65
|
+
children: /* @__PURE__ */ u(
|
|
66
|
+
b.div,
|
|
67
|
+
{
|
|
68
|
+
role: "tablist",
|
|
69
|
+
"aria-orientation": c.orientation,
|
|
70
|
+
...n,
|
|
71
|
+
ref: r
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
_.displayName = R;
|
|
79
|
+
var y = "TabsTrigger", A = v.forwardRef(
|
|
80
|
+
(e, r) => {
|
|
81
|
+
const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, a = T(y, s), d = I(s), f = N(a.baseId, t), m = S(a.baseId, t), i = t === a.value;
|
|
82
|
+
return /* @__PURE__ */ u(
|
|
83
|
+
E,
|
|
84
|
+
{
|
|
85
|
+
asChild: !0,
|
|
86
|
+
...d,
|
|
87
|
+
focusable: !n,
|
|
88
|
+
active: i,
|
|
89
|
+
children: /* @__PURE__ */ u(
|
|
90
|
+
b.button,
|
|
91
|
+
{
|
|
92
|
+
type: "button",
|
|
93
|
+
role: "tab",
|
|
94
|
+
"aria-selected": i,
|
|
95
|
+
"aria-controls": m,
|
|
96
|
+
"data-state": i ? "active" : "inactive",
|
|
97
|
+
"data-disabled": n ? "" : void 0,
|
|
98
|
+
disabled: n,
|
|
99
|
+
id: f,
|
|
100
|
+
...c,
|
|
101
|
+
ref: r,
|
|
102
|
+
onMouseDown: g(e.onMouseDown, (o) => {
|
|
103
|
+
!n && o.button === 0 && o.ctrlKey === !1 ? a.onValueChange(t) : o.preventDefault();
|
|
104
|
+
}),
|
|
105
|
+
onKeyDown: g(e.onKeyDown, (o) => {
|
|
106
|
+
[" ", "Enter"].includes(o.key) && a.onValueChange(t);
|
|
107
|
+
}),
|
|
108
|
+
onFocus: g(e.onFocus, () => {
|
|
109
|
+
const o = a.activationMode !== "manual";
|
|
110
|
+
!i && !n && o && a.onValueChange(t);
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
A.displayName = y;
|
|
119
|
+
var P = "TabsContent", M = v.forwardRef(
|
|
120
|
+
(e, r) => {
|
|
121
|
+
const { __scopeTabs: s, value: t, forceMount: n, children: c, ...a } = e, d = T(P, s), f = N(d.baseId, t), m = S(d.baseId, t), i = t === d.value, o = v.useRef(i);
|
|
122
|
+
return v.useEffect(() => {
|
|
123
|
+
const l = requestAnimationFrame(() => o.current = !1);
|
|
124
|
+
return () => cancelAnimationFrame(l);
|
|
125
|
+
}, []), /* @__PURE__ */ u(w, { present: n || i, children: ({ present: l }) => /* @__PURE__ */ u(
|
|
126
|
+
b.div,
|
|
127
|
+
{
|
|
128
|
+
"data-state": i ? "active" : "inactive",
|
|
129
|
+
"data-orientation": d.orientation,
|
|
130
|
+
role: "tabpanel",
|
|
131
|
+
"aria-labelledby": f,
|
|
132
|
+
hidden: !l,
|
|
133
|
+
id: m,
|
|
134
|
+
tabIndex: 0,
|
|
135
|
+
...a,
|
|
136
|
+
ref: r,
|
|
137
|
+
style: {
|
|
138
|
+
...e.style,
|
|
139
|
+
animationDuration: o.current ? "0s" : void 0
|
|
140
|
+
},
|
|
141
|
+
children: l && c
|
|
142
|
+
}
|
|
143
|
+
) });
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
M.displayName = P;
|
|
147
|
+
function N(e, r) {
|
|
148
|
+
return `${e}-trigger-${r}`;
|
|
149
|
+
}
|
|
150
|
+
function S(e, r) {
|
|
151
|
+
return `${e}-content-${r}`;
|
|
152
|
+
}
|
|
153
|
+
var J = h, Q = _, U = A, W = M;
|
|
154
|
+
export {
|
|
155
|
+
W as C,
|
|
156
|
+
Q as L,
|
|
157
|
+
J as R,
|
|
158
|
+
U as T
|
|
159
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const K=require("react"),g=require("./floating-ui.dom-C224prEy.cjs"),ve=require("react-dom"),X=require("./index-C2mPf2xD.cjs"),v=require("react/jsx-runtime"),Q=require("./index-CajSSBH7.cjs"),Ae=require("./index-BfKbXbc8.cjs"),Re=require("./index-CzY-WZXL.cjs"),G=require("./index-MQ0c3ZX_.cjs"),Ce=require("./index-bSPhqlcX.cjs");function ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=ee(K),Se=ee(ve);var Oe=typeof document<"u",_e=function(){},F=Oe?K.useLayoutEffect:_e;function I(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!I(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!I(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function te(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function J(e,t){const r=te(e);return Math.round(t*r)/r}function L(e){const t=o.useRef(e);return F(()=>{t.current=e}),t}function $e(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:l}={},transform:A=!0,whileElementsMounted:c,open:f}=e,[u,m]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[R,b]=o.useState(n);I(R,n)||b(n);const[w,p]=o.useState(null),[Y,M]=o.useState(null),q=o.useCallback(s=>{s!==x.current&&(x.current=s,p(s))},[]),H=o.useCallback(s=>{s!==C.current&&(C.current=s,M(s))},[]),d=a||w,y=l||Y,x=o.useRef(null),C=o.useRef(null),O=o.useRef(u),B=c!=null,j=L(c),E=L(i),z=L(f),h=o.useCallback(()=>{if(!x.current||!C.current)return;const s={placement:t,strategy:r,middleware:R};E.current&&(s.platform=E.current),g.computePosition(x.current,C.current,s).then($=>{const S={...$,isPositioned:z.current!==!1};N.current&&!I(O.current,S)&&(O.current=S,Se.flushSync(()=>{m(S)}))})},[R,t,r,E,z]);F(()=>{f===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(s=>({...s,isPositioned:!1})))},[f]);const N=o.useRef(!1);F(()=>(N.current=!0,()=>{N.current=!1}),[]),F(()=>{if(d&&(x.current=d),y&&(C.current=y),d&&y){if(j.current)return j.current(d,y,h);h()}},[d,y,h,j,B]);const D=o.useMemo(()=>({reference:x,floating:C,setReference:q,setFloating:H}),[q,H]),P=o.useMemo(()=>({reference:d,floating:y}),[d,y]),_=o.useMemo(()=>{const s={position:r,left:0,top:0};if(!P.floating)return s;const $=J(P.floating,u.x),S=J(P.floating,u.y);return A?{...s,transform:"translate("+$+"px, "+S+"px)",...te(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:S}},[r,A,P.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:h,refs:D,elements:P,floatingStyles:_}),[u,h,D,P,_])}const be=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?g.arrow({element:n.current,padding:i}).fn(r):{}:n?g.arrow({element:n,padding:i}).fn(r):{}}}},Ee=(e,t)=>({...g.offset(e),options:[e,t]}),Me=(e,t)=>({...g.shift(e),options:[e,t]}),je=(e,t)=>({...g.limitShift(e),options:[e,t]}),Ne=(e,t)=>({...g.flip(e),options:[e,t]}),De=(e,t)=>({...g.size(e),options:[e,t]}),ke=(e,t)=>({...g.hide(e),options:[e,t]}),qe=(e,t)=>({...be(e),options:[e,t]});var He="Arrow",re=o.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return v.jsx(X.Primitive.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=He;var ze=re,T="Popper",[ne,We]=Ae.createContextScope(T),[Fe,oe]=ne(T),ie=e=>{const{__scopePopper:t,children:r}=e,[n,i]=o.useState(null);return v.jsx(Fe,{scope:t,anchor:n,onAnchorChange:i,children:r})};ie.displayName=T;var se="PopperAnchor",ae=o.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=oe(se,r),l=o.useRef(null),A=Q.useComposedRefs(t,l),c=o.useRef(null);return o.useEffect(()=>{const f=c.current;c.current=n?.current||l.current,f!==c.current&&a.onAnchorChange(c.current)}),n?null:v.jsx(X.Primitive.div,{...i,ref:A})});ae.displayName=se;var U="PopperContent",[Ie,Ye]=ne(U),ce=o.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:l=0,arrowPadding:A=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:m="partial",hideWhenDetached:R=!1,updatePositionStrategy:b="optimized",onPlaced:w,...p}=e,Y=oe(U,r),[M,q]=o.useState(null),H=Q.useComposedRefs(t,k=>q(k)),[d,y]=o.useState(null),x=Ce.useSize(d),C=x?.width??0,O=x?.height??0,B=n+(a!=="center"?"-"+a:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(f)?f:[f],z=E.length>0,h={padding:j,boundary:E.filter(Le),altBoundary:z},{refs:N,floatingStyles:D,placement:P,isPositioned:_,middlewareData:s}=$e({strategy:"fixed",placement:B,whileElementsMounted:(...k)=>g.autoUpdate(...k,{animationFrame:b==="always"}),elements:{reference:Y.anchor},middleware:[Ee({mainAxis:i+O,alignmentAxis:l}),c&&Me({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?je():void 0,...h}),c&&Ne({...h}),De({...h,apply:({elements:k,rects:V,availableWidth:we,availableHeight:ye})=>{const{width:xe,height:Pe}=V.reference,W=k.floating.style;W.setProperty("--radix-popper-available-width",`${we}px`),W.setProperty("--radix-popper-available-height",`${ye}px`),W.setProperty("--radix-popper-anchor-width",`${xe}px`),W.setProperty("--radix-popper-anchor-height",`${Pe}px`)}}),d&&qe({element:d,padding:A}),Xe({arrowWidth:C,arrowHeight:O}),R&&ke({strategy:"referenceHidden",...h})]}),[$,S]=ue(P),Z=Re.useCallbackRef(w);G.useLayoutEffect2(()=>{_&&Z?.()},[_,Z]);const de=s.arrow?.x,pe=s.arrow?.y,he=s.arrow?.centerOffset!==0,[ge,me]=o.useState();return G.useLayoutEffect2(()=>{M&&me(window.getComputedStyle(M).zIndex)},[M]),v.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:_?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[s.transformOrigin?.x,s.transformOrigin?.y].join(" "),...s.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Ie,{scope:r,placedSide:$,onArrowChange:y,arrowX:de,arrowY:pe,shouldHideArrow:he,children:v.jsx(X.Primitive.div,{"data-side":$,"data-align":S,...p,ref:H,style:{...p.style,animation:_?void 0:"none"}})})})});ce.displayName=U;var le="PopperArrow",Be={top:"bottom",right:"left",bottom:"top",left:"right"},fe=o.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=Ye(le,n),l=Be[a.placedSide];return v.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:v.jsx(ze,{...i,ref:r,style:{...i.style,display:"block"}})})});fe.displayName=le;function Le(e){return e!==null}var Xe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,l=i.arrow?.centerOffset!==0,A=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[f,u]=ue(r),m={start:"0%",center:"50%",end:"100%"}[u],R=(i.arrow?.x??0)+A/2,b=(i.arrow?.y??0)+c/2;let w="",p="";return f==="bottom"?(w=l?m:`${R}px`,p=`${-c}px`):f==="top"?(w=l?m:`${R}px`,p=`${n.floating.height+c}px`):f==="right"?(w=`${-c}px`,p=l?m:`${b}px`):f==="left"&&(w=`${n.floating.width+c}px`,p=l?m:`${b}px`),{data:{x:w,y:p}}}});function ue(e){const[t,r="center"]=e.split("-");return[t,r]}var Te=ie,Ue=ae,Ze=ce,Ve=fe;exports.Anchor=Ue;exports.Arrow=Ve;exports.Content=Ze;exports.Root2=Te;exports.createPopperScope=We;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { c as _, a as b } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { u as P } from "./index-5Bhkapwi.js";
|
|
5
|
+
import { P as C } from "./index-CpDnqHCm.js";
|
|
6
|
+
import { c as w, R as B, I as q } from "./index-DmeJCEwx.js";
|
|
7
|
+
import { u as K } from "./index-437EL2iq.js";
|
|
8
|
+
import { u as T } from "./index-ByaXH_ih.js";
|
|
9
|
+
import { u as U } from "./index-BGQepRFJ.js";
|
|
10
|
+
import { u as V } from "./index-BZPx6jYI.js";
|
|
11
|
+
import { P as j } from "./index-BGfrl8IX.js";
|
|
12
|
+
import { jsx as u, jsxs as z } from "react/jsx-runtime";
|
|
13
|
+
var E = "Radio", [H, k] = _(E), [W, X] = H(E), g = n.forwardRef(
|
|
14
|
+
(t, d) => {
|
|
15
|
+
const {
|
|
16
|
+
__scopeRadio: o,
|
|
17
|
+
name: s,
|
|
18
|
+
checked: e = !1,
|
|
19
|
+
required: r,
|
|
20
|
+
disabled: a,
|
|
21
|
+
value: l = "on",
|
|
22
|
+
onCheck: f,
|
|
23
|
+
form: R,
|
|
24
|
+
...m
|
|
25
|
+
} = t, [p, v] = n.useState(null), i = P(d, (y) => v(y)), c = n.useRef(!1), h = p ? R || !!p.closest("form") : !0;
|
|
26
|
+
return /* @__PURE__ */ z(W, { scope: o, checked: e, disabled: a, children: [
|
|
27
|
+
/* @__PURE__ */ u(
|
|
28
|
+
C.button,
|
|
29
|
+
{
|
|
30
|
+
type: "button",
|
|
31
|
+
role: "radio",
|
|
32
|
+
"aria-checked": e,
|
|
33
|
+
"data-state": N(e),
|
|
34
|
+
"data-disabled": a ? "" : void 0,
|
|
35
|
+
disabled: a,
|
|
36
|
+
value: l,
|
|
37
|
+
...m,
|
|
38
|
+
ref: i,
|
|
39
|
+
onClick: b(t.onClick, (y) => {
|
|
40
|
+
e || f?.(), h && (c.current = y.isPropagationStopped(), c.current || y.stopPropagation());
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
h && /* @__PURE__ */ u(
|
|
45
|
+
A,
|
|
46
|
+
{
|
|
47
|
+
control: p,
|
|
48
|
+
bubbles: !c.current,
|
|
49
|
+
name: s,
|
|
50
|
+
value: l,
|
|
51
|
+
checked: e,
|
|
52
|
+
required: r,
|
|
53
|
+
disabled: a,
|
|
54
|
+
form: R,
|
|
55
|
+
style: { transform: "translateX(-100%)" }
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
g.displayName = E;
|
|
62
|
+
var G = "RadioIndicator", S = n.forwardRef(
|
|
63
|
+
(t, d) => {
|
|
64
|
+
const { __scopeRadio: o, forceMount: s, ...e } = t, r = X(G, o);
|
|
65
|
+
return /* @__PURE__ */ u(j, { present: s || r.checked, children: /* @__PURE__ */ u(
|
|
66
|
+
C.span,
|
|
67
|
+
{
|
|
68
|
+
"data-state": N(r.checked),
|
|
69
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
70
|
+
...e,
|
|
71
|
+
ref: d
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
S.displayName = G;
|
|
77
|
+
var Y = "RadioBubbleInput", A = n.forwardRef(
|
|
78
|
+
({
|
|
79
|
+
__scopeRadio: t,
|
|
80
|
+
control: d,
|
|
81
|
+
checked: o,
|
|
82
|
+
bubbles: s = !0,
|
|
83
|
+
...e
|
|
84
|
+
}, r) => {
|
|
85
|
+
const a = n.useRef(null), l = P(a, r), f = V(o), R = U(d);
|
|
86
|
+
return n.useEffect(() => {
|
|
87
|
+
const m = a.current;
|
|
88
|
+
if (!m) return;
|
|
89
|
+
const p = window.HTMLInputElement.prototype, i = Object.getOwnPropertyDescriptor(
|
|
90
|
+
p,
|
|
91
|
+
"checked"
|
|
92
|
+
).set;
|
|
93
|
+
if (f !== o && i) {
|
|
94
|
+
const c = new Event("click", { bubbles: s });
|
|
95
|
+
i.call(m, o), m.dispatchEvent(c);
|
|
96
|
+
}
|
|
97
|
+
}, [f, o, s]), /* @__PURE__ */ u(
|
|
98
|
+
C.input,
|
|
99
|
+
{
|
|
100
|
+
type: "radio",
|
|
101
|
+
"aria-hidden": !0,
|
|
102
|
+
defaultChecked: o,
|
|
103
|
+
...e,
|
|
104
|
+
tabIndex: -1,
|
|
105
|
+
ref: l,
|
|
106
|
+
style: {
|
|
107
|
+
...e.style,
|
|
108
|
+
...R,
|
|
109
|
+
position: "absolute",
|
|
110
|
+
pointerEvents: "none",
|
|
111
|
+
opacity: 0,
|
|
112
|
+
margin: 0
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
A.displayName = Y;
|
|
119
|
+
function N(t) {
|
|
120
|
+
return t ? "checked" : "unchecked";
|
|
121
|
+
}
|
|
122
|
+
var J = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], I = "RadioGroup", [Q] = _(I, [
|
|
123
|
+
w,
|
|
124
|
+
k
|
|
125
|
+
]), x = w(), D = k(), [Z, $] = Q(I), M = n.forwardRef(
|
|
126
|
+
(t, d) => {
|
|
127
|
+
const {
|
|
128
|
+
__scopeRadioGroup: o,
|
|
129
|
+
name: s,
|
|
130
|
+
defaultValue: e,
|
|
131
|
+
value: r,
|
|
132
|
+
required: a = !1,
|
|
133
|
+
disabled: l = !1,
|
|
134
|
+
orientation: f,
|
|
135
|
+
dir: R,
|
|
136
|
+
loop: m = !0,
|
|
137
|
+
onValueChange: p,
|
|
138
|
+
...v
|
|
139
|
+
} = t, i = x(o), c = T(R), [h, y] = K({
|
|
140
|
+
prop: r,
|
|
141
|
+
defaultProp: e ?? null,
|
|
142
|
+
onChange: p,
|
|
143
|
+
caller: I
|
|
144
|
+
});
|
|
145
|
+
return /* @__PURE__ */ u(
|
|
146
|
+
Z,
|
|
147
|
+
{
|
|
148
|
+
scope: o,
|
|
149
|
+
name: s,
|
|
150
|
+
required: a,
|
|
151
|
+
disabled: l,
|
|
152
|
+
value: h,
|
|
153
|
+
onValueChange: y,
|
|
154
|
+
children: /* @__PURE__ */ u(
|
|
155
|
+
B,
|
|
156
|
+
{
|
|
157
|
+
asChild: !0,
|
|
158
|
+
...i,
|
|
159
|
+
orientation: f,
|
|
160
|
+
dir: c,
|
|
161
|
+
loop: m,
|
|
162
|
+
children: /* @__PURE__ */ u(
|
|
163
|
+
C.div,
|
|
164
|
+
{
|
|
165
|
+
role: "radiogroup",
|
|
166
|
+
"aria-required": a,
|
|
167
|
+
"aria-orientation": f,
|
|
168
|
+
"data-disabled": l ? "" : void 0,
|
|
169
|
+
dir: c,
|
|
170
|
+
...v,
|
|
171
|
+
ref: d
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
M.displayName = I;
|
|
181
|
+
var O = "RadioGroupItem", F = n.forwardRef(
|
|
182
|
+
(t, d) => {
|
|
183
|
+
const { __scopeRadioGroup: o, disabled: s, ...e } = t, r = $(O, o), a = r.disabled || s, l = x(o), f = D(o), R = n.useRef(null), m = P(d, R), p = r.value === e.value, v = n.useRef(!1);
|
|
184
|
+
return n.useEffect(() => {
|
|
185
|
+
const i = (h) => {
|
|
186
|
+
J.includes(h.key) && (v.current = !0);
|
|
187
|
+
}, c = () => v.current = !1;
|
|
188
|
+
return document.addEventListener("keydown", i), document.addEventListener("keyup", c), () => {
|
|
189
|
+
document.removeEventListener("keydown", i), document.removeEventListener("keyup", c);
|
|
190
|
+
};
|
|
191
|
+
}, []), /* @__PURE__ */ u(
|
|
192
|
+
q,
|
|
193
|
+
{
|
|
194
|
+
asChild: !0,
|
|
195
|
+
...l,
|
|
196
|
+
focusable: !a,
|
|
197
|
+
active: p,
|
|
198
|
+
children: /* @__PURE__ */ u(
|
|
199
|
+
g,
|
|
200
|
+
{
|
|
201
|
+
disabled: a,
|
|
202
|
+
required: r.required,
|
|
203
|
+
checked: p,
|
|
204
|
+
...f,
|
|
205
|
+
...e,
|
|
206
|
+
name: r.name,
|
|
207
|
+
ref: m,
|
|
208
|
+
onCheck: () => r.onValueChange(e.value),
|
|
209
|
+
onKeyDown: b((i) => {
|
|
210
|
+
i.key === "Enter" && i.preventDefault();
|
|
211
|
+
}),
|
|
212
|
+
onFocus: b(e.onFocus, () => {
|
|
213
|
+
v.current && R.current?.click();
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
F.displayName = O;
|
|
222
|
+
var ee = "RadioGroupIndicator", L = n.forwardRef(
|
|
223
|
+
(t, d) => {
|
|
224
|
+
const { __scopeRadioGroup: o, ...s } = t, e = D(o);
|
|
225
|
+
return /* @__PURE__ */ u(S, { ...e, ...s, ref: d });
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
L.displayName = ee;
|
|
229
|
+
var pe = M, le = F, fe = L;
|
|
230
|
+
export {
|
|
231
|
+
le as I,
|
|
232
|
+
pe as R,
|
|
233
|
+
fe as a
|
|
234
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=o(c);function s(e){const r=n.useRef({value:e,previous:e});return n.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}exports.usePrevious=s;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const rn=require("react"),m=require("./index-BfKbXbc8.cjs"),C=require("./index-CajSSBH7.cjs"),an=require("./index-C8aODXfJ.cjs"),E=require("./index-C2mPf2xD.cjs"),sn=require("./index-CwR-dC8j.cjs"),cn=require("./index-Cje7xxa1.cjs"),Me=require("./index-CRDKsB5y.cjs"),U=require("./index-BI11g55_.cjs"),N=require("./index-DVuTCIJE.cjs"),V=require("./index-q-4o5Ie4.cjs"),X=require("./index-B0dI0L76.cjs"),we=require("./index-CzY-WZXL.cjs"),c=require("react/jsx-runtime"),me=require("./index-B_Bwy8wX.cjs");function un(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const a=un(rn);var ne=["Enter"," "],dn=["ArrowDown","PageUp","Home"],ge=["ArrowUp","PageDown","End"],ln=[...dn,...ge],pn={ltr:[...ne,"ArrowRight"],rtl:[...ne,"ArrowLeft"]},fn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[k,mn,vn]=sn.createCollection(F),[P,he]=m.createContextScope(F,[vn,N.createPopperScope,X.createRovingFocusGroupScope]),Y=N.createPopperScope(),xe=X.createRovingFocusGroupScope(),[Mn,D]=P(F),[wn,G]=P(F),_e=e=>{const{__scopeMenu:o,open:n=!1,children:t,dir:r,onOpenChange:s,modal:d=!0}=e,l=Y(o),[v,M]=a.useState(null),p=a.useRef(!1),u=we.useCallbackRef(s),f=cn.useDirection(r);return a.useEffect(()=>{const x=()=>{p.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>p.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),c.jsx(N.Root2,{...l,children:c.jsx(Mn,{scope:o,open:n,onOpenChange:u,content:v,onContentChange:M,children:c.jsx(wn,{scope:o,onClose:a.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:d,children:t})})})};_e.displayName=F;var gn="MenuAnchor",oe=a.forwardRef((e,o)=>{const{__scopeMenu:n,...t}=e,r=Y(n);return c.jsx(N.Anchor,{...r,...t,ref:o})});oe.displayName=gn;var te="MenuPortal",[hn,Ce]=P(te,{forceMount:void 0}),Re=e=>{const{__scopeMenu:o,forceMount:n,children:t,container:r}=e,s=D(te,o);return c.jsx(hn,{scope:o,forceMount:n,children:c.jsx(V.Presence,{present:n||s.open,children:c.jsx(Me.Portal,{asChild:!0,container:r,children:t})})})};Re.displayName=te;var _="MenuContent",[xn,re]=P(_),Ee=a.forwardRef((e,o)=>{const n=Ce(_,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,s=D(_,e.__scopeMenu),d=G(_,e.__scopeMenu);return c.jsx(k.Provider,{scope:e.__scopeMenu,children:c.jsx(V.Presence,{present:t||s.open,children:c.jsx(k.Slot,{scope:e.__scopeMenu,children:d.modal?c.jsx(_n,{...r,ref:o}):c.jsx(Cn,{...r,ref:o})})})})}),_n=a.forwardRef((e,o)=>{const n=D(_,e.__scopeMenu),t=a.useRef(null),r=C.useComposedRefs(o,t);return a.useEffect(()=>{const s=t.current;if(s)return U.hideOthers(s)},[]),c.jsx(ae,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:m.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Cn=a.forwardRef((e,o)=>{const n=D(_,e.__scopeMenu);return c.jsx(ae,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Rn=C.createSlot("MenuContent.ScrollLock"),ae=a.forwardRef((e,o)=>{const{__scopeMenu:n,loop:t=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:l,onEntryFocus:v,onEscapeKeyDown:M,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:x,disableOutsideScroll:w,...S}=e,A=D(_,n),I=G(_,n),ze=Y(n),Ze=xe(n),ie=mn(n),[Je,de]=a.useState(null),K=a.useRef(null),Qe=C.useComposedRefs(o,K,A.onContentChange),H=a.useRef(0),$=a.useRef(""),en=a.useRef(0),Z=a.useRef(null),le=a.useRef("right"),J=a.useRef(0),nn=w?U.ReactRemoveScroll:a.Fragment,on=w?{as:Rn,allowPinchZoom:!0}:void 0,tn=i=>{const y=$.current+i,R=ie().filter(h=>!h.disabled),T=document.activeElement,Q=R.find(h=>h.ref.current===T)?.textValue,ee=R.map(h=>h.textValue),pe=jn(ee,y,Q),O=R.find(h=>h.textValue===pe)?.ref.current;(function h(fe){$.current=fe,window.clearTimeout(H.current),fe!==""&&(H.current=window.setTimeout(()=>h(""),1e3))})(y),O&&setTimeout(()=>O.focus())};a.useEffect(()=>()=>window.clearTimeout(H.current),[]),U.useFocusGuards();const b=a.useCallback(i=>le.current===Z.current?.side&&Ln(i,Z.current?.area),[]);return c.jsx(xn,{scope:n,searchRef:$,onItemEnter:a.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:a.useCallback(i=>{b(i)||(K.current?.focus(),de(null))},[b]),onTriggerLeave:a.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:en,onPointerGraceIntentChange:a.useCallback(i=>{Z.current=i},[]),children:c.jsx(nn,{...on,children:c.jsx(U.FocusScope,{asChild:!0,trapped:r,onMountAutoFocus:m.composeEventHandlers(s,i=>{i.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:c.jsx(Me.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:M,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:x,children:c.jsx(X.Root,{asChild:!0,...Ze,dir:I.dir,orientation:"vertical",loop:t,currentTabStopId:Je,onCurrentTabStopIdChange:de,onEntryFocus:m.composeEventHandlers(v,i=>{I.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(N.Content,{role:"menu","aria-orientation":"vertical","data-state":Ke(A.open),"data-radix-menu-content":"",dir:I.dir,...ze,...S,ref:Qe,style:{outline:"none",...S.style},onKeyDown:m.composeEventHandlers(S.onKeyDown,i=>{const R=i.target.closest("[data-radix-menu-content]")===i.currentTarget,T=i.ctrlKey||i.altKey||i.metaKey,Q=i.key.length===1;R&&(i.key==="Tab"&&i.preventDefault(),!T&&Q&&tn(i.key));const ee=K.current;if(i.target!==ee||!ln.includes(i.key))return;i.preventDefault();const O=ie().filter(h=>!h.disabled).map(h=>h.ref.current);ge.includes(i.key)&&O.reverse(),Tn(O)}),onBlur:m.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout(H.current),$.current="")}),onPointerMove:m.composeEventHandlers(e.onPointerMove,L(i=>{const y=i.target,R=J.current!==i.clientX;if(i.currentTarget.contains(y)&&R){const T=i.clientX>J.current?"right":"left";le.current=T,J.current=i.clientX}}))})})})})})})});Ee.displayName=_;var En="MenuGroup",se=a.forwardRef((e,o)=>{const{__scopeMenu:n,...t}=e;return c.jsx(E.Primitive.div,{role:"group",...t,ref:o})});se.displayName=En;var Pn="MenuLabel",Pe=a.forwardRef((e,o)=>{const{__scopeMenu:n,...t}=e;return c.jsx(E.Primitive.div,{...t,ref:o})});Pe.displayName=Pn;var B="MenuItem",ve="menu.itemSelect",W=a.forwardRef((e,o)=>{const{disabled:n=!1,onSelect:t,...r}=e,s=a.useRef(null),d=G(B,e.__scopeMenu),l=re(B,e.__scopeMenu),v=C.useComposedRefs(o,s),M=a.useRef(!1),p=()=>{const u=s.current;if(!n&&u){const f=new CustomEvent(ve,{bubbles:!0,cancelable:!0});u.addEventListener(ve,x=>t?.(x),{once:!0}),E.dispatchDiscreteCustomEvent(u,f),f.defaultPrevented?M.current=!1:d.onClose()}};return c.jsx(De,{...r,ref:v,disabled:n,onClick:m.composeEventHandlers(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),M.current=!0},onPointerUp:m.composeEventHandlers(e.onPointerUp,u=>{M.current||u.currentTarget?.click()}),onKeyDown:m.composeEventHandlers(e.onKeyDown,u=>{const f=l.searchRef.current!=="";n||f&&u.key===" "||ne.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});W.displayName=B;var De=a.forwardRef((e,o)=>{const{__scopeMenu:n,disabled:t=!1,textValue:r,...s}=e,d=re(B,n),l=xe(n),v=a.useRef(null),M=C.useComposedRefs(o,v),[p,u]=a.useState(!1),[f,x]=a.useState("");return a.useEffect(()=>{const w=v.current;w&&x((w.textContent??"").trim())},[s.children]),c.jsx(k.ItemSlot,{scope:n,disabled:t,textValue:r??f,children:c.jsx(X.Item,{asChild:!0,...l,focusable:!t,children:c.jsx(E.Primitive.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":t||void 0,"data-disabled":t?"":void 0,...s,ref:M,onPointerMove:m.composeEventHandlers(e.onPointerMove,L(w=>{t?d.onItemLeave(w):(d.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:m.composeEventHandlers(e.onPointerLeave,L(w=>d.onItemLeave(w))),onFocus:m.composeEventHandlers(e.onFocus,()=>u(!0)),onBlur:m.composeEventHandlers(e.onBlur,()=>u(!1))})})})}),Dn="MenuCheckboxItem",Se=a.forwardRef((e,o)=>{const{checked:n=!1,onCheckedChange:t,...r}=e;return c.jsx(Ae,{scope:e.__scopeMenu,checked:n,children:c.jsx(W,{role:"menuitemcheckbox","aria-checked":q(n)?"mixed":n,...r,ref:o,"data-state":ue(n),onSelect:m.composeEventHandlers(r.onSelect,()=>t?.(q(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Se.displayName=Dn;var Ie="MenuRadioGroup",[Sn,In]=P(Ie,{value:void 0,onValueChange:()=>{}}),be=a.forwardRef((e,o)=>{const{value:n,onValueChange:t,...r}=e,s=we.useCallbackRef(t);return c.jsx(Sn,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(se,{...r,ref:o})})});be.displayName=Ie;var ye="MenuRadioItem",Ne=a.forwardRef((e,o)=>{const{value:n,...t}=e,r=In(ye,e.__scopeMenu),s=n===r.value;return c.jsx(Ae,{scope:e.__scopeMenu,checked:s,children:c.jsx(W,{role:"menuitemradio","aria-checked":s,...t,ref:o,"data-state":ue(s),onSelect:m.composeEventHandlers(t.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ne.displayName=ye;var ce="MenuItemIndicator",[Ae,bn]=P(ce,{checked:!1}),Te=a.forwardRef((e,o)=>{const{__scopeMenu:n,forceMount:t,...r}=e,s=bn(ce,n);return c.jsx(V.Presence,{present:t||q(s.checked)||s.checked===!0,children:c.jsx(E.Primitive.span,{...r,ref:o,"data-state":ue(s.checked)})})});Te.displayName=ce;var yn="MenuSeparator",Oe=a.forwardRef((e,o)=>{const{__scopeMenu:n,...t}=e;return c.jsx(E.Primitive.div,{role:"separator","aria-orientation":"horizontal",...t,ref:o})});Oe.displayName=yn;var Nn="MenuArrow",je=a.forwardRef((e,o)=>{const{__scopeMenu:n,...t}=e,r=Y(n);return c.jsx(N.Arrow,{...r,...t,ref:o})});je.displayName=Nn;var An="MenuSub",[Ro,ke]=P(An),j="MenuSubTrigger",Le=a.forwardRef((e,o)=>{const n=D(j,e.__scopeMenu),t=G(j,e.__scopeMenu),r=ke(j,e.__scopeMenu),s=re(j,e.__scopeMenu),d=a.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:v}=s,M={__scopeMenu:e.__scopeMenu},p=a.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return a.useEffect(()=>p,[p]),a.useEffect(()=>{const u=l.current;return()=>{window.clearTimeout(u),v(null)}},[l,v]),c.jsx(oe,{asChild:!0,...M,children:c.jsx(De,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Ke(n.open),...e,ref:C.composeRefs(o,r.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:m.composeEventHandlers(e.onPointerMove,L(u=>{s.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!d.current&&(s.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:m.composeEventHandlers(e.onPointerLeave,L(u=>{p();const f=n.content?.getBoundingClientRect();if(f){const x=n.content?.dataset.side,w=x==="right",S=w?-5:5,A=f[w?"left":"right"],I=f[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:u.clientX+S,y:u.clientY},{x:A,y:f.top},{x:I,y:f.top},{x:I,y:f.bottom},{x:A,y:f.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(u),u.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:m.composeEventHandlers(e.onKeyDown,u=>{const f=s.searchRef.current!=="";e.disabled||f&&u.key===" "||pn[t.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Le.displayName=j;var Fe="MenuSubContent",Ge=a.forwardRef((e,o)=>{const n=Ce(_,e.__scopeMenu),{forceMount:t=n.forceMount,...r}=e,s=D(_,e.__scopeMenu),d=G(_,e.__scopeMenu),l=ke(Fe,e.__scopeMenu),v=a.useRef(null),M=C.useComposedRefs(o,v);return c.jsx(k.Provider,{scope:e.__scopeMenu,children:c.jsx(V.Presence,{present:t||s.open,children:c.jsx(k.Slot,{scope:e.__scopeMenu,children:c.jsx(ae,{id:l.contentId,"aria-labelledby":l.triggerId,...r,ref:M,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{d.isUsingKeyboardRef.current&&v.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:m.composeEventHandlers(e.onFocusOutside,p=>{p.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:m.composeEventHandlers(e.onEscapeKeyDown,p=>{d.onClose(),p.preventDefault()}),onKeyDown:m.composeEventHandlers(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=fn[d.dir].includes(p.key);u&&f&&(s.onOpenChange(!1),l.trigger?.focus(),p.preventDefault())})})})})})});Ge.displayName=Fe;function Ke(e){return e?"open":"closed"}function q(e){return e==="indeterminate"}function ue(e){return q(e)?"indeterminate":e?"checked":"unchecked"}function Tn(e){const o=document.activeElement;for(const n of e)if(n===o||(n.focus(),document.activeElement!==o))return}function On(e,o){return e.map((n,t)=>e[(o+t)%e.length])}function jn(e,o,n){const r=o.length>1&&Array.from(o).every(M=>M===o[0])?o[0]:o,s=n?e.indexOf(n):-1;let d=On(e,Math.max(s,0));r.length===1&&(d=d.filter(M=>M!==n));const v=d.find(M=>M.toLowerCase().startsWith(r.toLowerCase()));return v!==n?v:void 0}function kn(e,o){const{x:n,y:t}=e;let r=!1;for(let s=0,d=o.length-1;s<o.length;d=s++){const l=o[s],v=o[d],M=l.x,p=l.y,u=v.x,f=v.y;p>t!=f>t&&n<(u-M)*(t-p)/(f-p)+M&&(r=!r)}return r}function Ln(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return kn(n,o)}function L(e){return o=>o.pointerType==="mouse"?e(o):void 0}var Fn=_e,Gn=oe,Kn=Re,Hn=Ee,$n=se,Un=Pe,Bn=W,qn=Se,Vn=be,Xn=Ne,Yn=Te,Wn=Oe,zn=je,Zn=Le,Jn=Ge,z="DropdownMenu",[Qn]=m.createContextScope(z,[he]),g=he(),[eo,He]=Qn(z),$e=e=>{const{__scopeDropdownMenu:o,children:n,dir:t,open:r,defaultOpen:s,onOpenChange:d,modal:l=!0}=e,v=g(o),M=a.useRef(null),[p,u]=an.useControllableState({prop:r,defaultProp:s??!1,onChange:d,caller:z});return c.jsx(eo,{scope:o,triggerId:me.useId(),triggerRef:M,contentId:me.useId(),open:p,onOpenChange:u,onOpenToggle:a.useCallback(()=>u(f=>!f),[u]),modal:l,children:c.jsx(Fn,{...v,open:p,onOpenChange:u,dir:t,modal:l,children:n})})};$e.displayName=z;var Ue="DropdownMenuTrigger",Be=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...r}=e,s=He(Ue,n),d=g(n);return c.jsx(Gn,{asChild:!0,...d,children:c.jsx(E.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...r,ref:C.composeRefs(o,s.triggerRef),onPointerDown:m.composeEventHandlers(e.onPointerDown,l=>{!t&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:m.composeEventHandlers(e.onKeyDown,l=>{t||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Be.displayName=Ue;var no="DropdownMenuPortal",qe=e=>{const{__scopeDropdownMenu:o,...n}=e,t=g(o);return c.jsx(Kn,{...t,...n})};qe.displayName=no;var Ve="DropdownMenuContent",Xe=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=He(Ve,n),s=g(n),d=a.useRef(!1);return c.jsx(Hn,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...t,ref:o,onCloseAutoFocus:m.composeEventHandlers(e.onCloseAutoFocus,l=>{d.current||r.triggerRef.current?.focus(),d.current=!1,l.preventDefault()}),onInteractOutside:m.composeEventHandlers(e.onInteractOutside,l=>{const v=l.detail.originalEvent,M=v.button===0&&v.ctrlKey===!0,p=v.button===2||M;(!r.modal||p)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Xe.displayName=Ve;var oo="DropdownMenuGroup",to=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx($n,{...r,...t,ref:o})});to.displayName=oo;var ro="DropdownMenuLabel",ao=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Un,{...r,...t,ref:o})});ao.displayName=ro;var so="DropdownMenuItem",Ye=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Bn,{...r,...t,ref:o})});Ye.displayName=so;var co="DropdownMenuCheckboxItem",uo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(qn,{...r,...t,ref:o})});uo.displayName=co;var io="DropdownMenuRadioGroup",lo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Vn,{...r,...t,ref:o})});lo.displayName=io;var po="DropdownMenuRadioItem",fo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Xn,{...r,...t,ref:o})});fo.displayName=po;var mo="DropdownMenuItemIndicator",vo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Yn,{...r,...t,ref:o})});vo.displayName=mo;var Mo="DropdownMenuSeparator",wo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Wn,{...r,...t,ref:o})});wo.displayName=Mo;var go="DropdownMenuArrow",We=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(zn,{...r,...t,ref:o})});We.displayName=go;var ho="DropdownMenuSubTrigger",xo=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Zn,{...r,...t,ref:o})});xo.displayName=ho;var _o="DropdownMenuSubContent",Co=a.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,r=g(n);return c.jsx(Jn,{...r,...t,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Co.displayName=_o;exports.DropdownMenu=$e;exports.DropdownMenuArrow=We;exports.DropdownMenuContent=Xe;exports.DropdownMenuItem=Ye;exports.DropdownMenuPortal=qe;exports.DropdownMenuTrigger=Be;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { c as V, a as p } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { c as j } from "./index-Dt3HnaYe.js";
|
|
5
|
+
import { u as z } from "./index-5Bhkapwi.js";
|
|
6
|
+
import { u as q } from "./index-xqkGMOJ8.js";
|
|
7
|
+
import { P as G } from "./index-CpDnqHCm.js";
|
|
8
|
+
import { u as J } from "./index-0ioNhtNM.js";
|
|
9
|
+
import { u as Q } from "./index-437EL2iq.js";
|
|
10
|
+
import { u as W } from "./index-ByaXH_ih.js";
|
|
11
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
12
|
+
var y = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [P, N, Z] = j(I), [$, be] = V(
|
|
13
|
+
I,
|
|
14
|
+
[Z]
|
|
15
|
+
), [ee, oe] = $(I), O = s.forwardRef(
|
|
16
|
+
(e, r) => /* @__PURE__ */ d(P.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(P.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(te, { ...e, ref: r }) }) })
|
|
17
|
+
);
|
|
18
|
+
O.displayName = I;
|
|
19
|
+
var te = s.forwardRef((e, r) => {
|
|
20
|
+
const {
|
|
21
|
+
__scopeRovingFocusGroup: c,
|
|
22
|
+
orientation: o,
|
|
23
|
+
loop: T = !1,
|
|
24
|
+
dir: w,
|
|
25
|
+
currentTabStopId: v,
|
|
26
|
+
defaultCurrentTabStopId: C,
|
|
27
|
+
onCurrentTabStopIdChange: S,
|
|
28
|
+
onEntryFocus: m,
|
|
29
|
+
preventScrollOnEntryFocus: a = !1,
|
|
30
|
+
...b
|
|
31
|
+
} = e, F = s.useRef(null), g = z(r, F), R = W(w), [E, t] = Q({
|
|
32
|
+
prop: v,
|
|
33
|
+
defaultProp: C ?? null,
|
|
34
|
+
onChange: S,
|
|
35
|
+
caller: I
|
|
36
|
+
}), [i, h] = s.useState(!1), u = J(m), l = N(c), A = s.useRef(!1), [L, D] = s.useState(0);
|
|
37
|
+
return s.useEffect(() => {
|
|
38
|
+
const n = F.current;
|
|
39
|
+
if (n)
|
|
40
|
+
return n.addEventListener(y, u), () => n.removeEventListener(y, u);
|
|
41
|
+
}, [u]), /* @__PURE__ */ d(
|
|
42
|
+
ee,
|
|
43
|
+
{
|
|
44
|
+
scope: c,
|
|
45
|
+
orientation: o,
|
|
46
|
+
dir: R,
|
|
47
|
+
loop: T,
|
|
48
|
+
currentTabStopId: E,
|
|
49
|
+
onItemFocus: s.useCallback(
|
|
50
|
+
(n) => t(n),
|
|
51
|
+
[t]
|
|
52
|
+
),
|
|
53
|
+
onItemShiftTab: s.useCallback(() => h(!0), []),
|
|
54
|
+
onFocusableItemAdd: s.useCallback(
|
|
55
|
+
() => D((n) => n + 1),
|
|
56
|
+
[]
|
|
57
|
+
),
|
|
58
|
+
onFocusableItemRemove: s.useCallback(
|
|
59
|
+
() => D((n) => n - 1),
|
|
60
|
+
[]
|
|
61
|
+
),
|
|
62
|
+
children: /* @__PURE__ */ d(
|
|
63
|
+
G.div,
|
|
64
|
+
{
|
|
65
|
+
tabIndex: i || L === 0 ? -1 : 0,
|
|
66
|
+
"data-orientation": o,
|
|
67
|
+
...b,
|
|
68
|
+
ref: g,
|
|
69
|
+
style: { outline: "none", ...e.style },
|
|
70
|
+
onMouseDown: p(e.onMouseDown, () => {
|
|
71
|
+
A.current = !0;
|
|
72
|
+
}),
|
|
73
|
+
onFocus: p(e.onFocus, (n) => {
|
|
74
|
+
const U = !A.current;
|
|
75
|
+
if (n.target === n.currentTarget && U && !i) {
|
|
76
|
+
const x = new CustomEvent(y, X);
|
|
77
|
+
if (n.currentTarget.dispatchEvent(x), !x.defaultPrevented) {
|
|
78
|
+
const _ = l().filter((f) => f.focusable), B = _.find((f) => f.active), Y = _.find((f) => f.id === E), H = [B, Y, ..._].filter(
|
|
79
|
+
Boolean
|
|
80
|
+
).map((f) => f.ref.current);
|
|
81
|
+
k(H, a);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
A.current = !1;
|
|
85
|
+
}),
|
|
86
|
+
onBlur: p(e.onBlur, () => h(!1))
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}), K = "RovingFocusGroupItem", M = s.forwardRef(
|
|
92
|
+
(e, r) => {
|
|
93
|
+
const {
|
|
94
|
+
__scopeRovingFocusGroup: c,
|
|
95
|
+
focusable: o = !0,
|
|
96
|
+
active: T = !1,
|
|
97
|
+
tabStopId: w,
|
|
98
|
+
children: v,
|
|
99
|
+
...C
|
|
100
|
+
} = e, S = q(), m = w || S, a = oe(K, c), b = a.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = a;
|
|
101
|
+
return s.useEffect(() => {
|
|
102
|
+
if (o)
|
|
103
|
+
return g(), () => R();
|
|
104
|
+
}, [o, g, R]), /* @__PURE__ */ d(
|
|
105
|
+
P.ItemSlot,
|
|
106
|
+
{
|
|
107
|
+
scope: c,
|
|
108
|
+
id: m,
|
|
109
|
+
focusable: o,
|
|
110
|
+
active: T,
|
|
111
|
+
children: /* @__PURE__ */ d(
|
|
112
|
+
G.span,
|
|
113
|
+
{
|
|
114
|
+
tabIndex: b ? 0 : -1,
|
|
115
|
+
"data-orientation": a.orientation,
|
|
116
|
+
...C,
|
|
117
|
+
ref: r,
|
|
118
|
+
onMouseDown: p(e.onMouseDown, (t) => {
|
|
119
|
+
o ? a.onItemFocus(m) : t.preventDefault();
|
|
120
|
+
}),
|
|
121
|
+
onFocus: p(e.onFocus, () => a.onItemFocus(m)),
|
|
122
|
+
onKeyDown: p(e.onKeyDown, (t) => {
|
|
123
|
+
if (t.key === "Tab" && t.shiftKey) {
|
|
124
|
+
a.onItemShiftTab();
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (t.target !== t.currentTarget) return;
|
|
128
|
+
const i = se(t, a.orientation, a.dir);
|
|
129
|
+
if (i !== void 0) {
|
|
130
|
+
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
131
|
+
t.preventDefault();
|
|
132
|
+
let u = F().filter((l) => l.focusable).map((l) => l.ref.current);
|
|
133
|
+
if (i === "last") u.reverse();
|
|
134
|
+
else if (i === "prev" || i === "next") {
|
|
135
|
+
i === "prev" && u.reverse();
|
|
136
|
+
const l = u.indexOf(t.currentTarget);
|
|
137
|
+
u = a.loop ? ce(u, l + 1) : u.slice(l + 1);
|
|
138
|
+
}
|
|
139
|
+
setTimeout(() => k(u));
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
M.displayName = K;
|
|
150
|
+
var re = {
|
|
151
|
+
ArrowLeft: "prev",
|
|
152
|
+
ArrowUp: "prev",
|
|
153
|
+
ArrowRight: "next",
|
|
154
|
+
ArrowDown: "next",
|
|
155
|
+
PageUp: "first",
|
|
156
|
+
Home: "first",
|
|
157
|
+
PageDown: "last",
|
|
158
|
+
End: "last"
|
|
159
|
+
};
|
|
160
|
+
function ne(e, r) {
|
|
161
|
+
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
162
|
+
}
|
|
163
|
+
function se(e, r, c) {
|
|
164
|
+
const o = ne(e.key, c);
|
|
165
|
+
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
166
|
+
return re[o];
|
|
167
|
+
}
|
|
168
|
+
function k(e, r = !1) {
|
|
169
|
+
const c = document.activeElement;
|
|
170
|
+
for (const o of e)
|
|
171
|
+
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
|
172
|
+
}
|
|
173
|
+
function ce(e, r) {
|
|
174
|
+
return e.map((c, o) => e[(r + o) % e.length]);
|
|
175
|
+
}
|
|
176
|
+
var Fe = O, ge = M;
|
|
177
|
+
export {
|
|
178
|
+
ge as I,
|
|
179
|
+
Fe as R,
|
|
180
|
+
be as c
|
|
181
|
+
};
|