@evolve.ui/core-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion--J93KLdp.d.cts +38 -0
- package/Accordion--J93KLdp.d.cts.map +1 -0
- package/Accordion-CdgdzUNC.d.mts +38 -0
- package/Accordion-CdgdzUNC.d.mts.map +1 -0
- package/AddressDisplay-C6av_Ava.d.cts +40 -0
- package/AddressDisplay-C6av_Ava.d.cts.map +1 -0
- package/AddressDisplay-C6av_Ava.d.mts +40 -0
- package/AddressDisplay-C6av_Ava.d.mts.map +1 -0
- package/AddressDisplay-CI1h4Pyv.cjs +1504 -0
- package/AddressDisplay-CI1h4Pyv.cjs.map +1 -0
- package/AddressDisplay-D5p9wJT6.mjs +1499 -0
- package/AddressDisplay-D5p9wJT6.mjs.map +1 -0
- package/AutomatedCarousel-BbH74siI.d.mts +48 -0
- package/AutomatedCarousel-BbH74siI.d.mts.map +1 -0
- package/AutomatedCarousel-CmVyxeSl.mjs +274 -0
- package/AutomatedCarousel-CmVyxeSl.mjs.map +1 -0
- package/AutomatedCarousel-Dhr1za_D.d.cts +48 -0
- package/AutomatedCarousel-Dhr1za_D.d.cts.map +1 -0
- package/AutomatedCarousel-ylYqkHPX.cjs +281 -0
- package/AutomatedCarousel-ylYqkHPX.cjs.map +1 -0
- package/Badge/ItemBadge.cjs +75 -0
- package/Badge/ItemBadge.cjs.map +1 -0
- package/Badge/ItemBadge.d.cts +2 -0
- package/Badge/ItemBadge.d.mts +2 -0
- package/Badge/ItemBadge.mjs +71 -0
- package/Badge/ItemBadge.mjs.map +1 -0
- package/Badge/LiveStatusBadge.cjs +78 -0
- package/Badge/LiveStatusBadge.cjs.map +1 -0
- package/Badge/LiveStatusBadge.d.cts +2 -0
- package/Badge/LiveStatusBadge.d.mts +2 -0
- package/Badge/LiveStatusBadge.mjs +74 -0
- package/Badge/LiveStatusBadge.mjs.map +1 -0
- package/Badge-C1BBu1fH.d.mts +71 -0
- package/Badge-C1BBu1fH.d.mts.map +1 -0
- package/Badge-lOH4Ssq_.d.cts +71 -0
- package/Badge-lOH4Ssq_.d.cts.map +1 -0
- package/Badge.cjs +72 -0
- package/Badge.cjs.map +1 -0
- package/Badge.d.cts +2 -0
- package/Badge.d.mts +2 -0
- package/Badge.mjs +68 -0
- package/Badge.mjs.map +1 -0
- package/BannerNotification-D9Sfa2si.cjs +156 -0
- package/BannerNotification-D9Sfa2si.cjs.map +1 -0
- package/BannerNotification-DM78PllX.d.cts +59 -0
- package/BannerNotification-DM78PllX.d.cts.map +1 -0
- package/BannerNotification-DM78PllX.d.mts +59 -0
- package/BannerNotification-DM78PllX.d.mts.map +1 -0
- package/BannerNotification-DzprO7bZ.mjs +151 -0
- package/BannerNotification-DzprO7bZ.mjs.map +1 -0
- package/BottomSheet-ZV_eq3xt.mjs +1708 -0
- package/BottomSheet-ZV_eq3xt.mjs.map +1 -0
- package/BottomSheet-emWP9Fct.cjs +1715 -0
- package/BottomSheet-emWP9Fct.cjs.map +1 -0
- package/Breadcrumbs-7jTSZ7NM.cjs +98 -0
- package/Breadcrumbs-7jTSZ7NM.cjs.map +1 -0
- package/Breadcrumbs-CopNM2AH.d.cts +30 -0
- package/Breadcrumbs-CopNM2AH.d.cts.map +1 -0
- package/Breadcrumbs-CopNM2AH.d.mts +30 -0
- package/Breadcrumbs-CopNM2AH.d.mts.map +1 -0
- package/Breadcrumbs-blgWG9cP.mjs +93 -0
- package/Breadcrumbs-blgWG9cP.mjs.map +1 -0
- package/Button-B9vfIXTi.d.cts +12 -0
- package/Button-B9vfIXTi.d.cts.map +1 -0
- package/Button-Bitf-VVv.d.mts +12 -0
- package/Button-Bitf-VVv.d.mts.map +1 -0
- package/Button.cjs +102 -0
- package/Button.cjs.map +1 -0
- package/Button.d.cts +2 -0
- package/Button.d.mts +2 -0
- package/Button.mjs +98 -0
- package/Button.mjs.map +1 -0
- package/Button.types-CjidejRG.d.cts +79 -0
- package/Button.types-CjidejRG.d.cts.map +1 -0
- package/Button.types-CyzsUcMe.d.mts +79 -0
- package/Button.types-CyzsUcMe.d.mts.map +1 -0
- package/Callout-BDrz5jjK.d.mts +45 -0
- package/Callout-BDrz5jjK.d.mts.map +1 -0
- package/Callout-BiFCfawA.d.cts +45 -0
- package/Callout-BiFCfawA.d.cts.map +1 -0
- package/Callout-DrWwRGi4.cjs +132 -0
- package/Callout-DrWwRGi4.cjs.map +1 -0
- package/Callout-Olv0CM82.mjs +127 -0
- package/Callout-Olv0CM82.mjs.map +1 -0
- package/Callout.cjs +8 -0
- package/Callout.d.cts +2 -0
- package/Callout.d.mts +2 -0
- package/Callout.mjs +4 -0
- package/CardGrid-BhfrwrN0.d.cts +72 -0
- package/CardGrid-BhfrwrN0.d.cts.map +1 -0
- package/CardGrid-BpX_oOS4.mjs +175 -0
- package/CardGrid-BpX_oOS4.mjs.map +1 -0
- package/CardGrid-CHZSF83h.d.mts +72 -0
- package/CardGrid-CHZSF83h.d.mts.map +1 -0
- package/CardGrid-CXi9XvDo.cjs +180 -0
- package/CardGrid-CXi9XvDo.cjs.map +1 -0
- package/Carousel-8CbTiwMk.mjs +462 -0
- package/Carousel-8CbTiwMk.mjs.map +1 -0
- package/Carousel-Du89BCCK.cjs +487 -0
- package/Carousel-Du89BCCK.cjs.map +1 -0
- package/CheckCircle-BcTMEm4l.mjs +42 -0
- package/CheckCircle-BcTMEm4l.mjs.map +1 -0
- package/CheckCircle-BjBbSga6.cjs +49 -0
- package/CheckCircle-BjBbSga6.cjs.map +1 -0
- package/Checkbox.cjs +13 -0
- package/Checkbox.d.cts +2 -0
- package/Checkbox.d.mts +2 -0
- package/Checkbox.mjs +3 -0
- package/Chip-UMJoX3ST.d.cts +38 -0
- package/Chip-UMJoX3ST.d.cts.map +1 -0
- package/Chip-giQtR8GC.d.mts +38 -0
- package/Chip-giQtR8GC.d.mts.map +1 -0
- package/ChipGroup-DIyCVKZm.d.cts +24 -0
- package/ChipGroup-DIyCVKZm.d.cts.map +1 -0
- package/ChipGroup-VGpv5cHt.d.mts +24 -0
- package/ChipGroup-VGpv5cHt.d.mts.map +1 -0
- package/ChoiceListItem-BqZ3bIj9.mjs +168 -0
- package/ChoiceListItem-BqZ3bIj9.mjs.map +1 -0
- package/ChoiceListItem-D_74Zcpd.cjs +209 -0
- package/ChoiceListItem-D_74Zcpd.cjs.map +1 -0
- package/Collapsible-Bbs4SWEA.d.cts +18 -0
- package/Collapsible-Bbs4SWEA.d.cts.map +1 -0
- package/Collapsible-Bbs4SWEA.d.mts +18 -0
- package/Collapsible-Bbs4SWEA.d.mts.map +1 -0
- package/Confetti--vMcCOQ7.cjs +166 -0
- package/Confetti--vMcCOQ7.cjs.map +1 -0
- package/Confetti-Csdjmzfv.mjs +161 -0
- package/Confetti-Csdjmzfv.mjs.map +1 -0
- package/ContentPager-AM9sSsgG.d.cts +37 -0
- package/ContentPager-AM9sSsgG.d.cts.map +1 -0
- package/ContentPager-B9UIPahb.mjs +138 -0
- package/ContentPager-B9UIPahb.mjs.map +1 -0
- package/ContentPager-BJo1L64Y.cjs +158 -0
- package/ContentPager-BJo1L64Y.cjs.map +1 -0
- package/ContentPager-DuxgJP42.d.mts +37 -0
- package/ContentPager-DuxgJP42.d.mts.map +1 -0
- package/CookieConsent-CIwm0bTz.mjs +401 -0
- package/CookieConsent-CIwm0bTz.mjs.map +1 -0
- package/CookieConsent-PIglB_bb.cjs +430 -0
- package/CookieConsent-PIglB_bb.cjs.map +1 -0
- package/Countdown-BaqV0LJL.d.mts +45 -0
- package/Countdown-BaqV0LJL.d.mts.map +1 -0
- package/Countdown-D4-QPv6V.cjs +181 -0
- package/Countdown-D4-QPv6V.cjs.map +1 -0
- package/Countdown-Dw5j-JJ4.d.cts +45 -0
- package/Countdown-Dw5j-JJ4.d.cts.map +1 -0
- package/Countdown-Hiu5EYUI.mjs +174 -0
- package/Countdown-Hiu5EYUI.mjs.map +1 -0
- package/Countdown.types-B7yecprx.d.cts +8 -0
- package/Countdown.types-B7yecprx.d.cts.map +1 -0
- package/Countdown.types-B7yecprx.d.mts +8 -0
- package/Countdown.types-B7yecprx.d.mts.map +1 -0
- package/CreditCardIcon-DirCX2rx.d.cts +29 -0
- package/CreditCardIcon-DirCX2rx.d.cts.map +1 -0
- package/CreditCardIcon-DirCX2rx.d.mts +29 -0
- package/CreditCardIcon-DirCX2rx.d.mts.map +1 -0
- package/CreditCardIcon-OqdAEE3e.cjs +281 -0
- package/CreditCardIcon-OqdAEE3e.cjs.map +1 -0
- package/CreditCardIcon-rpcjx4S_.mjs +270 -0
- package/CreditCardIcon-rpcjx4S_.mjs.map +1 -0
- package/DateInput-B8XQZPTx.d.cts +34 -0
- package/DateInput-B8XQZPTx.d.cts.map +1 -0
- package/DateInput-CfNmywqQ.d.mts +34 -0
- package/DateInput-CfNmywqQ.d.mts.map +1 -0
- package/DatePickerTarget-BcX_noF3.d.cts +14 -0
- package/DatePickerTarget-BcX_noF3.d.cts.map +1 -0
- package/DatePickerTarget-BcX_noF3.d.mts +14 -0
- package/DatePickerTarget-BcX_noF3.d.mts.map +1 -0
- package/DatePickerTarget-CKni-6Rq.mjs +14 -0
- package/DatePickerTarget-CKni-6Rq.mjs.map +1 -0
- package/DatePickerTarget-D_gR7380.cjs +25 -0
- package/DatePickerTarget-D_gR7380.cjs.map +1 -0
- package/Drawer-9HFG45OA.cjs +259 -0
- package/Drawer-9HFG45OA.cjs.map +1 -0
- package/Drawer-BkCPfK6P.mjs +254 -0
- package/Drawer-BkCPfK6P.mjs.map +1 -0
- package/Drawer-CFZbwg0R.d.cts +231 -0
- package/Drawer-CFZbwg0R.d.cts.map +1 -0
- package/Drawer-CFZbwg0R.d.mts +231 -0
- package/Drawer-CFZbwg0R.d.mts.map +1 -0
- package/EducationalPopover-CLNgGomH.d.cts +48 -0
- package/EducationalPopover-CLNgGomH.d.cts.map +1 -0
- package/EducationalPopover-DP63Yqlm.d.mts +48 -0
- package/EducationalPopover-DP63Yqlm.d.mts.map +1 -0
- package/FavoriteButton-BRY8FVpV.d.mts +142 -0
- package/FavoriteButton-BRY8FVpV.d.mts.map +1 -0
- package/FavoriteButton-CC3qL0lR.mjs +199 -0
- package/FavoriteButton-CC3qL0lR.mjs.map +1 -0
- package/FavoriteButton-CowOPoqo.d.cts +142 -0
- package/FavoriteButton-CowOPoqo.d.cts.map +1 -0
- package/FavoriteButton-DliYzkfu.cjs +204 -0
- package/FavoriteButton-DliYzkfu.cjs.map +1 -0
- package/FeatureFlagDevToolsUI-B13AuQ2A.mjs +276 -0
- package/FeatureFlagDevToolsUI-B13AuQ2A.mjs.map +1 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.cts +39 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.cts.map +1 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.mts +39 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.mts.map +1 -0
- package/FeatureFlagDevToolsUI-MBFES3GM.cjs +281 -0
- package/FeatureFlagDevToolsUI-MBFES3GM.cjs.map +1 -0
- package/FileUpload--e_UJ_ek.cjs +1771 -0
- package/FileUpload--e_UJ_ek.cjs.map +1 -0
- package/FileUpload-p_pl9NXr.mjs +1706 -0
- package/FileUpload-p_pl9NXr.mjs.map +1 -0
- package/FormLabel-D4602qfd.d.cts +140 -0
- package/FormLabel-D4602qfd.d.cts.map +1 -0
- package/FormLabel-D4602qfd.d.mts +140 -0
- package/FormLabel-D4602qfd.d.mts.map +1 -0
- package/IconBase-C_Lx9rDx.d.cts +89 -0
- package/IconBase-C_Lx9rDx.d.cts.map +1 -0
- package/IconBase-C_Lx9rDx.d.mts +89 -0
- package/IconBase-C_Lx9rDx.d.mts.map +1 -0
- package/IconButton-DHTn5DQ_.d.mts +40 -0
- package/IconButton-DHTn5DQ_.d.mts.map +1 -0
- package/IconButton-Df9usxq_.d.cts +40 -0
- package/IconButton-Df9usxq_.d.cts.map +1 -0
- package/IconButton.cjs +68 -0
- package/IconButton.cjs.map +1 -0
- package/IconButton.d.cts +2 -0
- package/IconButton.d.mts +2 -0
- package/IconButton.mjs +64 -0
- package/IconButton.mjs.map +1 -0
- package/Icons/CreditCardIcon.cjs +7 -0
- package/Icons/CreditCardIcon.d.cts +2 -0
- package/Icons/CreditCardIcon.d.mts +2 -0
- package/Icons/CreditCardIcon.mjs +2 -0
- package/Icons/IconBase.cjs +60 -0
- package/Icons/IconBase.cjs.map +1 -0
- package/Icons/IconBase.d.cts +2 -0
- package/Icons/IconBase.d.mts +2 -0
- package/Icons/IconBase.mjs +54 -0
- package/Icons/IconBase.mjs.map +1 -0
- package/Icons/anyIcon.cjs +0 -0
- package/Icons/anyIcon.d.cts +2 -0
- package/Icons/anyIcon.d.mts +2 -0
- package/Icons/anyIcon.mjs +1 -0
- package/Icons/socialIcons/appleSocialIcon.cjs +48 -0
- package/Icons/socialIcons/appleSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.d.cts +19 -0
- package/Icons/socialIcons/appleSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.d.mts +19 -0
- package/Icons/socialIcons/appleSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.mjs +42 -0
- package/Icons/socialIcons/appleSocialIcon.mjs.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.cjs +41 -0
- package/Icons/socialIcons/facebookSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.d.cts +14 -0
- package/Icons/socialIcons/facebookSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.d.mts +14 -0
- package/Icons/socialIcons/facebookSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.mjs +36 -0
- package/Icons/socialIcons/facebookSocialIcon.mjs.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.cjs +135 -0
- package/Icons/socialIcons/googleSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.d.cts +19 -0
- package/Icons/socialIcons/googleSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.d.mts +19 -0
- package/Icons/socialIcons/googleSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.mjs +129 -0
- package/Icons/socialIcons/googleSocialIcon.mjs.map +1 -0
- package/Icons.cjs +5489 -0
- package/Icons.cjs.map +1 -0
- package/Icons.d.cts +2 -0
- package/Icons.d.mts +2 -0
- package/Icons.mjs +5335 -0
- package/Icons.mjs.map +1 -0
- package/ImageCluster-BXaQi8SB.d.cts +24 -0
- package/ImageCluster-BXaQi8SB.d.cts.map +1 -0
- package/ImageCluster-BXaQi8SB.d.mts +24 -0
- package/ImageCluster-BXaQi8SB.d.mts.map +1 -0
- package/ImageSlider-BidXfnLj.cjs +861 -0
- package/ImageSlider-BidXfnLj.cjs.map +1 -0
- package/ImageSlider-CDrg_TbL.mjs +838 -0
- package/ImageSlider-CDrg_TbL.mjs.map +1 -0
- package/InfoIconTooltip-CZax9TVq.d.cts +27 -0
- package/InfoIconTooltip-CZax9TVq.d.cts.map +1 -0
- package/InfoIconTooltip-Ca4AHkY2.d.mts +27 -0
- package/InfoIconTooltip-Ca4AHkY2.d.mts.map +1 -0
- package/InfoIconTooltip.cjs +29 -0
- package/InfoIconTooltip.cjs.map +1 -0
- package/InfoIconTooltip.d.cts +2 -0
- package/InfoIconTooltip.d.mts +2 -0
- package/InfoIconTooltip.mjs +25 -0
- package/InfoIconTooltip.mjs.map +1 -0
- package/InlineButton-CRLbNJZ3.d.mts +68 -0
- package/InlineButton-CRLbNJZ3.d.mts.map +1 -0
- package/InlineButton-DoXGLiSE.d.cts +68 -0
- package/InlineButton-DoXGLiSE.d.cts.map +1 -0
- package/InlineNotification--hYpy2m2.d.cts +18 -0
- package/InlineNotification--hYpy2m2.d.cts.map +1 -0
- package/InlineNotification--hYpy2m2.d.mts +18 -0
- package/InlineNotification--hYpy2m2.d.mts.map +1 -0
- package/Input.cjs +104 -0
- package/Input.cjs.map +1 -0
- package/Input.d.cts +2 -0
- package/Input.d.mts +2 -0
- package/Input.mjs +100 -0
- package/Input.mjs.map +1 -0
- package/ItemBadge-D1S8YsIy.d.cts +46 -0
- package/ItemBadge-D1S8YsIy.d.cts.map +1 -0
- package/ItemBadge-D1S8YsIy.d.mts +46 -0
- package/ItemBadge-D1S8YsIy.d.mts.map +1 -0
- package/JumpMenu-BXYZnPIH.cjs +499 -0
- package/JumpMenu-BXYZnPIH.cjs.map +1 -0
- package/JumpMenu-DcZjAiej.mjs +494 -0
- package/JumpMenu-DcZjAiej.mjs.map +1 -0
- package/Links-Ch0YdIz6.d.cts +214 -0
- package/Links-Ch0YdIz6.d.cts.map +1 -0
- package/Links-Ch0YdIz6.d.mts +214 -0
- package/Links-Ch0YdIz6.d.mts.map +1 -0
- package/LiveStatusBadge-D1TX11B6.d.cts +53 -0
- package/LiveStatusBadge-D1TX11B6.d.cts.map +1 -0
- package/LiveStatusBadge-D1TX11B6.d.mts +53 -0
- package/LiveStatusBadge-D1TX11B6.d.mts.map +1 -0
- package/Loading-B9LLlAyM.d.cts +19 -0
- package/Loading-B9LLlAyM.d.cts.map +1 -0
- package/Loading-B9LLlAyM.d.mts +19 -0
- package/Loading-B9LLlAyM.d.mts.map +1 -0
- package/Loading-BL7_u25j.cjs +47 -0
- package/Loading-BL7_u25j.cjs.map +1 -0
- package/Loading-BenQpF_w.mjs +42 -0
- package/Loading-BenQpF_w.mjs.map +1 -0
- package/LoadingSpinner-BWwhuAGb.d.mts +16 -0
- package/LoadingSpinner-BWwhuAGb.d.mts.map +1 -0
- package/LoadingSpinner-DjC4uC_2.d.cts +16 -0
- package/LoadingSpinner-DjC4uC_2.d.cts.map +1 -0
- package/LoadingSpinner.cjs +25 -0
- package/LoadingSpinner.cjs.map +1 -0
- package/LoadingSpinner.d.cts +2 -0
- package/LoadingSpinner.d.mts +2 -0
- package/LoadingSpinner.mjs +21 -0
- package/LoadingSpinner.mjs.map +1 -0
- package/Menu-ClUogmwE.cjs +385 -0
- package/Menu-ClUogmwE.cjs.map +1 -0
- package/Menu-Cxu8CaX1.mjs +368 -0
- package/Menu-Cxu8CaX1.mjs.map +1 -0
- package/Modal-C6gatdtT.mjs +301 -0
- package/Modal-C6gatdtT.mjs.map +1 -0
- package/Modal-CiBqXyiK.cjs +306 -0
- package/Modal-CiBqXyiK.cjs.map +1 -0
- package/Modal-DM0aXJZ5.d.cts +265 -0
- package/Modal-DM0aXJZ5.d.cts.map +1 -0
- package/Modal-DM0aXJZ5.d.mts +265 -0
- package/Modal-DM0aXJZ5.d.mts.map +1 -0
- package/ModalTarget-CD0Nmzfb.d.cts +14 -0
- package/ModalTarget-CD0Nmzfb.d.cts.map +1 -0
- package/ModalTarget-CD0Nmzfb.d.mts +14 -0
- package/ModalTarget-CD0Nmzfb.d.mts.map +1 -0
- package/NotificationBadge-B442UBjI.d.cts +22 -0
- package/NotificationBadge-B442UBjI.d.cts.map +1 -0
- package/NotificationBadge-B442UBjI.d.mts +22 -0
- package/NotificationBadge-B442UBjI.d.mts.map +1 -0
- package/Pagination-DIpGKMLz.mjs +386 -0
- package/Pagination-DIpGKMLz.mjs.map +1 -0
- package/Pagination-bAtbN478.cjs +409 -0
- package/Pagination-bAtbN478.cjs.map +1 -0
- package/PhoneInput-B5pkpkdt.mjs +398 -0
- package/PhoneInput-B5pkpkdt.mjs.map +1 -0
- package/PhoneInput-BXnkBME4.d.mts +70 -0
- package/PhoneInput-BXnkBME4.d.mts.map +1 -0
- package/PhoneInput-Bkrbrins.d.cts +70 -0
- package/PhoneInput-Bkrbrins.d.cts.map +1 -0
- package/PhoneInput-CUMPOSxJ.cjs +408 -0
- package/PhoneInput-CUMPOSxJ.cjs.map +1 -0
- package/ProgressCircle-B2dfVdH-.d.cts +50 -0
- package/ProgressCircle-B2dfVdH-.d.cts.map +1 -0
- package/ProgressCircle-BC81D9sU.cjs +196 -0
- package/ProgressCircle-BC81D9sU.cjs.map +1 -0
- package/ProgressCircle-CxrflaLd.d.mts +50 -0
- package/ProgressCircle-CxrflaLd.d.mts.map +1 -0
- package/ProgressCircle-ae8cvZhe.mjs +191 -0
- package/ProgressCircle-ae8cvZhe.mjs.map +1 -0
- package/ProgressSteps-C3xJUDTs.d.mts +32 -0
- package/ProgressSteps-C3xJUDTs.d.mts.map +1 -0
- package/ProgressSteps-Ls0XahjM.d.cts +32 -0
- package/ProgressSteps-Ls0XahjM.d.cts.map +1 -0
- package/Radio.cjs +13 -0
- package/Radio.d.cts +2 -0
- package/Radio.d.mts +2 -0
- package/Radio.mjs +3 -0
- package/SaveConfetti-DI0MTd63.mjs +179 -0
- package/SaveConfetti-DI0MTd63.mjs.map +1 -0
- package/SaveConfetti-DSJtuE3b.cjs +184 -0
- package/SaveConfetti-DSJtuE3b.cjs.map +1 -0
- package/SearchInput-DYIPC8Cd.d.cts +126 -0
- package/SearchInput-DYIPC8Cd.d.cts.map +1 -0
- package/SearchInput-IfEWePDQ.d.mts +126 -0
- package/SearchInput-IfEWePDQ.d.mts.map +1 -0
- package/SegmentedControl-B5FZ0uX8.cjs +107 -0
- package/SegmentedControl-B5FZ0uX8.cjs.map +1 -0
- package/SegmentedControl-DHf4SQQL.mjs +96 -0
- package/SegmentedControl-DHf4SQQL.mjs.map +1 -0
- package/Select-BXDjzyDs.cjs +248 -0
- package/Select-BXDjzyDs.cjs.map +1 -0
- package/Select-BkZu8OLs.mjs +241 -0
- package/Select-BkZu8OLs.mjs.map +1 -0
- package/Select-g4yFQq1-.d.mts +36 -0
- package/Select-g4yFQq1-.d.mts.map +1 -0
- package/Select-ghtIe-gD.d.cts +36 -0
- package/Select-ghtIe-gD.d.cts.map +1 -0
- package/SelectAsync-267GxTnI.d.cts +11 -0
- package/SelectAsync-267GxTnI.d.cts.map +1 -0
- package/SelectAsync-CLcESc8k.d.mts +11 -0
- package/SelectAsync-CLcESc8k.d.mts.map +1 -0
- package/SelectAsyncCreatable-B2gB_MWk.d.mts +11 -0
- package/SelectAsyncCreatable-B2gB_MWk.d.mts.map +1 -0
- package/SelectAsyncCreatable-BhuvLhbk.d.cts +11 -0
- package/SelectAsyncCreatable-BhuvLhbk.d.cts.map +1 -0
- package/SelectCreatable-C87i1L43.d.cts +11 -0
- package/SelectCreatable-C87i1L43.d.cts.map +1 -0
- package/SelectCreatable-CNVa1sx-.d.mts +11 -0
- package/SelectCreatable-CNVa1sx-.d.mts.map +1 -0
- package/SingleCard-DPaHU2wR.d.mts +19 -0
- package/SingleCard-DPaHU2wR.d.mts.map +1 -0
- package/SingleCard-X1dP0AHZ.d.cts +19 -0
- package/SingleCard-X1dP0AHZ.d.cts.map +1 -0
- package/Skeleton-40Vi20JV.d.cts +15 -0
- package/Skeleton-40Vi20JV.d.cts.map +1 -0
- package/Skeleton-40Vi20JV.d.mts +15 -0
- package/Skeleton-40Vi20JV.d.mts.map +1 -0
- package/SplitButton-DK-LdIwN.d.cts +80 -0
- package/SplitButton-DK-LdIwN.d.cts.map +1 -0
- package/SplitButton-DK-LdIwN.d.mts +80 -0
- package/SplitButton-DK-LdIwN.d.mts.map +1 -0
- package/SplitButton-DcmmLW8j.cjs +184 -0
- package/SplitButton-DcmmLW8j.cjs.map +1 -0
- package/SplitButton-WE5ymwCQ.mjs +179 -0
- package/SplitButton-WE5ymwCQ.mjs.map +1 -0
- package/StarRating-CRGx_jeU.mjs +81 -0
- package/StarRating-CRGx_jeU.mjs.map +1 -0
- package/StarRating-Dski54FS.cjs +86 -0
- package/StarRating-Dski54FS.cjs.map +1 -0
- package/StarRating-Dx1nbkcG.d.mts +89 -0
- package/StarRating-Dx1nbkcG.d.mts.map +1 -0
- package/StarRating-TfkOMATk.d.cts +89 -0
- package/StarRating-TfkOMATk.d.cts.map +1 -0
- package/SuggestionChip-BLq_0VFE.d.cts +13 -0
- package/SuggestionChip-BLq_0VFE.d.cts.map +1 -0
- package/SuggestionChip-CilkTYTJ.d.mts +13 -0
- package/SuggestionChip-CilkTYTJ.d.mts.map +1 -0
- package/Table-CLlDragJ.cjs +500 -0
- package/Table-CLlDragJ.cjs.map +1 -0
- package/Table-M-rANdMt.mjs +495 -0
- package/Table-M-rANdMt.mjs.map +1 -0
- package/Tabs-DRT-IQZk.d.cts +41 -0
- package/Tabs-DRT-IQZk.d.cts.map +1 -0
- package/Tabs-DRT-IQZk.d.mts +41 -0
- package/Tabs-DRT-IQZk.d.mts.map +1 -0
- package/Text-BVoakc0X.d.cts +63 -0
- package/Text-BVoakc0X.d.cts.map +1 -0
- package/Text-OlyNC1yj.d.mts +63 -0
- package/Text-OlyNC1yj.d.mts.map +1 -0
- package/TextArea-C-a06VpC.d.cts +58 -0
- package/TextArea-C-a06VpC.d.cts.map +1 -0
- package/TextArea-CTHcW_IE.d.mts +58 -0
- package/TextArea-CTHcW_IE.d.mts.map +1 -0
- package/TextInput-BhkeQZh4.d.cts +47 -0
- package/TextInput-BhkeQZh4.d.cts.map +1 -0
- package/TextInput-CWCeR18b.d.mts +47 -0
- package/TextInput-CWCeR18b.d.mts.map +1 -0
- package/Thumbnails-B-eOrf55.d.cts +226 -0
- package/Thumbnails-B-eOrf55.d.cts.map +1 -0
- package/Thumbnails-B-eOrf55.d.mts +226 -0
- package/Thumbnails-B-eOrf55.d.mts.map +1 -0
- package/TimePickerTarget-BHceCsfc.cjs +25 -0
- package/TimePickerTarget-BHceCsfc.cjs.map +1 -0
- package/TimePickerTarget-DlbryTho.mjs +14 -0
- package/TimePickerTarget-DlbryTho.mjs.map +1 -0
- package/TimePickerTarget-pYRxAfb2.d.cts +14 -0
- package/TimePickerTarget-pYRxAfb2.d.cts.map +1 -0
- package/TimePickerTarget-pYRxAfb2.d.mts +14 -0
- package/TimePickerTarget-pYRxAfb2.d.mts.map +1 -0
- package/Toast-CPEKESLZ.cjs +107 -0
- package/Toast-CPEKESLZ.cjs.map +1 -0
- package/Toast-CdUaFVpt.mjs +96 -0
- package/Toast-CdUaFVpt.mjs.map +1 -0
- package/ToggleSwitch-D-HRkEg2.d.cts +60 -0
- package/ToggleSwitch-D-HRkEg2.d.cts.map +1 -0
- package/ToggleSwitch-D-HRkEg2.d.mts +60 -0
- package/ToggleSwitch-D-HRkEg2.d.mts.map +1 -0
- package/Tooltip-D6_5Rsmd.d.cts +21 -0
- package/Tooltip-D6_5Rsmd.d.cts.map +1 -0
- package/Tooltip-D6_5Rsmd.d.mts +21 -0
- package/Tooltip-D6_5Rsmd.d.mts.map +1 -0
- package/Tooltip.cjs +38 -0
- package/Tooltip.cjs.map +1 -0
- package/Tooltip.d.cts +2 -0
- package/Tooltip.d.mts +2 -0
- package/Tooltip.mjs +26 -0
- package/Tooltip.mjs.map +1 -0
- package/Typography/InlineButton.cjs +63 -0
- package/Typography/InlineButton.cjs.map +1 -0
- package/Typography/InlineButton.d.cts +2 -0
- package/Typography/InlineButton.d.mts +2 -0
- package/Typography/InlineButton.mjs +59 -0
- package/Typography/InlineButton.mjs.map +1 -0
- package/Typography/Links.cjs +62 -0
- package/Typography/Links.cjs.map +1 -0
- package/Typography/Links.d.cts +2 -0
- package/Typography/Links.d.mts +2 -0
- package/Typography/Links.mjs +51 -0
- package/Typography/Links.mjs.map +1 -0
- package/Typography/Text.cjs +178 -0
- package/Typography/Text.cjs.map +1 -0
- package/Typography/Text.d.cts +2 -0
- package/Typography/Text.d.mts +2 -0
- package/Typography/Text.mjs +163 -0
- package/Typography/Text.mjs.map +1 -0
- package/ViewMore-BBoUvo7p.cjs +138 -0
- package/ViewMore-BBoUvo7p.cjs.map +1 -0
- package/ViewMore-BrZPuE4E.mjs +133 -0
- package/ViewMore-BrZPuE4E.mjs.map +1 -0
- package/ViewMore-DKC9SYL4.d.cts +93 -0
- package/ViewMore-DKC9SYL4.d.cts.map +1 -0
- package/ViewMore-DKC9SYL4.d.mts +93 -0
- package/ViewMore-DKC9SYL4.d.mts.map +1 -0
- package/WebRTCPlayer-C-sTtskR.mjs +940 -0
- package/WebRTCPlayer-C-sTtskR.mjs.map +1 -0
- package/WebRTCPlayer-CssffyCM.cjs +983 -0
- package/WebRTCPlayer-CssffyCM.cjs.map +1 -0
- package/accordion.cjs +126 -0
- package/accordion.cjs.map +1 -0
- package/accordion.d.cts +2 -0
- package/accordion.d.mts +2 -0
- package/accordion.mjs +120 -0
- package/accordion.mjs.map +1 -0
- package/addressDisplay.cjs +7 -0
- package/addressDisplay.d.cts +2 -0
- package/addressDisplay.d.mts +2 -0
- package/addressDisplay.mjs +3 -0
- package/anyIcon-C3IQzJJ9.d.cts +7 -0
- package/anyIcon-C3IQzJJ9.d.cts.map +1 -0
- package/anyIcon-eR07wvJb.d.mts +7 -0
- package/anyIcon-eR07wvJb.d.mts.map +1 -0
- package/automatedCarousel.cjs +7 -0
- package/automatedCarousel.d.cts +2 -0
- package/automatedCarousel.d.mts +2 -0
- package/automatedCarousel.mjs +3 -0
- package/bannerNotification.cjs +7 -0
- package/bannerNotification.d.cts +2 -0
- package/bannerNotification.d.mts +2 -0
- package/bannerNotification.mjs +3 -0
- package/bottomSheet.cjs +7 -0
- package/bottomSheet.d.cts +2 -0
- package/bottomSheet.d.mts +2 -0
- package/bottomSheet.mjs +3 -0
- package/breadcrumbs.cjs +7 -0
- package/breadcrumbs.d.cts +2 -0
- package/breadcrumbs.d.mts +2 -0
- package/breadcrumbs.mjs +3 -0
- package/breakpoints.cjs +53 -0
- package/breakpoints.cjs.map +1 -0
- package/breakpoints.d.cts +2 -0
- package/breakpoints.d.mts +2 -0
- package/breakpoints.mjs +46 -0
- package/breakpoints.mjs.map +1 -0
- package/buttonColorClasses-B7OU4aQA.mjs +22 -0
- package/buttonColorClasses-B7OU4aQA.mjs.map +1 -0
- package/buttonColorClasses-C3hg1at8.cjs +93 -0
- package/buttonColorClasses-C3hg1at8.cjs.map +1 -0
- package/card/cardGrid.cjs +7 -0
- package/card/cardGrid.d.cts +2 -0
- package/card/cardGrid.d.mts +2 -0
- package/card/cardGrid.mjs +3 -0
- package/card/components/createBadge.cjs +27 -0
- package/card/components/createBadge.cjs.map +1 -0
- package/card/components/createBadge.d.cts +2 -0
- package/card/components/createBadge.d.mts +2 -0
- package/card/components/createBadge.mjs +23 -0
- package/card/components/createBadge.mjs.map +1 -0
- package/card/components/createFavoriteButton.cjs +31 -0
- package/card/components/createFavoriteButton.cjs.map +1 -0
- package/card/components/createFavoriteButton.d.cts +2 -0
- package/card/components/createFavoriteButton.d.mts +2 -0
- package/card/components/createFavoriteButton.mjs +27 -0
- package/card/components/createFavoriteButton.mjs.map +1 -0
- package/card/components/createImage.cjs +44 -0
- package/card/components/createImage.cjs.map +1 -0
- package/card/components/createImage.d.cts +2 -0
- package/card/components/createImage.d.mts +2 -0
- package/card/components/createImage.mjs +40 -0
- package/card/components/createImage.mjs.map +1 -0
- package/card/components/createInfo.cjs +61 -0
- package/card/components/createInfo.cjs.map +1 -0
- package/card/components/createInfo.d.cts +2 -0
- package/card/components/createInfo.d.mts +2 -0
- package/card/components/createInfo.mjs +56 -0
- package/card/components/createInfo.mjs.map +1 -0
- package/card/components/createName.cjs +43 -0
- package/card/components/createName.cjs.map +1 -0
- package/card/components/createName.d.cts +2 -0
- package/card/components/createName.d.mts +2 -0
- package/card/components/createName.mjs +39 -0
- package/card/components/createName.mjs.map +1 -0
- package/card/components/createPriceStatus.cjs +77 -0
- package/card/components/createPriceStatus.cjs.map +1 -0
- package/card/components/createPriceStatus.d.cts +2 -0
- package/card/components/createPriceStatus.d.mts +2 -0
- package/card/components/createPriceStatus.mjs +70 -0
- package/card/components/createPriceStatus.mjs.map +1 -0
- package/card/factory.cjs +7 -0
- package/card/factory.d.cts +3 -0
- package/card/factory.d.mts +3 -0
- package/card/factory.mjs +3 -0
- package/card/singleCard.cjs +18 -0
- package/card/singleCard.cjs.map +1 -0
- package/card/singleCard.d.cts +2 -0
- package/card/singleCard.d.mts +2 -0
- package/card/singleCard.mjs +14 -0
- package/card/singleCard.mjs.map +1 -0
- package/cardFactory-B0Ah0Qb8.mjs +102 -0
- package/cardFactory-B0Ah0Qb8.mjs.map +1 -0
- package/cardFactory-CEKTSSXs.d.cts +37 -0
- package/cardFactory-CEKTSSXs.d.cts.map +1 -0
- package/cardFactory-DTU3jY-R.cjs +107 -0
- package/cardFactory-DTU3jY-R.cjs.map +1 -0
- package/cardFactory-Z5a675Nr.d.mts +37 -0
- package/cardFactory-Z5a675Nr.d.mts.map +1 -0
- package/carousel.cjs +10 -0
- package/carousel.d.cts +2 -0
- package/carousel.d.mts +2 -0
- package/carousel.mjs +3 -0
- package/chipTypes-Bi0ZROty.d.cts +109 -0
- package/chipTypes-Bi0ZROty.d.cts.map +1 -0
- package/chipTypes-Bi0ZROty.d.mts +109 -0
- package/chipTypes-Bi0ZROty.d.mts.map +1 -0
- package/chips/chip.cjs +102 -0
- package/chips/chip.cjs.map +1 -0
- package/chips/chip.d.cts +2 -0
- package/chips/chip.d.mts +2 -0
- package/chips/chip.mjs +98 -0
- package/chips/chip.mjs.map +1 -0
- package/chips/chipGroup.cjs +127 -0
- package/chips/chipGroup.cjs.map +1 -0
- package/chips/chipGroup.d.cts +2 -0
- package/chips/chipGroup.d.mts +2 -0
- package/chips/chipGroup.mjs +123 -0
- package/chips/chipGroup.mjs.map +1 -0
- package/chips/suggestion.cjs +20 -0
- package/chips/suggestion.cjs.map +1 -0
- package/chips/suggestion.d.cts +2 -0
- package/chips/suggestion.d.mts +2 -0
- package/chips/suggestion.mjs +16 -0
- package/chips/suggestion.mjs.map +1 -0
- package/chips/types.cjs +1 -0
- package/chips/types.d.cts +2 -0
- package/chips/types.d.mts +2 -0
- package/chips/types.mjs +2 -0
- package/chips.cjs +12 -0
- package/chips.d.cts +5 -0
- package/chips.d.mts +5 -0
- package/chips.mjs +6 -0
- package/collapsible.cjs +47 -0
- package/collapsible.cjs.map +1 -0
- package/collapsible.d.cts +2 -0
- package/collapsible.d.mts +2 -0
- package/collapsible.mjs +43 -0
- package/collapsible.mjs.map +1 -0
- package/components-BPFB_cmZ.mjs +346 -0
- package/components-BPFB_cmZ.mjs.map +1 -0
- package/components-CL4KcKF0.cjs +393 -0
- package/components-CL4KcKF0.cjs.map +1 -0
- package/confetti.cjs +7 -0
- package/confetti.d.cts +2 -0
- package/confetti.d.mts +2 -0
- package/confetti.mjs +3 -0
- package/contentPager.cjs +9 -0
- package/contentPager.d.cts +2 -0
- package/contentPager.d.mts +2 -0
- package/contentPager.mjs +3 -0
- package/context--_0mDNFa.d.cts +24 -0
- package/context--_0mDNFa.d.cts.map +1 -0
- package/context--_0mDNFa.d.mts +24 -0
- package/context--_0mDNFa.d.mts.map +1 -0
- package/cookieConsent.cjs +11 -0
- package/cookieConsent.d.cts +2 -0
- package/cookieConsent.d.mts +2 -0
- package/cookieConsent.mjs +3 -0
- package/countdown/types.cjs +1 -0
- package/countdown/types.d.cts +2 -0
- package/countdown/types.d.mts +2 -0
- package/countdown/types.mjs +2 -0
- package/countdown.cjs +7 -0
- package/countdown.d.cts +2 -0
- package/countdown.d.mts +2 -0
- package/countdown.mjs +3 -0
- package/createBadge-CYumy92O.d.mts +19 -0
- package/createBadge-CYumy92O.d.mts.map +1 -0
- package/createBadge-LFbUXGlB.d.cts +19 -0
- package/createBadge-LFbUXGlB.d.cts.map +1 -0
- package/createFavoriteButton-8xbCWiTD.d.mts +21 -0
- package/createFavoriteButton-8xbCWiTD.d.mts.map +1 -0
- package/createFavoriteButton-Bnp0UOEq.d.cts +21 -0
- package/createFavoriteButton-Bnp0UOEq.d.cts.map +1 -0
- package/createImage-BYnNgRok.d.mts +26 -0
- package/createImage-BYnNgRok.d.mts.map +1 -0
- package/createImage-DYLD7AJb.d.cts +26 -0
- package/createImage-DYLD7AJb.d.cts.map +1 -0
- package/createInfo-C9sqGWBq.d.mts +44 -0
- package/createInfo-C9sqGWBq.d.mts.map +1 -0
- package/createInfo-USBqE7Tt.d.cts +44 -0
- package/createInfo-USBqE7Tt.d.cts.map +1 -0
- package/createName-DB7BL9GP.d.cts +26 -0
- package/createName-DB7BL9GP.d.cts.map +1 -0
- package/createName-U7oHRNVL.d.mts +26 -0
- package/createName-U7oHRNVL.d.mts.map +1 -0
- package/createPriceStatus-C-amebFt.d.cts +30 -0
- package/createPriceStatus-C-amebFt.d.cts.map +1 -0
- package/createPriceStatus-DBWT6ob8.d.mts +30 -0
- package/createPriceStatus-DBWT6ob8.d.mts.map +1 -0
- package/dateInput.cjs +98 -0
- package/dateInput.cjs.map +1 -0
- package/dateInput.d.cts +2 -0
- package/dateInput.d.mts +2 -0
- package/dateInput.mjs +94 -0
- package/dateInput.mjs.map +1 -0
- package/datePicker-DQ32Z8yo.mjs +136 -0
- package/datePicker-DQ32Z8yo.mjs.map +1 -0
- package/datePicker-DaYegd15.cjs +141 -0
- package/datePicker-DaYegd15.cjs.map +1 -0
- package/datePicker.cjs +9 -0
- package/datePicker.d.cts +3 -0
- package/datePicker.d.mts +3 -0
- package/datePicker.mjs +4 -0
- package/dateTimeInput/utils.cjs +8 -0
- package/dateTimeInput/utils.d.cts +2 -0
- package/dateTimeInput/utils.d.mts +2 -0
- package/dateTimeInput/utils.mjs +3 -0
- package/drawer.cjs +7 -0
- package/drawer.d.cts +2 -0
- package/drawer.d.mts +2 -0
- package/drawer.mjs +3 -0
- package/educationalPopover.cjs +110 -0
- package/educationalPopover.cjs.map +1 -0
- package/educationalPopover.d.cts +2 -0
- package/educationalPopover.d.mts +2 -0
- package/educationalPopover.mjs +106 -0
- package/educationalPopover.mjs.map +1 -0
- package/effectEventListener-DmVY5Sgy.cjs +16 -0
- package/effectEventListener-DmVY5Sgy.cjs.map +1 -0
- package/effectEventListener-WApakaup.mjs +11 -0
- package/effectEventListener-WApakaup.mjs.map +1 -0
- package/favoriteButton.cjs +7 -0
- package/favoriteButton.d.cts +2 -0
- package/favoriteButton.d.mts +2 -0
- package/favoriteButton.mjs +3 -0
- package/featureFlagProvider-Cl66ibpA.cjs +25 -0
- package/featureFlagProvider-Cl66ibpA.cjs.map +1 -0
- package/featureFlagProvider-_wGBROhw.mjs +14 -0
- package/featureFlagProvider-_wGBROhw.mjs.map +1 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.cjs +7 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.d.cts +2 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.d.mts +2 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.mjs +3 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.cjs +27 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.cjs.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.cts +15 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.cts.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.mts +15 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.mts.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.mjs +23 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.mjs.map +1 -0
- package/featureFlags/hooks.cjs +9 -0
- package/featureFlags/hooks.d.cts +2 -0
- package/featureFlags/hooks.d.mts +2 -0
- package/featureFlags/hooks.mjs +4 -0
- package/fileUpload/hooks.cjs +8 -0
- package/fileUpload/hooks.d.cts +2 -0
- package/fileUpload/hooks.d.mts +2 -0
- package/fileUpload/hooks.mjs +3 -0
- package/fileUpload/testUtils/mockFilesAndImages.cjs +68 -0
- package/fileUpload/testUtils/mockFilesAndImages.cjs.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.cts +19 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.cts.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.mts +19 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.mts.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.mjs +52 -0
- package/fileUpload/testUtils/mockFilesAndImages.mjs.map +1 -0
- package/fileUpload/testUtils/testUtils.cjs +91 -0
- package/fileUpload/testUtils/testUtils.cjs.map +1 -0
- package/fileUpload/testUtils/testUtils.d.cts +13 -0
- package/fileUpload/testUtils/testUtils.d.cts.map +1 -0
- package/fileUpload/testUtils/testUtils.d.mts +13 -0
- package/fileUpload/testUtils/testUtils.d.mts.map +1 -0
- package/fileUpload/testUtils/testUtils.mjs +81 -0
- package/fileUpload/testUtils/testUtils.mjs.map +1 -0
- package/fileUpload/types.cjs +31 -0
- package/fileUpload/types.cjs.map +1 -0
- package/fileUpload/types.d.cts +2 -0
- package/fileUpload/types.d.mts +2 -0
- package/fileUpload/types.mjs +26 -0
- package/fileUpload/types.mjs.map +1 -0
- package/fileUpload.cjs +24 -0
- package/fileUpload.d.cts +4 -0
- package/fileUpload.d.mts +4 -0
- package/fileUpload.mjs +4 -0
- package/formLabel.cjs +108 -0
- package/formLabel.cjs.map +1 -0
- package/formLabel.d.cts +2 -0
- package/formLabel.d.mts +2 -0
- package/formLabel.mjs +103 -0
- package/formLabel.mjs.map +1 -0
- package/grid.cjs +128 -0
- package/grid.cjs.map +1 -0
- package/grid.d.cts +3 -0
- package/grid.d.mts +3 -0
- package/grid.mjs +118 -0
- package/grid.mjs.map +1 -0
- package/gridHighlighter-BU9PvG5f.d.cts +29 -0
- package/gridHighlighter-BU9PvG5f.d.cts.map +1 -0
- package/gridHighlighter-BU9PvG5f.d.mts +29 -0
- package/gridHighlighter-BU9PvG5f.d.mts.map +1 -0
- package/gridHighlighter-BcGNd3EE.mjs +55 -0
- package/gridHighlighter-BcGNd3EE.mjs.map +1 -0
- package/gridHighlighter-BiSMM7lW.cjs +66 -0
- package/gridHighlighter-BiSMM7lW.cjs.map +1 -0
- package/hooks/usePrevious.cjs +21 -0
- package/hooks/usePrevious.cjs.map +1 -0
- package/hooks/usePrevious.d.cts +2 -0
- package/hooks/usePrevious.d.mts +2 -0
- package/hooks/usePrevious.mjs +17 -0
- package/hooks/usePrevious.mjs.map +1 -0
- package/hooks-8VsDqwlb.cjs +672 -0
- package/hooks-8VsDqwlb.cjs.map +1 -0
- package/hooks-BudbgYTF.mjs +22 -0
- package/hooks-BudbgYTF.mjs.map +1 -0
- package/hooks-D4sJ62Xl.mjs +607 -0
- package/hooks-D4sJ62Xl.mjs.map +1 -0
- package/hooks-DDMD_CDN.cjs +27 -0
- package/hooks-DDMD_CDN.cjs.map +1 -0
- package/horizontalScrollFadeMixin-BBr1qJpj.mjs +38 -0
- package/horizontalScrollFadeMixin-BBr1qJpj.mjs.map +1 -0
- package/horizontalScrollFadeMixin-ChYR-9hE.cjs +43 -0
- package/horizontalScrollFadeMixin-ChYR-9hE.cjs.map +1 -0
- package/imageCluster.cjs +54 -0
- package/imageCluster.cjs.map +1 -0
- package/imageCluster.d.cts +2 -0
- package/imageCluster.d.mts +2 -0
- package/imageCluster.mjs +50 -0
- package/imageCluster.mjs.map +1 -0
- package/imageSlider.cjs +10 -0
- package/imageSlider.d.cts +2 -0
- package/imageSlider.d.mts +2 -0
- package/imageSlider.mjs +3 -0
- package/index-3V0Y3AU3.d.mts +25 -0
- package/index-3V0Y3AU3.d.mts.map +1 -0
- package/index-9649Aqry.d.cts +84 -0
- package/index-9649Aqry.d.cts.map +1 -0
- package/index-9649Aqry.d.mts +84 -0
- package/index-9649Aqry.d.mts.map +1 -0
- package/index-B-GVogfk2.d.mts +519 -0
- package/index-B-GVogfk2.d.mts.map +1 -0
- package/index-BAR19_eg.d.cts +494 -0
- package/index-BAR19_eg.d.cts.map +1 -0
- package/index-BAR19_eg.d.mts +494 -0
- package/index-BAR19_eg.d.mts.map +1 -0
- package/index-BIbZcTRq.d.cts +236 -0
- package/index-BIbZcTRq.d.cts.map +1 -0
- package/index-BVb-FJDo.d.mts +322 -0
- package/index-BVb-FJDo.d.mts.map +1 -0
- package/index-BXz3rMMk.d.cts +322 -0
- package/index-BXz3rMMk.d.cts.map +1 -0
- package/index-Bm-eSWuV.d.mts +75 -0
- package/index-Bm-eSWuV.d.mts.map +1 -0
- package/index-BsA0Oogf.d.cts +75 -0
- package/index-BsA0Oogf.d.cts.map +1 -0
- package/index-Bu7c6X7O.d.mts +117 -0
- package/index-Bu7c6X7O.d.mts.map +1 -0
- package/index-BvJOKeoD.d.cts +94 -0
- package/index-BvJOKeoD.d.cts.map +1 -0
- package/index-BvJOKeoD.d.mts +94 -0
- package/index-BvJOKeoD.d.mts.map +1 -0
- package/index-ByYgcpRS.d.cts +1644 -0
- package/index-ByYgcpRS.d.cts.map +1 -0
- package/index-ByZJ4iMT2.d.mts +143 -0
- package/index-ByZJ4iMT2.d.mts.map +1 -0
- package/index-BzN9RaXe.d.cts +117 -0
- package/index-BzN9RaXe.d.cts.map +1 -0
- package/index-C1knx8x3.d.cts +8 -0
- package/index-C1knx8x3.d.cts.map +1 -0
- package/index-C1knx8x3.d.mts +8 -0
- package/index-C1knx8x3.d.mts.map +1 -0
- package/index-CEUCcUr8.d.mts +26 -0
- package/index-CEUCcUr8.d.mts.map +1 -0
- package/index-CQb7B4U7.d.mts +25 -0
- package/index-CQb7B4U7.d.mts.map +1 -0
- package/index-CTGvafCc.d.mts +68 -0
- package/index-CTGvafCc.d.mts.map +1 -0
- package/index-CTfIOH2Z2.d.cts +519 -0
- package/index-CTfIOH2Z2.d.cts.map +1 -0
- package/index-CXbRJmrm.d.cts +49 -0
- package/index-CXbRJmrm.d.cts.map +1 -0
- package/index-CXbRJmrm.d.mts +49 -0
- package/index-CXbRJmrm.d.mts.map +1 -0
- package/index-Co9X1Vty.d.cts +25 -0
- package/index-Co9X1Vty.d.cts.map +1 -0
- package/index-D1Zpm1h7.d.cts +58 -0
- package/index-D1Zpm1h7.d.cts.map +1 -0
- package/index-D1Zpm1h7.d.mts +58 -0
- package/index-D1Zpm1h7.d.mts.map +1 -0
- package/index-D2HDrkK3.d.cts +172 -0
- package/index-D2HDrkK3.d.cts.map +1 -0
- package/index-D2HDrkK3.d.mts +172 -0
- package/index-D2HDrkK3.d.mts.map +1 -0
- package/index-D8NtFEaq.d.cts +193 -0
- package/index-D8NtFEaq.d.cts.map +1 -0
- package/index-D8NtFEaq.d.mts +193 -0
- package/index-D8NtFEaq.d.mts.map +1 -0
- package/index-DBYqF9Sr.d.cts +39 -0
- package/index-DBYqF9Sr.d.cts.map +1 -0
- package/index-DS-jIZFO.d.mts +1644 -0
- package/index-DS-jIZFO.d.mts.map +1 -0
- package/index-DTEgNDXq.d.mts +111 -0
- package/index-DTEgNDXq.d.mts.map +1 -0
- package/index-DTEgNDXq2.d.cts +111 -0
- package/index-DTEgNDXq2.d.cts.map +1 -0
- package/index-DUdcrvAe.d.cts +26 -0
- package/index-DUdcrvAe.d.cts.map +1 -0
- package/index-DUdcrvAe.d.mts +26 -0
- package/index-DUdcrvAe.d.mts.map +1 -0
- package/index-DwA_GqJq.d.cts +26 -0
- package/index-DwA_GqJq.d.cts.map +1 -0
- package/index-MX_CgDGs.d.cts +147 -0
- package/index-MX_CgDGs.d.cts.map +1 -0
- package/index-MX_CgDGs.d.mts +147 -0
- package/index-MX_CgDGs.d.mts.map +1 -0
- package/index-NeSBj5ci.d.cts +200 -0
- package/index-NeSBj5ci.d.cts.map +1 -0
- package/index-NeSBj5ci.d.mts +200 -0
- package/index-NeSBj5ci.d.mts.map +1 -0
- package/index-XZwBshBM.d.cts +177 -0
- package/index-XZwBshBM.d.cts.map +1 -0
- package/index-XZwBshBM.d.mts +177 -0
- package/index-XZwBshBM.d.mts.map +1 -0
- package/index-dpfLYhgI.d.mts +39 -0
- package/index-dpfLYhgI.d.mts.map +1 -0
- package/index-kchg551L.d.cts +25 -0
- package/index-kchg551L.d.cts.map +1 -0
- package/index-l7Awc0i3.d.cts +68 -0
- package/index-l7Awc0i3.d.cts.map +1 -0
- package/index-ojxI7tqs.d.cts +143 -0
- package/index-ojxI7tqs.d.cts.map +1 -0
- package/index-otqj7yHa.d.mts +236 -0
- package/index-otqj7yHa.d.mts.map +1 -0
- package/index.cjs +472 -0
- package/index.d.cts +101 -0
- package/index.d.mts +101 -0
- package/index.mjs +99 -0
- package/inlineNotification.cjs +82 -0
- package/inlineNotification.cjs.map +1 -0
- package/inlineNotification.d.cts +2 -0
- package/inlineNotification.d.mts +2 -0
- package/inlineNotification.mjs +78 -0
- package/inlineNotification.mjs.map +1 -0
- package/intl/utils.cjs +41 -0
- package/intl/utils.cjs.map +1 -0
- package/intl/utils.d.cts +18 -0
- package/intl/utils.d.cts.map +1 -0
- package/intl/utils.d.mts +18 -0
- package/intl/utils.d.mts.map +1 -0
- package/intl/utils.mjs +34 -0
- package/intl/utils.mjs.map +1 -0
- package/intl.cjs +34 -0
- package/intl.d.cts +5 -0
- package/intl.d.mts +5 -0
- package/intl.mjs +6 -0
- package/jumpMenu.cjs +7 -0
- package/jumpMenu.d.cts +2 -0
- package/jumpMenu.d.mts +2 -0
- package/jumpMenu.mjs +3 -0
- package/loading.cjs +7 -0
- package/loading.d.cts +2 -0
- package/loading.d.mts +2 -0
- package/loading.mjs +3 -0
- package/menu.cjs +9 -0
- package/menu.d.cts +2 -0
- package/menu.d.mts +2 -0
- package/menu.mjs +3 -0
- package/menuContext-4P6eKzkH.mjs +14 -0
- package/menuContext-4P6eKzkH.mjs.map +1 -0
- package/menuContext-B6MhMBDf.cjs +25 -0
- package/menuContext-B6MhMBDf.cjs.map +1 -0
- package/mixins-CoXneD1m.mjs +235 -0
- package/mixins-CoXneD1m.mjs.map +1 -0
- package/mixins-D56ptENc.cjs +282 -0
- package/mixins-D56ptENc.cjs.map +1 -0
- package/mixins.cjs +13 -0
- package/mixins.d.cts +2 -0
- package/mixins.d.mts +2 -0
- package/mixins.mjs +2 -0
- package/modal/components.cjs +16 -0
- package/modal/components.d.cts +3 -0
- package/modal/components.d.mts +3 -0
- package/modal/components.mjs +4 -0
- package/modal/context.cjs +26 -0
- package/modal/context.cjs.map +1 -0
- package/modal/context.d.cts +2 -0
- package/modal/context.d.mts +2 -0
- package/modal/context.mjs +21 -0
- package/modal/context.mjs.map +1 -0
- package/modal/useCloseModal.cjs +103 -0
- package/modal/useCloseModal.cjs.map +1 -0
- package/modal/useCloseModal.d.cts +2 -0
- package/modal/useCloseModal.d.mts +2 -0
- package/modal/useCloseModal.mjs +98 -0
- package/modal/useCloseModal.mjs.map +1 -0
- package/modal.cjs +7 -0
- package/modal.d.cts +2 -0
- package/modal.d.mts +2 -0
- package/modal.mjs +3 -0
- package/nodeEnv-B4v61vkJ.mjs +6 -0
- package/nodeEnv-B4v61vkJ.mjs.map +1 -0
- package/nodeEnv-BdQ-HyQz.cjs +11 -0
- package/nodeEnv-BdQ-HyQz.cjs.map +1 -0
- package/notificationBadge.cjs +24 -0
- package/notificationBadge.cjs.map +1 -0
- package/notificationBadge.d.cts +2 -0
- package/notificationBadge.d.mts +2 -0
- package/notificationBadge.mjs +20 -0
- package/notificationBadge.mjs.map +1 -0
- package/package.json +73 -0
- package/pagination.cjs +10 -0
- package/pagination.d.cts +2 -0
- package/pagination.d.mts +2 -0
- package/pagination.mjs +3 -0
- package/phoneInput.cjs +34 -0
- package/phoneInput.d.cts +5 -0
- package/phoneInput.d.mts +5 -0
- package/phoneInput.mjs +6 -0
- package/progressCircle.cjs +7 -0
- package/progressCircle.d.cts +2 -0
- package/progressCircle.d.mts +2 -0
- package/progressCircle.mjs +3 -0
- package/progressSteps.cjs +92 -0
- package/progressSteps.cjs.map +1 -0
- package/progressSteps.d.cts +2 -0
- package/progressSteps.d.mts +2 -0
- package/progressSteps.mjs +88 -0
- package/progressSteps.mjs.map +1 -0
- package/providers.cjs +333 -0
- package/providers.cjs.map +1 -0
- package/providers.d.cts +5 -0
- package/providers.d.mts +5 -0
- package/providers.mjs +292 -0
- package/providers.mjs.map +1 -0
- package/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/saveConfetti.cjs +7 -0
- package/saveConfetti.d.cts +2 -0
- package/saveConfetti.d.mts +2 -0
- package/saveConfetti.mjs +3 -0
- package/searchInput.cjs +92 -0
- package/searchInput.cjs.map +1 -0
- package/searchInput.d.cts +2 -0
- package/searchInput.d.mts +2 -0
- package/searchInput.mjs +88 -0
- package/searchInput.mjs.map +1 -0
- package/segmentedControl.cjs +8 -0
- package/segmentedControl.d.cts +2 -0
- package/segmentedControl.d.mts +2 -0
- package/segmentedControl.mjs +3 -0
- package/select.cjs +9 -0
- package/select.d.cts +2 -0
- package/select.d.mts +2 -0
- package/select.mjs +3 -0
- package/selectAsync.cjs +20 -0
- package/selectAsync.cjs.map +1 -0
- package/selectAsync.d.cts +2 -0
- package/selectAsync.d.mts +2 -0
- package/selectAsync.mjs +14 -0
- package/selectAsync.mjs.map +1 -0
- package/selectAsyncCreatable.cjs +19 -0
- package/selectAsyncCreatable.cjs.map +1 -0
- package/selectAsyncCreatable.d.cts +2 -0
- package/selectAsyncCreatable.d.mts +2 -0
- package/selectAsyncCreatable.mjs +13 -0
- package/selectAsyncCreatable.mjs.map +1 -0
- package/selectComponents.cjs +12 -0
- package/selectComponents.d.cts +2 -0
- package/selectComponents.d.mts +2 -0
- package/selectComponents.mjs +3 -0
- package/selectCreatable.cjs +19 -0
- package/selectCreatable.cjs.map +1 -0
- package/selectCreatable.d.cts +2 -0
- package/selectCreatable.d.mts +2 -0
- package/selectCreatable.mjs +13 -0
- package/selectCreatable.mjs.map +1 -0
- package/sharedProps-D7PSXdXt.d.mts +16 -0
- package/sharedProps-D7PSXdXt.d.mts.map +1 -0
- package/sharedProps-DPhLON6O.d.cts +16 -0
- package/sharedProps-DPhLON6O.d.cts.map +1 -0
- package/skeleton.cjs +24 -0
- package/skeleton.cjs.map +1 -0
- package/skeleton.d.cts +2 -0
- package/skeleton.d.mts +2 -0
- package/skeleton.mjs +18 -0
- package/skeleton.mjs.map +1 -0
- package/spacing.cjs +27 -0
- package/spacing.cjs.map +1 -0
- package/spacing.d.cts +13 -0
- package/spacing.d.cts.map +1 -0
- package/spacing.d.mts +13 -0
- package/spacing.d.mts.map +1 -0
- package/spacing.mjs +15 -0
- package/spacing.mjs.map +1 -0
- package/splitButton.cjs +7 -0
- package/splitButton.d.cts +2 -0
- package/splitButton.d.mts +2 -0
- package/splitButton.mjs +3 -0
- package/starRating.cjs +7 -0
- package/starRating.d.cts +2 -0
- package/starRating.d.mts +2 -0
- package/starRating.mjs +3 -0
- package/table.cjs +7 -0
- package/table.d.cts +2 -0
- package/table.d.mts +2 -0
- package/table.mjs +3 -0
- package/tabs.cjs +191 -0
- package/tabs.cjs.map +1 -0
- package/tabs.d.cts +2 -0
- package/tabs.d.mts +2 -0
- package/tabs.mjs +187 -0
- package/tabs.mjs.map +1 -0
- package/textArea.cjs +75 -0
- package/textArea.cjs.map +1 -0
- package/textArea.d.cts +2 -0
- package/textArea.d.mts +2 -0
- package/textArea.mjs +71 -0
- package/textArea.mjs.map +1 -0
- package/textInput.cjs +7 -0
- package/textInput.d.cts +2 -0
- package/textInput.d.mts +2 -0
- package/textInput.mjs +3 -0
- package/timePicker-BPrJk5TQ.mjs +376 -0
- package/timePicker-BPrJk5TQ.mjs.map +1 -0
- package/timePicker-Bs25zweI.cjs +381 -0
- package/timePicker-Bs25zweI.cjs.map +1 -0
- package/timePicker.cjs +9 -0
- package/timePicker.d.cts +3 -0
- package/timePicker.d.mts +3 -0
- package/timePicker.mjs +4 -0
- package/toast.cjs +8 -0
- package/toast.d.cts +2 -0
- package/toast.d.mts +2 -0
- package/toast.mjs +3 -0
- package/toggleSwitch.cjs +95 -0
- package/toggleSwitch.cjs.map +1 -0
- package/toggleSwitch.d.cts +2 -0
- package/toggleSwitch.d.mts +2 -0
- package/toggleSwitch.mjs +91 -0
- package/toggleSwitch.mjs.map +1 -0
- package/types-rTX1-GHe.d.cts +8 -0
- package/types-rTX1-GHe.d.cts.map +1 -0
- package/types-rTX1-GHe.d.mts +8 -0
- package/types-rTX1-GHe.d.mts.map +1 -0
- package/types-wcNSa96H.d.cts +60 -0
- package/types-wcNSa96H.d.cts.map +1 -0
- package/types-wcNSa96H.d.mts +60 -0
- package/types-wcNSa96H.d.mts.map +1 -0
- package/useCloseModal-CIPrwKwM.d.cts +26 -0
- package/useCloseModal-CIPrwKwM.d.cts.map +1 -0
- package/useCloseModal-CIPrwKwM.d.mts +26 -0
- package/useCloseModal-CIPrwKwM.d.mts.map +1 -0
- package/useFeatureFlags--GRuT9Qc.cjs +24 -0
- package/useFeatureFlags--GRuT9Qc.cjs.map +1 -0
- package/useFeatureFlags-Dmf_37f8.mjs +19 -0
- package/useFeatureFlags-Dmf_37f8.mjs.map +1 -0
- package/useIntersectionObserver-Q6Y3c3sz.mjs +47 -0
- package/useIntersectionObserver-Q6Y3c3sz.mjs.map +1 -0
- package/useIntersectionObserver-oYkZjzFF.cjs +52 -0
- package/useIntersectionObserver-oYkZjzFF.cjs.map +1 -0
- package/usePrevious-DLOWI2sB.d.cts +8 -0
- package/usePrevious-DLOWI2sB.d.cts.map +1 -0
- package/usePrevious-DLOWI2sB.d.mts +8 -0
- package/usePrevious-DLOWI2sB.d.mts.map +1 -0
- package/utils/dateTimeFormat.cjs +217 -0
- package/utils/dateTimeFormat.cjs.map +1 -0
- package/utils/dateTimeFormat.d.cts +176 -0
- package/utils/dateTimeFormat.d.cts.map +1 -0
- package/utils/dateTimeFormat.d.mts +176 -0
- package/utils/dateTimeFormat.d.mts.map +1 -0
- package/utils/dateTimeFormat.mjs +199 -0
- package/utils/dateTimeFormat.mjs.map +1 -0
- package/utils/formatFileSize.cjs +24 -0
- package/utils/formatFileSize.cjs.map +1 -0
- package/utils/formatFileSize.d.cts +5 -0
- package/utils/formatFileSize.d.cts.map +1 -0
- package/utils/formatFileSize.d.mts +5 -0
- package/utils/formatFileSize.d.mts.map +1 -0
- package/utils/formatFileSize.mjs +20 -0
- package/utils/formatFileSize.mjs.map +1 -0
- package/utils-C6Ngn6x9.mjs +23 -0
- package/utils-C6Ngn6x9.mjs.map +1 -0
- package/utils-CvmfGpqu.cjs +34 -0
- package/utils-CvmfGpqu.cjs.map +1 -0
- package/viewMore.cjs +7 -0
- package/viewMore.d.cts +2 -0
- package/viewMore.d.mts +2 -0
- package/viewMore.mjs +3 -0
- package/webRTCPlayer.cjs +13 -0
- package/webRTCPlayer.d.cts +2 -0
- package/webRTCPlayer.d.mts +2 -0
- package/webRTCPlayer.mjs +3 -0
- package/windowSizeProvider-BMaATFiZ.cjs +147 -0
- package/windowSizeProvider-BMaATFiZ.cjs.map +1 -0
- package/windowSizeProvider-sYwAqaOy.mjs +64 -0
- package/windowSizeProvider-sYwAqaOy.mjs.map +1 -0
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { formatFileSize } from "./utils/formatFileSize.mjs";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { capitalize } from "es-toolkit";
|
|
5
|
+
//#region src/FileUpload/utils/constants.ts
|
|
6
|
+
const builtInErrorCodes = [
|
|
7
|
+
"file-invalid-type",
|
|
8
|
+
"file-too-large",
|
|
9
|
+
"too-many-files"
|
|
10
|
+
];
|
|
11
|
+
const ACCEPTED_MIME_TYPES = {
|
|
12
|
+
documents: [
|
|
13
|
+
"application/pdf",
|
|
14
|
+
"application/msword",
|
|
15
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
16
|
+
"application/vnd.ms-excel",
|
|
17
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
18
|
+
],
|
|
19
|
+
images: [
|
|
20
|
+
"image/jpeg",
|
|
21
|
+
"image/png",
|
|
22
|
+
"image/gif",
|
|
23
|
+
"image/webp"
|
|
24
|
+
],
|
|
25
|
+
pdfs: ["application/pdf"]
|
|
26
|
+
};
|
|
27
|
+
const DRAG_MESSAGES = {
|
|
28
|
+
default: "Invalid file",
|
|
29
|
+
partialUpload: {
|
|
30
|
+
"file-invalid-type": ({ fileCount = 1, filePluralizationText }) => `${fileCount} ${filePluralizationText} ${fileCount > 1 ? "have" : "has"} an invalid file type`,
|
|
31
|
+
"file-too-large": ({ formattedMaxSize }) => `One or more files are too large. (${formattedMaxSize} limit)`,
|
|
32
|
+
"too-many-files": ({ fileCount, filePluralizationText }) => `${fileCount} ${filePluralizationText} will exceed the file limit`
|
|
33
|
+
},
|
|
34
|
+
singleFileUpload: {
|
|
35
|
+
"file-invalid-type": "File type not supported",
|
|
36
|
+
"file-too-large": ({ formattedMaxSize }) => `File must be smaller than ${formattedMaxSize}`,
|
|
37
|
+
"too-many-files": ({ filePluralizationText, maxFiles }) => `You can only upload ${maxFiles} ${filePluralizationText}`
|
|
38
|
+
},
|
|
39
|
+
strictUpload: {
|
|
40
|
+
"file-invalid-type": "One or more files have an invalid file type",
|
|
41
|
+
"file-too-large": ({ formattedMaxSize }) => `One or more files are too large. (${formattedMaxSize} limit)`,
|
|
42
|
+
"too-many-files": ({ maxFiles, maxFilesPluralizationText }) => `You can only upload ${maxFiles} ${maxFilesPluralizationText}`
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const DROP_MESSAGES = {
|
|
46
|
+
default: "Invalid file",
|
|
47
|
+
partialUpload: {
|
|
48
|
+
"file-invalid-type": ({ acceptedFileExtensions, fileCount = 1, filePluralizationText }) => `Failed to add ${fileCount} ${filePluralizationText} due to invalid file type. Please upload only ${acceptedFileExtensions} files.`,
|
|
49
|
+
"file-too-large": ({ fileCount = 1, filePluralizationText, formattedMaxSize }) => `${fileCount} ${filePluralizationText} ${fileCount > 1 ? "are" : "is"} too large. Please upload files smaller than ${formattedMaxSize}.`,
|
|
50
|
+
"too-many-files": ({ fileCount, filePluralizationText, maxFiles }) => `You've reached the ${maxFiles} file limit. ${fileCount} ${filePluralizationText} could not be added.`
|
|
51
|
+
},
|
|
52
|
+
singleFileUpload: {
|
|
53
|
+
"file-invalid-type": ({ acceptedFileExtensions }) => `File type not supported. Please upload only ${acceptedFileExtensions} files.`,
|
|
54
|
+
"file-too-large": ({ formattedMaxSize }) => `File is too large. Please upload files smaller than ${formattedMaxSize}.`,
|
|
55
|
+
"too-many-files": ({ filePluralizationText, maxFiles }) => `${capitalize(filePluralizationText ?? "files")} not added. You can only upload ${maxFiles} in total`
|
|
56
|
+
},
|
|
57
|
+
strictUpload: {
|
|
58
|
+
"file-invalid-type": ({ acceptedFileExtensions }) => `One or more files have an invalid file type. Please upload only ${acceptedFileExtensions} files.`,
|
|
59
|
+
"file-too-large": ({ formattedMaxSize }) => `One or more files are too large. Please upload files smaller than ${formattedMaxSize}.`,
|
|
60
|
+
"too-many-files": ({ filePluralizationText, maxFiles, maxFilesPluralizationText }) => `${capitalize(filePluralizationText ?? "files")} not added - maximum of ${maxFiles} ${maxFilesPluralizationText} allowed.`
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/FileUpload/utils/getFileExtensionsFromAcceptedTypes.ts
|
|
65
|
+
const MIME_TYPE_TO_EXTENSION = {
|
|
66
|
+
"application/msword": ".doc",
|
|
67
|
+
"application/pdf": ".pdf",
|
|
68
|
+
"application/vnd.ms-excel": ".xls",
|
|
69
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ".xlsx",
|
|
70
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": ".docx",
|
|
71
|
+
"image/gif": ".gif",
|
|
72
|
+
"image/jpeg": ".jpeg",
|
|
73
|
+
"image/jpg": ".jpg",
|
|
74
|
+
"image/png": ".png",
|
|
75
|
+
"image/webp": ".webp"
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Converts a MIME type to its corresponding file extension
|
|
79
|
+
* @param mimeType The MIME type to convert (e.g., 'image/jpeg', 'application/pdf')
|
|
80
|
+
* @returns The corresponding file extension with leading dot (e.g., '.jpeg', '.pdf')
|
|
81
|
+
* or an empty string if the MIME type is invalid or incomplete
|
|
82
|
+
*/
|
|
83
|
+
const getMimeTypeExtension = (mimeType) => {
|
|
84
|
+
if (MIME_TYPE_TO_EXTENSION[mimeType]) return MIME_TYPE_TO_EXTENSION[mimeType];
|
|
85
|
+
const parts = mimeType.split("/");
|
|
86
|
+
if (parts.length === 2 && parts[1] && !parts[1].includes(".")) return `.${parts[1]}`;
|
|
87
|
+
return "";
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Converts file type restrictions into a comma-separated list of file extensions
|
|
91
|
+
* @param accept - Optional file type restrictions, can be either:
|
|
92
|
+
* - A preset category from CommonFileTypes (e.g., 'images', 'pdfs', 'documents')
|
|
93
|
+
* - An array of specific file extensions (e.g., ['.jpg', '.png', '.pdf'])
|
|
94
|
+
* - An array of MIME types (e.g., ['image/jpeg', 'image/png', 'application/pdf'])
|
|
95
|
+
* - A mixed array of both extensions and MIME types
|
|
96
|
+
* @returns A comma-separated string of file extensions with leading dots (e.g., '.jpg, .png, .pdf')
|
|
97
|
+
* or an empty string if no valid extensions are found or accept is undefined
|
|
98
|
+
* @example
|
|
99
|
+
* // Returns '.jpeg, .png, .gif, .webp, .jpg'
|
|
100
|
+
* getFileExtensionsFromAcceptedTypes('images')
|
|
101
|
+
*
|
|
102
|
+
* // Returns '.jpg, .png, .pdf'
|
|
103
|
+
* getFileExtensionsFromAcceptedTypes(['.jpg', 'image/png', 'application/pdf'])
|
|
104
|
+
*/
|
|
105
|
+
const getFileExtensionsFromAcceptedTypes = (accept) => {
|
|
106
|
+
if (!accept) return "";
|
|
107
|
+
if (typeof accept === "string") return ACCEPTED_MIME_TYPES[accept].map(getMimeTypeExtension).join(", ");
|
|
108
|
+
return accept.filter(Boolean).map((type) => type.startsWith(".") ? type : getMimeTypeExtension(type)).filter((ext) => ext.length > 1).join(", ");
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/FileUpload/utils/getFilePluralizationText.ts
|
|
112
|
+
const getBaseText = (accept) => {
|
|
113
|
+
if (accept === "images") return "image";
|
|
114
|
+
if (Array.isArray(accept)) return accept.every((type) => type.startsWith("image/")) ? "image" : "file";
|
|
115
|
+
return "file";
|
|
116
|
+
};
|
|
117
|
+
const pluralize = (count, word, hideCount, capitalizeWord) => {
|
|
118
|
+
const text = `${word}${count === 1 ? "" : "s"}`;
|
|
119
|
+
const finalText = capitalizeWord ? capitalize(text) : text;
|
|
120
|
+
return hideCount ? finalText : `${count} ${finalText}`;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Generates a formatted text string for file type descriptions with proper pluralization and capitalization
|
|
124
|
+
* @param props Configuration object for text formatting
|
|
125
|
+
* @param props.accept - Optional file type(s) to determine if text should say "file" or "image"
|
|
126
|
+
* @param props.capitalize - Optional flag to capitalize the first letter of the output
|
|
127
|
+
* @param props.count - Optional number to determine pluralization (e.g., "1 file" vs "2 files")
|
|
128
|
+
* @param props.hideCount - Optional flag to exclude the count from the output (e.g., "files" instead of "2 files")
|
|
129
|
+
* @returns Formatted string describing file(s) or image(s)
|
|
130
|
+
* @example
|
|
131
|
+
* // Returns "2 files"
|
|
132
|
+
* getFilePluralizationText({ count: 2 })
|
|
133
|
+
*
|
|
134
|
+
* // Returns "1 image"
|
|
135
|
+
* getFilePluralizationText({ accept: 'images', count: 1 })
|
|
136
|
+
*
|
|
137
|
+
* // Returns "Files"
|
|
138
|
+
* getFilePluralizationText({ capitalize: true, hideCount: true })
|
|
139
|
+
*
|
|
140
|
+
* // Returns "Image"
|
|
141
|
+
* getFilePluralizationText({ accept: 'images', capitalize: true })
|
|
142
|
+
*/
|
|
143
|
+
const getFilePluralizationText = ({ accept, capitalize: capitalizeWord, count, hideCount } = {}) => {
|
|
144
|
+
const baseText = getBaseText(accept);
|
|
145
|
+
if (count === void 0) {
|
|
146
|
+
if (capitalizeWord) return capitalize(baseText);
|
|
147
|
+
return baseText;
|
|
148
|
+
}
|
|
149
|
+
return pluralize(count, baseText, hideCount, capitalizeWord);
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/FileUpload/utils/createMessageContext.ts
|
|
153
|
+
/**
|
|
154
|
+
* Creates a base message context with properties common to both drag and drop events
|
|
155
|
+
*/
|
|
156
|
+
const createBaseMessageContext = ({ accept, code, count, formattedMaxSize, maxFiles, maxSize }) => {
|
|
157
|
+
const acceptedFileExtensions = getFileExtensionsFromAcceptedTypes(accept);
|
|
158
|
+
const filePluralizationText = getFilePluralizationText({
|
|
159
|
+
accept,
|
|
160
|
+
count,
|
|
161
|
+
hideCount: true
|
|
162
|
+
});
|
|
163
|
+
const maxFilesPluralizationText = getFilePluralizationText({
|
|
164
|
+
accept,
|
|
165
|
+
count: maxFiles,
|
|
166
|
+
hideCount: true
|
|
167
|
+
});
|
|
168
|
+
return {
|
|
169
|
+
acceptedFileExtensions,
|
|
170
|
+
errorCode: code,
|
|
171
|
+
...count !== void 0 && { fileCount: count },
|
|
172
|
+
filePluralizationText,
|
|
173
|
+
formattedMaxSize,
|
|
174
|
+
maxFiles,
|
|
175
|
+
maxFilesPluralizationText,
|
|
176
|
+
maxSizeBytes: maxSize
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Creates a message context for drag events
|
|
181
|
+
*/
|
|
182
|
+
const createDragMessageContext = ({ accept, code, count, formattedMaxSize, items, maxFiles, maxSize }) => {
|
|
183
|
+
return {
|
|
184
|
+
...createBaseMessageContext({
|
|
185
|
+
accept,
|
|
186
|
+
code,
|
|
187
|
+
count,
|
|
188
|
+
formattedMaxSize,
|
|
189
|
+
maxFiles,
|
|
190
|
+
maxSize
|
|
191
|
+
}),
|
|
192
|
+
...items && { draggedItems: items },
|
|
193
|
+
eventType: "drag"
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Creates a message context for drop events
|
|
198
|
+
*/
|
|
199
|
+
const createDropMessageContext = ({ accept, code, count, files, formattedMaxSize, maxFiles, maxSize }) => {
|
|
200
|
+
const baseContext = createBaseMessageContext({
|
|
201
|
+
accept,
|
|
202
|
+
code,
|
|
203
|
+
count,
|
|
204
|
+
formattedMaxSize,
|
|
205
|
+
maxFiles,
|
|
206
|
+
maxSize
|
|
207
|
+
});
|
|
208
|
+
const rejectedFileList = files?.map((f) => f.name).join(", ") ?? "";
|
|
209
|
+
return {
|
|
210
|
+
...baseContext,
|
|
211
|
+
eventType: "drop",
|
|
212
|
+
rejectedFileList,
|
|
213
|
+
...files && { rejectedFiles: files }
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Unified function to create the appropriate message context based on the message type
|
|
218
|
+
*
|
|
219
|
+
* @param params Common parameters for both context types
|
|
220
|
+
* @param params.messageType The type of message context to create ('drag' or 'drop')
|
|
221
|
+
* @param params.dragItems Optional DataTransferItemList for drag events
|
|
222
|
+
* @param params.dropFiles Optional File[] for drop events (only newly dropped files can be rejected)
|
|
223
|
+
* @returns The appropriate message context based on the message type
|
|
224
|
+
*/
|
|
225
|
+
const createMessageContext = ({ accept, code, count, dragItems, dropFiles, formattedMaxSize, maxFiles, maxSize, messageType = "drop" }) => {
|
|
226
|
+
const baseParams = {
|
|
227
|
+
accept,
|
|
228
|
+
code,
|
|
229
|
+
count,
|
|
230
|
+
formattedMaxSize,
|
|
231
|
+
maxFiles,
|
|
232
|
+
maxSize
|
|
233
|
+
};
|
|
234
|
+
if (messageType === "drag") return createDragMessageContext({
|
|
235
|
+
...baseParams,
|
|
236
|
+
items: dragItems
|
|
237
|
+
});
|
|
238
|
+
return createDropMessageContext({
|
|
239
|
+
...baseParams,
|
|
240
|
+
files: dropFiles
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/FileUpload/utils/messageUtils.ts
|
|
245
|
+
/**
|
|
246
|
+
* Processes any type of message into a string
|
|
247
|
+
* @param message - A string, function that returns a string, or undefined
|
|
248
|
+
* @param context - The context object to pass to the message function (optional)
|
|
249
|
+
* @param defaultMessage - Optional fallback message used when the primary message is undefined
|
|
250
|
+
* or when the primary message is a function but context is undefined
|
|
251
|
+
* @returns A string message. If a function message is provided, its result is converted to a string.
|
|
252
|
+
* Returns an empty string if no valid message can be resolved.
|
|
253
|
+
*/
|
|
254
|
+
const resolveContextAwareMessage = (message, context, defaultMessage) => {
|
|
255
|
+
if (!message) {
|
|
256
|
+
if (defaultMessage) return resolveContextAwareMessage(defaultMessage, context);
|
|
257
|
+
return "";
|
|
258
|
+
}
|
|
259
|
+
if (typeof message === "function") {
|
|
260
|
+
if (context) return String(message(context));
|
|
261
|
+
if (defaultMessage) return resolveContextAwareMessage(defaultMessage, context);
|
|
262
|
+
return "";
|
|
263
|
+
}
|
|
264
|
+
return message;
|
|
265
|
+
};
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/FileUpload/hooks/validation/useValidationMessages.ts
|
|
268
|
+
const getMessageSet = (messages, isSingleFileUpload, strictValidation) => {
|
|
269
|
+
if (isSingleFileUpload) return messages.singleFileUpload;
|
|
270
|
+
if (strictValidation) return messages.strictUpload;
|
|
271
|
+
return messages.partialUpload;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Hook that manages validation message generation for file uploads
|
|
275
|
+
* @param props Configuration object
|
|
276
|
+
* @param props.accept - Optional array of accepted file types or CommonFileTypes
|
|
277
|
+
* @param props.maxFiles - Optional maximum number of files allowed
|
|
278
|
+
* @param props.maxSize - Optional maximum file size in bytes
|
|
279
|
+
* @param props.strictValidation - Optional flag for strict validation mode
|
|
280
|
+
* @returns Object containing:
|
|
281
|
+
* - formattedMaxSize: Human-readable maximum file size (e.g., "5 MB")
|
|
282
|
+
* - getValidationMessage: Function to get validation messages based on error codes and context
|
|
283
|
+
* @remarks
|
|
284
|
+
* - Handles both drag and drop validation messages
|
|
285
|
+
* - Supports custom error messages
|
|
286
|
+
* - Formats file size limits in human-readable format
|
|
287
|
+
* - Handles pluralization for file count messages
|
|
288
|
+
*/
|
|
289
|
+
const useValidationMessages = ({ accept, maxFiles, maxSize, strictValidation }) => {
|
|
290
|
+
const formattedMaxSize = maxSize ? formatFileSize(maxSize) : void 0;
|
|
291
|
+
const isSingleFileUpload = maxFiles === 1;
|
|
292
|
+
return {
|
|
293
|
+
formattedMaxSize,
|
|
294
|
+
getValidationMessage: useCallback(({ code, count = 1, message: customMessage, messageType = "drop" }) => {
|
|
295
|
+
const messages = messageType === "drag" ? DRAG_MESSAGES : DROP_MESSAGES;
|
|
296
|
+
const messageContext = createMessageContext({
|
|
297
|
+
accept,
|
|
298
|
+
code,
|
|
299
|
+
count,
|
|
300
|
+
formattedMaxSize,
|
|
301
|
+
maxFiles,
|
|
302
|
+
maxSize,
|
|
303
|
+
messageType
|
|
304
|
+
});
|
|
305
|
+
if (customMessage) return resolveContextAwareMessage(customMessage, messageContext);
|
|
306
|
+
const message = getMessageSet(messages, isSingleFileUpload, strictValidation)[code];
|
|
307
|
+
return resolveContextAwareMessage(message, messageContext, messages.default);
|
|
308
|
+
}, [
|
|
309
|
+
formattedMaxSize,
|
|
310
|
+
isSingleFileUpload,
|
|
311
|
+
maxFiles,
|
|
312
|
+
accept,
|
|
313
|
+
strictValidation,
|
|
314
|
+
maxSize
|
|
315
|
+
])
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region src/FileUpload/hooks/validation/useValidationState.ts
|
|
320
|
+
/**
|
|
321
|
+
* Hook that manages validation state for file upload operations
|
|
322
|
+
* @param initialError - Optional initial validation error to display
|
|
323
|
+
* @param getValidationMessage - Function to get validation messages
|
|
324
|
+
* @returns Object containing:
|
|
325
|
+
* - dragValidationErrors: Validation errors during drag operations
|
|
326
|
+
* - dropValidationErrors: Validation errors during drop operations
|
|
327
|
+
* - fileRejections: Rejected files
|
|
328
|
+
* - setDragValidation: Update drag validation state
|
|
329
|
+
* - setDropValidation: Update drop validation state
|
|
330
|
+
* - clearDragValidation: Reset drag validation state
|
|
331
|
+
* - clearDropValidation: Reset drop validation state
|
|
332
|
+
* - clearAllValidation: Reset both validation states
|
|
333
|
+
* @remarks
|
|
334
|
+
* - Maintains separate validation states for drag and drop operations
|
|
335
|
+
* - Provides methods to update and clear validation states
|
|
336
|
+
* - Supports initial error state for immediate feedback
|
|
337
|
+
* - Uses memoized clear functions to prevent unnecessary rerenders
|
|
338
|
+
* - Handles message processing internally
|
|
339
|
+
*/
|
|
340
|
+
const useValidationState = (initialError, getValidationMessage) => {
|
|
341
|
+
const [dragValidationError, setDragValidationErrorState] = useState(null);
|
|
342
|
+
const [dropValidationErrors, setDropValidationErrorsState] = useState(initialError ? [initialError] : []);
|
|
343
|
+
const [fileRejections, setFileRejections] = useState([]);
|
|
344
|
+
const clearDragValidation = useCallback(() => {
|
|
345
|
+
setDragValidationErrorState(null);
|
|
346
|
+
}, []);
|
|
347
|
+
const clearDropValidation = useCallback(() => {
|
|
348
|
+
setDropValidationErrorsState([]);
|
|
349
|
+
}, []);
|
|
350
|
+
const clearAllValidation = useCallback(() => {
|
|
351
|
+
clearDragValidation();
|
|
352
|
+
clearDropValidation();
|
|
353
|
+
setFileRejections([]);
|
|
354
|
+
}, [clearDragValidation, clearDropValidation]);
|
|
355
|
+
const setDragValidationError = useCallback((errorOrCode, count) => {
|
|
356
|
+
if (errorOrCode === null) {
|
|
357
|
+
setDragValidationErrorState(null);
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
if (typeof errorOrCode === "string") if (getValidationMessage) {
|
|
361
|
+
const message = getValidationMessage({
|
|
362
|
+
code: errorOrCode,
|
|
363
|
+
count,
|
|
364
|
+
messageType: "drag"
|
|
365
|
+
});
|
|
366
|
+
setDragValidationErrorState({
|
|
367
|
+
code: errorOrCode,
|
|
368
|
+
message
|
|
369
|
+
});
|
|
370
|
+
} else setDragValidationErrorState({
|
|
371
|
+
code: errorOrCode,
|
|
372
|
+
message: `Error: ${errorOrCode}`
|
|
373
|
+
});
|
|
374
|
+
else setDragValidationErrorState(errorOrCode);
|
|
375
|
+
}, [getValidationMessage]);
|
|
376
|
+
const setDropValidationErrors = useCallback((errorsOrCodes, count) => {
|
|
377
|
+
if (!Array.isArray(errorsOrCodes)) {
|
|
378
|
+
const errorOrCode = errorsOrCodes;
|
|
379
|
+
if (typeof errorOrCode === "string") if (getValidationMessage) {
|
|
380
|
+
const message = getValidationMessage({
|
|
381
|
+
code: errorOrCode,
|
|
382
|
+
count,
|
|
383
|
+
messageType: "drop"
|
|
384
|
+
});
|
|
385
|
+
setDropValidationErrorsState([{
|
|
386
|
+
code: errorOrCode,
|
|
387
|
+
message
|
|
388
|
+
}]);
|
|
389
|
+
} else setDropValidationErrorsState([{
|
|
390
|
+
code: errorOrCode,
|
|
391
|
+
message: `Error: ${errorOrCode}`
|
|
392
|
+
}]);
|
|
393
|
+
else setDropValidationErrorsState([errorOrCode]);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
const processedErrors = errorsOrCodes.map((errorOrCode) => {
|
|
397
|
+
if (typeof errorOrCode === "string") {
|
|
398
|
+
if (getValidationMessage) return {
|
|
399
|
+
code: errorOrCode,
|
|
400
|
+
message: getValidationMessage({
|
|
401
|
+
code: errorOrCode,
|
|
402
|
+
count,
|
|
403
|
+
messageType: "drop"
|
|
404
|
+
})
|
|
405
|
+
};
|
|
406
|
+
return {
|
|
407
|
+
code: errorOrCode,
|
|
408
|
+
message: `Error: ${errorOrCode}`
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
return errorOrCode;
|
|
412
|
+
});
|
|
413
|
+
setDropValidationErrorsState(processedErrors);
|
|
414
|
+
}, [getValidationMessage]);
|
|
415
|
+
useEffect(() => {
|
|
416
|
+
setDropValidationErrorsState(initialError ? [initialError] : []);
|
|
417
|
+
}, [initialError]);
|
|
418
|
+
return {
|
|
419
|
+
clearAllValidation,
|
|
420
|
+
clearDragValidation,
|
|
421
|
+
clearDropValidation,
|
|
422
|
+
dragValidationError,
|
|
423
|
+
dropValidationErrors,
|
|
424
|
+
fileRejections,
|
|
425
|
+
setDragValidationError,
|
|
426
|
+
setDropValidationErrors,
|
|
427
|
+
setFileRejections
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region src/FileUpload/hooks/validation/useFileValidationLogic.ts
|
|
432
|
+
/**
|
|
433
|
+
* Hook that implements core file validation logic and state management
|
|
434
|
+
*
|
|
435
|
+
* This hook serves as the foundation for file validation throughout the upload system.
|
|
436
|
+
* It combines validation state management with validation logic functions, allowing
|
|
437
|
+
* for comprehensive file validation with customizable rules.
|
|
438
|
+
*
|
|
439
|
+
* @param config - Optional validation configuration object containing:
|
|
440
|
+
* - accept: Optional array of accepted file types or preset categories
|
|
441
|
+
* - error: Custom error object to override default validation errors
|
|
442
|
+
* - maxFiles: Maximum number of files allowed (1 for single file upload)
|
|
443
|
+
* - maxSize: Maximum file size in bytes
|
|
444
|
+
* - strictValidation: When true, all files are rejected if any fail validation
|
|
445
|
+
* - validator: Custom validation function for additional rules
|
|
446
|
+
*
|
|
447
|
+
* @returns An object containing:
|
|
448
|
+
* - Validation state (dragValidationError, dropValidationErrors)
|
|
449
|
+
* - State management methods (clearDragValidation, clearDropValidation, etc.)
|
|
450
|
+
* - formattedMaxSize: Human-readable size limit (e.g., "5 MB")
|
|
451
|
+
* - getValidationMessage: Function to generate context-aware error messages
|
|
452
|
+
* - Validation methods:
|
|
453
|
+
* - validateFileType: Checks if a file type is allowed
|
|
454
|
+
* - validateFileSize: Checks if a file is within size limits
|
|
455
|
+
* - validateFileCount: Checks if adding files would exceed limit
|
|
456
|
+
* - validateCustomRules: Applies custom validation function if provided
|
|
457
|
+
*/
|
|
458
|
+
const useFileValidationLogic = (config) => {
|
|
459
|
+
const { accept, error, maxFiles, maxSize, strictValidation, validator } = config ?? {};
|
|
460
|
+
const { formattedMaxSize, getValidationMessage } = useValidationMessages({
|
|
461
|
+
...config,
|
|
462
|
+
accept
|
|
463
|
+
});
|
|
464
|
+
const validationState = useValidationState(error, getValidationMessage);
|
|
465
|
+
const validateFileType = useCallback((fileType, mimeTypes) => {
|
|
466
|
+
if (!mimeTypes) return true;
|
|
467
|
+
return Object.keys(mimeTypes).includes(fileType);
|
|
468
|
+
}, []);
|
|
469
|
+
const validateFileSize = useCallback((fileSize) => {
|
|
470
|
+
if (!maxSize) return true;
|
|
471
|
+
return fileSize <= maxSize;
|
|
472
|
+
}, [maxSize]);
|
|
473
|
+
const validateFileCount = useCallback((currentCount, newCount) => {
|
|
474
|
+
if (!maxFiles) return true;
|
|
475
|
+
return currentCount + newCount <= maxFiles;
|
|
476
|
+
}, [maxFiles]);
|
|
477
|
+
const validateCustomRules = useCallback((file) => {
|
|
478
|
+
if (!validator) return null;
|
|
479
|
+
const validationResult = validator(file);
|
|
480
|
+
if (!validationResult || validationResult.length === 0) return null;
|
|
481
|
+
return validationResult;
|
|
482
|
+
}, [validator]);
|
|
483
|
+
return {
|
|
484
|
+
...validationState,
|
|
485
|
+
formattedMaxSize,
|
|
486
|
+
getValidationMessage,
|
|
487
|
+
maxFiles,
|
|
488
|
+
maxSize,
|
|
489
|
+
strictValidation,
|
|
490
|
+
validateCustomRules,
|
|
491
|
+
validateFileCount,
|
|
492
|
+
validateFileSize,
|
|
493
|
+
validateFileType
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region src/FileUpload/providers/UploadValidationProvider.tsx
|
|
498
|
+
const UploadValidationContext = createContext(void 0);
|
|
499
|
+
const UploadValidationProvider = ({ accept, children, error, maxFiles, maxSize, strictValidation, validator }) => {
|
|
500
|
+
const validation = useFileValidationLogic({
|
|
501
|
+
accept,
|
|
502
|
+
error,
|
|
503
|
+
maxFiles,
|
|
504
|
+
maxSize,
|
|
505
|
+
strictValidation,
|
|
506
|
+
validator
|
|
507
|
+
});
|
|
508
|
+
const [fileRejections, setFileRejections] = useState([]);
|
|
509
|
+
const value = useMemo(() => ({
|
|
510
|
+
...validation,
|
|
511
|
+
accept,
|
|
512
|
+
fileRejections,
|
|
513
|
+
maxFiles,
|
|
514
|
+
maxSize,
|
|
515
|
+
setFileRejections,
|
|
516
|
+
strictValidation
|
|
517
|
+
}), [
|
|
518
|
+
validation,
|
|
519
|
+
accept,
|
|
520
|
+
maxFiles,
|
|
521
|
+
maxSize,
|
|
522
|
+
strictValidation,
|
|
523
|
+
fileRejections
|
|
524
|
+
]);
|
|
525
|
+
return /* @__PURE__ */ jsx(UploadValidationContext.Provider, {
|
|
526
|
+
value,
|
|
527
|
+
children
|
|
528
|
+
});
|
|
529
|
+
};
|
|
530
|
+
UploadValidationProvider.displayName = "UploadValidationProvider";
|
|
531
|
+
/**
|
|
532
|
+
* Hook to access the upload validation context
|
|
533
|
+
*
|
|
534
|
+
* Provides access to validation state, error handling, and validation methods
|
|
535
|
+
* for file upload components.
|
|
536
|
+
*
|
|
537
|
+
* @returns The UploadValidationContextType object with validation state and methods
|
|
538
|
+
* @throws Error if used outside of an UploadValidationProvider
|
|
539
|
+
*
|
|
540
|
+
* @example
|
|
541
|
+
* ```tsx
|
|
542
|
+
* const validation = useValidationContext();
|
|
543
|
+
*
|
|
544
|
+
* // Validate file type
|
|
545
|
+
* const isValidType = validation.validateFileType(file.type);
|
|
546
|
+
*
|
|
547
|
+
* // Set validation error
|
|
548
|
+
* if (!isValidType) {
|
|
549
|
+
* validation.setDragValidationError({
|
|
550
|
+
* code: 'invalid-file-type',
|
|
551
|
+
* message: 'File type not supported'
|
|
552
|
+
* });
|
|
553
|
+
* }
|
|
554
|
+
* ```
|
|
555
|
+
*/
|
|
556
|
+
const useValidationContext = () => {
|
|
557
|
+
const context = useContext(UploadValidationContext);
|
|
558
|
+
if (!context) throw new Error("useValidationContext must be used within UploadValidationProvider");
|
|
559
|
+
return context;
|
|
560
|
+
};
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region src/FileUpload/hooks/validation/useFileValidation.ts
|
|
563
|
+
/**
|
|
564
|
+
* Hook that provides file validation functionality by either using a shared validation context
|
|
565
|
+
* or falling back to local validation logic
|
|
566
|
+
* @param config - Optional validation configuration for file constraints (size, type, etc.)
|
|
567
|
+
* @returns Validation context containing validation state and useful validation methods
|
|
568
|
+
* @remarks
|
|
569
|
+
* - If used within an UploadValidationProvider, returns the shared validation context
|
|
570
|
+
* - Otherwise, creates a local validation context using useFileValidationLogic
|
|
571
|
+
* - This allows components to work with or without a shared validation context
|
|
572
|
+
*/
|
|
573
|
+
const useFileValidation = (config) => {
|
|
574
|
+
const validationContext = useContext(UploadValidationContext);
|
|
575
|
+
const localValidation = useFileValidationLogic(config);
|
|
576
|
+
return validationContext ?? localValidation;
|
|
577
|
+
};
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region src/FileUpload/hooks/filePreview/useImageFilePreviewUrl.ts
|
|
580
|
+
/**
|
|
581
|
+
* Hook to manage file preview URLs with proper cleanup
|
|
582
|
+
* @param file - File to preview
|
|
583
|
+
* @returns Preview URL for image files, undefined for non-image files
|
|
584
|
+
*/
|
|
585
|
+
const useImageFilePreviewUrl = (file) => {
|
|
586
|
+
const [previewUrl, setPreviewUrl] = useState();
|
|
587
|
+
useEffect(() => {
|
|
588
|
+
if (!file) return;
|
|
589
|
+
if ("url" in file && file.url) {
|
|
590
|
+
setPreviewUrl(file.url);
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
const fileObj = file;
|
|
594
|
+
if (!fileObj.type.startsWith("image/")) return;
|
|
595
|
+
if (previewUrl) URL.revokeObjectURL(previewUrl);
|
|
596
|
+
const url = URL.createObjectURL(fileObj);
|
|
597
|
+
setPreviewUrl(url);
|
|
598
|
+
return () => {
|
|
599
|
+
if (url) URL.revokeObjectURL(url);
|
|
600
|
+
};
|
|
601
|
+
}, [file]);
|
|
602
|
+
return previewUrl;
|
|
603
|
+
};
|
|
604
|
+
//#endregion
|
|
605
|
+
export { useValidationContext as a, getFilePluralizationText as c, builtInErrorCodes as d, UploadValidationProvider as i, getFileExtensionsFromAcceptedTypes as l, useFileValidation as n, resolveContextAwareMessage as o, UploadValidationContext as r, createMessageContext as s, useImageFilePreviewUrl as t, ACCEPTED_MIME_TYPES as u };
|
|
606
|
+
|
|
607
|
+
//# sourceMappingURL=hooks-D4sJ62Xl.mjs.map
|