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.
Files changed (595) hide show
  1. package/README.md +702 -15
  2. package/dist/FormCountryOptionsList-BTIDLbxV.cjs +8 -0
  3. package/dist/FormCountryOptionsList-BWbi-SZ_.js +1790 -0
  4. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  5. package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
  6. package/dist/clsx-C11secjj.cjs +1 -0
  7. package/dist/clsx-OuTLNxxd.js +16 -0
  8. package/dist/components/Accordion/AccordionContent.js +1 -0
  9. package/dist/components/Accordion/AccordionHeader.js +1 -0
  10. package/dist/components/Accordion/AccordionItem.js +1 -0
  11. package/dist/components/Accordion/AccordionRoot.js +1 -0
  12. package/dist/components/Accordion/AccordionSubtitle.js +1 -0
  13. package/dist/components/Accordion/AccordionTitle.js +1 -0
  14. package/dist/components/Accordion/AccordionTrigger.js +1 -0
  15. package/dist/components/Accordion/index.js +1 -0
  16. package/dist/components/Avatar/Avatar.js +2 -0
  17. package/dist/components/Avatar/avatarVariants.js +1 -0
  18. package/dist/components/Avatar/getAvatarSize.js +1 -0
  19. package/dist/components/Avatar/index.js +1 -0
  20. package/dist/components/Banner/BannerAction.js +1 -0
  21. package/dist/components/Banner/BannerContent.js +1 -0
  22. package/dist/components/Banner/BannerHeader.js +1 -0
  23. package/dist/components/Banner/BannerIcon.js +1 -0
  24. package/dist/components/Banner/BannerRoot.js +1 -0
  25. package/dist/components/Banner/BannerText.js +1 -0
  26. package/dist/components/Banner/bannerVariants.js +1 -0
  27. package/dist/components/Banner/index.js +1 -0
  28. package/dist/components/Button/Button.js +1 -0
  29. package/dist/components/Button/ButtonIcon.js +1 -0
  30. package/dist/components/Button/ButtonLabel.js +1 -0
  31. package/dist/components/Button/ButtonRoot.js +1 -0
  32. package/dist/components/Button/buttonVariants.js +87 -0
  33. package/dist/components/Button/index.js +1 -0
  34. package/dist/components/Checkbox/CheckboxIndicator.js +2 -0
  35. package/dist/components/Checkbox/CheckboxLabel.js +1 -0
  36. package/dist/components/Checkbox/CheckboxRoot.js +1 -0
  37. package/dist/components/Checkbox/CheckboxSubtext.js +1 -0
  38. package/dist/components/Checkbox/CheckboxTitle.js +1 -0
  39. package/dist/components/Checkbox/index.js +1 -0
  40. package/dist/components/Chip/Chip.js +1 -0
  41. package/dist/components/Chip/ChipLabel.js +1 -0
  42. package/dist/components/Chip/ChipRoot.js +1 -0
  43. package/dist/components/Chip/ChipSlot.js +1 -0
  44. package/dist/components/Chip/chipVariants.js +1 -0
  45. package/dist/components/Chip/index.js +1 -0
  46. package/dist/components/Form/FormCharacterCounter.js +1 -0
  47. package/dist/components/Form/FormCountrySelect/FormCountryOptions.js +1 -0
  48. package/dist/components/Form/FormCountrySelect/FormCountryOptionsList.js +1 -0
  49. package/dist/components/Form/FormCountrySelect/FormCountryOptionsSearchField.js +1 -0
  50. package/dist/components/Form/FormCountrySelect/FormCountrySelect.js +1 -0
  51. package/dist/components/Form/FormCountrySelect/constant.js +1 -0
  52. package/dist/components/Form/FormCountrySelect/getCountryFlagComp.js +1 -0
  53. package/dist/components/Form/FormItem.js +1 -0
  54. package/dist/components/Form/FormLabel.js +1 -0
  55. package/dist/components/Form/FormStatus/FormErrorStatus.js +1 -0
  56. package/dist/components/Form/FormStatus/FormHintStatus.js +1 -0
  57. package/dist/components/Form/FormStatus/FormStatusRoot.js +1 -0
  58. package/dist/components/Form/FormStatus/FormStatusText.js +1 -0
  59. package/dist/components/Form/FormStatus/FormSuccessStatus.js +1 -0
  60. package/dist/components/Form/index.js +1 -0
  61. package/dist/components/Icons/AccountBalanceIcon.js +1 -0
  62. package/dist/components/Icons/AccountBalanceWalletIcon.js +1 -0
  63. package/dist/components/Icons/AccountCircleIcon.js +1 -0
  64. package/dist/components/Icons/AdGroupIcon.js +1 -0
  65. package/dist/components/Icons/AdaptiveAudioMicIcon.js +1 -0
  66. package/dist/components/Icons/AddAPhotoIcon.js +1 -0
  67. package/dist/components/Icons/AddBusinessIcon.js +1 -0
  68. package/dist/components/Icons/AddCircleIcon.js +1 -0
  69. package/dist/components/Icons/AddIcon.js +1 -0
  70. package/dist/components/Icons/AddLinkIcon.js +1 -0
  71. package/dist/components/Icons/AddPhotoAlternateIcon.js +1 -0
  72. package/dist/components/Icons/AddShoppingCartIcon.js +1 -0
  73. package/dist/components/Icons/AdminPanelSettingsIcon.js +1 -0
  74. package/dist/components/Icons/AdsClickIcon.js +1 -0
  75. package/dist/components/Icons/AlarmIcon.js +1 -0
  76. package/dist/components/Icons/AllInboxIcon.js +1 -0
  77. package/dist/components/Icons/AnimationIcon.js +1 -0
  78. package/dist/components/Icons/ApartmentIcon.js +1 -0
  79. package/dist/components/Icons/AppsIcon.js +1 -0
  80. package/dist/components/Icons/ArchiveIcon.js +1 -0
  81. package/dist/components/Icons/ArrowBackIcon.js +1 -0
  82. package/dist/components/Icons/ArrowCircleDownIcon.js +1 -0
  83. package/dist/components/Icons/ArrowCircleUpIcon.js +1 -0
  84. package/dist/components/Icons/ArrowDownwardIcon.js +1 -0
  85. package/dist/components/Icons/ArrowDropDownIcon.js +1 -0
  86. package/dist/components/Icons/ArrowDropUpIcon.js +1 -0
  87. package/dist/components/Icons/ArrowForwardIcon.js +1 -0
  88. package/dist/components/Icons/ArrowUpwardIcon.js +1 -0
  89. package/dist/components/Icons/ArtTrackIcon.js +1 -0
  90. package/dist/components/Icons/ArticleIcon.js +1 -0
  91. package/dist/components/Icons/AttachMoneyIcon.js +1 -0
  92. package/dist/components/Icons/AttachmentIcon.js +1 -0
  93. package/dist/components/Icons/AudioFileIcon.js +1 -0
  94. package/dist/components/Icons/AutoAwesomeMosaic.js +1 -0
  95. package/dist/components/Icons/AvatarIcon.js +1 -0
  96. package/dist/components/Icons/AwardStarIcon.js +1 -0
  97. package/dist/components/Icons/BarChartIcon.js +1 -0
  98. package/dist/components/Icons/BarcodeScannerIcon.js +1 -0
  99. package/dist/components/Icons/BlockIcon.js +1 -0
  100. package/dist/components/Icons/BoltIcon.js +1 -0
  101. package/dist/components/Icons/Book5Icon.js +1 -0
  102. package/dist/components/Icons/BookOnlineIcon.js +1 -0
  103. package/dist/components/Icons/BugReportIcon.js +1 -0
  104. package/dist/components/Icons/BusinessCenterIcon.js +1 -0
  105. package/dist/components/Icons/CalendarAddOnIcon.js +1 -0
  106. package/dist/components/Icons/CalendarClockIcon.js +1 -0
  107. package/dist/components/Icons/CalendarMonthIcon.js +1 -0
  108. package/dist/components/Icons/CalendarTodayIcon.js +1 -0
  109. package/dist/components/Icons/CallIcon.js +1 -0
  110. package/dist/components/Icons/CallMadeIcon.js +1 -0
  111. package/dist/components/Icons/CallMissedIcon.js +1 -0
  112. package/dist/components/Icons/CallMissedOutgoingIcon.js +1 -0
  113. package/dist/components/Icons/CallReceivedIcon.js +1 -0
  114. package/dist/components/Icons/CampaignIcon.js +1 -0
  115. package/dist/components/Icons/CancelIcon.js +1 -0
  116. package/dist/components/Icons/CancelScheduleSendIcon.js +1 -0
  117. package/dist/components/Icons/CaptivePortalIcon.js +1 -0
  118. package/dist/components/Icons/CardLayoutIcon.js +1 -0
  119. package/dist/components/Icons/CasesIcon.js +1 -0
  120. package/dist/components/Icons/CategoryIcon.js +1 -0
  121. package/dist/components/Icons/ChairIcon.js +1 -0
  122. package/dist/components/Icons/ChangeCircleIcon.js +1 -0
  123. package/dist/components/Icons/ChatBubbleIcon.js +1 -0
  124. package/dist/components/Icons/ChatIcon.js +1 -0
  125. package/dist/components/Icons/CheckBoxIcon.js +1 -0
  126. package/dist/components/Icons/CheckBoxOutlineBlankIcon.js +1 -0
  127. package/dist/components/Icons/CheckCircleIcon.js +1 -0
  128. package/dist/components/Icons/CheckIcon.js +1 -0
  129. package/dist/components/Icons/ChevronLeftIcon.js +1 -0
  130. package/dist/components/Icons/ChevronRightIcon.js +1 -0
  131. package/dist/components/Icons/ClinicalNoteIcon.js +1 -0
  132. package/dist/components/Icons/CloseIcon.js +1 -0
  133. package/dist/components/Icons/CloudUploadIcon.js +1 -0
  134. package/dist/components/Icons/CodeIcon.js +1 -0
  135. package/dist/components/Icons/CoffeeIcon.js +1 -0
  136. package/dist/components/Icons/CollectionsBookmarkIcon.js +1 -0
  137. package/dist/components/Icons/ColorPickerIcon.js +1 -0
  138. package/dist/components/Icons/CompareArrowsIcon.js +1 -0
  139. package/dist/components/Icons/ConfirmationNumberIcon.js +1 -0
  140. package/dist/components/Icons/ContactMailIcon.js +1 -0
  141. package/dist/components/Icons/ContactPageIcon.js +1 -0
  142. package/dist/components/Icons/ContactPhoneIcon.js +1 -0
  143. package/dist/components/Icons/ContactSupportIcon.js +1 -0
  144. package/dist/components/Icons/ContactsIcon.js +1 -0
  145. package/dist/components/Icons/ContentCopyIcon.js +1 -0
  146. package/dist/components/Icons/CreditCardGearIcon.js +1 -0
  147. package/dist/components/Icons/CreditCardIcon.js +1 -0
  148. package/dist/components/Icons/CsvIcon.js +1 -0
  149. package/dist/components/Icons/CurrencyExchangeIcon.js +1 -0
  150. package/dist/components/Icons/DNSIcon.js +1 -0
  151. package/dist/components/Icons/DangerousIcon.js +1 -0
  152. package/dist/components/Icons/DarkModeIcon.js +1 -0
  153. package/dist/components/Icons/DashboardIcon.js +1 -0
  154. package/dist/components/Icons/DataCheckIcon.js +1 -0
  155. package/dist/components/Icons/DataObjectIcon.js +1 -0
  156. package/dist/components/Icons/DatabaseIcon.js +1 -0
  157. package/dist/components/Icons/DehazeIcon.js +1 -0
  158. package/dist/components/Icons/DeployedCodeAccountIcon.js +1 -0
  159. package/dist/components/Icons/DescriptionIcon.js +1 -0
  160. package/dist/components/Icons/DesktopMacIcon.js +1 -0
  161. package/dist/components/Icons/DevicesIcon.js +1 -0
  162. package/dist/components/Icons/DiamondIcon.js +1 -0
  163. package/dist/components/Icons/DirectionsWalkIcon.js +1 -0
  164. package/dist/components/Icons/Diversity1Icon.js +1 -0
  165. package/dist/components/Icons/Diversity2Icon.js +1 -0
  166. package/dist/components/Icons/Diversity3Icon.js +1 -0
  167. package/dist/components/Icons/DoNotDisturbOnIcon.js +1 -0
  168. package/dist/components/Icons/DomainAddIcon.js +1 -0
  169. package/dist/components/Icons/DomainIcon.js +1 -0
  170. package/dist/components/Icons/DomainVerificationIcon.js +1 -0
  171. package/dist/components/Icons/DownloadIcon.js +1 -0
  172. package/dist/components/Icons/DraftsIcon.js +1 -0
  173. package/dist/components/Icons/DragHandleIcon.js +1 -0
  174. package/dist/components/Icons/DragIndicatorIcon.js +1 -0
  175. package/dist/components/Icons/DuoIcon.js +1 -0
  176. package/dist/components/Icons/EarlyOnIcon.js +1 -0
  177. package/dist/components/Icons/EditIcon.js +1 -0
  178. package/dist/components/Icons/EmojiFoodBeverageIcon.js +1 -0
  179. package/dist/components/Icons/EmojiIcon.js +1 -0
  180. package/dist/components/Icons/EncryptedIcon.js +1 -0
  181. package/dist/components/Icons/EnterpriseIcon.js +1 -0
  182. package/dist/components/Icons/EqualIcon.js +1 -0
  183. package/dist/components/Icons/ErrorIcon.js +1 -0
  184. package/dist/components/Icons/EventBusyIcon.js +1 -0
  185. package/dist/components/Icons/EventIcon.js +1 -0
  186. package/dist/components/Icons/ExpandAllIcon.js +1 -0
  187. package/dist/components/Icons/FastForwardIcon.js +1 -0
  188. package/dist/components/Icons/FastRewindIcon.js +1 -0
  189. package/dist/components/Icons/FavoriteIcon.js +1 -0
  190. package/dist/components/Icons/FeaturedSeasonalAndGiftsIcon.js +1 -0
  191. package/dist/components/Icons/FeedIcon.js +1 -0
  192. package/dist/components/Icons/FilePresentIcon.js +1 -0
  193. package/dist/components/Icons/FilterListIcon.js +1 -0
  194. package/dist/components/Icons/FingerPrintIcon.js +1 -0
  195. package/dist/components/Icons/FlagIcon.js +1 -0
  196. package/dist/components/Icons/FolderCopyIcon.js +1 -0
  197. package/dist/components/Icons/FolderIcon.js +1 -0
  198. package/dist/components/Icons/FolderZipIcon.js +1 -0
  199. package/dist/components/Icons/FootPrintIcon.js +1 -0
  200. package/dist/components/Icons/FormatAlignCenterIcon.js +1 -0
  201. package/dist/components/Icons/FormatAlignJustifyIcon.js +1 -0
  202. package/dist/components/Icons/FormatAlignLeftIcon.js +1 -0
  203. package/dist/components/Icons/FormatAlignRightIcon.js +1 -0
  204. package/dist/components/Icons/FormatBoldIcon.js +1 -0
  205. package/dist/components/Icons/FormatItalicIcon.js +1 -0
  206. package/dist/components/Icons/FormatListBulletedIcon.js +1 -0
  207. package/dist/components/Icons/FormatListNumberedIcon.js +1 -0
  208. package/dist/components/Icons/FormatSizeIcon.js +1 -0
  209. package/dist/components/Icons/FormatUnderlinedIcon.js +1 -0
  210. package/dist/components/Icons/ForumIcon.js +1 -0
  211. package/dist/components/Icons/ForwardToInboxIcon.js +1 -0
  212. package/dist/components/Icons/FullScreenIcon.js +1 -0
  213. package/dist/components/Icons/GalleryThumbnailIcon.js +1 -0
  214. package/dist/components/Icons/GppBadIcon.js +1 -0
  215. package/dist/components/Icons/GppMaybeIcon.js +1 -0
  216. package/dist/components/Icons/GridViewIcon.js +1 -0
  217. package/dist/components/Icons/GroupIcon.js +1 -0
  218. package/dist/components/Icons/GroupsTwoIcon.js +1 -0
  219. package/dist/components/Icons/HandShakeIcon.js +1 -0
  220. package/dist/components/Icons/HeadphonesIcon.js +1 -0
  221. package/dist/components/Icons/HelpIcon.js +1 -0
  222. package/dist/components/Icons/HomeIcon.js +1 -0
  223. package/dist/components/Icons/HomePinIcon.js +1 -0
  224. package/dist/components/Icons/HomeRepairServiceIcon.js +1 -0
  225. package/dist/components/Icons/HourGlassTopIcon.js +1 -0
  226. package/dist/components/Icons/HourglassEmptyIcon.js +1 -0
  227. package/dist/components/Icons/HubIcon.js +1 -0
  228. package/dist/components/Icons/IFrameIcon.js +1 -0
  229. package/dist/components/Icons/IconWrapper.js +1 -0
  230. package/dist/components/Icons/IdCardIcon.js +1 -0
  231. package/dist/components/Icons/IndeterminateCheckBoxIcon.js +1 -0
  232. package/dist/components/Icons/InfoIcon.js +1 -0
  233. package/dist/components/Icons/InsertChartIcon.js +1 -0
  234. package/dist/components/Icons/IntegrationInstructionsIcon.js +1 -0
  235. package/dist/components/Icons/Inventory2Icon.js +1 -0
  236. package/dist/components/Icons/IosShareIcon.js +1 -0
  237. package/dist/components/Icons/KeepIcon.js +1 -0
  238. package/dist/components/Icons/KeyIcon.js +1 -0
  239. package/dist/components/Icons/KeyOffIcon.js +1 -0
  240. package/dist/components/Icons/KeyboardArrowDownIcon.js +1 -0
  241. package/dist/components/Icons/KeyboardArrowUpIcon.js +1 -0
  242. package/dist/components/Icons/KeyboardBackSpaceIcon.js +1 -0
  243. package/dist/components/Icons/KeyboardDoubleArrowDownIcon.js +1 -0
  244. package/dist/components/Icons/LabProfileIcon.js +1 -0
  245. package/dist/components/Icons/LabelIcon.js +1 -0
  246. package/dist/components/Icons/LabelOffIcon.js +1 -0
  247. package/dist/components/Icons/LanguageIcon.js +1 -0
  248. package/dist/components/Icons/LeftPanelCloseIcon.js +1 -0
  249. package/dist/components/Icons/LeftPanelOpenIcon.js +1 -0
  250. package/dist/components/Icons/LibraryMusicIcon.js +1 -0
  251. package/dist/components/Icons/LinkIcon.js +1 -0
  252. package/dist/components/Icons/LinkOffIcon.js +1 -0
  253. package/dist/components/Icons/LocalActivityIcon.js +1 -0
  254. package/dist/components/Icons/LocalFloristIcon.js +1 -0
  255. package/dist/components/Icons/LocalLibraryIcon.js +1 -0
  256. package/dist/components/Icons/LocationOnIcon.js +1 -0
  257. package/dist/components/Icons/LockIcon.js +1 -0
  258. package/dist/components/Icons/LockOpenIcon.js +1 -0
  259. package/dist/components/Icons/LoginIcon.js +1 -0
  260. package/dist/components/Icons/LogoutIcon.js +1 -0
  261. package/dist/components/Icons/MailIcon.js +1 -0
  262. package/dist/components/Icons/ManageAccountsIcon.js +1 -0
  263. package/dist/components/Icons/MarkUnreadChatAltIcon.js +1 -0
  264. package/dist/components/Icons/MediaLinkIcon.js +1 -0
  265. package/dist/components/Icons/MenuOpenIcon.js +1 -0
  266. package/dist/components/Icons/MetabolismIcon.js +1 -0
  267. package/dist/components/Icons/MilitaryTechIcon.js +1 -0
  268. package/dist/components/Icons/MoneyBagIcon.js +1 -0
  269. package/dist/components/Icons/MonitorIcon.js +1 -0
  270. package/dist/components/Icons/MonitoringIcon.js +1 -0
  271. package/dist/components/Icons/MoreHorizIcon.js +1 -0
  272. package/dist/components/Icons/MoreVertIcon.js +1 -0
  273. package/dist/components/Icons/MotionPhotosPausedIcon.js +1 -0
  274. package/dist/components/Icons/NotificationsIcon.js +1 -0
  275. package/dist/components/Icons/OpenInNewIcon.js +1 -0
  276. package/dist/components/Icons/Package2Icon.js +1 -0
  277. package/dist/components/Icons/PageviewIcon.js +1 -0
  278. package/dist/components/Icons/PaidIcon.js +1 -0
  279. package/dist/components/Icons/PaletteIcon.js +1 -0
  280. package/dist/components/Icons/PatientListIcon.js +1 -0
  281. package/dist/components/Icons/PauseIcon.js +1 -0
  282. package/dist/components/Icons/PaymentsIcon.js +1 -0
  283. package/dist/components/Icons/PendingActionsIcon.js +1 -0
  284. package/dist/components/Icons/PercentIcon.js +1 -0
  285. package/dist/components/Icons/PermMediaIcon.js +1 -0
  286. package/dist/components/Icons/PersonAddIcon.js +1 -0
  287. package/dist/components/Icons/PersonBookIcon.js +1 -0
  288. package/dist/components/Icons/PersonIcon.js +1 -0
  289. package/dist/components/Icons/PhotoCameraIcon.js +1 -0
  290. package/dist/components/Icons/PhotoIcon.js +1 -0
  291. package/dist/components/Icons/PhotoLibraryIcon.js +1 -0
  292. package/dist/components/Icons/PictureAsPdfIcon.js +1 -0
  293. package/dist/components/Icons/PlayArrowIcon.js +1 -0
  294. package/dist/components/Icons/PlayCircleIcon.js +1 -0
  295. package/dist/components/Icons/PolicyIcon.js +1 -0
  296. package/dist/components/Icons/PowerSettingsCircleIcon.js +1 -0
  297. package/dist/components/Icons/PowerSettingsNewIcon.js +1 -0
  298. package/dist/components/Icons/PreviewIcon.js +1 -0
  299. package/dist/components/Icons/PriorityHighIcon.js +1 -0
  300. package/dist/components/Icons/PsychologyAltIcon.js +1 -0
  301. package/dist/components/Icons/PublicIcon.js +1 -0
  302. package/dist/components/Icons/PublishIcon.js +1 -0
  303. package/dist/components/Icons/QRCode2Icon.js +1 -0
  304. package/dist/components/Icons/QuestionMarkIcon.js +1 -0
  305. package/dist/components/Icons/QuizIcon.js +1 -0
  306. package/dist/components/Icons/RadioButtonCheckedIcon.js +1 -0
  307. package/dist/components/Icons/RadioButtonUncheckedIcon.js +1 -0
  308. package/dist/components/Icons/RateReviewIcon.js +1 -0
  309. package/dist/components/Icons/ReceiptLongIcon.js +1 -0
  310. package/dist/components/Icons/RecordVoiceOverIcon.js +1 -0
  311. package/dist/components/Icons/RedeemIcon.js +1 -0
  312. package/dist/components/Icons/RedoIcon.js +1 -0
  313. package/dist/components/Icons/RemoveIcon.js +1 -0
  314. package/dist/components/Icons/RemoveRoadIcon.js +1 -0
  315. package/dist/components/Icons/RequestQuoteIcon.js +1 -0
  316. package/dist/components/Icons/ReviewIcon.js +1 -0
  317. package/dist/components/Icons/SavingsIcon.js +1 -0
  318. package/dist/components/Icons/ScheduleIcon.js +1 -0
  319. package/dist/components/Icons/ScheduleSendIcon.js +1 -0
  320. package/dist/components/Icons/SearchIcon.js +1 -0
  321. package/dist/components/Icons/SellIcon.js +1 -0
  322. package/dist/components/Icons/SendIcon.js +1 -0
  323. package/dist/components/Icons/SettingsIcon.js +1 -0
  324. package/dist/components/Icons/ShareIcon.js +1 -0
  325. package/dist/components/Icons/ShoppingCartIcon.js +1 -0
  326. package/dist/components/Icons/ShoppingModeIcon.js +1 -0
  327. package/dist/components/Icons/ShuffleIcon.js +1 -0
  328. package/dist/components/Icons/SocialLeaderBoardIcon.js +1 -0
  329. package/dist/components/Icons/Speed15xIcon.js +1 -0
  330. package/dist/components/Icons/Speed1xIcon.js +1 -0
  331. package/dist/components/Icons/Speed2xIcon.js +1 -0
  332. package/dist/components/Icons/StarHalfIcon.js +1 -0
  333. package/dist/components/Icons/StarIcon.js +1 -0
  334. package/dist/components/Icons/StorefrontIcon.js +1 -0
  335. package/dist/components/Icons/StrikethroughSIcon.js +1 -0
  336. package/dist/components/Icons/SubscriptionsIcon.js +1 -0
  337. package/dist/components/Icons/SupervisorAccountIcon.js +1 -0
  338. package/dist/components/Icons/SwitchAccountIcon.js +1 -0
  339. package/dist/components/Icons/SwitchesIcon.js +1 -0
  340. package/dist/components/Icons/SyncSavedLocallyIcon.js +1 -0
  341. package/dist/components/Icons/TabletIcon.js +1 -0
  342. package/dist/components/Icons/ThumbDownIcon.js +1 -0
  343. package/dist/components/Icons/ThumbUpIcon.js +1 -0
  344. package/dist/components/Icons/TocIcon.js +1 -0
  345. package/dist/components/Icons/TrashDeleteBinIcon.js +1 -0
  346. package/dist/components/Icons/TrendingUpIcon.js +1 -0
  347. package/dist/components/Icons/TrophyIcon.js +1 -0
  348. package/dist/components/Icons/UndoIcon.js +1 -0
  349. package/dist/components/Icons/UnfoldMoreIcon.js +1 -0
  350. package/dist/components/Icons/UnsubscribeIcon.js +1 -0
  351. package/dist/components/Icons/UploadIcon.js +1 -0
  352. package/dist/components/Icons/VerifiedIcon.js +1 -0
  353. package/dist/components/Icons/VideoCamIcon.js +1 -0
  354. package/dist/components/Icons/VideoFileIcon.js +1 -0
  355. package/dist/components/Icons/ViewAgendaIcon.js +1 -0
  356. package/dist/components/Icons/ViewArrayIcon.js +1 -0
  357. package/dist/components/Icons/ViewCarouselIcon.js +1 -0
  358. package/dist/components/Icons/ViewCozyIcon.js +1 -0
  359. package/dist/components/Icons/ViewModuleIcon.js +1 -0
  360. package/dist/components/Icons/VisibilityIcon.js +1 -0
  361. package/dist/components/Icons/VisibilityOffIcon.js +1 -0
  362. package/dist/components/Icons/VolumeUpIcon.js +1 -0
  363. package/dist/components/Icons/VolunteerActivismIcon.js +1 -0
  364. package/dist/components/Icons/WandStarsGradientIcon.js +1 -0
  365. package/dist/components/Icons/WandStarsIcon.js +1 -0
  366. package/dist/components/Icons/WarningIcon.js +1 -0
  367. package/dist/components/Icons/WbSunnyIcon.js +1 -0
  368. package/dist/components/Icons/WebAssetIcon.js +1 -0
  369. package/dist/components/Icons/WebTrafficIcon.js +1 -0
  370. package/dist/components/Icons/WebhookIcon.js +1 -0
  371. package/dist/components/Icons/WidgetsIcon.js +1 -0
  372. package/dist/components/Icons/WorkHistoryIcon.js +1 -0
  373. package/dist/components/Icons/WorkIcon.js +1 -0
  374. package/dist/components/Icons/enums.js +1 -0
  375. package/dist/components/Icons/icons.js +1 -0
  376. package/dist/components/Icons/index.js +1 -0
  377. package/dist/components/Icons/types.js +1 -0
  378. package/dist/components/Input/Input.js +1 -0
  379. package/dist/components/Input/InputField.js +1 -0
  380. package/dist/components/Input/InputRoot.js +1 -0
  381. package/dist/components/Input/index.js +1 -0
  382. package/dist/components/PasswordField/PasswordField.js +2 -0
  383. package/dist/components/PasswordField/index.js +1 -0
  384. package/dist/components/PhoneNumber/PhoneNumberDigitField.js +3 -0
  385. package/dist/components/PhoneNumber/PhoneNumberFields.js +2 -0
  386. package/dist/components/PhoneNumber/PhoneNumberFlagField.js +2 -0
  387. package/dist/components/PhoneNumber/PhoneNumberInput.js +2 -0
  388. package/dist/components/PhoneNumber/PhoneNumberOptions.js +2 -0
  389. package/dist/components/PhoneNumber/PhoneNumberOptionsList.js +2 -0
  390. package/dist/components/PhoneNumber/PhoneNumberOptionsSearchField.js +2 -0
  391. package/dist/components/PhoneNumber/PhoneNumberPortal.js +2 -0
  392. package/dist/components/PhoneNumber/PhoneNumberRoot.js +2 -0
  393. package/dist/components/PhoneNumber/index.js +1 -0
  394. package/dist/components/PhoneNumber/phoneNumberContext.js +1 -0
  395. package/dist/components/PriceField/PriceFieldDigitField.js +2 -0
  396. package/dist/components/PriceField/PriceFieldFields.js +2 -0
  397. package/dist/components/PriceField/PriceFieldFlagField.js +2 -0
  398. package/dist/components/PriceField/PriceFieldInput.js +2 -0
  399. package/dist/components/PriceField/PriceFieldOptions.js +2 -0
  400. package/dist/components/PriceField/PriceFieldOptionsList.js +2 -0
  401. package/dist/components/PriceField/PriceFieldOptionsSearchField.js +2 -0
  402. package/dist/components/PriceField/PriceFieldPortal.js +2 -0
  403. package/dist/components/PriceField/PriceFieldRoot.js +2 -0
  404. package/dist/components/PriceField/index.js +1 -0
  405. package/dist/components/PriceField/priceFieldContext.js +1 -0
  406. package/dist/components/Provider/MainstackDesignSystemProvider.js +1 -0
  407. package/dist/components/Provider/index.js +1 -0
  408. package/dist/components/Provider/providerContext.js +1 -0
  409. package/dist/components/Provider/useMainstackDesignSystemTheme.js +1 -0
  410. package/dist/components/Radio/RadioItem.js +1 -0
  411. package/dist/components/Radio/RadioItemIndicator.js +1 -0
  412. package/dist/components/Radio/RadioItemLabel.js +1 -0
  413. package/dist/components/Radio/RadioItemSubtext.js +1 -0
  414. package/dist/components/Radio/RadioItemTitle.js +1 -0
  415. package/dist/components/Radio/RadioRoot.js +1 -0
  416. package/dist/components/Radio/index.js +1 -0
  417. package/dist/components/SearchField/SearchField.js +2 -0
  418. package/dist/components/SearchField/index.js +1 -0
  419. package/dist/components/Select/MultiSelect.js +2 -0
  420. package/dist/components/Select/Select.js +2 -0
  421. package/dist/components/Select/SelectInputField.js +2 -0
  422. package/dist/components/Select/SelectOptionInputPreview.js +2 -0
  423. package/dist/components/Select/SelectOptionItem.js +2 -0
  424. package/dist/components/Select/SelectOptionItemWithCheckbox.js +2 -0
  425. package/dist/components/Select/SelectOptions.js +2 -0
  426. package/dist/components/Select/SelectPortal.js +2 -0
  427. package/dist/components/Select/SelectRoot.js +2 -0
  428. package/dist/components/Select/index.js +1 -0
  429. package/dist/components/Select/selectContext.js +1 -0
  430. package/dist/components/Select/utils.js +1 -0
  431. package/dist/components/Tab/TabsContent.js +1 -0
  432. package/dist/components/Tab/TabsContext.js +1 -0
  433. package/dist/components/Tab/TabsList.js +1 -0
  434. package/dist/components/Tab/TabsRoot.js +1 -0
  435. package/dist/components/Tab/TabsTrigger.js +1 -0
  436. package/dist/components/Tab/index.js +1 -0
  437. package/dist/components/Tab/tabsVariants.js +1 -0
  438. package/dist/components/Tag/Tag.js +1 -0
  439. package/dist/components/Tag/TagIcon.js +1 -0
  440. package/dist/components/Tag/TagLabel.js +1 -0
  441. package/dist/components/Tag/TagRoot.js +1 -0
  442. package/dist/components/Tag/index.js +1 -0
  443. package/dist/components/Tag/tagVariants.js +1 -0
  444. package/dist/components/TextEditor/TextEditorField.js +4 -0
  445. package/dist/components/TextEditor/TextEditorInput.js +2 -0
  446. package/dist/components/TextEditor/TextEditorMenuBar/BoldMenu.js +2 -0
  447. package/dist/components/TextEditor/TextEditorMenuBar/CodeMenu.js +2 -0
  448. package/dist/components/TextEditor/TextEditorMenuBar/ColorPickerMenu.js +2 -0
  449. package/dist/components/TextEditor/TextEditorMenuBar/GenerateWithAiMenu.js +2 -0
  450. package/dist/components/TextEditor/TextEditorMenuBar/ImageUploadMenu.js +2 -0
  451. package/dist/components/TextEditor/TextEditorMenuBar/ItalicMenu.js +2 -0
  452. package/dist/components/TextEditor/TextEditorMenuBar/LinkMenu.js +6 -0
  453. package/dist/components/TextEditor/TextEditorMenuBar/OrderedListMenu.js +2 -0
  454. package/dist/components/TextEditor/TextEditorMenuBar/StrikethroughMenu.js +2 -0
  455. package/dist/components/TextEditor/TextEditorMenuBar/TextAlignMenu.js +2 -0
  456. package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuAction.js +2 -0
  457. package/dist/components/TextEditor/TextEditorMenuBar/TextEditorMenuBar.js +2 -0
  458. package/dist/components/TextEditor/TextEditorMenuBar/TextSizesMenu.js +2 -0
  459. package/dist/components/TextEditor/TextEditorMenuBar/UnderlineMenu.js +2 -0
  460. package/dist/components/TextEditor/TextEditorMenuBar/UnorderedListMenu.js +2 -0
  461. package/dist/components/TextEditor/TextEditorRoot.js +42 -0
  462. package/dist/components/TextEditor/index.js +1 -0
  463. package/dist/components/TextEditor/textEditorContext.js +1 -0
  464. package/dist/components/Textarea/Textarea.js +1 -0
  465. package/dist/components/Textarea/TextareaField.js +1 -0
  466. package/dist/components/Textarea/TextareaRoot.js +1 -0
  467. package/dist/components/Textarea/index.js +1 -0
  468. package/dist/components/Tile/TileCheckbox.js +1 -0
  469. package/dist/components/Tile/TileContent.js +1 -0
  470. package/dist/components/Tile/TileDescription.js +1 -0
  471. package/dist/components/Tile/TileHeader.js +1 -0
  472. package/dist/components/Tile/TileMedia.js +3 -0
  473. package/dist/components/Tile/TileRoot.js +2 -0
  474. package/dist/components/Tile/TileTitle.js +1 -0
  475. package/dist/components/Tile/index.js +1 -0
  476. package/dist/components/Tile/tileVariants.js +1 -0
  477. package/dist/components/Toggle/Toggle.js +1 -0
  478. package/dist/components/Toggle/ToggleLabel.js +1 -0
  479. package/dist/components/Toggle/ToggleRoot.js +1 -0
  480. package/dist/components/Toggle/ToggleSubtext.js +1 -0
  481. package/dist/components/Toggle/ToggleSwitch.js +2 -0
  482. package/dist/components/Toggle/ToggleTitle.js +1 -0
  483. package/dist/components/Toggle/index.js +1 -0
  484. package/dist/components/Toggle/toggleVariants.js +1 -0
  485. package/dist/components/Tooltip/TooltipArrow.js +1 -0
  486. package/dist/components/Tooltip/TooltipBody.js +1 -0
  487. package/dist/components/Tooltip/TooltipContent.js +1 -0
  488. package/dist/components/Tooltip/TooltipContext.js +1 -0
  489. package/dist/components/Tooltip/TooltipFooter.js +1 -0
  490. package/dist/components/Tooltip/TooltipHeader.js +1 -0
  491. package/dist/components/Tooltip/TooltipRoot.js +2 -0
  492. package/dist/components/Tooltip/TooltipTitle.js +1 -0
  493. package/dist/components/Tooltip/TooltipTrigger.js +1 -0
  494. package/dist/components/Tooltip/index.js +1 -0
  495. package/dist/components/Tooltip/useTooltipContext.js +1 -0
  496. package/dist/components/Typography/BodyText/BodyText.js +1 -0
  497. package/dist/components/Typography/BodyText/bodyTextVariants.js +1 -0
  498. package/dist/components/Typography/BodyText/index.js +1 -0
  499. package/dist/components/Typography/DisplayText/DisplayText.js +1 -0
  500. package/dist/components/Typography/DisplayText/displayTextVariants.js +1 -0
  501. package/dist/components/Typography/DisplayText/index.js +1 -0
  502. package/dist/components/Typography/HeadlineText/HeadlineText.js +1 -0
  503. package/dist/components/Typography/HeadlineText/headlineTextVariants.js +1 -0
  504. package/dist/components/Typography/HeadlineText/index.js +1 -0
  505. package/dist/en.json-BPy-6DYI.cjs +1 -0
  506. package/dist/en.json-VbJG9vrN.js +263 -0
  507. package/dist/floating-ui.dom-C224prEy.cjs +1 -0
  508. package/dist/floating-ui.dom-CauyjNxS.js +1131 -0
  509. package/dist/fonts/degular/Degular-Black.woff2 +0 -0
  510. package/dist/fonts/degular/Degular-Black_Italic.woff2 +0 -0
  511. package/dist/fonts/degular/Degular-Bold.woff2 +0 -0
  512. package/dist/fonts/degular/Degular-Bold_Italic.woff2 +0 -0
  513. package/dist/fonts/degular/Degular-Italic.woff2 +0 -0
  514. package/dist/fonts/degular/Degular-Light.woff2 +0 -0
  515. package/dist/fonts/degular/Degular-Light_Italic.woff2 +0 -0
  516. package/dist/fonts/degular/Degular-Medium.woff2 +0 -0
  517. package/dist/fonts/degular/Degular-Medium_Italic.woff2 +0 -0
  518. package/dist/fonts/degular/Degular-Regular.woff2 +0 -0
  519. package/dist/fonts/degular/Degular-Semibold.woff2 +0 -0
  520. package/dist/fonts/degular/Degular-Semibold_Italic.woff2 +0 -0
  521. package/dist/fonts/degular/Degular-Thin.woff2 +0 -0
  522. package/dist/fonts/degular/Degular-Thin_Italic.woff2 +0 -0
  523. package/dist/fonts/suisseIntl/SuisseIntl-Black.woff2 +0 -0
  524. package/dist/fonts/suisseIntl/SuisseIntl-BlackIt.woff2 +0 -0
  525. package/dist/fonts/suisseIntl/SuisseIntl-Bold.woff2 +0 -0
  526. package/dist/fonts/suisseIntl/SuisseIntl-BoldIt.woff2 +0 -0
  527. package/dist/fonts/suisseIntl/SuisseIntl-Book.woff2 +0 -0
  528. package/dist/fonts/suisseIntl/SuisseIntl-BookIt.woff2 +0 -0
  529. package/dist/fonts/suisseIntl/SuisseIntl-Medium.woff2 +0 -0
  530. package/dist/fonts/suisseIntl/SuisseIntl-MediumIt.woff2 +0 -0
  531. package/dist/fonts/suisseIntl/SuisseIntl-Regular.woff2 +0 -0
  532. package/dist/fonts/suisseIntl/SuisseIntl-RegularIt.woff2 +0 -0
  533. package/dist/fonts/suisseIntl/SuisseIntl-Semibold.woff2 +0 -0
  534. package/dist/fonts/suisseIntl/SuisseIntl-SemiboldIt.woff2 +0 -0
  535. package/dist/getInternationalPhoneNumberPrefix-C4Qc97tE.cjs +34 -0
  536. package/dist/getInternationalPhoneNumberPrefix-C8O8VTpp.js +4368 -0
  537. package/dist/index-0ioNhtNM.js +10 -0
  538. package/dist/index-437EL2iq.js +52 -0
  539. package/dist/index-5Bhkapwi.js +82 -0
  540. package/dist/index-B0dI0L76.cjs +2 -0
  541. package/dist/index-BGQepRFJ.js +27 -0
  542. package/dist/index-BGfrl8IX.js +71 -0
  543. package/dist/index-BI11g55_.cjs +42 -0
  544. package/dist/index-BRRTyZ1e.js +75 -0
  545. package/dist/index-BZCybroW.cjs +2 -0
  546. package/dist/index-BZPx6jYI.js +8 -0
  547. package/dist/index-B_Bwy8wX.cjs +1 -0
  548. package/dist/index-BbQbyYHN.cjs +2 -0
  549. package/dist/index-BfKbXbc8.cjs +1 -0
  550. package/dist/index-BvWMjxZ5.js +675 -0
  551. package/dist/index-Bx2vBAJ5.cjs +2 -0
  552. package/dist/index-ByaXH_ih.js +10 -0
  553. package/dist/index-C2mPf2xD.cjs +1 -0
  554. package/dist/index-C8aODXfJ.cjs +1 -0
  555. package/dist/index-CAgJYdlN.cjs +1 -0
  556. package/dist/index-CCKe-Mpx.js +6 -0
  557. package/dist/index-CRDKsB5y.cjs +2 -0
  558. package/dist/index-CRdNenpR.js +422 -0
  559. package/dist/index-CajSSBH7.cjs +1 -0
  560. package/dist/index-Cje7xxa1.cjs +1 -0
  561. package/dist/index-CpDnqHCm.js +36 -0
  562. package/dist/index-CsK1LjrZ.cjs +2 -0
  563. package/dist/index-CvknVH0W.js +754 -0
  564. package/dist/index-CwR-dC8j.cjs +2 -0
  565. package/dist/index-CyFz8fal.cjs +131 -0
  566. package/dist/index-CzY-WZXL.cjs +1 -0
  567. package/dist/index-D-KHlZ2P.js +20 -0
  568. package/dist/index-D29mdTf5.js +34 -0
  569. package/dist/index-D9S-9HH_.js +332 -0
  570. package/dist/index-DCXkdCW2.js +227 -0
  571. package/dist/index-DLcgu_3m.js +159 -0
  572. package/dist/index-DVuTCIJE.cjs +2 -0
  573. package/dist/index-DWQmix6e.js +234 -0
  574. package/dist/index-DYxWvftI.cjs +1 -0
  575. package/dist/index-DgIcguCG.cjs +2 -0
  576. package/dist/index-DmeJCEwx.js +181 -0
  577. package/dist/index-Dt3HnaYe.js +48 -0
  578. package/dist/index-Dz5LHXX9.js +145 -0
  579. package/dist/index-MQ0c3ZX_.cjs +1 -0
  580. package/dist/index-ZhUVW4CS.cjs +2 -0
  581. package/dist/index-bSPhqlcX.cjs +1 -0
  582. package/dist/index-fw7dUmQl.js +352 -0
  583. package/dist/index-ojFnBVkh.cjs +2 -0
  584. package/dist/index-q-4o5Ie4.cjs +2 -0
  585. package/dist/index-twi8FX77.js +13814 -0
  586. package/dist/index-xqkGMOJ8.js +13 -0
  587. package/dist/index.d.ts +68 -0
  588. package/dist/index.js +1 -0
  589. package/dist/lib/useElementWidth.js +1 -0
  590. package/dist/lib/utils.js +1 -0
  591. package/dist/types/index.js +1 -0
  592. package/package.json +89 -66
  593. package/build/index.css +0 -6
  594. package/build/index.d.ts +0 -1419
  595. package/build/mainstack-design-system.js +0 -25463
