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 @@
|
|
|
1
|
+
"use strict";const m=require("react"),v=require("./index-MQ0c3ZX_.cjs");function b(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=b(m);var g=n[" useInsertionEffect ".trim().toString()]||v.useLayoutEffect2;function R({prop:e,defaultProp:o,onChange:t=()=>{},caller:r}){const[l,u,i]=C({defaultProp:o,onChange:t}),c=e!==void 0,a=c?e:l;{const s=n.useRef(e!==void 0);n.useEffect(()=>{const f=s.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=c},[c,r])}const d=n.useCallback(s=>{if(c){const f=S(s)?s(e):s;f!==e&&i.current?.(f)}else u(s)},[c,e,u,i]);return[a,d]}function C({defaultProp:e,onChange:o}){const[t,r]=n.useState(e),l=n.useRef(t),u=n.useRef(o);return g(()=>{u.current=o},[o]),n.useEffect(()=>{l.current!==t&&(u.current?.(t),l.current=t)},[t,l]),[t,r,u]}function S(e){return typeof e=="function"}exports.useControllableState=R;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./clsx-C11secjj.cjs"),m=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,y=O.clsx,b=(e,l)=>n=>{var d;if(l?.variants==null)return y(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=l,V=Object.keys(o).map(t=>{const a=n?.[t],u=s?.[t];if(a===null)return null;const i=m(a)||m(u);return o[t][i]}),v=n&&Object.entries(n).reduce((t,a)=>{let[u,i]=a;return i===void 0||(t[u]=i),t},{}),N=l==null||(d=l.compoundVariants)===null||d===void 0?void 0:d.reduce((t,a)=>{let{class:u,className:i,...C}=a;return Object.entries(C).every(f=>{let[c,r]=f;return Array.isArray(r)?r.includes({...s,...v}[c]):{...s,...v}[c]===r})?[...t,u,i]:t},[]);return y(e,V,N,n?.class,n?.className)};exports.cva=b;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const q=require("react"),b=require("./index-BfKbXbc8.cjs"),y=require("./index-C2mPf2xD.cjs"),x=require("./index-CajSSBH7.cjs"),m=require("./index-CzY-WZXL.cjs"),P=require("react/jsx-runtime"),M=require("react-dom"),H=require("./index-MQ0c3ZX_.cjs");function U(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=U(q);function z(t,e=globalThis?.document){const n=m.useCallbackRef(t);i.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var K="DismissableLayer",h="dismissableLayer.update",$="dismissableLayer.pointerDownOutside",X="dismissableLayer.focusOutside",g,T=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=i.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:d,onDismiss:l,...v}=t,c=i.useContext(T),[u,F]=i.useState(null),f=u?.ownerDocument??globalThis?.document,[,I]=i.useState({}),N=x.useComposedRefs(e,o=>F(o)),D=Array.from(c.layers),[A]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=D.indexOf(A),O=u?D.indexOf(u):-1,W=c.layersWithOutsidePointerEventsDisabled.size>0,L=O>=_,j=J(o=>{const E=o.target,R=[...c.branches].some(p=>p.contains(E));!L||R||(r?.(o),d?.(o),o.defaultPrevented||l?.())},f),C=Q(o=>{const E=o.target;[...c.branches].some(p=>p.contains(E))||(a?.(o),d?.(o),o.defaultPrevented||l?.())},f);return z(o=>{O===c.layers.size-1&&(s?.(o),!o.defaultPrevented&&l&&(o.preventDefault(),l()))},f),i.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(g=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),w(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=g)}},[u,f,n,c]),i.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),w())},[u,c]),i.useEffect(()=>{const o=()=>I({});return document.addEventListener(h,o),()=>document.removeEventListener(h,o)},[]),P.jsx(y.Primitive.div,{...v,ref:N,style:{pointerEvents:W?L?"auto":"none":void 0,...t.style},onFocusCapture:b.composeEventHandlers(t.onFocusCapture,C.onFocusCapture),onBlurCapture:b.composeEventHandlers(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:b.composeEventHandlers(t.onPointerDownCapture,j.onPointerDownCapture)})});S.displayName=K;var Y="DismissableLayerBranch",G=i.forwardRef((t,e)=>{const n=i.useContext(T),s=i.useRef(null),r=x.useComposedRefs(e,s);return i.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),P.jsx(y.Primitive.div,{...t,ref:r})});G.displayName=Y;function J(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const a=l=>{if(l.target&&!s.current){let v=function(){B($,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=v,e.addEventListener("click",r.current,{once:!0})):v()}else e.removeEventListener("click",r.current);s.current=!1},d=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(d),e.removeEventListener("pointerdown",a),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Q(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=i.useRef(!1);return i.useEffect(()=>{const r=a=>{a.target&&!s.current&&B(X,n,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function w(){const t=new CustomEvent(h);document.dispatchEvent(t)}function B(t,e,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?y.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}var V="Portal",k=i.forwardRef((t,e)=>{const{container:n,...s}=t,[r,a]=i.useState(!1);H.useLayoutEffect2(()=>a(!0),[]);const d=n||r&&globalThis?.document?.body;return d?M.createPortal(P.jsx(y.Primitive.div,{...s,ref:e}),d):null});k.displayName=V;exports.DismissableLayer=S;exports.Portal=k;
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { useLayoutEffect as Pe } from "react";
|
|
4
|
+
import { c as xe, o as ve, s as Ae, f as Re, a as Ce, h as Se, l as $e, b as V, d as Oe } from "./floating-ui.dom-CauyjNxS.js";
|
|
5
|
+
import * as Ee from "react-dom";
|
|
6
|
+
import { P as L } from "./index-CpDnqHCm.js";
|
|
7
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
8
|
+
import { u as K } from "./index-5Bhkapwi.js";
|
|
9
|
+
import { c as Me } from "./index-BRRTyZ1e.js";
|
|
10
|
+
import { u as _e } from "./index-0ioNhtNM.js";
|
|
11
|
+
import { u as G } from "./index-CCKe-Mpx.js";
|
|
12
|
+
import { u as be } from "./index-BGQepRFJ.js";
|
|
13
|
+
var Ne = typeof document < "u", De = function() {
|
|
14
|
+
}, I = Ne ? Pe : De;
|
|
15
|
+
function Y(e, t) {
|
|
16
|
+
if (e === t)
|
|
17
|
+
return !0;
|
|
18
|
+
if (typeof e != typeof t)
|
|
19
|
+
return !1;
|
|
20
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
21
|
+
return !0;
|
|
22
|
+
let r, n, i;
|
|
23
|
+
if (e && t && typeof e == "object") {
|
|
24
|
+
if (Array.isArray(e)) {
|
|
25
|
+
if (r = e.length, r !== t.length) return !1;
|
|
26
|
+
for (n = r; n-- !== 0; )
|
|
27
|
+
if (!Y(e[n], t[n]))
|
|
28
|
+
return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
|
|
32
|
+
return !1;
|
|
33
|
+
for (n = r; n-- !== 0; )
|
|
34
|
+
if (!{}.hasOwnProperty.call(t, i[n]))
|
|
35
|
+
return !1;
|
|
36
|
+
for (n = r; n-- !== 0; ) {
|
|
37
|
+
const s = i[n];
|
|
38
|
+
if (!(s === "_owner" && e.$$typeof) && !Y(e[s], t[s]))
|
|
39
|
+
return !1;
|
|
40
|
+
}
|
|
41
|
+
return !0;
|
|
42
|
+
}
|
|
43
|
+
return e !== e && t !== t;
|
|
44
|
+
}
|
|
45
|
+
function Q(e) {
|
|
46
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
47
|
+
}
|
|
48
|
+
function J(e, t) {
|
|
49
|
+
const r = Q(e);
|
|
50
|
+
return Math.round(t * r) / r;
|
|
51
|
+
}
|
|
52
|
+
function X(e) {
|
|
53
|
+
const t = o.useRef(e);
|
|
54
|
+
return I(() => {
|
|
55
|
+
t.current = e;
|
|
56
|
+
}), t;
|
|
57
|
+
}
|
|
58
|
+
function ke(e) {
|
|
59
|
+
e === void 0 && (e = {});
|
|
60
|
+
const {
|
|
61
|
+
placement: t = "bottom",
|
|
62
|
+
strategy: r = "absolute",
|
|
63
|
+
middleware: n = [],
|
|
64
|
+
platform: i,
|
|
65
|
+
elements: {
|
|
66
|
+
reference: s,
|
|
67
|
+
floating: l
|
|
68
|
+
} = {},
|
|
69
|
+
transform: v = !0,
|
|
70
|
+
whileElementsMounted: c,
|
|
71
|
+
open: f
|
|
72
|
+
} = e, [u, h] = o.useState({
|
|
73
|
+
x: 0,
|
|
74
|
+
y: 0,
|
|
75
|
+
strategy: r,
|
|
76
|
+
placement: t,
|
|
77
|
+
middlewareData: {},
|
|
78
|
+
isPositioned: !1
|
|
79
|
+
}), [A, E] = o.useState(n);
|
|
80
|
+
Y(A, n) || E(n);
|
|
81
|
+
const [g, p] = o.useState(null), [j, _] = o.useState(null), H = o.useCallback((a) => {
|
|
82
|
+
a !== y.current && (y.current = a, p(a));
|
|
83
|
+
}, []), W = o.useCallback((a) => {
|
|
84
|
+
a !== R.current && (R.current = a, _(a));
|
|
85
|
+
}, []), d = s || g, w = l || j, y = o.useRef(null), R = o.useRef(null), S = o.useRef(u), B = c != null, b = X(c), M = X(i), z = X(f), m = o.useCallback(() => {
|
|
86
|
+
if (!y.current || !R.current)
|
|
87
|
+
return;
|
|
88
|
+
const a = {
|
|
89
|
+
placement: t,
|
|
90
|
+
strategy: r,
|
|
91
|
+
middleware: A
|
|
92
|
+
};
|
|
93
|
+
M.current && (a.platform = M.current), xe(y.current, R.current, a).then((O) => {
|
|
94
|
+
const C = {
|
|
95
|
+
...O,
|
|
96
|
+
// The floating element's position may be recomputed while it's closed
|
|
97
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
98
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
99
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
100
|
+
isPositioned: z.current !== !1
|
|
101
|
+
};
|
|
102
|
+
N.current && !Y(S.current, C) && (S.current = C, Ee.flushSync(() => {
|
|
103
|
+
h(C);
|
|
104
|
+
}));
|
|
105
|
+
});
|
|
106
|
+
}, [A, t, r, M, z]);
|
|
107
|
+
I(() => {
|
|
108
|
+
f === !1 && S.current.isPositioned && (S.current.isPositioned = !1, h((a) => ({
|
|
109
|
+
...a,
|
|
110
|
+
isPositioned: !1
|
|
111
|
+
})));
|
|
112
|
+
}, [f]);
|
|
113
|
+
const N = o.useRef(!1);
|
|
114
|
+
I(() => (N.current = !0, () => {
|
|
115
|
+
N.current = !1;
|
|
116
|
+
}), []), I(() => {
|
|
117
|
+
if (d && (y.current = d), w && (R.current = w), d && w) {
|
|
118
|
+
if (b.current)
|
|
119
|
+
return b.current(d, w, m);
|
|
120
|
+
m();
|
|
121
|
+
}
|
|
122
|
+
}, [d, w, m, b, B]);
|
|
123
|
+
const D = o.useMemo(() => ({
|
|
124
|
+
reference: y,
|
|
125
|
+
floating: R,
|
|
126
|
+
setReference: H,
|
|
127
|
+
setFloating: W
|
|
128
|
+
}), [H, W]), P = o.useMemo(() => ({
|
|
129
|
+
reference: d,
|
|
130
|
+
floating: w
|
|
131
|
+
}), [d, w]), $ = o.useMemo(() => {
|
|
132
|
+
const a = {
|
|
133
|
+
position: r,
|
|
134
|
+
left: 0,
|
|
135
|
+
top: 0
|
|
136
|
+
};
|
|
137
|
+
if (!P.floating)
|
|
138
|
+
return a;
|
|
139
|
+
const O = J(P.floating, u.x), C = J(P.floating, u.y);
|
|
140
|
+
return v ? {
|
|
141
|
+
...a,
|
|
142
|
+
transform: "translate(" + O + "px, " + C + "px)",
|
|
143
|
+
...Q(P.floating) >= 1.5 && {
|
|
144
|
+
willChange: "transform"
|
|
145
|
+
}
|
|
146
|
+
} : {
|
|
147
|
+
position: r,
|
|
148
|
+
left: O,
|
|
149
|
+
top: C
|
|
150
|
+
};
|
|
151
|
+
}, [r, v, P.floating, u.x, u.y]);
|
|
152
|
+
return o.useMemo(() => ({
|
|
153
|
+
...u,
|
|
154
|
+
update: m,
|
|
155
|
+
refs: D,
|
|
156
|
+
elements: P,
|
|
157
|
+
floatingStyles: $
|
|
158
|
+
}), [u, m, D, P, $]);
|
|
159
|
+
}
|
|
160
|
+
const He = (e) => {
|
|
161
|
+
function t(r) {
|
|
162
|
+
return {}.hasOwnProperty.call(r, "current");
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
name: "arrow",
|
|
166
|
+
options: e,
|
|
167
|
+
fn(r) {
|
|
168
|
+
const {
|
|
169
|
+
element: n,
|
|
170
|
+
padding: i
|
|
171
|
+
} = typeof e == "function" ? e(r) : e;
|
|
172
|
+
return n && t(n) ? n.current != null ? V({
|
|
173
|
+
element: n.current,
|
|
174
|
+
padding: i
|
|
175
|
+
}).fn(r) : {} : n ? V({
|
|
176
|
+
element: n,
|
|
177
|
+
padding: i
|
|
178
|
+
}).fn(r) : {};
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}, We = (e, t) => ({
|
|
182
|
+
...ve(e),
|
|
183
|
+
options: [e, t]
|
|
184
|
+
}), ze = (e, t) => ({
|
|
185
|
+
...Ae(e),
|
|
186
|
+
options: [e, t]
|
|
187
|
+
}), Fe = (e, t) => ({
|
|
188
|
+
...$e(e),
|
|
189
|
+
options: [e, t]
|
|
190
|
+
}), Ie = (e, t) => ({
|
|
191
|
+
...Re(e),
|
|
192
|
+
options: [e, t]
|
|
193
|
+
}), Ye = (e, t) => ({
|
|
194
|
+
...Ce(e),
|
|
195
|
+
options: [e, t]
|
|
196
|
+
}), je = (e, t) => ({
|
|
197
|
+
...Se(e),
|
|
198
|
+
options: [e, t]
|
|
199
|
+
}), Be = (e, t) => ({
|
|
200
|
+
...He(e),
|
|
201
|
+
options: [e, t]
|
|
202
|
+
});
|
|
203
|
+
var Xe = "Arrow", ee = o.forwardRef((e, t) => {
|
|
204
|
+
const { children: r, width: n = 10, height: i = 5, ...s } = e;
|
|
205
|
+
return /* @__PURE__ */ x(
|
|
206
|
+
L.svg,
|
|
207
|
+
{
|
|
208
|
+
...s,
|
|
209
|
+
ref: t,
|
|
210
|
+
width: n,
|
|
211
|
+
height: i,
|
|
212
|
+
viewBox: "0 0 30 10",
|
|
213
|
+
preserveAspectRatio: "none",
|
|
214
|
+
children: e.asChild ? r : /* @__PURE__ */ x("polygon", { points: "0,0 30,0 15,10" })
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
});
|
|
218
|
+
ee.displayName = Xe;
|
|
219
|
+
var Le = ee, T = "Popper", [te, at] = Me(T), [Te, re] = te(T), ne = (e) => {
|
|
220
|
+
const { __scopePopper: t, children: r } = e, [n, i] = o.useState(null);
|
|
221
|
+
return /* @__PURE__ */ x(Te, { scope: t, anchor: n, onAnchorChange: i, children: r });
|
|
222
|
+
};
|
|
223
|
+
ne.displayName = T;
|
|
224
|
+
var oe = "PopperAnchor", ie = o.forwardRef(
|
|
225
|
+
(e, t) => {
|
|
226
|
+
const { __scopePopper: r, virtualRef: n, ...i } = e, s = re(oe, r), l = o.useRef(null), v = K(t, l), c = o.useRef(null);
|
|
227
|
+
return o.useEffect(() => {
|
|
228
|
+
const f = c.current;
|
|
229
|
+
c.current = n?.current || l.current, f !== c.current && s.onAnchorChange(c.current);
|
|
230
|
+
}), n ? null : /* @__PURE__ */ x(L.div, { ...i, ref: v });
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
ie.displayName = oe;
|
|
234
|
+
var Z = "PopperContent", [Ze, qe] = te(Z), ae = o.forwardRef(
|
|
235
|
+
(e, t) => {
|
|
236
|
+
const {
|
|
237
|
+
__scopePopper: r,
|
|
238
|
+
side: n = "bottom",
|
|
239
|
+
sideOffset: i = 0,
|
|
240
|
+
align: s = "center",
|
|
241
|
+
alignOffset: l = 0,
|
|
242
|
+
arrowPadding: v = 0,
|
|
243
|
+
avoidCollisions: c = !0,
|
|
244
|
+
collisionBoundary: f = [],
|
|
245
|
+
collisionPadding: u = 0,
|
|
246
|
+
sticky: h = "partial",
|
|
247
|
+
hideWhenDetached: A = !1,
|
|
248
|
+
updatePositionStrategy: E = "optimized",
|
|
249
|
+
onPlaced: g,
|
|
250
|
+
...p
|
|
251
|
+
} = e, j = re(Z, r), [_, H] = o.useState(null), W = K(t, (k) => H(k)), [d, w] = o.useState(null), y = be(d), R = y?.width ?? 0, S = y?.height ?? 0, B = n + (s !== "center" ? "-" + s : ""), b = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(f) ? f : [f], z = M.length > 0, m = {
|
|
252
|
+
padding: b,
|
|
253
|
+
boundary: M.filter(Ve),
|
|
254
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
255
|
+
altBoundary: z
|
|
256
|
+
}, { refs: N, floatingStyles: D, placement: P, isPositioned: $, middlewareData: a } = ke({
|
|
257
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
258
|
+
strategy: "fixed",
|
|
259
|
+
placement: B,
|
|
260
|
+
whileElementsMounted: (...k) => Oe(...k, {
|
|
261
|
+
animationFrame: E === "always"
|
|
262
|
+
}),
|
|
263
|
+
elements: {
|
|
264
|
+
reference: j.anchor
|
|
265
|
+
},
|
|
266
|
+
middleware: [
|
|
267
|
+
We({ mainAxis: i + S, alignmentAxis: l }),
|
|
268
|
+
c && ze({
|
|
269
|
+
mainAxis: !0,
|
|
270
|
+
crossAxis: !1,
|
|
271
|
+
limiter: h === "partial" ? Fe() : void 0,
|
|
272
|
+
...m
|
|
273
|
+
}),
|
|
274
|
+
c && Ie({ ...m }),
|
|
275
|
+
Ye({
|
|
276
|
+
...m,
|
|
277
|
+
apply: ({ elements: k, rects: U, availableWidth: he, availableHeight: ge }) => {
|
|
278
|
+
const { width: we, height: ye } = U.reference, F = k.floating.style;
|
|
279
|
+
F.setProperty("--radix-popper-available-width", `${he}px`), F.setProperty("--radix-popper-available-height", `${ge}px`), F.setProperty("--radix-popper-anchor-width", `${we}px`), F.setProperty("--radix-popper-anchor-height", `${ye}px`);
|
|
280
|
+
}
|
|
281
|
+
}),
|
|
282
|
+
d && Be({ element: d, padding: v }),
|
|
283
|
+
Ge({ arrowWidth: R, arrowHeight: S }),
|
|
284
|
+
A && je({ strategy: "referenceHidden", ...m })
|
|
285
|
+
]
|
|
286
|
+
}), [O, C] = le(P), q = _e(g);
|
|
287
|
+
G(() => {
|
|
288
|
+
$ && q?.();
|
|
289
|
+
}, [$, q]);
|
|
290
|
+
const fe = a.arrow?.x, ue = a.arrow?.y, de = a.arrow?.centerOffset !== 0, [pe, me] = o.useState();
|
|
291
|
+
return G(() => {
|
|
292
|
+
_ && me(window.getComputedStyle(_).zIndex);
|
|
293
|
+
}, [_]), /* @__PURE__ */ x(
|
|
294
|
+
"div",
|
|
295
|
+
{
|
|
296
|
+
ref: N.setFloating,
|
|
297
|
+
"data-radix-popper-content-wrapper": "",
|
|
298
|
+
style: {
|
|
299
|
+
...D,
|
|
300
|
+
transform: $ ? D.transform : "translate(0, -200%)",
|
|
301
|
+
// keep off the page when measuring
|
|
302
|
+
minWidth: "max-content",
|
|
303
|
+
zIndex: pe,
|
|
304
|
+
"--radix-popper-transform-origin": [
|
|
305
|
+
a.transformOrigin?.x,
|
|
306
|
+
a.transformOrigin?.y
|
|
307
|
+
].join(" "),
|
|
308
|
+
// hide the content if using the hide middleware and should be hidden
|
|
309
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
310
|
+
// as if the PopperContent isn't there at all
|
|
311
|
+
...a.hide?.referenceHidden && {
|
|
312
|
+
visibility: "hidden",
|
|
313
|
+
pointerEvents: "none"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
dir: e.dir,
|
|
317
|
+
children: /* @__PURE__ */ x(
|
|
318
|
+
Ze,
|
|
319
|
+
{
|
|
320
|
+
scope: r,
|
|
321
|
+
placedSide: O,
|
|
322
|
+
onArrowChange: w,
|
|
323
|
+
arrowX: fe,
|
|
324
|
+
arrowY: ue,
|
|
325
|
+
shouldHideArrow: de,
|
|
326
|
+
children: /* @__PURE__ */ x(
|
|
327
|
+
L.div,
|
|
328
|
+
{
|
|
329
|
+
"data-side": O,
|
|
330
|
+
"data-align": C,
|
|
331
|
+
...p,
|
|
332
|
+
ref: W,
|
|
333
|
+
style: {
|
|
334
|
+
...p.style,
|
|
335
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
336
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
337
|
+
animation: $ ? void 0 : "none"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
)
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
}
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
);
|
|
347
|
+
ae.displayName = Z;
|
|
348
|
+
var se = "PopperArrow", Ue = {
|
|
349
|
+
top: "bottom",
|
|
350
|
+
right: "left",
|
|
351
|
+
bottom: "top",
|
|
352
|
+
left: "right"
|
|
353
|
+
}, ce = o.forwardRef(function(t, r) {
|
|
354
|
+
const { __scopePopper: n, ...i } = t, s = qe(se, n), l = Ue[s.placedSide];
|
|
355
|
+
return (
|
|
356
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
357
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
358
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
359
|
+
/* @__PURE__ */ x(
|
|
360
|
+
"span",
|
|
361
|
+
{
|
|
362
|
+
ref: s.onArrowChange,
|
|
363
|
+
style: {
|
|
364
|
+
position: "absolute",
|
|
365
|
+
left: s.arrowX,
|
|
366
|
+
top: s.arrowY,
|
|
367
|
+
[l]: 0,
|
|
368
|
+
transformOrigin: {
|
|
369
|
+
top: "",
|
|
370
|
+
right: "0 0",
|
|
371
|
+
bottom: "center 0",
|
|
372
|
+
left: "100% 0"
|
|
373
|
+
}[s.placedSide],
|
|
374
|
+
transform: {
|
|
375
|
+
top: "translateY(100%)",
|
|
376
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
377
|
+
bottom: "rotate(180deg)",
|
|
378
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
379
|
+
}[s.placedSide],
|
|
380
|
+
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
381
|
+
},
|
|
382
|
+
children: /* @__PURE__ */ x(
|
|
383
|
+
Le,
|
|
384
|
+
{
|
|
385
|
+
...i,
|
|
386
|
+
ref: r,
|
|
387
|
+
style: {
|
|
388
|
+
...i.style,
|
|
389
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
390
|
+
display: "block"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
)
|
|
394
|
+
}
|
|
395
|
+
)
|
|
396
|
+
);
|
|
397
|
+
});
|
|
398
|
+
ce.displayName = se;
|
|
399
|
+
function Ve(e) {
|
|
400
|
+
return e !== null;
|
|
401
|
+
}
|
|
402
|
+
var Ge = (e) => ({
|
|
403
|
+
name: "transformOrigin",
|
|
404
|
+
options: e,
|
|
405
|
+
fn(t) {
|
|
406
|
+
const { placement: r, rects: n, middlewareData: i } = t, l = i.arrow?.centerOffset !== 0, v = l ? 0 : e.arrowWidth, c = l ? 0 : e.arrowHeight, [f, u] = le(r), h = { start: "0%", center: "50%", end: "100%" }[u], A = (i.arrow?.x ?? 0) + v / 2, E = (i.arrow?.y ?? 0) + c / 2;
|
|
407
|
+
let g = "", p = "";
|
|
408
|
+
return f === "bottom" ? (g = l ? h : `${A}px`, p = `${-c}px`) : f === "top" ? (g = l ? h : `${A}px`, p = `${n.floating.height + c}px`) : f === "right" ? (g = `${-c}px`, p = l ? h : `${E}px`) : f === "left" && (g = `${n.floating.width + c}px`, p = l ? h : `${E}px`), { data: { x: g, y: p } };
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
function le(e) {
|
|
412
|
+
const [t, r = "center"] = e.split("-");
|
|
413
|
+
return [t, r];
|
|
414
|
+
}
|
|
415
|
+
var st = ne, ct = ie, lt = ae, ft = ce;
|
|
416
|
+
export {
|
|
417
|
+
ct as A,
|
|
418
|
+
lt as C,
|
|
419
|
+
st as R,
|
|
420
|
+
ft as a,
|
|
421
|
+
at as c
|
|
422
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("react"),f=require("react/jsx-runtime");function R(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=R(b);function m(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1;const o=e.map(r=>{const l=m(r,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let r=0;r<o.length;r++){const l=o[r];typeof l=="function"?l():m(e[r],null)}}}}function C(...e){return i.useCallback(p(...e),e)}function y(e){const t=E(e),n=i.forwardRef((o,r)=>{const{children:l,...c}=o,s=i.Children.toArray(l),a=s.find(O);if(a){const u=a.props.children,g=s.map(d=>d===a?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:d);return f.jsx(t,{...c,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,g):null})}return f.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}var j=y("Slot");function E(e){const t=i.forwardRef((n,o)=>{const{children:r,...l}=n;if(i.isValidElement(r)){const c=x(r),s=_(l,r.props);return r.type!==i.Fragment&&(s.ref=o?p(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S=Symbol("radix.slottable");function h(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=S,t}function O(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S}function _(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function x(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.Slot=j;exports.composeRefs=p;exports.createSlot=y;exports.createSlottable=h;exports.useComposedRefs=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react");require("react/jsx-runtime");function i(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=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import * as f from "react-dom";
|
|
3
|
+
import { c as p } from "./index-5Bhkapwi.js";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
var u = [
|
|
6
|
+
"a",
|
|
7
|
+
"button",
|
|
8
|
+
"div",
|
|
9
|
+
"form",
|
|
10
|
+
"h2",
|
|
11
|
+
"h3",
|
|
12
|
+
"img",
|
|
13
|
+
"input",
|
|
14
|
+
"label",
|
|
15
|
+
"li",
|
|
16
|
+
"nav",
|
|
17
|
+
"ol",
|
|
18
|
+
"p",
|
|
19
|
+
"select",
|
|
20
|
+
"span",
|
|
21
|
+
"svg",
|
|
22
|
+
"ul"
|
|
23
|
+
], h = u.reduce((t, i) => {
|
|
24
|
+
const o = p(`Primitive.${i}`), r = c.forwardRef((e, s) => {
|
|
25
|
+
const { asChild: a, ...m } = e, n = a ? o : i;
|
|
26
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...m, ref: s });
|
|
27
|
+
});
|
|
28
|
+
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
+
}, {});
|
|
30
|
+
function w(t, i) {
|
|
31
|
+
t && f.flushSync(() => t.dispatchEvent(i));
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
h as P,
|
|
35
|
+
w as d
|
|
36
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const J=require("react"),m=require("./index-BfKbXbc8.cjs"),k=require("./index-CajSSBH7.cjs"),N=require("./index-CRDKsB5y.cjs"),Q=require("./index-B_Bwy8wX.cjs"),w=require("./index-DVuTCIJE.cjs"),q=require("./index-q-4o5Ie4.cjs"),G=require("./index-C2mPf2xD.cjs"),Z=require("./index-C8aODXfJ.cjs"),u=require("react/jsx-runtime");function ee(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=ee(J);var te=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),re="VisuallyHidden",$=s.forwardRef((e,r)=>u.jsx(G.Primitive.span,{...e,ref:r,style:{...te,...e.style}}));$.displayName=re;var oe=$,[j]=m.createContextScope("Tooltip",[w.createPopperScope]),D=w.createPopperScope(),F="TooltipProvider",ne=700,A="tooltip.open",[se,H]=j(F),V=e=>{const{__scopeTooltip:r,delayDuration:t=ne,skipDelayDuration:o=300,disableHoverableContent:n=!1,children:c}=e,a=s.useRef(!0),v=s.useRef(!1),i=s.useRef(0);return s.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),u.jsx(se,{scope:r,isOpenDelayedRef:a,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(i.current),a.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:v,onPointerInTransitChange:s.useCallback(p=>{v.current=p},[]),disableHoverableContent:n,children:c})};V.displayName=F;var _="Tooltip",[ie,O]=j(_),Y=e=>{const{__scopeTooltip:r,children:t,open:o,defaultOpen:n,onOpenChange:c,disableHoverableContent:a,delayDuration:v}=e,i=H(_,e.__scopeTooltip),p=D(r),[l,f]=s.useState(null),h=Q.useId(),d=s.useRef(0),x=a??i.disableHoverableContent,y=v??i.delayDuration,g=s.useRef(!1),[C,T]=Z.useControllableState({prop:o,defaultProp:n??!1,onChange:I=>{I?(i.onOpen(),document.dispatchEvent(new CustomEvent(A))):i.onClose(),c?.(I)},caller:_}),P=s.useMemo(()=>C?g.current?"delayed-open":"instant-open":"closed",[C]),E=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,g.current=!1,T(!0)},[T]),R=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,T(!1)},[T]),M=s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{g.current=!0,T(!0),d.current=0},y)},[y,T]);return s.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),u.jsx(w.Root2,{...p,children:u.jsx(ie,{scope:r,contentId:h,open:C,stateAttribute:P,trigger:l,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{i.isOpenDelayedRef.current?M():E()},[i.isOpenDelayedRef,M,E]),onTriggerLeave:s.useCallback(()=>{x?R():(window.clearTimeout(d.current),d.current=0)},[R,x]),onOpen:E,onClose:R,disableHoverableContent:x,children:t})})};Y.displayName=_;var L="TooltipTrigger",B=s.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=O(L,t),c=H(L,t),a=D(t),v=s.useRef(null),i=k.useComposedRefs(r,v,n.onTriggerChange),p=s.useRef(!1),l=s.useRef(!1),f=s.useCallback(()=>p.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(w.Anchor,{asChild:!0,...a,children:u.jsx(G.Primitive.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...o,ref:i,onPointerMove:m.composeEventHandlers(e.onPointerMove,h=>{h.pointerType!=="touch"&&!l.current&&!c.isPointerInTransitRef.current&&(n.onTriggerEnter(),l.current=!0)}),onPointerLeave:m.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),l.current=!1}),onPointerDown:m.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:m.composeEventHandlers(e.onFocus,()=>{p.current||n.onOpen()}),onBlur:m.composeEventHandlers(e.onBlur,n.onClose),onClick:m.composeEventHandlers(e.onClick,n.onClose)})})});B.displayName=L;var S="TooltipPortal",[ae,ce]=j(S,{forceMount:void 0}),U=e=>{const{__scopeTooltip:r,forceMount:t,children:o,container:n}=e,c=O(S,r);return u.jsx(ae,{scope:r,forceMount:t,children:u.jsx(q.Presence,{present:t||c.open,children:u.jsx(N.Portal,{asChild:!0,container:n,children:o})})})};U.displayName=S;var b="TooltipContent",z=s.forwardRef((e,r)=>{const t=ce(b,e.__scopeTooltip),{forceMount:o=t.forceMount,side:n="top",...c}=e,a=O(b,e.__scopeTooltip);return u.jsx(q.Presence,{present:o||a.open,children:a.disableHoverableContent?u.jsx(W,{side:n,...c,ref:r}):u.jsx(le,{side:n,...c,ref:r})})}),le=s.forwardRef((e,r)=>{const t=O(b,e.__scopeTooltip),o=H(b,e.__scopeTooltip),n=s.useRef(null),c=k.useComposedRefs(r,n),[a,v]=s.useState(null),{trigger:i,onClose:p}=t,l=n.current,{onPointerInTransitChange:f}=o,h=s.useCallback(()=>{v(null),f(!1)},[f]),d=s.useCallback((x,y)=>{const g=x.currentTarget,C={x:x.clientX,y:x.clientY},T=fe(C,g.getBoundingClientRect()),P=ve(C,T),E=he(y.getBoundingClientRect()),R=ge([...P,...E]);v(R),f(!0)},[f]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(i&&l){const x=g=>d(g,l),y=g=>d(g,i);return i.addEventListener("pointerleave",x),l.addEventListener("pointerleave",y),()=>{i.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",y)}}},[i,l,d,h]),s.useEffect(()=>{if(a){const x=y=>{const g=y.target,C={x:y.clientX,y:y.clientY},T=i?.contains(g)||l?.contains(g),P=!xe(C,a);T?h():P&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[i,l,a,p,h]),u.jsx(W,{...e,ref:c})}),[ue,de]=j(_,{isInside:!1}),pe=k.createSlottable("TooltipContent"),W=s.forwardRef((e,r)=>{const{__scopeTooltip:t,children:o,"aria-label":n,onEscapeKeyDown:c,onPointerDownOutside:a,...v}=e,i=O(b,t),p=D(t),{onClose:l}=i;return s.useEffect(()=>(document.addEventListener(A,l),()=>document.removeEventListener(A,l)),[l]),s.useEffect(()=>{if(i.trigger){const f=h=>{h.target?.contains(i.trigger)&&l()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[i.trigger,l]),u.jsx(N.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:l,children:u.jsxs(w.Content,{"data-state":i.stateAttribute,...p,...v,ref:r,style:{...v.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(pe,{children:o}),u.jsx(ue,{scope:t,isInside:!0,children:u.jsx(oe,{id:i.contentId,role:"tooltip",children:n||o})})]})})});z.displayName=b;var X="TooltipArrow",K=s.forwardRef((e,r)=>{const{__scopeTooltip:t,...o}=e,n=D(t);return de(X,t).isInside?null:u.jsx(w.Arrow,{...n,...o,ref:r})});K.displayName=X;function fe(e,r){const t=Math.abs(r.top-e.y),o=Math.abs(r.bottom-e.y),n=Math.abs(r.right-e.x),c=Math.abs(r.left-e.x);switch(Math.min(t,o,n,c)){case c:return"left";case n:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ve(e,r,t=5){const o=[];switch(r){case"top":o.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":o.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":o.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":o.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return o}function he(e){const{top:r,right:t,bottom:o,left:n}=e;return[{x:n,y:r},{x:t,y:r},{x:t,y:o},{x:n,y:o}]}function xe(e,r){const{x:t,y:o}=e;let n=!1;for(let c=0,a=r.length-1;c<r.length;a=c++){const v=r[c],i=r[a],p=v.x,l=v.y,f=i.x,h=i.y;l>o!=h>o&&t<(f-p)*(o-l)/(h-l)+p&&(n=!n)}return n}function ge(e){const r=e.slice();return r.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ye(r)}function ye(e){if(e.length<=1)return e.slice();const r=[];for(let o=0;o<e.length;o++){const n=e[o];for(;r.length>=2;){const c=r[r.length-1],a=r[r.length-2];if((c.x-a.x)*(n.y-a.y)>=(c.y-a.y)*(n.x-a.x))r.pop();else break}r.push(n)}r.pop();const t=[];for(let o=e.length-1;o>=0;o--){const n=e[o];for(;t.length>=2;){const c=t[t.length-1],a=t[t.length-2];if((c.x-a.x)*(n.y-a.y)>=(c.y-a.y)*(n.x-a.x))t.pop();else break}t.push(n)}return t.pop(),r.length===1&&t.length===1&&r[0].x===t[0].x&&r[0].y===t[0].y?r:r.concat(t)}var Te=V,Ce=Y,me=B,be=U,we=z,Pe=K;exports.Arrow2=Pe;exports.Content2=we;exports.Portal=be;exports.Provider=Te;exports.Root3=Ce;exports.Trigger=me;
|