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,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;