@@ -0,0 +1,675 @@
1
+ 'use client';
2
+ import * as u from "react";
3
+ import { useState as he } from "react";
4
+ import { u as me } from "./index-5Bhkapwi.js";
5
+ import { P as pe } from "./index-CpDnqHCm.js";
6
+ import { u as z } from "./index-0ioNhtNM.js";
7
+ import { jsx as ge } from "react/jsx-runtime";
8
+ var U = "focusScope.autoFocusOnMount", _ = "focusScope.autoFocusOnUnmount", Z = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
9
+ const {
10
+ loop: n = !1,
11
+ trapped: r = !1,
12
+ onMountAutoFocus: c,
13
+ onUnmountAutoFocus: i,
14
+ ...s
15
+ } = e, [a, S] = u.useState(null), b = z(c), g = z(i), f = u.useRef(null), v = me(t, (o) => S(o)), h = u.useRef({
16
+ paused: !1,
17
+ pause() {
18
+ this.paused = !0;
19
+ },
20
+ resume() {
21
+ this.paused = !1;
22
+ }
23
+ }).current;
24
+ u.useEffect(() => {
25
+ if (r) {
26
+ let o = function(p) {
27
+ if (h.paused || !a) return;
28
+ const y = p.target;
29
+ a.contains(y) ? f.current = y : k(f.current, { select: !0 });
30
+ }, l = function(p) {
31
+ if (h.paused || !a) return;
32
+ const y = p.relatedTarget;
33
+ y !== null && (a.contains(y) || k(f.current, { select: !0 }));
34
+ }, d = function(p) {
35
+ if (document.activeElement === document.body)
36
+ for (const E of p)
37
+ E.removedNodes.length > 0 && k(a);
38
+ };
39
+ document.addEventListener("focusin", o), document.addEventListener("focusout", l);
40
+ const m = new MutationObserver(d);
41
+ return a && m.observe(a, { childList: !0, subtree: !0 }), () => {
42
+ document.removeEventListener("focusin", o), document.removeEventListener("focusout", l), m.disconnect();
43
+ };
44
+ }
45
+ }, [r, a, h.paused]), u.useEffect(() => {
46
+ if (a) {
47
+ Q.add(h);
48
+ const o = document.activeElement;
49
+ if (!a.contains(o)) {
50
+ const d = new CustomEvent(U, Z);
51
+ a.addEventListener(U, b), a.dispatchEvent(d), d.defaultPrevented || (Ee(ke(oe(a)), { select: !0 }), document.activeElement === o && k(a));
52
+ }
53
+ return () => {
54
+ a.removeEventListener(U, b), setTimeout(() => {
55
+ const d = new CustomEvent(_, Z);
56
+ a.addEventListener(_, g), a.dispatchEvent(d), d.defaultPrevented || k(o ?? document.body, { select: !0 }), a.removeEventListener(_, g), Q.remove(h);
57
+ }, 0);
58
+ };
59
+ }
60
+ }, [a, b, g, h]);
61
+ const w = u.useCallback(
62
+ (o) => {
63
+ if (!n && !r || h.paused) return;
64
+ const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, d = document.activeElement;
65
+ if (l && d) {
66
+ const m = o.currentTarget, [p, y] = Se(m);
67
+ p && y ? !o.shiftKey && d === y ? (o.preventDefault(), n && k(p, { select: !0 })) : o.shiftKey && d === p && (o.preventDefault(), n && k(y, { select: !0 })) : d === m && o.preventDefault();
68
+ }
69
+ },
70
+ [n, r, h.paused]
71
+ );
72
+ return /* @__PURE__ */ ge(pe.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
73
+ });
74
+ be.displayName = ye;
75
+ function Ee(e, { select: t = !1 } = {}) {
76
+ const n = document.activeElement;
77
+ for (const r of e)
78
+ if (k(r, { select: t }), document.activeElement !== n) return;
79
+ }
80
+ function Se(e) {
81
+ const t = oe(e), n = q(t, e), r = q(t.reverse(), e);
82
+ return [n, r];
83
+ }
84
+ function oe(e) {
85
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
86
+ acceptNode: (r) => {
87
+ const c = r.tagName === "INPUT" && r.type === "hidden";
88
+ return r.disabled || r.hidden || c ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
89
+ }
90
+ });
91
+ for (; n.nextNode(); ) t.push(n.currentNode);
92
+ return t;
93
+ }
94
+ function q(e, t) {
95
+ for (const n of e)
96
+ if (!we(n, { upTo: t })) return n;
97
+ }
98
+ function we(e, { upTo: t }) {
99
+ if (getComputedStyle(e).visibility === "hidden") return !0;
100
+ for (; e; ) {
101
+ if (t !== void 0 && e === t) return !1;
102
+ if (getComputedStyle(e).display === "none") return !0;
103
+ e = e.parentElement;
104
+ }
105
+ return !1;
106
+ }
107
+ function Ce(e) {
108
+ return e instanceof HTMLInputElement && "select" in e;
109
+ }
110
+ function k(e, { select: t = !1 } = {}) {
111
+ if (e && e.focus) {
112
+ const n = document.activeElement;
113
+ e.focus({ preventScroll: !0 }), e !== n && Ce(e) && t && e.select();
114
+ }
115
+ }
116
+ var Q = Re();
117
+ function Re() {
118
+ let e = [];
119
+ return {
120
+ add(t) {
121
+ const n = e[0];
122
+ t !== n && n?.pause(), e = $(e, t), e.unshift(t);
123
+ },
124
+ remove(t) {
125
+ e = $(e, t), e[0]?.resume();
126
+ }
127
+ };
128
+ }
129
+ function $(e, t) {
130
+ const n = [...e], r = n.indexOf(t);
131
+ return r !== -1 && n.splice(r, 1), n;
132
+ }
133
+ function ke(e) {
134
+ return e.filter((t) => t.tagName !== "A");
135
+ }
136
+ var j = 0;
137
+ function gt() {
138
+ u.useEffect(() => {
139
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
140
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? J()), document.body.insertAdjacentElement("beforeend", e[1] ?? J()), j++, () => {
141
+ j === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), j--;
142
+ };
143
+ }, []);
144
+ }
145
+ function J() {
146
+ const e = document.createElement("span");
147
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
148
+ }
149
+ var C = function() {
150
+ return C = Object.assign || function(t) {
151
+ for (var n, r = 1, c = arguments.length; r < c; r++) {
152
+ n = arguments[r];
153
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
154
+ }
155
+ return t;
156
+ }, C.apply(this, arguments);
157
+ };
158
+ function ce(e, t) {
159
+ var n = {};
160
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
161
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
162
+ for (var c = 0, r = Object.getOwnPropertySymbols(e); c < r.length; c++)
163
+ t.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[c]) && (n[r[c]] = e[r[c]]);
164
+ return n;
165
+ }
166
+ function Ae(e, t, n) {
167
+ if (n || arguments.length === 2) for (var r = 0, c = t.length, i; r < c; r++)
168
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
169
+ return e.concat(i || Array.prototype.slice.call(t));
170
+ }
171
+ var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Te = "with-scroll-bars-hidden", Ne = "--removed-body-scroll-bar-size";
172
+ function K(e, t) {
173
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
174
+ }
175
+ function Me(e, t) {
176
+ var n = he(function() {
177
+ return {
178
+ // value
179
+ value: e,
180
+ // last callback
181
+ callback: t,
182
+ // "memoized" public interface
183
+ facade: {
184
+ get current() {
185
+ return n.value;
186
+ },
187
+ set current(r) {
188
+ var c = n.value;
189
+ c !== r && (n.value = r, n.callback(r, c));
190
+ }
191
+ }
192
+ };
193
+ })[0];
194
+ return n.callback = t, n.facade;
195
+ }
196
+ var Fe = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ee = /* @__PURE__ */ new WeakMap();
197
+ function Pe(e, t) {
198
+ var n = Me(null, function(r) {
199
+ return e.forEach(function(c) {
200
+ return K(c, r);
201
+ });
202
+ });
203
+ return Fe(function() {
204
+ var r = ee.get(n);
205
+ if (r) {
206
+ var c = new Set(r), i = new Set(e), s = n.current;
207
+ c.forEach(function(a) {
208
+ i.has(a) || K(a, null);
209
+ }), i.forEach(function(a) {
210
+ c.has(a) || K(a, s);
211
+ });
212
+ }
213
+ ee.set(n, e);
214
+ }, [e]), n;
215
+ }
216
+ function Oe(e) {
217
+ return e;
218
+ }
219
+ function Le(e, t) {
220
+ t === void 0 && (t = Oe);
221
+ var n = [], r = !1, c = {
222
+ read: function() {
223
+ if (r)
224
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
225
+ return n.length ? n[n.length - 1] : e;
226
+ },
227
+ useMedium: function(i) {
228
+ var s = t(i, r);
229
+ return n.push(s), function() {
230
+ n = n.filter(function(a) {
231
+ return a !== s;
232
+ });
233
+ };
234
+ },
235
+ assignSyncMedium: function(i) {
236
+ for (r = !0; n.length; ) {
237
+ var s = n;
238
+ n = [], s.forEach(i);
239
+ }
240
+ n = {
241
+ push: function(a) {
242
+ return i(a);
243
+ },
244
+ filter: function() {
245
+ return n;
246
+ }
247
+ };
248
+ },
249
+ assignMedium: function(i) {
250
+ r = !0;
251
+ var s = [];
252
+ if (n.length) {
253
+ var a = n;
254
+ n = [], a.forEach(i), s = n;
255
+ }
256
+ var S = function() {
257
+ var g = s;
258
+ s = [], g.forEach(i);
259
+ }, b = function() {
260
+ return Promise.resolve().then(S);
261
+ };
262
+ b(), n = {
263
+ push: function(g) {
264
+ s.push(g), b();
265
+ },
266
+ filter: function(g) {
267
+ return s = s.filter(g), n;
268
+ }
269
+ };
270
+ }
271
+ };
272
+ return c;
273
+ }
274
+ function Ie(e) {
275
+ e === void 0 && (e = {});
276
+ var t = Le(null);
277
+ return t.options = C({ async: !0, ssr: !1 }, e), t;
278
+ }
279
+ var ue = function(e) {
280
+ var t = e.sideCar, n = ce(e, ["sideCar"]);
281
+ if (!t)
282
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
283
+ var r = t.read();
284
+ if (!r)
285
+ throw new Error("Sidecar medium not found");
286
+ return u.createElement(r, C({}, n));
287
+ };
288
+ ue.isSideCarExport = !0;
289
+ function xe(e, t) {
290
+ return e.useMedium(t), ue;
291
+ }
292
+ var ie = Ie(), H = function() {
293
+ }, D = u.forwardRef(function(e, t) {
294
+ var n = u.useRef(null), r = u.useState({
295
+ onScrollCapture: H,
296
+ onWheelCapture: H,
297
+ onTouchMoveCapture: H
298
+ }), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ce(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, A = Pe([n, t]), R = C(C({}, y), c);
299
+ return u.createElement(
300
+ u.Fragment,
301
+ null,
302
+ g && u.createElement(E, { sideCar: ie, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
303
+ s ? u.cloneElement(u.Children.only(a), C(C({}, R), { ref: A })) : u.createElement(m, C({}, R, { className: S, ref: A }), a)
304
+ );
305
+ });
306
+ D.defaultProps = {
307
+ enabled: !0,
308
+ removeScrollBar: !0,
309
+ inert: !1
310
+ };
311
+ D.classNames = {
312
+ fullWidth: B,
313
+ zeroRight: W
314
+ };
315
+ var We = function() {
316
+ if (typeof __webpack_nonce__ < "u")
317
+ return __webpack_nonce__;
318
+ };
319
+ function Be() {
320
+ if (!document)
321
+ return null;
322
+ var e = document.createElement("style");
323
+ e.type = "text/css";
324
+ var t = We();
325
+ return t && e.setAttribute("nonce", t), e;
326
+ }
327
+ function De(e, t) {
328
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
329
+ }
330
+ function Ue(e) {
331
+ var t = document.head || document.getElementsByTagName("head")[0];
332
+ t.appendChild(e);
333
+ }
334
+ var _e = function() {
335
+ var e = 0, t = null;
336
+ return {
337
+ add: function(n) {
338
+ e == 0 && (t = Be()) && (De(t, n), Ue(t)), e++;
339
+ },
340
+ remove: function() {
341
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
342
+ }
343
+ };
344
+ }, je = function() {
345
+ var e = _e();
346
+ return function(t, n) {
347
+ u.useEffect(function() {
348
+ return e.add(t), function() {
349
+ e.remove();
350
+ };
351
+ }, [t && n]);
352
+ };
353
+ }, le = function() {
354
+ var e = je(), t = function(n) {
355
+ var r = n.styles, c = n.dynamic;
356
+ return e(r, c), null;
357
+ };
358
+ return t;
359
+ }, Ke = {
360
+ left: 0,
361
+ top: 0,
362
+ right: 0,
363
+ gap: 0
364
+ }, V = function(e) {
365
+ return parseInt(e || "", 10) || 0;
366
+ }, He = function(e) {
367
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], c = t[e === "padding" ? "paddingRight" : "marginRight"];
368
+ return [V(n), V(r), V(c)];
369
+ }, Ve = function(e) {
370
+ if (e === void 0 && (e = "margin"), typeof window > "u")
371
+ return Ke;
372
+ var t = He(e), n = document.documentElement.clientWidth, r = window.innerWidth;
373
+ return {
374
+ left: t[0],
375
+ top: t[1],
376
+ right: t[2],
377
+ gap: Math.max(0, r - n + t[2] - t[0])
378
+ };
379
+ }, Xe = le(), F = "data-scroll-locked", Ye = function(e, t, n, r) {
380
+ var c = e.left, i = e.top, s = e.right, a = e.gap;
381
+ return n === void 0 && (n = "margin"), `
382
+ .`.concat(Te, ` {
383
+ overflow: hidden `).concat(r, `;
384
+ padding-right: `).concat(a, "px ").concat(r, `;
385
+ }
386
+ body[`).concat(F, `] {
387
+ overflow: hidden `).concat(r, `;
388
+ overscroll-behavior: contain;
389
+ `).concat([
390
+ t && "position: relative ".concat(r, ";"),
391
+ n === "margin" && `
392
+ padding-left: `.concat(c, `px;
393
+ padding-top: `).concat(i, `px;
394
+ padding-right: `).concat(s, `px;
395
+ margin-left:0;
396
+ margin-top:0;
397
+ margin-right: `).concat(a, "px ").concat(r, `;
398
+ `),
399
+ n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
400
+ ].filter(Boolean).join(""), `
401
+ }
402
+
403
+ .`).concat(W, ` {
404
+ right: `).concat(a, "px ").concat(r, `;
405
+ }
406
+
407
+ .`).concat(B, ` {
408
+ margin-right: `).concat(a, "px ").concat(r, `;
409
+ }
410
+
411
+ .`).concat(W, " .").concat(W, ` {
412
+ right: 0 `).concat(r, `;
413
+ }
414
+
415
+ .`).concat(B, " .").concat(B, ` {
416
+ margin-right: 0 `).concat(r, `;
417
+ }
418
+
419
+ body[`).concat(F, `] {
420
+ `).concat(Ne, ": ").concat(a, `px;
421
+ }
422
+ `);
423
+ }, te = function() {
424
+ var e = parseInt(document.body.getAttribute(F) || "0", 10);
425
+ return isFinite(e) ? e : 0;
426
+ }, Ge = function() {
427
+ u.useEffect(function() {
428
+ return document.body.setAttribute(F, (te() + 1).toString()), function() {
429
+ var e = te() - 1;
430
+ e <= 0 ? document.body.removeAttribute(F) : document.body.setAttribute(F, e.toString());
431
+ };
432
+ }, []);
433
+ }, ze = function(e) {
434
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, c = r === void 0 ? "margin" : r;
435
+ Ge();
436
+ var i = u.useMemo(function() {
437
+ return Ve(c);
438
+ }, [c]);
439
+ return u.createElement(Xe, { styles: Ye(i, !t, c, n ? "" : "!important") });
440
+ }, Y = !1;
441
+ if (typeof window < "u")
442
+ try {
443
+ var O = Object.defineProperty({}, "passive", {
444
+ get: function() {
445
+ return Y = !0, !0;
446
+ }
447
+ });
448
+ window.addEventListener("test", O, O), window.removeEventListener("test", O, O);
449
+ } catch {
450
+ Y = !1;
451
+ }
452
+ var T = Y ? { passive: !1 } : !1, Ze = function(e) {
453
+ return e.tagName === "TEXTAREA";
454
+ }, se = function(e, t) {
455
+ if (!(e instanceof Element))
456
+ return !1;
457
+ var n = window.getComputedStyle(e);
458
+ return (
459
+ // not-not-scrollable
460
+ n[t] !== "hidden" && // contains scroll inside self
461
+ !(n.overflowY === n.overflowX && !Ze(e) && n[t] === "visible")
462
+ );
463
+ }, qe = function(e) {
464
+ return se(e, "overflowY");
465
+ }, Qe = function(e) {
466
+ return se(e, "overflowX");
467
+ }, ne = function(e, t) {
468
+ var n = t.ownerDocument, r = t;
469
+ do {
470
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
471
+ var c = fe(e, r);
472
+ if (c) {
473
+ var i = de(e, r), s = i[1], a = i[2];
474
+ if (s > a)
475
+ return !0;
476
+ }
477
+ r = r.parentNode;
478
+ } while (r && r !== n.body);
479
+ return !1;
480
+ }, $e = function(e) {
481
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
482
+ return [
483
+ t,
484
+ n,
485
+ r
486
+ ];
487
+ }, Je = function(e) {
488
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
489
+ return [
490
+ t,
491
+ n,
492
+ r
493
+ ];
494
+ }, fe = function(e, t) {
495
+ return e === "v" ? qe(t) : Qe(t);
496
+ }, de = function(e, t) {
497
+ return e === "v" ? $e(t) : Je(t);
498
+ }, et = function(e, t) {
499
+ return e === "h" && t === "rtl" ? -1 : 1;
500
+ }, tt = function(e, t, n, r, c) {
501
+ var i = et(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
502
+ do {
503
+ if (!a)
504
+ break;
505
+ var h = de(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
506
+ (w || d) && fe(e, a) && (f += d, v += w);
507
+ var m = a.parentNode;
508
+ a = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
509
+ } while (
510
+ // portaled content
511
+ !S && a !== document.body || // self content
512
+ S && (t.contains(a) || t === a)
513
+ );
514
+ return (g && Math.abs(f) < 1 || !g && Math.abs(v) < 1) && (b = !0), b;
515
+ }, L = function(e) {
516
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
517
+ }, re = function(e) {
518
+ return [e.deltaX, e.deltaY];
519
+ }, ae = function(e) {
520
+ return e && "current" in e ? e.current : e;
521
+ }, nt = function(e, t) {
522
+ return e[0] === t[0] && e[1] === t[1];
523
+ }, rt = function(e) {
524
+ return `
525
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
526
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
527
+ `);
528
+ }, at = 0, N = [];
529
+ function ot(e) {
530
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(at++)[0], i = u.useState(le)[0], s = u.useRef(e);
531
+ u.useEffect(function() {
532
+ s.current = e;
533
+ }, [e]), u.useEffect(function() {
534
+ if (e.inert) {
535
+ document.body.classList.add("block-interactivity-".concat(c));
536
+ var o = Ae([e.lockRef.current], (e.shards || []).map(ae), !0).filter(Boolean);
537
+ return o.forEach(function(l) {
538
+ return l.classList.add("allow-interactivity-".concat(c));
539
+ }), function() {
540
+ document.body.classList.remove("block-interactivity-".concat(c)), o.forEach(function(l) {
541
+ return l.classList.remove("allow-interactivity-".concat(c));
542
+ });
543
+ };
544
+ }
545
+ }, [e.inert, e.lockRef.current, e.shards]);
546
+ var a = u.useCallback(function(o, l) {
547
+ if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
548
+ return !s.current.allowPinchZoom;
549
+ var d = L(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, A = o.target, R = Math.abs(p) > Math.abs(y) ? "h" : "v";
550
+ if ("touches" in o && R === "h" && A.type === "range")
551
+ return !1;
552
+ var P = ne(R, A);
553
+ if (!P)
554
+ return !0;
555
+ if (P ? E = R : (E = R === "v" ? "h" : "v", P = ne(R, A)), !P)
556
+ return !1;
557
+ if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
558
+ return !0;
559
+ var G = r.current || E;
560
+ return tt(G, l, o, G === "h" ? p : y);
561
+ }, []), S = u.useCallback(function(o) {
562
+ var l = o;
563
+ if (!(!N.length || N[N.length - 1] !== i)) {
564
+ var d = "deltaY" in l ? re(l) : L(l), m = t.current.filter(function(E) {
565
+ return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && nt(E.delta, d);
566
+ })[0];
567
+ if (m && m.should) {
568
+ l.cancelable && l.preventDefault();
569
+ return;
570
+ }
571
+ if (!m) {
572
+ var p = (s.current.shards || []).map(ae).filter(Boolean).filter(function(E) {
573
+ return E.contains(l.target);
574
+ }), y = p.length > 0 ? a(l, p[0]) : !s.current.noIsolation;
575
+ y && l.cancelable && l.preventDefault();
576
+ }
577
+ }
578
+ }, []), b = u.useCallback(function(o, l, d, m) {
579
+ var p = { name: o, delta: l, target: d, should: m, shadowParent: ct(d) };
580
+ t.current.push(p), setTimeout(function() {
581
+ t.current = t.current.filter(function(y) {
582
+ return y !== p;
583
+ });
584
+ }, 1);
585
+ }, []), g = u.useCallback(function(o) {
586
+ n.current = L(o), r.current = void 0;
587
+ }, []), f = u.useCallback(function(o) {
588
+ b(o.type, re(o), o.target, a(o, e.lockRef.current));
589
+ }, []), v = u.useCallback(function(o) {
590
+ b(o.type, L(o), o.target, a(o, e.lockRef.current));
591
+ }, []);
592
+ u.useEffect(function() {
593
+ return N.push(i), e.setCallbacks({
594
+ onScrollCapture: f,
595
+ onWheelCapture: f,
596
+ onTouchMoveCapture: v
597
+ }), document.addEventListener("wheel", S, T), document.addEventListener("touchmove", S, T), document.addEventListener("touchstart", g, T), function() {
598
+ N = N.filter(function(o) {
599
+ return o !== i;
600
+ }), document.removeEventListener("wheel", S, T), document.removeEventListener("touchmove", S, T), document.removeEventListener("touchstart", g, T);
601
+ };
602
+ }, []);
603
+ var h = e.removeScrollBar, w = e.inert;
604
+ return u.createElement(
605
+ u.Fragment,
606
+ null,
607
+ w ? u.createElement(i, { styles: rt(c) }) : null,
608
+ h ? u.createElement(ze, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
609
+ );
610
+ }
611
+ function ct(e) {
612
+ for (var t = null; e !== null; )
613
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
614
+ return t;
615
+ }
616
+ const ut = xe(ie, ot);
617
+ var it = u.forwardRef(function(e, t) {
618
+ return u.createElement(D, C({}, e, { ref: t, sideCar: ut }));
619
+ });
620
+ it.classNames = D.classNames;
621
+ var lt = function(e) {
622
+ if (typeof document > "u")
623
+ return null;
624
+ var t = Array.isArray(e) ? e[0] : e;
625
+ return t.ownerDocument.body;
626
+ }, M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {}, X = 0, ve = function(e) {
627
+ return e && (e.host || ve(e.parentNode));
628
+ }, st = function(e, t) {
629
+ return t.map(function(n) {
630
+ if (e.contains(n))
631
+ return n;
632
+ var r = ve(n);
633
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
634
+ }).filter(function(n) {
635
+ return !!n;
636
+ });
637
+ }, ft = function(e, t, n, r) {
638
+ var c = st(t, Array.isArray(e) ? e : [e]);
639
+ x[n] || (x[n] = /* @__PURE__ */ new WeakMap());
640
+ var i = x[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
641
+ !f || a.has(f) || (a.add(f), b(f.parentNode));
642
+ };
643
+ c.forEach(b);
644
+ var g = function(f) {
645
+ !f || S.has(f) || Array.prototype.forEach.call(f.children, function(v) {
646
+ if (a.has(v))
647
+ g(v);
648
+ else
649
+ try {
650
+ var h = v.getAttribute(r), w = h !== null && h !== "false", o = (M.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
651
+ M.set(v, o), i.set(v, l), s.push(v), o === 1 && w && I.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
652
+ } catch (d) {
653
+ console.error("aria-hidden: cannot operate on ", v, d);
654
+ }
655
+ });
656
+ };
657
+ return g(t), a.clear(), X++, function() {
658
+ s.forEach(function(f) {
659
+ var v = M.get(f) - 1, h = i.get(f) - 1;
660
+ M.set(f, v), i.set(f, h), v || (I.has(f) || f.removeAttribute(r), I.delete(f)), h || f.removeAttribute(n);
661
+ }), X--, X || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {});
662
+ };
663
+ }, yt = function(e, t, n) {
664
+ n === void 0 && (n = "data-aria-hidden");
665
+ var r = Array.from(Array.isArray(e) ? e : [e]), c = lt(e);
666
+ return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), ft(r, c, n, "aria-hidden")) : function() {
667
+ return null;
668
+ };
669
+ };
670
+ export {
671
+ be as F,
672
+ it as R,
673
+ yt as h,
674
+ gt as u
675
+ };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ "use strict";const $=require("react"),f=require("./index-BfKbXbc8.cjs"),A=require("./index-CajSSBH7.cjs"),E=require("./index-CRDKsB5y.cjs"),m=require("./index-BI11g55_.cjs"),H=require("./index-B_Bwy8wX.cjs"),d=require("./index-DVuTCIJE.cjs"),b=require("./index-q-4o5Ie4.cjs"),j=require("./index-C2mPf2xD.cjs"),L=require("./index-C8aODXfJ.cjs"),i=require("react/jsx-runtime");function G(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const a=G($);var R="Popover",[w]=f.createContextScope(R,[d.createPopperScope]),h=d.createPopperScope(),[K,u]=w(R),S=e=>{const{__scopePopover:n,children:o,open:s,defaultOpen:r,onOpenChange:t,modal:c=!1}=e,p=h(n),P=a.useRef(null),[g,x]=a.useState(!1),[C,l]=L.useControllableState({prop:s,defaultProp:r??!1,onChange:t,caller:R});return i.jsx(d.Root2,{...p,children:i.jsx(K,{scope:n,contentId:H.useId(),triggerRef:P,open:C,onOpenChange:l,onOpenToggle:a.useCallback(()=>l(O=>!O),[l]),hasCustomAnchor:g,onCustomAnchorAdd:a.useCallback(()=>x(!0),[]),onCustomAnchorRemove:a.useCallback(()=>x(!1),[]),modal:c,children:o})})};S.displayName=R;var y="PopoverAnchor",N=a.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=u(y,o),t=h(o),{onCustomAnchorAdd:c,onCustomAnchorRemove:p}=r;return a.useEffect(()=>(c(),()=>p()),[c,p]),i.jsx(d.Anchor,{...t,...s,ref:n})});N.displayName=y;var F="PopoverTrigger",D=a.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=u(F,o),t=h(o),c=A.useComposedRefs(n,r.triggerRef),p=i.jsx(j.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":q(r.open),...s,ref:c,onClick:f.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?p:i.jsx(d.Anchor,{asChild:!0,...t,children:p})});D.displayName=F;var _="PopoverPortal",[z,U]=w(_,{forceMount:void 0}),M=e=>{const{__scopePopover:n,forceMount:o,children:s,container:r}=e,t=u(_,n);return i.jsx(z,{scope:n,forceMount:o,children:i.jsx(b.Presence,{present:o||t.open,children:i.jsx(E.Portal,{asChild:!0,container:r,children:s})})})};M.displayName=_;var v="PopoverContent",k=a.forwardRef((e,n)=>{const o=U(v,e.__scopePopover),{forceMount:s=o.forceMount,...r}=e,t=u(v,e.__scopePopover);return i.jsx(b.Presence,{present:s||t.open,children:t.modal?i.jsx(W,{...r,ref:n}):i.jsx(Z,{...r,ref:n})})});k.displayName=v;var V=A.createSlot("PopoverContent.RemoveScroll"),W=a.forwardRef((e,n)=>{const o=u(v,e.__scopePopover),s=a.useRef(null),r=A.useComposedRefs(n,s),t=a.useRef(!1);return a.useEffect(()=>{const c=s.current;if(c)return m.hideOthers(c)},[]),i.jsx(m.ReactRemoveScroll,{as:V,allowPinchZoom:!0,children:i.jsx(T,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f.composeEventHandlers(e.onCloseAutoFocus,c=>{c.preventDefault(),t.current||o.triggerRef.current?.focus()}),onPointerDownOutside:f.composeEventHandlers(e.onPointerDownOutside,c=>{const p=c.detail.originalEvent,P=p.button===0&&p.ctrlKey===!0,g=p.button===2||P;t.current=g},{checkForDefaultPrevented:!1}),onFocusOutside:f.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),Z=a.forwardRef((e,n)=>{const o=u(v,e.__scopePopover),s=a.useRef(!1),r=a.useRef(!1);return i.jsx(T,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(s.current||o.triggerRef.current?.focus(),t.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(s.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=t.target;o.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}})}),T=a.forwardRef((e,n)=>{const{__scopePopover:o,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:t,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:P,onFocusOutside:g,onInteractOutside:x,...C}=e,l=u(v,o),O=h(o);return m.useFocusGuards(),i.jsx(m.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:t,children:i.jsx(E.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:x,onEscapeKeyDown:p,onPointerDownOutside:P,onFocusOutside:g,onDismiss:()=>l.onOpenChange(!1),children:i.jsx(d.Content,{"data-state":q(l.open),role:"dialog",id:l.contentId,...O,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I="PopoverClose",B=a.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=u(I,o);return i.jsx(j.Primitive.button,{type:"button",...s,ref:n,onClick:f.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});B.displayName=I;var J="PopoverArrow",Q=a.forwardRef((e,n)=>{const{__scopePopover:o,...s}=e,r=h(o);return i.jsx(d.Arrow,{...r,...s,ref:n})});Q.displayName=J;function q(e){return e?"open":"closed"}exports.Popover=S;exports.PopoverAnchor=N;exports.PopoverContent=k;exports.PopoverPortal=M;exports.PopoverTrigger=D;
@@ -0,0 +1,10 @@
1
+ import * as t from "react";
2
+ import "react/jsx-runtime";
3
+ var r = t.createContext(void 0);
4
+ function n(o) {
5
+ const e = t.useContext(r);
6
+ return o || e || "ltr";
7
+ }
8
+ export {
9
+ n as u
10
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("react"),f=require("react-dom"),m=require("./index-CajSSBH7.cjs"),p=require("react/jsx-runtime");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((c,o)=>{const{asChild:s,...a}=c,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function h(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=O;exports.dispatchDiscreteCustomEvent=h;