mainstack-design-system 0.7.44 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +702 -15
- package/dist/FormCountryOptionsList-BTIDLbxV.cjs +8 -0
- package/dist/FormCountryOptionsList-BWbi-SZ_.js +1790 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Accordion/AccordionContent.js +1 -0
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionItem.js +1 -0
- package/dist/components/Accordion/AccordionRoot.js +1 -0
- package/dist/components/Accordion/AccordionSubtitle.js +1 -0
- package/dist/components/Accordion/AccordionTitle.js +1 -0
- package/dist/components/Accordion/AccordionTrigger.js +1 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Avatar/Avatar.js +2 -0
- package/dist/components/Avatar/avatarVariants.js +1 -0
- package/dist/components/Avatar/getAvatarSize.js +1 -0
- package/dist/components/Avatar/index.js +1 -0
- package/dist/components/Banner/BannerAction.js +1 -0
- package/dist/components/Banner/BannerContent.js +1 -0
- package/dist/components/Banner/BannerHeader.js +1 -0
- package/dist/components/Banner/BannerIcon.js +1 -0
- package/dist/components/Banner/BannerRoot.js +1 -0
- package/dist/components/Banner/BannerText.js +1 -0
- package/dist/components/Banner/bannerVariants.js +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/Button/Button.js +1 -0
- package/dist/components/Button/ButtonIcon.js +1 -0
- package/dist/components/Button/ButtonLabel.js +1 -0
- package/dist/components/Button/ButtonRoot.js +1 -0
- package/dist/components/Button/buttonVariants.js +87 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Checkbox/CheckboxIndicator.js +2 -0
- package/dist/components/Checkbox/CheckboxLabel.js +1 -0
- package/dist/components/Checkbox/CheckboxRoot.js +1 -0
- package/dist/components/Checkbox/CheckboxSubtext.js +1 -0
- package/dist/components/Checkbox/CheckboxTitle.js +1 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Chip/Chip.js +1 -0
- package/dist/components/Chip/ChipLabel.js +1 -0
- package/dist/components/Chip/ChipRoot.js +1 -0
- package/dist/components/Chip/ChipSlot.js +1 -0
- package/dist/components/Chip/chipVariants.js +1 -0
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/Form/FormCharacterCounter.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptions.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsList.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountryOptionsSearchField.js +1 -0
- package/dist/components/Form/FormCountrySelect/FormCountrySelect.js +1 -0
- package/dist/components/Form/FormCountrySelect/constant.js +1 -0
- package/dist/components/Form/FormCountrySelect/getCountryFlagComp.js +1 -0
- package/dist/components/Form/FormItem.js +1 -0
- package/dist/components/Form/FormLabel.js +1 -0
- package/dist/components/Form/FormStatus/FormErrorStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormHintStatus.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusRoot.js +1 -0
- package/dist/components/Form/FormStatus/FormStatusText.js +1 -0
- package/dist/components/Form/FormStatus/FormSuccessStatus.js +1 -0
- package/dist/components/Form/index.js +1 -0
- package/dist/components/Icons/AccountBalanceIcon.js +1 -0
- package/dist/components/Icons/AccountBalanceWalletIcon.js +1 -0
- package/dist/components/Icons/AccountCircleIcon.js +1 -0
- package/dist/components/Icons/AdGroupIcon.js +1 -0
- package/dist/components/Icons/AdaptiveAudioMicIcon.js +1 -0
- package/dist/components/Icons/AddAPhotoIcon.js +1 -0
- package/dist/components/Icons/AddBusinessIcon.js +1 -0
- package/dist/components/Icons/AddCircleIcon.js +1 -0
- package/dist/components/Icons/AddIcon.js +1 -0
- package/dist/components/Icons/AddLinkIcon.js +1 -0
- package/dist/components/Icons/AddPhotoAlternateIcon.js +1 -0
- package/dist/components/Icons/AddShoppingCartIcon.js +1 -0
- package/dist/components/Icons/AdminPanelSettingsIcon.js +1 -0
- package/dist/components/Icons/AdsClickIcon.js +1 -0
- package/dist/components/Icons/AlarmIcon.js +1 -0
- package/dist/components/Icons/AllInboxIcon.js +1 -0
- package/dist/components/Icons/AnimationIcon.js +1 -0
- package/dist/components/Icons/ApartmentIcon.js +1 -0
- package/dist/components/Icons/AppsIcon.js +1 -0
- package/dist/components/Icons/ArchiveIcon.js +1 -0
- package/dist/components/Icons/ArrowBackIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleDownIcon.js +1 -0
- package/dist/components/Icons/ArrowCircleUpIcon.js +1 -0
- package/dist/components/Icons/ArrowDownwardIcon.js +1 -0
- package/dist/components/Icons/ArrowDropDownIcon.js +1 -0
- package/dist/components/Icons/ArrowDropUpIcon.js +1 -0
- package/dist/components/Icons/ArrowForwardIcon.js +1 -0
- package/dist/components/Icons/ArrowUpwardIcon.js +1 -0
- package/dist/components/Icons/ArtTrackIcon.js +1 -0
- package/dist/components/Icons/ArticleIcon.js +1 -0
- package/dist/components/Icons/AttachMoneyIcon.js +1 -0
- package/dist/components/Icons/AttachmentIcon.js +1 -0
- package/dist/components/Icons/AudioFileIcon.js +1 -0
- package/dist/components/Icons/AutoAwesomeMosaic.js +1 -0
- package/dist/components/Icons/AvatarIcon.js +1 -0
- package/dist/components/Icons/AwardStarIcon.js +1 -0
- package/dist/components/Icons/BarChartIcon.js +1 -0
- package/dist/components/Icons/BarcodeScannerIcon.js +1 -0
- package/dist/components/Icons/BlockIcon.js +1 -0
- package/dist/components/Icons/BoltIcon.js +1 -0
- package/dist/components/Icons/Book5Icon.js +1 -0
- package/dist/components/Icons/BookOnlineIcon.js +1 -0
- package/dist/components/Icons/BugReportIcon.js +1 -0
- package/dist/components/Icons/BusinessCenterIcon.js +1 -0
- package/dist/components/Icons/CalendarAddOnIcon.js +1 -0
- package/dist/components/Icons/CalendarClockIcon.js +1 -0
- package/dist/components/Icons/CalendarMonthIcon.js +1 -0
- package/dist/components/Icons/CalendarTodayIcon.js +1 -0
- package/dist/components/Icons/CallIcon.js +1 -0
- package/dist/components/Icons/CallMadeIcon.js +1 -0
- package/dist/components/Icons/CallMissedIcon.js +1 -0
- package/dist/components/Icons/CallMissedOutgoingIcon.js +1 -0
- package/dist/components/Icons/CallReceivedIcon.js +1 -0
- package/dist/components/Icons/CampaignIcon.js +1 -0
- package/dist/components/Icons/CancelIcon.js +1 -0
- package/dist/components/Icons/CancelScheduleSendIcon.js +1 -0
- package/dist/components/Icons/CaptivePortalIcon.js +1 -0
- package/dist/components/Icons/CardLayoutIcon.js +1 -0
- package/dist/components/Icons/CasesIcon.js +1 -0
- package/dist/components/Icons/CategoryIcon.js +1 -0
- package/dist/components/Icons/ChairIcon.js +1 -0
- package/dist/components/Icons/ChangeCircleIcon.js +1 -0
- package/dist/components/Icons/ChatBubbleIcon.js +1 -0
- package/dist/components/Icons/ChatIcon.js +1 -0
- package/dist/components/Icons/CheckBoxIcon.js +1 -0
- package/dist/components/Icons/CheckBoxOutlineBlankIcon.js +1 -0
- package/dist/components/Icons/CheckCircleIcon.js +1 -0
- package/dist/components/Icons/CheckIcon.js +1 -0
- package/dist/components/Icons/ChevronLeftIcon.js +1 -0
- package/dist/components/Icons/ChevronRightIcon.js +1 -0
- package/dist/components/Icons/ClinicalNoteIcon.js +1 -0
- package/dist/components/Icons/CloseIcon.js +1 -0
- package/dist/components/Icons/CloudUploadIcon.js +1 -0
- package/dist/components/Icons/CodeIcon.js +1 -0
- package/dist/components/Icons/CoffeeIcon.js +1 -0
- package/dist/components/Icons/CollectionsBookmarkIcon.js +1 -0
- package/dist/components/Icons/ColorPickerIcon.js +1 -0
- package/dist/components/Icons/CompareArrowsIcon.js +1 -0
- package/dist/components/Icons/ConfirmationNumberIcon.js +1 -0
- package/dist/components/Icons/ContactMailIcon.js +1 -0
- package/dist/components/Icons/ContactPageIcon.js +1 -0
- package/dist/components/Icons/ContactPhoneIcon.js +1 -0
- package/dist/components/Icons/ContactSupportIcon.js +1 -0
- package/dist/components/Icons/ContactsIcon.js +1 -0
- package/dist/components/Icons/ContentCopyIcon.js +1 -0
- package/dist/components/Icons/CreditCardGearIcon.js +1 -0
- package/dist/components/Icons/CreditCardIcon.js +1 -0
- package/dist/components/Icons/CsvIcon.js +1 -0
- package/dist/components/Icons/CurrencyExchangeIcon.js +1 -0
- package/dist/components/Icons/DNSIcon.js +1 -0
- package/dist/components/Icons/DangerousIcon.js +1 -0
- package/dist/components/Icons/DarkModeIcon.js +1 -0
- package/dist/components/Icons/DashboardIcon.js +1 -0
- package/dist/components/Icons/DataCheckIcon.js +1 -0
- package/dist/components/Icons/DataObjectIcon.js +1 -0
- package/dist/components/Icons/DatabaseIcon.js +1 -0
- package/dist/components/Icons/DehazeIcon.js +1 -0
- package/dist/components/Icons/DeployedCodeAccountIcon.js +1 -0
- package/dist/components/Icons/DescriptionIcon.js +1 -0
- package/dist/components/Icons/DesktopMacIcon.js +1 -0
- package/dist/components/Icons/DevicesIcon.js +1 -0
- package/dist/components/Icons/DiamondIcon.js +1 -0
- package/dist/components/Icons/DirectionsWalkIcon.js +1 -0
- package/dist/components/Icons/Diversity1Icon.js +1 -0
- package/dist/components/Icons/Diversity2Icon.js +1 -0
- package/dist/components/Icons/Diversity3Icon.js +1 -0
- package/dist/components/Icons/DoNotDisturbOnIcon.js +1 -0
- package/dist/components/Icons/DomainAddIcon.js +1 -0
- package/dist/components/Icons/DomainIcon.js +1 -0
- package/dist/components/Icons/DomainVerificationIcon.js +1 -0
- package/dist/components/Icons/DownloadIcon.js +1 -0
- package/dist/components/Icons/DraftsIcon.js +1 -0
- package/dist/components/Icons/DragHandleIcon.js +1 -0
- package/dist/components/Icons/DragIndicatorIcon.js +1 -0
- package/dist/components/Icons/DuoIcon.js +1 -0
- package/dist/components/Icons/EarlyOnIcon.js +1 -0
- package/dist/components/Icons/EditIcon.js +1 -0
- package/dist/components/Icons/EmojiFoodBeverageIcon.js +1 -0
- package/dist/components/Icons/EmojiIcon.js +1 -0
- package/dist/components/Icons/EncryptedIcon.js +1 -0
- package/dist/components/Icons/EnterpriseIcon.js +1 -0
- package/dist/components/Icons/EqualIcon.js +1 -0
- package/dist/components/Icons/ErrorIcon.js +1 -0
- package/dist/components/Icons/EventBusyIcon.js +1 -0
- package/dist/components/Icons/EventIcon.js +1 -0
- package/dist/components/Icons/ExpandAllIcon.js +1 -0
- package/dist/components/Icons/FastForwardIcon.js +1 -0
- package/dist/components/Icons/FastRewindIcon.js +1 -0
- package/dist/components/Icons/FavoriteIcon.js +1 -0
- package/dist/components/Icons/FeaturedSeasonalAndGiftsIcon.js +1 -0
- package/dist/components/Icons/FeedIcon.js +1 -0
- package/dist/components/Icons/FilePresentIcon.js +1 -0
- package/dist/components/Icons/FilterListIcon.js +1 -0
- package/dist/components/Icons/FingerPrintIcon.js +1 -0
- package/dist/components/Icons/FlagIcon.js +1 -0
- package/dist/components/Icons/FolderCopyIcon.js +1 -0
- package/dist/components/Icons/FolderIcon.js +1 -0
- package/dist/components/Icons/FolderZipIcon.js +1 -0
- package/dist/components/Icons/FootPrintIcon.js +1 -0
- package/dist/components/Icons/FormatAlignCenterIcon.js +1 -0
- package/dist/components/Icons/FormatAlignJustifyIcon.js +1 -0
- package/dist/components/Icons/FormatAlignLeftIcon.js +1 -0
- package/dist/components/Icons/FormatAlignRightIcon.js +1 -0
- package/dist/components/Icons/FormatBoldIcon.js +1 -0
- package/dist/components/Icons/FormatItalicIcon.js +1 -0
- package/dist/components/Icons/FormatListBulletedIcon.js +1 -0
- package/dist/components/Icons/FormatListNumberedIcon.js +1 -0
- package/dist/components/Icons/FormatSizeIcon.js +1 -0
- package/dist/components/Icons/FormatUnderlinedIcon.js +1 -0
- package/dist/components/Icons/ForumIcon.js +1 -0
- package/dist/components/Icons/ForwardToInboxIcon.js +1 -0
- package/dist/components/Icons/FullScreenIcon.js +1 -0
- package/dist/components/Icons/GalleryThumbnailIcon.js +1 -0
- package/dist/components/Icons/GppBadIcon.js +1 -0
- package/dist/components/Icons/GppMaybeIcon.js +1 -0
- package/dist/components/Icons/GridViewIcon.js +1 -0
- package/dist/components/Icons/GroupIcon.js +1 -0
- package/dist/components/Icons/GroupsTwoIcon.js +1 -0
- package/dist/components/Icons/HandShakeIcon.js +1 -0
- package/dist/components/Icons/HeadphonesIcon.js +1 -0
- package/dist/components/Icons/HelpIcon.js +1 -0
- package/dist/components/Icons/HomeIcon.js +1 -0
- package/dist/components/Icons/HomePinIcon.js +1 -0
- package/dist/components/Icons/HomeRepairServiceIcon.js +1 -0
- package/dist/components/Icons/HourGlassTopIcon.js +1 -0
- package/dist/components/Icons/HourglassEmptyIcon.js +1 -0
- package/dist/components/Icons/HubIcon.js +1 -0
- package/dist/components/Icons/IFrameIcon.js +1 -0
- package/dist/components/Icons/IconWrapper.js +1 -0
- package/dist/components/Icons/IdCardIcon.js +1 -0
- package/dist/components/Icons/IndeterminateCheckBoxIcon.js +1 -0
- package/dist/components/Icons/InfoIcon.js +1 -0
- package/dist/components/Icons/InsertChartIcon.js +1 -0
- package/dist/components/Icons/IntegrationInstructionsIcon.js +1 -0
- package/dist/components/Icons/Inventory2Icon.js +1 -0
- package/dist/components/Icons/IosShareIcon.js +1 -0
- package/dist/components/Icons/KeepIcon.js +1 -0
- package/dist/components/Icons/KeyIcon.js +1 -0
- package/dist/components/Icons/KeyOffIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowDownIcon.js +1 -0
- package/dist/components/Icons/KeyboardArrowUpIcon.js +1 -0
- package/dist/components/Icons/KeyboardBackSpaceIcon.js +1 -0
- package/dist/components/Icons/KeyboardDoubleArrowDownIcon.js +1 -0
- package/dist/components/Icons/LabProfileIcon.js +1 -0
- package/dist/components/Icons/LabelIcon.js +1 -0
- package/dist/components/Icons/LabelOffIcon.js +1 -0
- package/dist/components/Icons/LanguageIcon.js +1 -0
- package/dist/components/Icons/LeftPanelCloseIcon.js +1 -0
- package/dist/components/Icons/LeftPanelOpenIcon.js +1 -0
- package/dist/components/Icons/LibraryMusicIcon.js +1 -0
- package/dist/components/Icons/LinkIcon.js +1 -0
- package/dist/components/Icons/LinkOffIcon.js +1 -0
- package/dist/components/Icons/LocalActivityIcon.js +1 -0
- package/dist/components/Icons/LocalFloristIcon.js +1 -0
- package/dist/components/Icons/LocalLibraryIcon.js +1 -0
- package/dist/components/Icons/LocationOnIcon.js +1 -0
- package/dist/components/Icons/LockIcon.js +1 -0
- package/dist/components/Icons/LockOpenIcon.js +1 -0
- package/dist/components/Icons/LoginIcon.js +1 -0
- package/dist/components/Icons/LogoutIcon.js +1 -0
- package/dist/components/Icons/MailIcon.js +1 -0
- package/dist/components/Icons/ManageAccountsIcon.js +1 -0
- package/dist/components/Icons/MarkUnreadChatAltIcon.js +1 -0
- package/dist/components/Icons/MediaLinkIcon.js +1 -0
- package/dist/components/Icons/MenuOpenIcon.js +1 -0
- package/dist/components/Icons/MetabolismIcon.js +1 -0
- package/dist/components/Icons/MilitaryTechIcon.js +1 -0
- package/dist/components/Icons/MoneyBagIcon.js +1 -0
- package/dist/components/Icons/MonitorIcon.js +1 -0
- package/dist/components/Icons/MonitoringIcon.js +1 -0
- package/dist/components/Icons/MoreHorizIcon.js +1 -0
- package/dist/components/Icons/MoreVertIcon.js +1 -0
- package/dist/components/Icons/MotionPhotosPausedIcon.js +1 -0
- package/dist/components/Icons/NotificationsIcon.js +1 -0
- package/dist/components/Icons/OpenInNewIcon.js +1 -0
- package/dist/components/Icons/Package2Icon.js +1 -0
- package/dist/components/Icons/PageviewIcon.js +1 -0
- package/dist/components/Icons/PaidIcon.js +1 -0
- package/dist/components/Icons/PaletteIcon.js +1 -0
- package/dist/components/Icons/PatientListIcon.js +1 -0
- package/dist/components/Icons/PauseIcon.js +1 -0
- package/dist/components/Icons/PaymentsIcon.js +1 -0
- package/dist/components/Icons/PendingActionsIcon.js +1 -0
- package/dist/components/Icons/PercentIcon.js +1 -0
- package/dist/components/Icons/PermMediaIcon.js +1 -0
- package/dist/components/Icons/PersonAddIcon.js +1 -0
- package/dist/components/Icons/PersonBookIcon.js +1 -0
- package/dist/components/Icons/PersonIcon.js +1 -0
- package/dist/components/Icons/PhotoCameraIcon.js +1 -0
- package/dist/components/Icons/PhotoIcon.js +1 -0
- package/dist/components/Icons/PhotoLibraryIcon.js +1 -0
- package/dist/components/Icons/PictureAsPdfIcon.js +1 -0
- package/dist/components/Icons/PlayArrowIcon.js +1 -0
- package/dist/components/Icons/PlayCircleIcon.js +1 -0
- package/dist/components/Icons/PolicyIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsCircleIcon.js +1 -0
- package/dist/components/Icons/PowerSettingsNewIcon.js +1 -0
- package/dist/components/Icons/PreviewIcon.js +1 -0
- package/dist/components/Icons/PriorityHighIcon.js +1 -0
- package/dist/components/Icons/PsychologyAltIcon.js +1 -0
- package/dist/components/Icons/PublicIcon.js +1 -0
- package/dist/components/Icons/PublishIcon.js +1 -0
- package/dist/components/Icons/QRCode2Icon.js +1 -0
- package/dist/components/Icons/QuestionMarkIcon.js +1 -0
- package/dist/components/Icons/QuizIcon.js +1 -0
- package/dist/components/Icons/RadioButtonCheckedIcon.js +1 -0
- package/dist/components/Icons/RadioButtonUncheckedIcon.js +1 -0
- package/dist/components/Icons/RateReviewIcon.js +1 -0
- package/dist/components/Icons/ReceiptLongIcon.js +1 -0
- package/dist/components/Icons/RecordVoiceOverIcon.js +1 -0
- package/dist/components/Icons/RedeemIcon.js +1 -0
- package/dist/components/Icons/RedoIcon.js +1 -0
- package/dist/components/Icons/RemoveIcon.js +1 -0
- package/dist/components/Icons/RemoveRoadIcon.js +1 -0
- package/dist/components/Icons/RequestQuoteIcon.js +1 -0
- package/dist/components/Icons/ReviewIcon.js +1 -0
- package/dist/components/Icons/SavingsIcon.js +1 -0
- package/dist/components/Icons/ScheduleIcon.js +1 -0
- package/dist/components/Icons/ScheduleSendIcon.js +1 -0
- package/dist/components/Icons/SearchIcon.js +1 -0
- package/dist/components/Icons/SellIcon.js +1 -0
- package/dist/components/Icons/SendIcon.js +1 -0
- package/dist/components/Icons/SettingsIcon.js +1 -0
- package/dist/components/Icons/ShareIcon.js +1 -0
- package/dist/components/Icons/ShoppingCartIcon.js +1 -0
- package/dist/components/Icons/ShoppingModeIcon.js +1 -0
- package/dist/components/Icons/ShuffleIcon.js +1 -0
- package/dist/components/Icons/SocialLeaderBoardIcon.js +1 -0
- package/dist/components/Icons/Speed15xIcon.js +1 -0
- package/dist/components/Icons/Speed1xIcon.js +1 -0
- package/dist/components/Icons/Speed2xIcon.js +1 -0
- package/dist/components/Icons/StarHalfIcon.js +1 -0
- package/dist/components/Icons/StarIcon.js +1 -0
- package/dist/components/Icons/StorefrontIcon.js +1 -0
- package/dist/components/Icons/StrikethroughSIcon.js +1 -0
- package/dist/components/Icons/SubscriptionsIcon.js +1 -0
- package/dist/components/Icons/SupervisorAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchAccountIcon.js +1 -0
- package/dist/components/Icons/SwitchesIcon.js +1 -0
- package/dist/components/Icons/SyncSavedLocallyIcon.js +1 -0
- package/dist/components/Icons/TabletIcon.js +1 -0
- package/dist/components/Icons/ThumbDownIcon.js +1 -0
- package/dist/components/Icons/ThumbUpIcon.js +1 -0
- package/dist/components/Icons/TocIcon.js +1 -0
- package/dist/components/Icons/TrashDeleteBinIcon.js +1 -0
- package/dist/components/Icons/TrendingUpIcon.js +1 -0
- package/dist/components/Icons/TrophyIcon.js +1 -0
- package/dist/components/Icons/UndoIcon.js +1 -0
- package/dist/components/Icons/UnfoldMoreIcon.js +1 -0
- package/dist/components/Icons/UnsubscribeIcon.js +1 -0
- package/dist/components/Icons/UploadIcon.js +1 -0
- package/dist/components/Icons/VerifiedIcon.js +1 -0
- package/dist/components/Icons/VideoCamIcon.js +1 -0
- package/dist/components/Icons/VideoFileIcon.js +1 -0
- package/dist/components/Icons/ViewAgendaIcon.js +1 -0
- package/dist/components/Icons/ViewArrayIcon.js +1 -0
- package/dist/components/Icons/ViewCarouselIcon.js +1 -0
- package/dist/components/Icons/ViewCozyIcon.js +1 -0
- package/dist/components/Icons/ViewModuleIcon.js +1 -0
- package/dist/components/Icons/VisibilityIcon.js +1 -0
- package/dist/components/Icons/VisibilityOffIcon.js +1 -0
- package/dist/components/Icons/VolumeUpIcon.js +1 -0
- package/dist/components/Icons/VolunteerActivismIcon.js +1 -0
- package/dist/components/Icons/WandStarsGradientIcon.js +1 -0
- package/dist/components/Icons/WandStarsIcon.js +1 -0
- package/dist/components/Icons/WarningIcon.js +1 -0
- package/dist/components/Icons/WbSunnyIcon.js +1 -0
- package/dist/components/Icons/WebAssetIcon.js +1 -0
- package/dist/components/Icons/WebTrafficIcon.js +1 -0
- package/dist/components/Icons/WebhookIcon.js +1 -0
- package/dist/components/Icons/WidgetsIcon.js +1 -0
- package/dist/components/Icons/WorkHistoryIcon.js +1 -0
- package/dist/components/Icons/WorkIcon.js +1 -0
- package/dist/components/Icons/enums.js +1 -0
- package/dist/components/Icons/icons.js +1 -0
- package/dist/components/Icons/index.js +1 -0
- package/dist/components/Icons/types.js +1 -0
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/InputField.js +1 -0
- package/dist/components/Input/InputRoot.js +1 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/PasswordField/PasswordField.js +2 -0
- package/dist/components/PasswordField/index.js +1 -0
- package/dist/components/PhoneNumber/PhoneNumberDigitField.js +3 -0
- package/dist/components/PhoneNumber/PhoneNumberFields.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberFlagField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberInput.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptions.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsList.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberOptionsSearchField.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberPortal.js +2 -0
- package/dist/components/PhoneNumber/PhoneNumberRoot.js +2 -0
- package/dist/components/PhoneNumber/index.js +1 -0
- package/dist/components/PhoneNumber/phoneNumberContext.js +1 -0
- package/dist/components/PriceField/PriceFieldDigitField.js +2 -0
- package/dist/components/PriceField/PriceFieldFields.js +2 -0
- package/dist/components/PriceField/PriceFieldFlagField.js +2 -0
- package/dist/components/PriceField/PriceFieldInput.js +2 -0
- package/dist/components/PriceField/PriceFieldOptions.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsList.js +2 -0
- package/dist/components/PriceField/PriceFieldOptionsSearchField.js +2 -0
- package/dist/components/PriceField/PriceFieldPortal.js +2 -0
- package/dist/components/PriceField/PriceFieldRoot.js +2 -0
- package/dist/components/PriceField/index.js +1 -0
- package/dist/components/PriceField/priceFieldContext.js +1 -0
- package/dist/components/Provider/MainstackDesignSystemProvider.js +1 -0
- package/dist/components/Provider/index.js +1 -0
- package/dist/components/Provider/providerContext.js +1 -0
- package/dist/components/Provider/useMainstackDesignSystemTheme.js +1 -0
- package/dist/components/Radio/RadioItem.js +1 -0
- package/dist/components/Radio/RadioItemIndicator.js +1 -0
- package/dist/components/Radio/RadioItemLabel.js +1 -0
- package/dist/components/Radio/RadioItemSubtext.js +1 -0
- package/dist/components/Radio/RadioItemTitle.js +1 -0
- package/dist/components/Radio/RadioRoot.js +1 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/SearchField/SearchField.js +2 -0
- package/dist/components/SearchField/index.js +1 -0
- package/dist/components/Select/MultiSelect.js +2 -0
- package/dist/components/Select/Select.js +2 -0
- package/dist/components/Select/SelectInputField.js +2 -0
- package/dist/components/Select/SelectOptionInputPreview.js +2 -0
- package/dist/components/Select/SelectOptionItem.js +2 -0
- package/dist/components/Select/SelectOptionItemWithCheckbox.js +2 -0
- package/dist/components/Select/SelectOptions.js +2 -0
- package/dist/components/Select/SelectPortal.js +2 -0
- package/dist/components/Select/SelectRoot.js +2 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/Select/selectContext.js +1 -0
- package/dist/components/Select/utils.js +1 -0
- package/dist/components/Tab/TabsContent.js +1 -0
- package/dist/components/Tab/TabsContext.js +1 -0
- package/dist/components/Tab/TabsList.js +1 -0
- package/dist/components/Tab/TabsRoot.js +1 -0
- package/dist/components/Tab/TabsTrigger.js +1 -0
- package/dist/components/Tab/index.js +1 -0
- package/dist/components/Tab/tabsVariants.js +1 -0
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/Tag/TagIcon.js +1 -0
- package/dist/components/Tag/TagLabel.js +1 -0
- package/dist/components/Tag/TagRoot.js +1 -0
- package/dist/components/Tag/index.js +1 -0
- package/dist/components/Tag/tagVariants.js +1 -0
- package/dist/components/TextEditor/TextEditorField.js +4 -0
- package/dist/components/TextEditor/TextEditorInput.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/BoldMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/CodeMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ColorPickerMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/GenerateWithAiMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ImageUploadMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/ItalicMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/LinkMenu.js +6 -0
- package/dist/components/TextEditor/TextEditorMenuBar/OrderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/StrikethroughMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextAlignMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuAction.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuBar.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/TextSizesMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnderlineMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorMenuBar/UnorderedListMenu.js +2 -0
- package/dist/components/TextEditor/TextEditorRoot.js +42 -0
- package/dist/components/TextEditor/index.js +1 -0
- package/dist/components/TextEditor/textEditorContext.js +1 -0
- package/dist/components/Textarea/Textarea.js +1 -0
- package/dist/components/Textarea/TextareaField.js +1 -0
- package/dist/components/Textarea/TextareaRoot.js +1 -0
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/Tile/TileCheckbox.js +1 -0
- package/dist/components/Tile/TileContent.js +1 -0
- package/dist/components/Tile/TileDescription.js +1 -0
- package/dist/components/Tile/TileHeader.js +1 -0
- package/dist/components/Tile/TileMedia.js +3 -0
- package/dist/components/Tile/TileRoot.js +2 -0
- package/dist/components/Tile/TileTitle.js +1 -0
- package/dist/components/Tile/index.js +1 -0
- package/dist/components/Tile/tileVariants.js +1 -0
- package/dist/components/Toggle/Toggle.js +1 -0
- package/dist/components/Toggle/ToggleLabel.js +1 -0
- package/dist/components/Toggle/ToggleRoot.js +1 -0
- package/dist/components/Toggle/ToggleSubtext.js +1 -0
- package/dist/components/Toggle/ToggleSwitch.js +2 -0
- package/dist/components/Toggle/ToggleTitle.js +1 -0
- package/dist/components/Toggle/index.js +1 -0
- package/dist/components/Toggle/toggleVariants.js +1 -0
- package/dist/components/Tooltip/TooltipArrow.js +1 -0
- package/dist/components/Tooltip/TooltipBody.js +1 -0
- package/dist/components/Tooltip/TooltipContent.js +1 -0
- package/dist/components/Tooltip/TooltipContext.js +1 -0
- package/dist/components/Tooltip/TooltipFooter.js +1 -0
- package/dist/components/Tooltip/TooltipHeader.js +1 -0
- package/dist/components/Tooltip/TooltipRoot.js +2 -0
- package/dist/components/Tooltip/TooltipTitle.js +1 -0
- package/dist/components/Tooltip/TooltipTrigger.js +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/Tooltip/useTooltipContext.js +1 -0
- package/dist/components/Typography/BodyText/BodyText.js +1 -0
- package/dist/components/Typography/BodyText/bodyTextVariants.js +1 -0
- package/dist/components/Typography/BodyText/index.js +1 -0
- package/dist/components/Typography/DisplayText/DisplayText.js +1 -0
- package/dist/components/Typography/DisplayText/displayTextVariants.js +1 -0
- package/dist/components/Typography/DisplayText/index.js +1 -0
- package/dist/components/Typography/HeadlineText/HeadlineText.js +1 -0
- package/dist/components/Typography/HeadlineText/headlineTextVariants.js +1 -0
- package/dist/components/Typography/HeadlineText/index.js +1 -0
- package/dist/en.json-BPy-6DYI.cjs +1 -0
- package/dist/en.json-VbJG9vrN.js +263 -0
- package/dist/floating-ui.dom-C224prEy.cjs +1 -0
- package/dist/floating-ui.dom-CauyjNxS.js +1131 -0
- package/dist/fonts/degular/Degular-Black.woff2 +0 -0
- package/dist/fonts/degular/Degular-Black_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Bold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light.woff2 +0 -0
- package/dist/fonts/degular/Degular-Light_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium.woff2 +0 -0
- package/dist/fonts/degular/Degular-Medium_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Regular.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold.woff2 +0 -0
- package/dist/fonts/degular/Degular-Semibold_Italic.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin.woff2 +0 -0
- package/dist/fonts/degular/Degular-Thin_Italic.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Black.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BlackIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Bold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BoldIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Book.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-BookIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Medium.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-MediumIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Regular.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-RegularIt.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-Semibold.woff2 +0 -0
- package/dist/fonts/suisseIntl/SuisseIntl-SemiboldIt.woff2 +0 -0
- package/dist/getInternationalPhoneNumberPrefix-C4Qc97tE.cjs +34 -0
- package/dist/getInternationalPhoneNumberPrefix-C8O8VTpp.js +4368 -0
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-437EL2iq.js +52 -0
- package/dist/index-5Bhkapwi.js +82 -0
- package/dist/index-B0dI0L76.cjs +2 -0
- package/dist/index-BGQepRFJ.js +27 -0
- package/dist/index-BGfrl8IX.js +71 -0
- package/dist/index-BI11g55_.cjs +42 -0
- package/dist/index-BRRTyZ1e.js +75 -0
- package/dist/index-BZCybroW.cjs +2 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-B_Bwy8wX.cjs +1 -0
- package/dist/index-BbQbyYHN.cjs +2 -0
- package/dist/index-BfKbXbc8.cjs +1 -0
- package/dist/index-BvWMjxZ5.js +675 -0
- package/dist/index-Bx2vBAJ5.cjs +2 -0
- package/dist/index-ByaXH_ih.js +10 -0
- package/dist/index-C2mPf2xD.cjs +1 -0
- package/dist/index-C8aODXfJ.cjs +1 -0
- package/dist/index-CAgJYdlN.cjs +1 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/index-CRDKsB5y.cjs +2 -0
- package/dist/index-CRdNenpR.js +422 -0
- package/dist/index-CajSSBH7.cjs +1 -0
- package/dist/index-Cje7xxa1.cjs +1 -0
- package/dist/index-CpDnqHCm.js +36 -0
- package/dist/index-CsK1LjrZ.cjs +2 -0
- package/dist/index-CvknVH0W.js +754 -0
- package/dist/index-CwR-dC8j.cjs +2 -0
- package/dist/index-CyFz8fal.cjs +131 -0
- package/dist/index-CzY-WZXL.cjs +1 -0
- package/dist/index-D-KHlZ2P.js +20 -0
- package/dist/index-D29mdTf5.js +34 -0
- package/dist/index-D9S-9HH_.js +332 -0
- package/dist/index-DCXkdCW2.js +227 -0
- package/dist/index-DLcgu_3m.js +159 -0
- package/dist/index-DVuTCIJE.cjs +2 -0
- package/dist/index-DWQmix6e.js +234 -0
- package/dist/index-DYxWvftI.cjs +1 -0
- package/dist/index-DgIcguCG.cjs +2 -0
- package/dist/index-DmeJCEwx.js +181 -0
- package/dist/index-Dt3HnaYe.js +48 -0
- package/dist/index-Dz5LHXX9.js +145 -0
- package/dist/index-MQ0c3ZX_.cjs +1 -0
- package/dist/index-ZhUVW4CS.cjs +2 -0
- package/dist/index-bSPhqlcX.cjs +1 -0
- package/dist/index-fw7dUmQl.js +352 -0
- package/dist/index-ojFnBVkh.cjs +2 -0
- package/dist/index-q-4o5Ie4.cjs +2 -0
- package/dist/index-twi8FX77.js +13814 -0
- package/dist/index-xqkGMOJ8.js +13 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +1 -0
- package/dist/lib/useElementWidth.js +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +89 -66
- package/build/index.css +0 -6
- package/build/index.d.ts +0 -1419
- package/build/mainstack-design-system.js +0 -25463
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { c as y } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { u as M, c as x } from "./index-5Bhkapwi.js";
|
|
5
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
6
|
+
function D(s) {
|
|
7
|
+
const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
|
|
8
|
+
f,
|
|
9
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
10
|
+
), p = (c) => {
|
|
11
|
+
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
12
|
+
return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = f;
|
|
15
|
+
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
16
|
+
(c, e) => {
|
|
17
|
+
const { scope: l, children: o } = c, t = m(a, l), n = M(e, t.collectionRef);
|
|
18
|
+
return /* @__PURE__ */ d(E, { ref: n, children: o });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
C.displayName = a;
|
|
22
|
+
const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(u), I = r.forwardRef(
|
|
23
|
+
(c, e) => {
|
|
24
|
+
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = m(u, l);
|
|
25
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
I.displayName = u;
|
|
29
|
+
function O(c) {
|
|
30
|
+
const e = m(s + "CollectionConsumer", c);
|
|
31
|
+
return r.useCallback(() => {
|
|
32
|
+
const o = e.collectionRef.current;
|
|
33
|
+
if (!o) return [];
|
|
34
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
35
|
+
return Array.from(e.itemMap.values()).sort(
|
|
36
|
+
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
37
|
+
);
|
|
38
|
+
}, [e.collectionRef, e.itemMap]);
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
42
|
+
O,
|
|
43
|
+
N
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
D as c
|
|
48
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { a as p } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { P as h, d as k } from "./index-CpDnqHCm.js";
|
|
5
|
+
import { u as T } from "./index-5Bhkapwi.js";
|
|
6
|
+
import { u as b } from "./index-0ioNhtNM.js";
|
|
7
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
8
|
+
import M from "react-dom";
|
|
9
|
+
import { u as U } from "./index-CCKe-Mpx.js";
|
|
10
|
+
function z(n, e = globalThis?.document) {
|
|
11
|
+
const t = b(n);
|
|
12
|
+
r.useEffect(() => {
|
|
13
|
+
const o = (s) => {
|
|
14
|
+
s.key === "Escape" && t(s);
|
|
15
|
+
};
|
|
16
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
17
|
+
}, [t, e]);
|
|
18
|
+
}
|
|
19
|
+
var H = "DismissableLayer", y = "dismissableLayer.update", K = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", R, B = r.createContext({
|
|
20
|
+
layers: /* @__PURE__ */ new Set(),
|
|
21
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
22
|
+
branches: /* @__PURE__ */ new Set()
|
|
23
|
+
}), X = r.forwardRef(
|
|
24
|
+
(n, e) => {
|
|
25
|
+
const {
|
|
26
|
+
disableOutsidePointerEvents: t = !1,
|
|
27
|
+
onEscapeKeyDown: o,
|
|
28
|
+
onPointerDownOutside: s,
|
|
29
|
+
onFocusOutside: a,
|
|
30
|
+
onInteractOutside: d,
|
|
31
|
+
onDismiss: l,
|
|
32
|
+
...E
|
|
33
|
+
} = n, u = r.useContext(B), [c, F] = r.useState(null), f = c?.ownerDocument ?? globalThis?.document, [, I] = r.useState({}), S = T(e, (i) => F(i)), D = Array.from(u.layers), [A] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), N = D.indexOf(A), O = c ? D.indexOf(c) : -1, W = u.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= N, _ = G((i) => {
|
|
34
|
+
const v = i.target, w = [...u.branches].some((m) => m.contains(v));
|
|
35
|
+
!L || w || (s?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
36
|
+
}, f), C = J((i) => {
|
|
37
|
+
const v = i.target;
|
|
38
|
+
[...u.branches].some((m) => m.contains(v)) || (a?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
39
|
+
}, f);
|
|
40
|
+
return z((i) => {
|
|
41
|
+
O === u.layers.size - 1 && (o?.(i), !i.defaultPrevented && l && (i.preventDefault(), l()));
|
|
42
|
+
}, f), r.useEffect(() => {
|
|
43
|
+
if (c)
|
|
44
|
+
return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (R = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(c)), u.layers.add(c), g(), () => {
|
|
45
|
+
t && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = R);
|
|
46
|
+
};
|
|
47
|
+
}, [c, f, t, u]), r.useEffect(() => () => {
|
|
48
|
+
c && (u.layers.delete(c), u.layersWithOutsidePointerEventsDisabled.delete(c), g());
|
|
49
|
+
}, [c, u]), r.useEffect(() => {
|
|
50
|
+
const i = () => I({});
|
|
51
|
+
return document.addEventListener(y, i), () => document.removeEventListener(y, i);
|
|
52
|
+
}, []), /* @__PURE__ */ P(
|
|
53
|
+
h.div,
|
|
54
|
+
{
|
|
55
|
+
...E,
|
|
56
|
+
ref: S,
|
|
57
|
+
style: {
|
|
58
|
+
pointerEvents: W ? L ? "auto" : "none" : void 0,
|
|
59
|
+
...n.style
|
|
60
|
+
},
|
|
61
|
+
onFocusCapture: p(n.onFocusCapture, C.onFocusCapture),
|
|
62
|
+
onBlurCapture: p(n.onBlurCapture, C.onBlurCapture),
|
|
63
|
+
onPointerDownCapture: p(
|
|
64
|
+
n.onPointerDownCapture,
|
|
65
|
+
_.onPointerDownCapture
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
X.displayName = H;
|
|
72
|
+
var Y = "DismissableLayerBranch", q = r.forwardRef((n, e) => {
|
|
73
|
+
const t = r.useContext(B), o = r.useRef(null), s = T(e, o);
|
|
74
|
+
return r.useEffect(() => {
|
|
75
|
+
const a = o.current;
|
|
76
|
+
if (a)
|
|
77
|
+
return t.branches.add(a), () => {
|
|
78
|
+
t.branches.delete(a);
|
|
79
|
+
};
|
|
80
|
+
}, [t.branches]), /* @__PURE__ */ P(h.div, { ...n, ref: s });
|
|
81
|
+
});
|
|
82
|
+
q.displayName = Y;
|
|
83
|
+
function G(n, e = globalThis?.document) {
|
|
84
|
+
const t = b(n), o = r.useRef(!1), s = r.useRef(() => {
|
|
85
|
+
});
|
|
86
|
+
return r.useEffect(() => {
|
|
87
|
+
const a = (l) => {
|
|
88
|
+
if (l.target && !o.current) {
|
|
89
|
+
let E = function() {
|
|
90
|
+
x(
|
|
91
|
+
K,
|
|
92
|
+
t,
|
|
93
|
+
u,
|
|
94
|
+
{ discrete: !0 }
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
const u = { originalEvent: l };
|
|
98
|
+
l.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
|
|
99
|
+
} else
|
|
100
|
+
e.removeEventListener("click", s.current);
|
|
101
|
+
o.current = !1;
|
|
102
|
+
}, d = window.setTimeout(() => {
|
|
103
|
+
e.addEventListener("pointerdown", a);
|
|
104
|
+
}, 0);
|
|
105
|
+
return () => {
|
|
106
|
+
window.clearTimeout(d), e.removeEventListener("pointerdown", a), e.removeEventListener("click", s.current);
|
|
107
|
+
};
|
|
108
|
+
}, [e, t]), {
|
|
109
|
+
// ensures we check React component tree (not just DOM tree)
|
|
110
|
+
onPointerDownCapture: () => o.current = !0
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function J(n, e = globalThis?.document) {
|
|
114
|
+
const t = b(n), o = r.useRef(!1);
|
|
115
|
+
return r.useEffect(() => {
|
|
116
|
+
const s = (a) => {
|
|
117
|
+
a.target && !o.current && x(j, t, { originalEvent: a }, {
|
|
118
|
+
discrete: !1
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
|
|
122
|
+
}, [e, t]), {
|
|
123
|
+
onFocusCapture: () => o.current = !0,
|
|
124
|
+
onBlurCapture: () => o.current = !1
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function g() {
|
|
128
|
+
const n = new CustomEvent(y);
|
|
129
|
+
document.dispatchEvent(n);
|
|
130
|
+
}
|
|
131
|
+
function x(n, e, t, { discrete: o }) {
|
|
132
|
+
const s = t.originalEvent.target, a = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
133
|
+
e && s.addEventListener(n, e, { once: !0 }), o ? k(s, a) : s.dispatchEvent(a);
|
|
134
|
+
}
|
|
135
|
+
var Q = "Portal", V = r.forwardRef((n, e) => {
|
|
136
|
+
const { container: t, ...o } = n, [s, a] = r.useState(!1);
|
|
137
|
+
U(() => a(!0), []);
|
|
138
|
+
const d = t || s && globalThis?.document?.body;
|
|
139
|
+
return d ? M.createPortal(/* @__PURE__ */ P(h.div, { ...o, ref: e }), d) : null;
|
|
140
|
+
});
|
|
141
|
+
V.displayName = Q;
|
|
142
|
+
export {
|
|
143
|
+
X as D,
|
|
144
|
+
V as P
|
|
145
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react");function u(e){const c=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(c,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const a=u(r);var n=globalThis?.document?a.useLayoutEffect:()=>{};exports.useLayoutEffect2=n;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const n=require("react"),u=require("./index-C2mPf2xD.cjs"),c=require("react/jsx-runtime");function i(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const l=i(n);var s="Label",o=l.forwardRef((t,r)=>c.jsx(u.Primitive.label,{...t,ref:r,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));o.displayName=s;var f=o;exports.Label=o;exports.Root=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react"),b=require("./index-MQ0c3ZX_.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=d(a);function S(e){const[t,r]=z.useState(void 0);return b.useLayoutEffect2(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let s,n;if("borderBoxSize"in f){const c=f.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,n=u.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}exports.useSize=S;
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { c as $, a as x } from "./index-BRRTyZ1e.js";
|
|
4
|
+
import { u as N, a as J } from "./index-5Bhkapwi.js";
|
|
5
|
+
import { P as Q, D as Z } from "./index-Dz5LHXX9.js";
|
|
6
|
+
import { u as ee } from "./index-xqkGMOJ8.js";
|
|
7
|
+
import { c as S, A as te, C as oe, a as re, R as ne } from "./index-CRdNenpR.js";
|
|
8
|
+
import { P as j } from "./index-BGfrl8IX.js";
|
|
9
|
+
import { P as G } from "./index-CpDnqHCm.js";
|
|
10
|
+
import { u as se } from "./index-437EL2iq.js";
|
|
11
|
+
import { jsx as p, jsxs as ae } from "react/jsx-runtime";
|
|
12
|
+
var ie = Object.freeze({
|
|
13
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
14
|
+
position: "absolute",
|
|
15
|
+
border: 0,
|
|
16
|
+
width: 1,
|
|
17
|
+
height: 1,
|
|
18
|
+
padding: 0,
|
|
19
|
+
margin: -1,
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
clip: "rect(0, 0, 0, 0)",
|
|
22
|
+
whiteSpace: "nowrap",
|
|
23
|
+
wordWrap: "normal"
|
|
24
|
+
}), le = "VisuallyHidden", F = s.forwardRef(
|
|
25
|
+
(e, o) => /* @__PURE__ */ p(
|
|
26
|
+
G.span,
|
|
27
|
+
{
|
|
28
|
+
...e,
|
|
29
|
+
ref: o,
|
|
30
|
+
style: { ...ie, ...e.style }
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
F.displayName = le;
|
|
35
|
+
var ce = F, [A] = $("Tooltip", [
|
|
36
|
+
S
|
|
37
|
+
]), D = S(), V = "TooltipProvider", ue = 700, O = "tooltip.open", [pe, k] = A(V), Y = (e) => {
|
|
38
|
+
const {
|
|
39
|
+
__scopeTooltip: o,
|
|
40
|
+
delayDuration: t = ue,
|
|
41
|
+
skipDelayDuration: r = 300,
|
|
42
|
+
disableHoverableContent: n = !1,
|
|
43
|
+
children: l
|
|
44
|
+
} = e, i = s.useRef(!0), v = s.useRef(!1), a = s.useRef(0);
|
|
45
|
+
return s.useEffect(() => {
|
|
46
|
+
const d = a.current;
|
|
47
|
+
return () => window.clearTimeout(d);
|
|
48
|
+
}, []), /* @__PURE__ */ p(
|
|
49
|
+
pe,
|
|
50
|
+
{
|
|
51
|
+
scope: o,
|
|
52
|
+
isOpenDelayedRef: i,
|
|
53
|
+
delayDuration: t,
|
|
54
|
+
onOpen: s.useCallback(() => {
|
|
55
|
+
window.clearTimeout(a.current), i.current = !1;
|
|
56
|
+
}, []),
|
|
57
|
+
onClose: s.useCallback(() => {
|
|
58
|
+
window.clearTimeout(a.current), a.current = window.setTimeout(
|
|
59
|
+
() => i.current = !0,
|
|
60
|
+
r
|
|
61
|
+
);
|
|
62
|
+
}, [r]),
|
|
63
|
+
isPointerInTransitRef: v,
|
|
64
|
+
onPointerInTransitChange: s.useCallback((d) => {
|
|
65
|
+
v.current = d;
|
|
66
|
+
}, []),
|
|
67
|
+
disableHoverableContent: n,
|
|
68
|
+
children: l
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
Y.displayName = V;
|
|
73
|
+
var R = "Tooltip", [de, _] = A(R), B = (e) => {
|
|
74
|
+
const {
|
|
75
|
+
__scopeTooltip: o,
|
|
76
|
+
children: t,
|
|
77
|
+
open: r,
|
|
78
|
+
defaultOpen: n,
|
|
79
|
+
onOpenChange: l,
|
|
80
|
+
disableHoverableContent: i,
|
|
81
|
+
delayDuration: v
|
|
82
|
+
} = e, a = k(R, e.__scopeTooltip), d = D(o), [c, f] = s.useState(null), h = ee(), u = s.useRef(0), m = i ?? a.disableHoverableContent, y = v ?? a.delayDuration, T = s.useRef(!1), [C, g] = se({
|
|
83
|
+
prop: r,
|
|
84
|
+
defaultProp: n ?? !1,
|
|
85
|
+
onChange: (H) => {
|
|
86
|
+
H ? (a.onOpen(), document.dispatchEvent(new CustomEvent(O))) : a.onClose(), l?.(H);
|
|
87
|
+
},
|
|
88
|
+
caller: R
|
|
89
|
+
}), b = s.useMemo(() => C ? T.current ? "delayed-open" : "instant-open" : "closed", [C]), P = s.useCallback(() => {
|
|
90
|
+
window.clearTimeout(u.current), u.current = 0, T.current = !1, g(!0);
|
|
91
|
+
}, [g]), E = s.useCallback(() => {
|
|
92
|
+
window.clearTimeout(u.current), u.current = 0, g(!1);
|
|
93
|
+
}, [g]), M = s.useCallback(() => {
|
|
94
|
+
window.clearTimeout(u.current), u.current = window.setTimeout(() => {
|
|
95
|
+
T.current = !0, g(!0), u.current = 0;
|
|
96
|
+
}, y);
|
|
97
|
+
}, [y, g]);
|
|
98
|
+
return s.useEffect(() => () => {
|
|
99
|
+
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
100
|
+
}, []), /* @__PURE__ */ p(ne, { ...d, children: /* @__PURE__ */ p(
|
|
101
|
+
de,
|
|
102
|
+
{
|
|
103
|
+
scope: o,
|
|
104
|
+
contentId: h,
|
|
105
|
+
open: C,
|
|
106
|
+
stateAttribute: b,
|
|
107
|
+
trigger: c,
|
|
108
|
+
onTriggerChange: f,
|
|
109
|
+
onTriggerEnter: s.useCallback(() => {
|
|
110
|
+
a.isOpenDelayedRef.current ? M() : P();
|
|
111
|
+
}, [a.isOpenDelayedRef, M, P]),
|
|
112
|
+
onTriggerLeave: s.useCallback(() => {
|
|
113
|
+
m ? E() : (window.clearTimeout(u.current), u.current = 0);
|
|
114
|
+
}, [E, m]),
|
|
115
|
+
onOpen: P,
|
|
116
|
+
onClose: E,
|
|
117
|
+
disableHoverableContent: m,
|
|
118
|
+
children: t
|
|
119
|
+
}
|
|
120
|
+
) });
|
|
121
|
+
};
|
|
122
|
+
B.displayName = R;
|
|
123
|
+
var L = "TooltipTrigger", U = s.forwardRef(
|
|
124
|
+
(e, o) => {
|
|
125
|
+
const { __scopeTooltip: t, ...r } = e, n = _(L, t), l = k(L, t), i = D(t), v = s.useRef(null), a = N(o, v, n.onTriggerChange), d = s.useRef(!1), c = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
|
|
126
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(te, { asChild: !0, ...i, children: /* @__PURE__ */ p(
|
|
127
|
+
G.button,
|
|
128
|
+
{
|
|
129
|
+
"aria-describedby": n.open ? n.contentId : void 0,
|
|
130
|
+
"data-state": n.stateAttribute,
|
|
131
|
+
...r,
|
|
132
|
+
ref: a,
|
|
133
|
+
onPointerMove: x(e.onPointerMove, (h) => {
|
|
134
|
+
h.pointerType !== "touch" && !c.current && !l.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
|
|
135
|
+
}),
|
|
136
|
+
onPointerLeave: x(e.onPointerLeave, () => {
|
|
137
|
+
n.onTriggerLeave(), c.current = !1;
|
|
138
|
+
}),
|
|
139
|
+
onPointerDown: x(e.onPointerDown, () => {
|
|
140
|
+
n.open && n.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
141
|
+
}),
|
|
142
|
+
onFocus: x(e.onFocus, () => {
|
|
143
|
+
d.current || n.onOpen();
|
|
144
|
+
}),
|
|
145
|
+
onBlur: x(e.onBlur, n.onClose),
|
|
146
|
+
onClick: x(e.onClick, n.onClose)
|
|
147
|
+
}
|
|
148
|
+
) });
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
U.displayName = L;
|
|
152
|
+
var I = "TooltipPortal", [fe, ve] = A(I, {
|
|
153
|
+
forceMount: void 0
|
|
154
|
+
}), q = (e) => {
|
|
155
|
+
const { __scopeTooltip: o, forceMount: t, children: r, container: n } = e, l = _(I, o);
|
|
156
|
+
return /* @__PURE__ */ p(fe, { scope: o, forceMount: t, children: /* @__PURE__ */ p(j, { present: t || l.open, children: /* @__PURE__ */ p(Q, { asChild: !0, container: n, children: r }) }) });
|
|
157
|
+
};
|
|
158
|
+
q.displayName = I;
|
|
159
|
+
var w = "TooltipContent", W = s.forwardRef(
|
|
160
|
+
(e, o) => {
|
|
161
|
+
const t = ve(w, e.__scopeTooltip), { forceMount: r = t.forceMount, side: n = "top", ...l } = e, i = _(w, e.__scopeTooltip);
|
|
162
|
+
return /* @__PURE__ */ p(j, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ p(X, { side: n, ...l, ref: o }) : /* @__PURE__ */ p(he, { side: n, ...l, ref: o }) });
|
|
163
|
+
}
|
|
164
|
+
), he = s.forwardRef((e, o) => {
|
|
165
|
+
const t = _(w, e.__scopeTooltip), r = k(w, e.__scopeTooltip), n = s.useRef(null), l = N(o, n), [i, v] = s.useState(null), { trigger: a, onClose: d } = t, c = n.current, { onPointerInTransitChange: f } = r, h = s.useCallback(() => {
|
|
166
|
+
v(null), f(!1);
|
|
167
|
+
}, [f]), u = s.useCallback(
|
|
168
|
+
(m, y) => {
|
|
169
|
+
const T = m.currentTarget, C = { x: m.clientX, y: m.clientY }, g = ge(C, T.getBoundingClientRect()), b = Ce(C, g), P = xe(y.getBoundingClientRect()), E = be([...b, ...P]);
|
|
170
|
+
v(E), f(!0);
|
|
171
|
+
},
|
|
172
|
+
[f]
|
|
173
|
+
);
|
|
174
|
+
return s.useEffect(() => () => h(), [h]), s.useEffect(() => {
|
|
175
|
+
if (a && c) {
|
|
176
|
+
const m = (T) => u(T, c), y = (T) => u(T, a);
|
|
177
|
+
return a.addEventListener("pointerleave", m), c.addEventListener("pointerleave", y), () => {
|
|
178
|
+
a.removeEventListener("pointerleave", m), c.removeEventListener("pointerleave", y);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
}, [a, c, u, h]), s.useEffect(() => {
|
|
182
|
+
if (i) {
|
|
183
|
+
const m = (y) => {
|
|
184
|
+
const T = y.target, C = { x: y.clientX, y: y.clientY }, g = a?.contains(T) || c?.contains(T), b = !we(C, i);
|
|
185
|
+
g ? h() : b && (h(), d());
|
|
186
|
+
};
|
|
187
|
+
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
188
|
+
}
|
|
189
|
+
}, [a, c, i, d, h]), /* @__PURE__ */ p(X, { ...e, ref: l });
|
|
190
|
+
}), [me, Te] = A(R, { isInside: !1 }), ye = J("TooltipContent"), X = s.forwardRef(
|
|
191
|
+
(e, o) => {
|
|
192
|
+
const {
|
|
193
|
+
__scopeTooltip: t,
|
|
194
|
+
children: r,
|
|
195
|
+
"aria-label": n,
|
|
196
|
+
onEscapeKeyDown: l,
|
|
197
|
+
onPointerDownOutside: i,
|
|
198
|
+
...v
|
|
199
|
+
} = e, a = _(w, t), d = D(t), { onClose: c } = a;
|
|
200
|
+
return s.useEffect(() => (document.addEventListener(O, c), () => document.removeEventListener(O, c)), [c]), s.useEffect(() => {
|
|
201
|
+
if (a.trigger) {
|
|
202
|
+
const f = (h) => {
|
|
203
|
+
h.target?.contains(a.trigger) && c();
|
|
204
|
+
};
|
|
205
|
+
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
206
|
+
}
|
|
207
|
+
}, [a.trigger, c]), /* @__PURE__ */ p(
|
|
208
|
+
Z,
|
|
209
|
+
{
|
|
210
|
+
asChild: !0,
|
|
211
|
+
disableOutsidePointerEvents: !1,
|
|
212
|
+
onEscapeKeyDown: l,
|
|
213
|
+
onPointerDownOutside: i,
|
|
214
|
+
onFocusOutside: (f) => f.preventDefault(),
|
|
215
|
+
onDismiss: c,
|
|
216
|
+
children: /* @__PURE__ */ ae(
|
|
217
|
+
oe,
|
|
218
|
+
{
|
|
219
|
+
"data-state": a.stateAttribute,
|
|
220
|
+
...d,
|
|
221
|
+
...v,
|
|
222
|
+
ref: o,
|
|
223
|
+
style: {
|
|
224
|
+
...v.style,
|
|
225
|
+
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
226
|
+
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
227
|
+
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
228
|
+
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
229
|
+
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
230
|
+
},
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ p(ye, { children: r }),
|
|
233
|
+
/* @__PURE__ */ p(me, { scope: t, isInside: !0, children: /* @__PURE__ */ p(ce, { id: a.contentId, role: "tooltip", children: n || r }) })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
W.displayName = w;
|
|
242
|
+
var z = "TooltipArrow", K = s.forwardRef(
|
|
243
|
+
(e, o) => {
|
|
244
|
+
const { __scopeTooltip: t, ...r } = e, n = D(t);
|
|
245
|
+
return Te(
|
|
246
|
+
z,
|
|
247
|
+
t
|
|
248
|
+
).isInside ? null : /* @__PURE__ */ p(re, { ...n, ...r, ref: o });
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
K.displayName = z;
|
|
252
|
+
function ge(e, o) {
|
|
253
|
+
const t = Math.abs(o.top - e.y), r = Math.abs(o.bottom - e.y), n = Math.abs(o.right - e.x), l = Math.abs(o.left - e.x);
|
|
254
|
+
switch (Math.min(t, r, n, l)) {
|
|
255
|
+
case l:
|
|
256
|
+
return "left";
|
|
257
|
+
case n:
|
|
258
|
+
return "right";
|
|
259
|
+
case t:
|
|
260
|
+
return "top";
|
|
261
|
+
case r:
|
|
262
|
+
return "bottom";
|
|
263
|
+
default:
|
|
264
|
+
throw new Error("unreachable");
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function Ce(e, o, t = 5) {
|
|
268
|
+
const r = [];
|
|
269
|
+
switch (o) {
|
|
270
|
+
case "top":
|
|
271
|
+
r.push(
|
|
272
|
+
{ x: e.x - t, y: e.y + t },
|
|
273
|
+
{ x: e.x + t, y: e.y + t }
|
|
274
|
+
);
|
|
275
|
+
break;
|
|
276
|
+
case "bottom":
|
|
277
|
+
r.push(
|
|
278
|
+
{ x: e.x - t, y: e.y - t },
|
|
279
|
+
{ x: e.x + t, y: e.y - t }
|
|
280
|
+
);
|
|
281
|
+
break;
|
|
282
|
+
case "left":
|
|
283
|
+
r.push(
|
|
284
|
+
{ x: e.x + t, y: e.y - t },
|
|
285
|
+
{ x: e.x + t, y: e.y + t }
|
|
286
|
+
);
|
|
287
|
+
break;
|
|
288
|
+
case "right":
|
|
289
|
+
r.push(
|
|
290
|
+
{ x: e.x - t, y: e.y - t },
|
|
291
|
+
{ x: e.x - t, y: e.y + t }
|
|
292
|
+
);
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
return r;
|
|
296
|
+
}
|
|
297
|
+
function xe(e) {
|
|
298
|
+
const { top: o, right: t, bottom: r, left: n } = e;
|
|
299
|
+
return [
|
|
300
|
+
{ x: n, y: o },
|
|
301
|
+
{ x: t, y: o },
|
|
302
|
+
{ x: t, y: r },
|
|
303
|
+
{ x: n, y: r }
|
|
304
|
+
];
|
|
305
|
+
}
|
|
306
|
+
function we(e, o) {
|
|
307
|
+
const { x: t, y: r } = e;
|
|
308
|
+
let n = !1;
|
|
309
|
+
for (let l = 0, i = o.length - 1; l < o.length; i = l++) {
|
|
310
|
+
const v = o[l], a = o[i], d = v.x, c = v.y, f = a.x, h = a.y;
|
|
311
|
+
c > r != h > r && t < (f - d) * (r - c) / (h - c) + d && (n = !n);
|
|
312
|
+
}
|
|
313
|
+
return n;
|
|
314
|
+
}
|
|
315
|
+
function be(e) {
|
|
316
|
+
const o = e.slice();
|
|
317
|
+
return o.sort((t, r) => t.x < r.x ? -1 : t.x > r.x ? 1 : t.y < r.y ? -1 : t.y > r.y ? 1 : 0), Pe(o);
|
|
318
|
+
}
|
|
319
|
+
function Pe(e) {
|
|
320
|
+
if (e.length <= 1) return e.slice();
|
|
321
|
+
const o = [];
|
|
322
|
+
for (let r = 0; r < e.length; r++) {
|
|
323
|
+
const n = e[r];
|
|
324
|
+
for (; o.length >= 2; ) {
|
|
325
|
+
const l = o[o.length - 1], i = o[o.length - 2];
|
|
326
|
+
if ((l.x - i.x) * (n.y - i.y) >= (l.y - i.y) * (n.x - i.x)) o.pop();
|
|
327
|
+
else break;
|
|
328
|
+
}
|
|
329
|
+
o.push(n);
|
|
330
|
+
}
|
|
331
|
+
o.pop();
|
|
332
|
+
const t = [];
|
|
333
|
+
for (let r = e.length - 1; r >= 0; r--) {
|
|
334
|
+
const n = e[r];
|
|
335
|
+
for (; t.length >= 2; ) {
|
|
336
|
+
const l = t[t.length - 1], i = t[t.length - 2];
|
|
337
|
+
if ((l.x - i.x) * (n.y - i.y) >= (l.y - i.y) * (n.x - i.x)) t.pop();
|
|
338
|
+
else break;
|
|
339
|
+
}
|
|
340
|
+
t.push(n);
|
|
341
|
+
}
|
|
342
|
+
return t.pop(), o.length === 1 && t.length === 1 && o[0].x === t[0].x && o[0].y === t[0].y ? o : o.concat(t);
|
|
343
|
+
}
|
|
344
|
+
var Me = Y, He = B, Ne = U, Se = q, je = W, Ge = K;
|
|
345
|
+
export {
|
|
346
|
+
Ge as A,
|
|
347
|
+
je as C,
|
|
348
|
+
Me as P,
|
|
349
|
+
He as R,
|
|
350
|
+
Ne as T,
|
|
351
|
+
Se as a
|
|
352
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const u=require("react"),w=require("./index-BfKbXbc8.cjs"),ce=require("./index-CwR-dC8j.cjs"),G=require("./index-CajSSBH7.cjs"),k=require("./index-C8aODXfJ.cjs"),R=require("./index-C2mPf2xD.cjs"),se=require("./index-MQ0c3ZX_.cjs"),le=require("./index-q-4o5Ie4.cjs"),K=require("./index-B_Bwy8wX.cjs"),a=require("react/jsx-runtime"),de=require("./index-Cje7xxa1.cjs");function ue(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return i.default=e,Object.freeze(i)}const f=ue(u);var y="Collapsible",[pe,z]=w.createContextScope(y),[fe,M]=pe(y),F=f.forwardRef((e,i)=>{const{__scopeCollapsible:o,open:t,defaultOpen:r,disabled:n,onOpenChange:c,...l}=e,[d,p]=k.useControllableState({prop:t,defaultProp:r??!1,onChange:c,caller:y});return a.jsx(fe,{scope:o,disabled:n,contentId:K.useId(),open:d,onOpenToggle:f.useCallback(()=>p(v=>!v),[p]),children:a.jsx(R.Primitive.div,{"data-state":q(d),"data-disabled":n?"":void 0,...l,ref:i})})});F.displayName=y;var B="CollapsibleTrigger",U=f.forwardRef((e,i)=>{const{__scopeCollapsible:o,...t}=e,r=M(B,o);return a.jsx(R.Primitive.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":q(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...t,ref:i,onClick:w.composeEventHandlers(e.onClick,r.onOpenToggle)})});U.displayName=B;var $="CollapsibleContent",Y=f.forwardRef((e,i)=>{const{forceMount:o,...t}=e,r=M($,e.__scopeCollapsible);return a.jsx(le.Presence,{present:o||r.open,children:({present:n})=>a.jsx(ve,{...t,ref:i,present:n})})});Y.displayName=$;var ve=f.forwardRef((e,i)=>{const{__scopeCollapsible:o,present:t,children:r,...n}=e,c=M($,o),[l,d]=f.useState(t),p=f.useRef(null),v=G.useComposedRefs(i,p),C=f.useRef(0),h=C.current,x=f.useRef(0),_=x.current,b=c.open||l,g=f.useRef(b),A=f.useRef(void 0);return f.useEffect(()=>{const s=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(s)},[]),se.useLayoutEffect2(()=>{const s=p.current;if(s){A.current=A.current||{transitionDuration:s.style.transitionDuration,animationName:s.style.animationName},s.style.transitionDuration="0s",s.style.animationName="none";const I=s.getBoundingClientRect();C.current=I.height,x.current=I.width,g.current||(s.style.transitionDuration=A.current.transitionDuration,s.style.animationName=A.current.animationName),d(t)}},[c.open,t]),a.jsx(R.Primitive.div,{"data-state":q(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!b,...n,ref:v,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:b&&r})});function q(e){return e?"open":"closed"}var Ce=F,me=U,xe=Y,m="Accordion",be=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[H,ge,Ae]=ce.createCollection(m),[j]=w.createContextScope(m,[Ae,z]),V=z(),J=u.forwardRef((e,i)=>{const{type:o,...t}=e,r=t,n=t;return a.jsx(H.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?a.jsx(_e,{...n,ref:i}):a.jsx(Re,{...r,ref:i})})});J.displayName=m;var[Q,he]=j(m),[W,Ie]=j(m,{collapsible:!1}),Re=u.forwardRef((e,i)=>{const{value:o,defaultValue:t,onValueChange:r=()=>{},collapsible:n=!1,...c}=e,[l,d]=k.useControllableState({prop:o,defaultProp:t??"",onChange:r,caller:m});return a.jsx(Q,{scope:e.__scopeAccordion,value:u.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:u.useCallback(()=>n&&d(""),[n,d]),children:a.jsx(W,{scope:e.__scopeAccordion,collapsible:n,children:a.jsx(X,{...c,ref:i})})})}),_e=u.forwardRef((e,i)=>{const{value:o,defaultValue:t,onValueChange:r=()=>{},...n}=e,[c,l]=k.useControllableState({prop:o,defaultProp:t??[],onChange:r,caller:m}),d=u.useCallback(v=>l((C=[])=>[...C,v]),[l]),p=u.useCallback(v=>l((C=[])=>C.filter(h=>h!==v)),[l]);return a.jsx(Q,{scope:e.__scopeAccordion,value:c,onItemOpen:d,onItemClose:p,children:a.jsx(W,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(X,{...n,ref:i})})})}),[Pe,N]=j(m),X=u.forwardRef((e,i)=>{const{__scopeAccordion:o,disabled:t,dir:r,orientation:n="vertical",...c}=e,l=u.useRef(null),d=G.useComposedRefs(l,i),p=ge(o),C=de.useDirection(r)==="ltr",h=w.composeEventHandlers(e.onKeyDown,x=>{if(!be.includes(x.key))return;const _=x.target,b=p().filter(D=>!D.ref.current?.disabled),g=b.findIndex(D=>D.ref.current===_),A=b.length;if(g===-1)return;x.preventDefault();let s=g;const I=0,E=A-1,O=()=>{s=g+1,s>E&&(s=I)},S=()=>{s=g-1,s<I&&(s=E)};switch(x.key){case"Home":s=I;break;case"End":s=E;break;case"ArrowRight":n==="horizontal"&&(C?O():S());break;case"ArrowDown":n==="vertical"&&O();break;case"ArrowLeft":n==="horizontal"&&(C?S():O());break;case"ArrowUp":n==="vertical"&&S();break}const ae=s%A;b[ae].ref.current?.focus()});return a.jsx(Pe,{scope:o,disabled:t,direction:r,orientation:n,children:a.jsx(H.Slot,{scope:o,children:a.jsx(R.Primitive.div,{...c,"data-orientation":n,ref:d,onKeyDown:t?void 0:h})})})}),P="AccordionItem",[we,L]=j(P),Z=u.forwardRef((e,i)=>{const{__scopeAccordion:o,value:t,...r}=e,n=N(P,o),c=he(P,o),l=V(o),d=K.useId(),p=t&&c.value.includes(t)||!1,v=n.disabled||e.disabled;return a.jsx(we,{scope:o,open:p,disabled:v,triggerId:d,children:a.jsx(Ce,{"data-orientation":n.orientation,"data-state":ie(p),...l,...r,ref:i,disabled:v,open:p,onOpenChange:C=>{C?c.onItemOpen(t):c.onItemClose(t)}})})});Z.displayName=P;var ee="AccordionHeader",oe=u.forwardRef((e,i)=>{const{__scopeAccordion:o,...t}=e,r=N(m,o),n=L(ee,o);return a.jsx(R.Primitive.h3,{"data-orientation":r.orientation,"data-state":ie(n.open),"data-disabled":n.disabled?"":void 0,...t,ref:i})});oe.displayName=ee;var T="AccordionTrigger",te=u.forwardRef((e,i)=>{const{__scopeAccordion:o,...t}=e,r=N(m,o),n=L(T,o),c=Ie(T,o),l=V(o);return a.jsx(H.ItemSlot,{scope:o,children:a.jsx(me,{"aria-disabled":n.open&&!c.collapsible||void 0,"data-orientation":r.orientation,id:n.triggerId,...l,...t,ref:i})})});te.displayName=T;var ne="AccordionContent",re=u.forwardRef((e,i)=>{const{__scopeAccordion:o,...t}=e,r=N(m,o),n=L(ne,o),c=V(o);return a.jsx(xe,{role:"region","aria-labelledby":n.triggerId,"data-orientation":r.orientation,...c,...t,ref:i,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});re.displayName=ne;function ie(e){return e?"open":"closed"}var ye=J,je=Z,Ne=oe,Ee=te,Oe=re;exports.Content2=Oe;exports.Header=Ne;exports.Item=je;exports.Root2=ye;exports.Trigger2=Ee;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";const T=require("react"),E=require("./index-CajSSBH7.cjs"),g=require("./index-MQ0c3ZX_.cjs");function P(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const o=P(T);function R(n,e){return o.useReducer((t,r)=>e[t][r]??t,n)}var A=n=>{const{present:e,children:t}=n,r=S(e),a=typeof t=="function"?t({present:r.isPresent}):o.Children.only(t),u=E.useComposedRefs(r.ref,v(a));return typeof t=="function"||r.isPresent?o.cloneElement(a,{ref:u}):null};A.displayName="Presence";function S(n){const[e,t]=o.useState(),r=o.useRef(null),a=o.useRef(n),u=o.useRef("none"),p=n?"mounted":"unmounted",[N,s]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const i=l(r.current);u.current=N==="mounted"?i:"none"},[N]),g.useLayoutEffect2(()=>{const i=r.current,d=a.current;if(d!==n){const f=u.current,c=l(i);n?s("MOUNT"):c==="none"||i?.display==="none"?s("UNMOUNT"):s(d&&f!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),g.useLayoutEffect2(()=>{if(e){let i;const d=e.ownerDocument.defaultView??window,m=c=>{const y=l(r.current).includes(CSS.escape(c.animationName));if(c.target===e&&y&&(s("ANIMATION_END"),!a.current)){const M=e.style.animationFillMode;e.style.animationFillMode="forwards",i=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=M)})}},f=c=>{c.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(i),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:o.useCallback(i=>{r.current=i?getComputedStyle(i):null,t(i)},[])}}function l(n){return n?.animationName||"none"}function v(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=A;
|