@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,13 @@
|
|
|
1
|
+
import { v as RemoteFile } from "../../index-BAR19_eg.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/FileUpload/testUtils/testUtils.d.ts
|
|
4
|
+
declare const getRandomImage: () => string;
|
|
5
|
+
declare const createRemoteFileFromUrl: (url: string, index?: number) => RemoteFile;
|
|
6
|
+
declare const createTestFile: (name: string, type: string, sizeInBytes?: number) => File;
|
|
7
|
+
declare const shuffleArray: <T>(array: T[]) => T[];
|
|
8
|
+
declare const createMockFiles: (count: number) => File[];
|
|
9
|
+
declare const createMockRemoteFileImages: (count: number) => RemoteFile[];
|
|
10
|
+
declare const createMixedFilesAndImageUrls: (fileCount: number, imageUrlCount: number) => (File | RemoteFile)[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createMixedFilesAndImageUrls, createMockFiles, createMockRemoteFileImages, createRemoteFileFromUrl, createTestFile, getRandomImage, shuffleArray };
|
|
13
|
+
//# sourceMappingURL=testUtils.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testUtils.d.cts","names":[],"sources":["../../../src/FileUpload/testUtils/testUtils.ts"],"mappings":";;;cAiCa,cAAA;AAAA,cAMA,uBAAA,GAA2B,GAAA,UAAa,KAAA,cAAiB,UAsBrE;AAAA,cAEY,cAAA,GAAkB,IAAA,UAAc,IAAA,UAAc,WAAA,cAAqB,IAiB/E;AAAA,cAGY,YAAA,MAAmB,KAAA,EAAO,CAAA,OAAM,CAAC;AAAA,cAUjC,eAAA,GAAmB,KAAA,aAAgB,IAAI;AAAA,cAMvC,0BAAA,GAA8B,KAAA,aAAgB,UAAU;AAAA,cAOxD,4BAAA,GAAgC,SAAA,UAAmB,aAAA,cAAqB,IAAA,GAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { v as RemoteFile } from "../../index-BAR19_eg.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/FileUpload/testUtils/testUtils.d.ts
|
|
4
|
+
declare const getRandomImage: () => string;
|
|
5
|
+
declare const createRemoteFileFromUrl: (url: string, index?: number) => RemoteFile;
|
|
6
|
+
declare const createTestFile: (name: string, type: string, sizeInBytes?: number) => File;
|
|
7
|
+
declare const shuffleArray: <T>(array: T[]) => T[];
|
|
8
|
+
declare const createMockFiles: (count: number) => File[];
|
|
9
|
+
declare const createMockRemoteFileImages: (count: number) => RemoteFile[];
|
|
10
|
+
declare const createMixedFilesAndImageUrls: (fileCount: number, imageUrlCount: number) => (File | RemoteFile)[];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createMixedFilesAndImageUrls, createMockFiles, createMockRemoteFileImages, createRemoteFileFromUrl, createTestFile, getRandomImage, shuffleArray };
|
|
13
|
+
//# sourceMappingURL=testUtils.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testUtils.d.mts","names":[],"sources":["../../../src/FileUpload/testUtils/testUtils.ts"],"mappings":";;;cAiCa,cAAA;AAAA,cAMA,uBAAA,GAA2B,GAAA,UAAa,KAAA,cAAiB,UAsBrE;AAAA,cAEY,cAAA,GAAkB,IAAA,UAAc,IAAA,UAAc,WAAA,cAAqB,IAiB/E;AAAA,cAGY,YAAA,MAAmB,KAAA,EAAO,CAAA,OAAM,CAAC;AAAA,cAUjC,eAAA,GAAmB,KAAA,aAAgB,IAAI;AAAA,cAMvC,0BAAA,GAA8B,KAAA,aAAgB,UAAU;AAAA,cAOxD,4BAAA,GAAgC,SAAA,UAAmB,aAAA,cAAqB,IAAA,GAAA,UAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
//#region src/FileUpload/testUtils/testUtils.ts
|
|
3
|
+
const availableImages = [
|
|
4
|
+
"/card/arne_wahl.jpg",
|
|
5
|
+
"/card/arne_wahl_2.png",
|
|
6
|
+
"/card/art_deco.jpg",
|
|
7
|
+
"/card/art_deco_2.png",
|
|
8
|
+
"/card/donghia.jpg",
|
|
9
|
+
"/card/donghia_2.png",
|
|
10
|
+
"/card/maximilian.jpg",
|
|
11
|
+
"/card/maximilian_2.png",
|
|
12
|
+
"/card/milo.jpg",
|
|
13
|
+
"/card/milo_2.png",
|
|
14
|
+
"/card/modern.png",
|
|
15
|
+
"/card/modern_2.png",
|
|
16
|
+
"/card/scalamandre.jpg",
|
|
17
|
+
"/card/scalamandre_2.png",
|
|
18
|
+
"/card/scandinavian.jpg",
|
|
19
|
+
"/card/scandinavian_2.png",
|
|
20
|
+
"/card/schriever.jpg",
|
|
21
|
+
"/card/schriever_2.png",
|
|
22
|
+
"/card/walnut_full.jpg",
|
|
23
|
+
"/card/walnut_full_2.png",
|
|
24
|
+
"/contrast-test-images/(neutral)-train-on-bridge.jpg",
|
|
25
|
+
"/contrast-test-images/ford-motor.webp",
|
|
26
|
+
"/contrast-test-images/(colorful)-flowers.jpg",
|
|
27
|
+
"/contrast-test-images/(dark)-deep-blue.jpg"
|
|
28
|
+
];
|
|
29
|
+
const getRandomImage = () => {
|
|
30
|
+
const randomIndex = Math.floor(Math.random() * availableImages.length);
|
|
31
|
+
return availableImages[randomIndex];
|
|
32
|
+
};
|
|
33
|
+
const createRemoteFileFromUrl = (url, index) => {
|
|
34
|
+
const urlPart = url.split("/").pop();
|
|
35
|
+
const filename = urlPart && urlPart.length > 0 ? urlPart : `image-${index ?? 0}`;
|
|
36
|
+
const extension = filename.split(".").pop()?.toLowerCase();
|
|
37
|
+
let type = "image/jpeg";
|
|
38
|
+
if (extension === "png") type = "image/png";
|
|
39
|
+
if (extension === "webp") type = "image/webp";
|
|
40
|
+
if (extension === "gif") type = "image/gif";
|
|
41
|
+
return {
|
|
42
|
+
name: filename,
|
|
43
|
+
type,
|
|
44
|
+
url
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const createTestFile = (name, type, sizeInBytes = 1024) => {
|
|
48
|
+
const content = Array(Math.ceil(sizeInBytes / 10)).fill("test content").join("");
|
|
49
|
+
const file = new File([content], name, {
|
|
50
|
+
lastModified: Date.now(),
|
|
51
|
+
type
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(file, "size", { value: sizeInBytes });
|
|
54
|
+
return file;
|
|
55
|
+
};
|
|
56
|
+
const shuffleArray = (array) => {
|
|
57
|
+
const shuffled = [...array];
|
|
58
|
+
for (let i = shuffled.length - 1; i > 0; i--) {
|
|
59
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
60
|
+
[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]];
|
|
61
|
+
}
|
|
62
|
+
return shuffled;
|
|
63
|
+
};
|
|
64
|
+
const createMockFiles = (count) => {
|
|
65
|
+
return Array.from({ length: count }, (_, index) => createTestFile(`file-${index}.pdf`, "application/pdf", 1024 * (index + 1)));
|
|
66
|
+
};
|
|
67
|
+
const createMockRemoteFileImages = (count) => {
|
|
68
|
+
return Array.from({ length: count }, (_, index) => {
|
|
69
|
+
const randomUrl = getRandomImage();
|
|
70
|
+
return createRemoteFileFromUrl(randomUrl, index);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
const createMixedFilesAndImageUrls = (fileCount, imageUrlCount) => {
|
|
74
|
+
const files = createMockFiles(fileCount);
|
|
75
|
+
const imageUrls = createMockRemoteFileImages(imageUrlCount);
|
|
76
|
+
return [...files, ...imageUrls];
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { createMixedFilesAndImageUrls, createMockFiles, createMockRemoteFileImages, createRemoteFileFromUrl, createTestFile, getRandomImage, shuffleArray };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=testUtils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testUtils.mjs","names":[],"sources":["../../../src/FileUpload/testUtils/testUtils.ts"],"sourcesContent":["import { RemoteFile } from '../types';\n\n// Array of all available image files in the card and contrast-test-images directories\nconst availableImages = [\n // Card images\n '/card/arne_wahl.jpg',\n '/card/arne_wahl_2.png',\n '/card/art_deco.jpg',\n '/card/art_deco_2.png',\n '/card/donghia.jpg',\n '/card/donghia_2.png',\n '/card/maximilian.jpg',\n '/card/maximilian_2.png',\n '/card/milo.jpg',\n '/card/milo_2.png',\n '/card/modern.png',\n '/card/modern_2.png',\n '/card/scalamandre.jpg',\n '/card/scalamandre_2.png',\n '/card/scandinavian.jpg',\n '/card/scandinavian_2.png',\n '/card/schriever.jpg',\n '/card/schriever_2.png',\n '/card/walnut_full.jpg',\n '/card/walnut_full_2.png',\n // Contrast test images\n '/contrast-test-images/(neutral)-train-on-bridge.jpg',\n '/contrast-test-images/ford-motor.webp',\n '/contrast-test-images/(colorful)-flowers.jpg',\n '/contrast-test-images/(dark)-deep-blue.jpg',\n];\n\n// Function to get a random image from the available images\nexport const getRandomImage = () => {\n const randomIndex = Math.floor(Math.random() * availableImages.length);\n return availableImages[randomIndex];\n};\n\n// Function to create a RemoteFile object from an image URL\nexport const createRemoteFileFromUrl = (url: string, index?: number): RemoteFile => {\n const urlPart = url.split('/').pop();\n const filename = urlPart && urlPart.length > 0 ? urlPart : `image-${index ?? 0}`;\n const extension = filename.split('.').pop()?.toLowerCase();\n\n // Determine MIME type based on extension\n let type = 'image/jpeg'; // default\n if (extension === 'png') {\n type = 'image/png';\n }\n if (extension === 'webp') {\n type = 'image/webp';\n }\n if (extension === 'gif') {\n type = 'image/gif';\n }\n\n return {\n name: filename,\n type,\n url,\n };\n};\n\nexport const createTestFile = (name: string, type: string, sizeInBytes = 1024): File => {\n // Create content with the specified size\n const content = Array(Math.ceil(sizeInBytes / 10))\n .fill('test content')\n .join('');\n\n // Create the File object with basic properties\n const file = new File([content], name, {\n lastModified: Date.now(),\n type,\n });\n\n // Override the size property to match the requested size\n // This is needed because the actual content might not match exactly\n Object.defineProperty(file, 'size', { value: sizeInBytes });\n\n return file;\n};\n\n// Shuffle an array using Fisher-Yates algorithm\nexport const shuffleArray = <T>(array: T[]): T[] => {\n const shuffled = [...array];\n for (let i = shuffled.length - 1; i > 0; i--) {\n const j = Math.floor(Math.random() * (i + 1));\n [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]];\n }\n return shuffled;\n};\n\n// Helper functions to create mock data\nexport const createMockFiles = (count: number): File[] => {\n return Array.from({ length: count }, (_, index) =>\n createTestFile(`file-${index}.pdf`, 'application/pdf', 1024 * (index + 1))\n );\n};\n\nexport const createMockRemoteFileImages = (count: number): RemoteFile[] => {\n return Array.from({ length: count }, (_, index) => {\n const randomUrl = getRandomImage();\n return createRemoteFileFromUrl(randomUrl, index);\n });\n};\n\nexport const createMixedFilesAndImageUrls = (fileCount: number, imageUrlCount: number) => {\n const files = createMockFiles(fileCount);\n const imageUrls = createMockRemoteFileImages(imageUrlCount);\n return [...files, ...imageUrls];\n};\n"],"mappings":";AAGA,MAAM,kBAAkB;CAEpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;AACJ;AAGA,MAAa,uBAAuB;CAChC,MAAM,cAAc,KAAK,MAAM,KAAK,OAAO,IAAI,gBAAgB,MAAM;CACrE,OAAO,gBAAgB;AAC3B;AAGA,MAAa,2BAA2B,KAAa,UAA+B;CAChF,MAAM,UAAU,IAAI,MAAM,GAAG,CAAC,CAAC,IAAI;CACnC,MAAM,WAAW,WAAW,QAAQ,SAAS,IAAI,UAAU,SAAS,SAAS;CAC7E,MAAM,YAAY,SAAS,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,YAAY;CAGzD,IAAI,OAAO;CACX,IAAI,cAAc,OACd,OAAO;CAEX,IAAI,cAAc,QACd,OAAO;CAEX,IAAI,cAAc,OACd,OAAO;CAGX,OAAO;EACH,MAAM;EACN;EACA;CACJ;AACJ;AAEA,MAAa,kBAAkB,MAAc,MAAc,cAAc,SAAe;CAEpF,MAAM,UAAU,MAAM,KAAK,KAAK,cAAc,EAAE,CAAC,CAAC,CAC7C,KAAK,cAAc,CAAC,CACpB,KAAK,EAAE;CAGZ,MAAM,OAAO,IAAI,KAAK,CAAC,OAAO,GAAG,MAAM;EACnC,cAAc,KAAK,IAAI;EACvB;CACJ,CAAC;CAID,OAAO,eAAe,MAAM,QAAQ,EAAE,OAAO,YAAY,CAAC;CAE1D,OAAO;AACX;AAGA,MAAa,gBAAmB,UAAoB;CAChD,MAAM,WAAW,CAAC,GAAG,KAAK;CAC1B,KAAK,IAAI,IAAI,SAAS,SAAS,GAAG,IAAI,GAAG,KAAK;EAC1C,MAAM,IAAI,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,EAAE;EAC5C,CAAC,SAAS,IAAI,SAAS,MAAM,CAAC,SAAS,IAAI,SAAS,EAAE;CAC1D;CACA,OAAO;AACX;AAGA,MAAa,mBAAmB,UAA0B;CACtD,OAAO,MAAM,KAAK,EAAE,QAAQ,MAAM,IAAI,GAAG,UACrC,eAAe,QAAQ,MAAM,OAAO,mBAAmB,QAAQ,QAAQ,EAAE,CAC7E;AACJ;AAEA,MAAa,8BAA8B,UAAgC;CACvE,OAAO,MAAM,KAAK,EAAE,QAAQ,MAAM,IAAI,GAAG,UAAU;EAC/C,MAAM,YAAY,eAAe;EACjC,OAAO,wBAAwB,WAAW,KAAK;CACnD,CAAC;AACL;AAEA,MAAa,gCAAgC,WAAmB,kBAA0B;CACtF,MAAM,QAAQ,gBAAgB,SAAS;CACvC,MAAM,YAAY,2BAA2B,aAAa;CAC1D,OAAO,CAAC,GAAG,OAAO,GAAG,SAAS;AAClC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperties(exports, {
|
|
3
|
+
__esModule: { value: true },
|
|
4
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
5
|
+
});
|
|
6
|
+
//#region src/FileUpload/types/commonTypes.ts
|
|
7
|
+
/**
|
|
8
|
+
* Type guard to check if a context is a drag context
|
|
9
|
+
* Use this before accessing drag-specific properties
|
|
10
|
+
*
|
|
11
|
+
* @param context - The message context to check
|
|
12
|
+
* @returns true if context is a drag context, false otherwise
|
|
13
|
+
*/
|
|
14
|
+
const isDragContext = (context) => {
|
|
15
|
+
return context.eventType === "drag";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Type guard to check if a context is a drop context
|
|
19
|
+
* Use this before accessing drop-specific properties
|
|
20
|
+
*
|
|
21
|
+
* @param context - The message context to check
|
|
22
|
+
* @returns true if context is a drop context, false otherwise
|
|
23
|
+
*/
|
|
24
|
+
const isDropContext = (context) => {
|
|
25
|
+
return context.eventType === "drop";
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.isDragContext = isDragContext;
|
|
29
|
+
exports.isDropContext = isDropContext;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.cjs","names":[],"sources":["../../src/FileUpload/types/commonTypes.ts"],"sourcesContent":["import { type FileRejection as ReactDropzoneFileRejection } from 'react-dropzone';\n\n/**\n * Possible error codes for file validation failures - these are the codes that are used in the validation messages.\n * These are the codes used by React-Dropzone under the hood.\n * @typedef {string} FileErrorCode\n * @property {'file-invalid-type'} - File type not accepted\n * @property {'file-too-large'} - File exceeds size limit\n * @property {'too-many-files'} - Exceeds maximum file count\n * @property {string} CustomError - Custom error message\n */\nexport type FileErrorCode = 'file-invalid-type' | 'file-too-large' | 'too-many-files' | string;\n\nexport type RemoteFile = {\n id?: string;\n name: string;\n type?: string;\n url: string;\n};\n\n// FileResource is used to represent a file or a remote file\nexport type FileResource = File | RemoteFile;\n\n/**\n * Generic type for messages that can be either a string or a function that returns a string based on context\n * This allows for dynamic messages that can incorporate data from the current validation context.\n *\n * @template T - The context type that will be passed to the message function\n * @example\n * // Static message\n * const staticMessage: ContextAwareMessage<DynamicMessageContext> = \"File type not supported\";\n *\n * // Dynamic message that uses context\n * const dynamicMessage: ContextAwareMessage<DynamicMessageContext> =\n * (context) => `File exceeds the ${context.formattedMaxSize} limit`;\n */\nexport type ContextAwareMessage<T> = string | ((context: T) => string) | undefined;\n\n/**\n * Base context with common properties used by all message types\n * Contains the shared information needed to generate validation messages\n * for both drag and drop events.\n *\n * @property acceptedFileExtensions - Comma-separated list of accepted file extensions (e.g., '.jpg, .png')\n * @property errorCode - The validation error code triggering this message\n * @property fileCount - Number of files involved in the validation event\n * @property filePluralizationText - Properly pluralized text for file type (e.g., \"image\" or \"images\")\n * @property formattedMaxSize - Human-readable maximum file size (e.g., \"5 MB\")\n * @property maxFiles - Maximum number of files allowed\n * @property maxFilesPluralizationText - Properly pluralized text for max files (e.g., \"file\" or \"files\")\n * @property maxSizeBytes - Maximum file size in bytes\n */\nexport type BaseDynamicMessageContext = {\n acceptedFileExtensions?: string;\n errorCode: string;\n fileCount?: number;\n filePluralizationText?: string;\n formattedMaxSize?: string;\n maxFiles?: number;\n maxFilesPluralizationText?: string;\n maxSizeBytes?: number;\n};\n\n/**\n * Context for drag events with drag-specific properties\n * Used to generate validation messages during file drag operations.\n *\n * @property draggedItems - The DataTransferItemList containing all items being dragged (not just rejected ones)\n * @property eventType - Always 'drag' for drag events\n */\nexport type DragMessageContext = BaseDynamicMessageContext & {\n draggedItems?: DataTransferItemList;\n eventType: 'drag';\n};\n\n/**\n * Context for drop events with drop-specific properties\n * Used to generate validation messages after files have been dropped.\n *\n * @property eventType - Always 'drop' for drop events\n * @property rejectedFileList - Comma-separated list of rejected file names\n * @property rejectedFiles - Array of File objects that failed validation\n */\nexport type DropMessageContext = BaseDynamicMessageContext & {\n eventType: 'drop';\n rejectedFileList?: string;\n rejectedFiles?: File[];\n};\n\n/**\n * Guaranteed minimal properties available on all DynamicMessageContext variants.\n * This type represents the contract for what you can ALWAYS safely destructure\n * from any message context, regardless of whether it's a drag or drop event.\n *\n * Your custom validator message functions receive the full DynamicMessageContext,\n * but you can safely destructure just these core properties for simple validators.\n *\n * @property fileCount - Number of files involved in the validation\n * @property filePluralizationText - Properly pluralized text (e.g., \"file\" or \"files\")\n *\n * @example\n * // Simple validator - only uses guaranteed properties\n * const validator: FileValidator = (file) => {\n * if (invalid) {\n * return [{\n * code: 'custom-error',\n * message: ({ fileCount, filePluralizationText }) =>\n * `${fileCount} ${filePluralizationText} failed validation`\n * }];\n * }\n * return null;\n * };\n */\nexport type ValidationMessageContext = {\n fileCount: number;\n filePluralizationText: string;\n};\n\n/**\n * Context object provided to dynamic message functions in validators.\n * This is a union of drag and drop contexts, representing what's actually passed at runtime.\n *\n * While the full context includes many optional properties (like formattedMaxSize, maxFiles, etc.),\n * you can always safely destructure the core properties: fileCount and filePluralizationText\n * (see ValidationMessageContext for the guaranteed minimal subset).\n *\n * Use isDragContext or isDropContext type guards to access event-specific properties safely.\n */\nexport type DynamicMessageContext = DragMessageContext | DropMessageContext;\n\n/**\n * Type guard to check if a context is a drag context\n * Use this before accessing drag-specific properties\n *\n * @param context - The message context to check\n * @returns true if context is a drag context, false otherwise\n */\nexport const isDragContext = (context: DynamicMessageContext): context is DragMessageContext => {\n return context.eventType === 'drag';\n};\n\n/**\n * Type guard to check if a context is a drop context\n * Use this before accessing drop-specific properties\n *\n * @param context - The message context to check\n * @returns true if context is a drop context, false otherwise\n */\nexport const isDropContext = (context: DynamicMessageContext): context is DropMessageContext => {\n return context.eventType === 'drop';\n};\n\n/**\n * Parameters for generating validation messages\n * Used to create appropriate error messages for different validation scenarios.\n *\n * @property code - The error code that triggered the validation failure\n * @property count - Optional number of files that failed this specific validation\n * @property message - Optional message string or function that generates a message based on context\n * @property messageType - Optional string indicating the type of message ('drag' or 'drop')\n */\nexport type ValidationMessageParams = {\n code: FileErrorCode;\n count?: number;\n message?: ContextAwareMessage<DynamicMessageContext>;\n messageType?: 'drag' | 'drop';\n};\n\n/**\n * Represents a file validation error that can include dynamic messaging\n * Used during the validation process before messages are finalized.\n * This type allows for context-aware messages that can be resolved\n * at runtime based on the validation context.\n *\n * @property code - Error code identifying the type of validation failure\n * @property message - Human-readable error message or function that generates one\n * @remarks Used during validation process before messages are finalized\n */\nexport type DynamicFileError = {\n code: FileErrorCode;\n message: ContextAwareMessage<DynamicMessageContext>;\n};\n\n/**\n * Structure for processed validation error responses\n * The final form of validation errors after message resolution.\n * Unlike DynamicFileError, FileError messages are always strings,\n * as they have already been processed with context.\n *\n * @property code - Error code identifying the type of validation failure\n * @property message - Human-readable error message\n * @remarks Used for displaying validation results after message processing\n */\nexport type FileError = {\n code: FileErrorCode;\n message: string;\n};\n\n/**\n * Union type for validation errors that can be either a FileError or a DynamicFileError\n * This type allows for flexibility in handling different types of validation errors\n * and provides a common interface for processing them\n */\nexport type ValidationError = FileError | DynamicFileError;\n\n/**\n * Represents a file rejection from the upload process\n * Re-exported from react-dropzone for convenience\n *\n * @property file - The rejected file\n * @property errors - Array of errors associated with the rejected file\n */\nexport type FileRejection = ReactDropzoneFileRejection;\n\n/**\n * Predefined categories of file types\n * Used as a convenient shorthand for common file type groups\n *\n * @value 'images' - Common image formats (jpeg, png, gif, webp)\n * @value 'pdfs' - PDF documents only\n * @value 'documents' - Office and PDF documents (pdf, doc, docx, xls, xlsx)\n */\nexport type CommonFileTypes = 'images' | 'pdfs' | 'documents';\n\n/**\n * Ensures numbers are greater than 0; used for validation parameters\n * A type utility that prevents negative numbers or zero from being used\n * in places where only positive numbers make sense (e.g., file size limits)\n */\nexport type PositiveNumber = number extends infer N\n ? N extends number\n ? N extends 0\n ? never\n : N extends -1\n ? never\n : number\n : never\n : never;\n\n/**\n * Custom validation function for file uploads\n * Implement this to create custom validation rules beyond the built-in ones\n *\n * @param file - File or DataTransferItem to validate\n * @returns An array of ValidationError objects if validation fails, null if passes\n */\nexport type FileValidator = (file: File | DataTransferItem) => ValidationError[] | null;\n\n/**\n * Configuration for file validation\n * Used to set up validation rules and behavior for file uploads\n *\n * @property accept - Allowed file types (preset categories or MIME types/extensions)\n * @property error - Optional custom error to display regardless of validation results\n * @property maxFiles - Maximum number of files allowed\n * @property maxSize - Maximum file size in bytes\n * @property strictValidation - If true, rejects all files when any validation fails\n * @property validator - Optional custom validation function\n */\nexport type ValidationConfig = {\n accept?: CommonFileTypes | string[];\n error?: FileError;\n maxFiles?: number;\n maxSize?: number;\n strictValidation?: boolean;\n validator?: FileValidator;\n};\n"],"mappings":";;;;;;;;;;;;AAyIA,MAAa,iBAAiB,YAAkE;CAC5F,OAAO,QAAQ,cAAc;AACjC;;;;;;;;AASA,MAAa,iBAAiB,YAAkE;CAC5F,OAAO,QAAQ,cAAc;AACjC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as isDropContext, S as isDragContext, _ as PositiveNumber, b as ValidationError, d as DynamicMessageContext, f as FileError, g as FileValidator, h as FileResource, m as FileRejection, n as FileUploadContextType, o as UploadValidationContextType, p as FileErrorCode, u as DynamicFileError, v as RemoteFile, x as ValidationMessageContext } from "../index-BAR19_eg.cjs";
|
|
2
|
+
export { type DynamicFileError, type DynamicMessageContext, type FileError, type FileErrorCode, type FileRejection, type FileResource, type FileUploadContextType, type FileValidator, type PositiveNumber, type RemoteFile, type UploadValidationContextType, type ValidationError, type ValidationMessageContext, isDragContext, isDropContext };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as isDropContext, S as isDragContext, _ as PositiveNumber, b as ValidationError, d as DynamicMessageContext, f as FileError, g as FileValidator, h as FileResource, m as FileRejection, n as FileUploadContextType, o as UploadValidationContextType, p as FileErrorCode, u as DynamicFileError, v as RemoteFile, x as ValidationMessageContext } from "../index-BAR19_eg.mjs";
|
|
2
|
+
export { type DynamicFileError, type DynamicMessageContext, type FileError, type FileErrorCode, type FileRejection, type FileResource, type FileUploadContextType, type FileValidator, type PositiveNumber, type RemoteFile, type UploadValidationContextType, type ValidationError, type ValidationMessageContext, isDragContext, isDropContext };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
//#region src/FileUpload/types/commonTypes.ts
|
|
3
|
+
/**
|
|
4
|
+
* Type guard to check if a context is a drag context
|
|
5
|
+
* Use this before accessing drag-specific properties
|
|
6
|
+
*
|
|
7
|
+
* @param context - The message context to check
|
|
8
|
+
* @returns true if context is a drag context, false otherwise
|
|
9
|
+
*/
|
|
10
|
+
const isDragContext = (context) => {
|
|
11
|
+
return context.eventType === "drag";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Type guard to check if a context is a drop context
|
|
15
|
+
* Use this before accessing drop-specific properties
|
|
16
|
+
*
|
|
17
|
+
* @param context - The message context to check
|
|
18
|
+
* @returns true if context is a drop context, false otherwise
|
|
19
|
+
*/
|
|
20
|
+
const isDropContext = (context) => {
|
|
21
|
+
return context.eventType === "drop";
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { isDragContext, isDropContext };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"sources":["../../src/FileUpload/types/commonTypes.ts"],"sourcesContent":["import { type FileRejection as ReactDropzoneFileRejection } from 'react-dropzone';\n\n/**\n * Possible error codes for file validation failures - these are the codes that are used in the validation messages.\n * These are the codes used by React-Dropzone under the hood.\n * @typedef {string} FileErrorCode\n * @property {'file-invalid-type'} - File type not accepted\n * @property {'file-too-large'} - File exceeds size limit\n * @property {'too-many-files'} - Exceeds maximum file count\n * @property {string} CustomError - Custom error message\n */\nexport type FileErrorCode = 'file-invalid-type' | 'file-too-large' | 'too-many-files' | string;\n\nexport type RemoteFile = {\n id?: string;\n name: string;\n type?: string;\n url: string;\n};\n\n// FileResource is used to represent a file or a remote file\nexport type FileResource = File | RemoteFile;\n\n/**\n * Generic type for messages that can be either a string or a function that returns a string based on context\n * This allows for dynamic messages that can incorporate data from the current validation context.\n *\n * @template T - The context type that will be passed to the message function\n * @example\n * // Static message\n * const staticMessage: ContextAwareMessage<DynamicMessageContext> = \"File type not supported\";\n *\n * // Dynamic message that uses context\n * const dynamicMessage: ContextAwareMessage<DynamicMessageContext> =\n * (context) => `File exceeds the ${context.formattedMaxSize} limit`;\n */\nexport type ContextAwareMessage<T> = string | ((context: T) => string) | undefined;\n\n/**\n * Base context with common properties used by all message types\n * Contains the shared information needed to generate validation messages\n * for both drag and drop events.\n *\n * @property acceptedFileExtensions - Comma-separated list of accepted file extensions (e.g., '.jpg, .png')\n * @property errorCode - The validation error code triggering this message\n * @property fileCount - Number of files involved in the validation event\n * @property filePluralizationText - Properly pluralized text for file type (e.g., \"image\" or \"images\")\n * @property formattedMaxSize - Human-readable maximum file size (e.g., \"5 MB\")\n * @property maxFiles - Maximum number of files allowed\n * @property maxFilesPluralizationText - Properly pluralized text for max files (e.g., \"file\" or \"files\")\n * @property maxSizeBytes - Maximum file size in bytes\n */\nexport type BaseDynamicMessageContext = {\n acceptedFileExtensions?: string;\n errorCode: string;\n fileCount?: number;\n filePluralizationText?: string;\n formattedMaxSize?: string;\n maxFiles?: number;\n maxFilesPluralizationText?: string;\n maxSizeBytes?: number;\n};\n\n/**\n * Context for drag events with drag-specific properties\n * Used to generate validation messages during file drag operations.\n *\n * @property draggedItems - The DataTransferItemList containing all items being dragged (not just rejected ones)\n * @property eventType - Always 'drag' for drag events\n */\nexport type DragMessageContext = BaseDynamicMessageContext & {\n draggedItems?: DataTransferItemList;\n eventType: 'drag';\n};\n\n/**\n * Context for drop events with drop-specific properties\n * Used to generate validation messages after files have been dropped.\n *\n * @property eventType - Always 'drop' for drop events\n * @property rejectedFileList - Comma-separated list of rejected file names\n * @property rejectedFiles - Array of File objects that failed validation\n */\nexport type DropMessageContext = BaseDynamicMessageContext & {\n eventType: 'drop';\n rejectedFileList?: string;\n rejectedFiles?: File[];\n};\n\n/**\n * Guaranteed minimal properties available on all DynamicMessageContext variants.\n * This type represents the contract for what you can ALWAYS safely destructure\n * from any message context, regardless of whether it's a drag or drop event.\n *\n * Your custom validator message functions receive the full DynamicMessageContext,\n * but you can safely destructure just these core properties for simple validators.\n *\n * @property fileCount - Number of files involved in the validation\n * @property filePluralizationText - Properly pluralized text (e.g., \"file\" or \"files\")\n *\n * @example\n * // Simple validator - only uses guaranteed properties\n * const validator: FileValidator = (file) => {\n * if (invalid) {\n * return [{\n * code: 'custom-error',\n * message: ({ fileCount, filePluralizationText }) =>\n * `${fileCount} ${filePluralizationText} failed validation`\n * }];\n * }\n * return null;\n * };\n */\nexport type ValidationMessageContext = {\n fileCount: number;\n filePluralizationText: string;\n};\n\n/**\n * Context object provided to dynamic message functions in validators.\n * This is a union of drag and drop contexts, representing what's actually passed at runtime.\n *\n * While the full context includes many optional properties (like formattedMaxSize, maxFiles, etc.),\n * you can always safely destructure the core properties: fileCount and filePluralizationText\n * (see ValidationMessageContext for the guaranteed minimal subset).\n *\n * Use isDragContext or isDropContext type guards to access event-specific properties safely.\n */\nexport type DynamicMessageContext = DragMessageContext | DropMessageContext;\n\n/**\n * Type guard to check if a context is a drag context\n * Use this before accessing drag-specific properties\n *\n * @param context - The message context to check\n * @returns true if context is a drag context, false otherwise\n */\nexport const isDragContext = (context: DynamicMessageContext): context is DragMessageContext => {\n return context.eventType === 'drag';\n};\n\n/**\n * Type guard to check if a context is a drop context\n * Use this before accessing drop-specific properties\n *\n * @param context - The message context to check\n * @returns true if context is a drop context, false otherwise\n */\nexport const isDropContext = (context: DynamicMessageContext): context is DropMessageContext => {\n return context.eventType === 'drop';\n};\n\n/**\n * Parameters for generating validation messages\n * Used to create appropriate error messages for different validation scenarios.\n *\n * @property code - The error code that triggered the validation failure\n * @property count - Optional number of files that failed this specific validation\n * @property message - Optional message string or function that generates a message based on context\n * @property messageType - Optional string indicating the type of message ('drag' or 'drop')\n */\nexport type ValidationMessageParams = {\n code: FileErrorCode;\n count?: number;\n message?: ContextAwareMessage<DynamicMessageContext>;\n messageType?: 'drag' | 'drop';\n};\n\n/**\n * Represents a file validation error that can include dynamic messaging\n * Used during the validation process before messages are finalized.\n * This type allows for context-aware messages that can be resolved\n * at runtime based on the validation context.\n *\n * @property code - Error code identifying the type of validation failure\n * @property message - Human-readable error message or function that generates one\n * @remarks Used during validation process before messages are finalized\n */\nexport type DynamicFileError = {\n code: FileErrorCode;\n message: ContextAwareMessage<DynamicMessageContext>;\n};\n\n/**\n * Structure for processed validation error responses\n * The final form of validation errors after message resolution.\n * Unlike DynamicFileError, FileError messages are always strings,\n * as they have already been processed with context.\n *\n * @property code - Error code identifying the type of validation failure\n * @property message - Human-readable error message\n * @remarks Used for displaying validation results after message processing\n */\nexport type FileError = {\n code: FileErrorCode;\n message: string;\n};\n\n/**\n * Union type for validation errors that can be either a FileError or a DynamicFileError\n * This type allows for flexibility in handling different types of validation errors\n * and provides a common interface for processing them\n */\nexport type ValidationError = FileError | DynamicFileError;\n\n/**\n * Represents a file rejection from the upload process\n * Re-exported from react-dropzone for convenience\n *\n * @property file - The rejected file\n * @property errors - Array of errors associated with the rejected file\n */\nexport type FileRejection = ReactDropzoneFileRejection;\n\n/**\n * Predefined categories of file types\n * Used as a convenient shorthand for common file type groups\n *\n * @value 'images' - Common image formats (jpeg, png, gif, webp)\n * @value 'pdfs' - PDF documents only\n * @value 'documents' - Office and PDF documents (pdf, doc, docx, xls, xlsx)\n */\nexport type CommonFileTypes = 'images' | 'pdfs' | 'documents';\n\n/**\n * Ensures numbers are greater than 0; used for validation parameters\n * A type utility that prevents negative numbers or zero from being used\n * in places where only positive numbers make sense (e.g., file size limits)\n */\nexport type PositiveNumber = number extends infer N\n ? N extends number\n ? N extends 0\n ? never\n : N extends -1\n ? never\n : number\n : never\n : never;\n\n/**\n * Custom validation function for file uploads\n * Implement this to create custom validation rules beyond the built-in ones\n *\n * @param file - File or DataTransferItem to validate\n * @returns An array of ValidationError objects if validation fails, null if passes\n */\nexport type FileValidator = (file: File | DataTransferItem) => ValidationError[] | null;\n\n/**\n * Configuration for file validation\n * Used to set up validation rules and behavior for file uploads\n *\n * @property accept - Allowed file types (preset categories or MIME types/extensions)\n * @property error - Optional custom error to display regardless of validation results\n * @property maxFiles - Maximum number of files allowed\n * @property maxSize - Maximum file size in bytes\n * @property strictValidation - If true, rejects all files when any validation fails\n * @property validator - Optional custom validation function\n */\nexport type ValidationConfig = {\n accept?: CommonFileTypes | string[];\n error?: FileError;\n maxFiles?: number;\n maxSize?: number;\n strictValidation?: boolean;\n validator?: FileValidator;\n};\n"],"mappings":";;;;;;;;AAyIA,MAAa,iBAAiB,YAAkE;CAC5F,OAAO,QAAQ,cAAc;AACjC;;;;;;;;AASA,MAAa,iBAAiB,YAAkE;CAC5F,OAAO,QAAQ,cAAc;AACjC"}
|
package/fileUpload.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperties(exports, {
|
|
3
|
+
__esModule: { value: true },
|
|
4
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
5
|
+
});
|
|
6
|
+
const require_hooks = require("./hooks-8VsDqwlb.cjs");
|
|
7
|
+
const require_FileUpload = require("./FileUpload--e_UJ_ek.cjs");
|
|
8
|
+
exports.FileCard = require_FileUpload.FileCard;
|
|
9
|
+
exports.FileDropzone = require_FileUpload.FileDropzone;
|
|
10
|
+
exports.FileDropzoneOverlay = require_FileUpload.FileDropzoneOverlay;
|
|
11
|
+
exports.FilePreviewList = require_FileUpload.FilePreviewList;
|
|
12
|
+
exports.FileUpload = require_FileUpload.FileUpload;
|
|
13
|
+
exports.FileUploadCanvas = require_FileUpload.FileUploadCanvas;
|
|
14
|
+
exports.FileUploadContext = require_FileUpload.FileUploadContext;
|
|
15
|
+
exports.FileUploadProvider = require_FileUpload.FileUploadProvider;
|
|
16
|
+
exports.GridFileCard = require_FileUpload.GridFileCard;
|
|
17
|
+
exports.ListFileCard = require_FileUpload.ListFileCard;
|
|
18
|
+
exports.UploadValidationContext = require_hooks.UploadValidationContext;
|
|
19
|
+
exports.UploadValidationProvider = require_hooks.UploadValidationProvider;
|
|
20
|
+
exports.getFileExtensionsFromAcceptedTypes = require_hooks.getFileExtensionsFromAcceptedTypes;
|
|
21
|
+
exports.getFilePluralizationText = require_hooks.getFilePluralizationText;
|
|
22
|
+
exports.useFileUploadContext = require_FileUpload.useFileUploadContext;
|
|
23
|
+
exports.useFileValidation = require_hooks.useFileValidation;
|
|
24
|
+
exports.useValidationContext = require_hooks.useValidationContext;
|
package/fileUpload.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as UploadValidationContext, b as ValidationError, c as useValidationContext, i as useFileUploadContext, r as FileUploadProvider, s as UploadValidationProvider, t as FileUploadContext } from "./index-BAR19_eg.cjs";
|
|
2
|
+
import { n as useFileValidation } from "./index-Co9X1Vty.cjs";
|
|
3
|
+
import { a as FileCard, c as FileDropzoneOverlay, d as FilePreviewList, f as FileCardAction, g as FileStatusIconConfig, h as FileStatusIcon, i as ListFileCard, l as FileUpload, m as FileStatusConfig, n as getFileExtensionsFromAcceptedTypes, o as FileDropzone, p as FileProgressCircleConfig, r as GridFileCard, s as FileUploadCanvas, t as getFilePluralizationText, u as OverlayStyleOptions } from "./index-CTfIOH2Z2.cjs";
|
|
4
|
+
export { FileCard, type FileCardAction, FileDropzone, FileDropzoneOverlay, FilePreviewList, type FileProgressCircleConfig, type FileStatusConfig, type FileStatusIcon, type FileStatusIconConfig, FileUpload, FileUploadCanvas, FileUploadContext, FileUploadProvider, GridFileCard, ListFileCard, type OverlayStyleOptions, UploadValidationContext, UploadValidationProvider, type ValidationError, getFileExtensionsFromAcceptedTypes, getFilePluralizationText, useFileUploadContext, useFileValidation, useValidationContext };
|
package/fileUpload.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as UploadValidationContext, b as ValidationError, c as useValidationContext, i as useFileUploadContext, r as FileUploadProvider, s as UploadValidationProvider, t as FileUploadContext } from "./index-BAR19_eg.mjs";
|
|
2
|
+
import { n as useFileValidation } from "./index-CQb7B4U7.mjs";
|
|
3
|
+
import { a as FileCard, c as FileDropzoneOverlay, d as FilePreviewList, f as FileCardAction, g as FileStatusIconConfig, h as FileStatusIcon, i as ListFileCard, l as FileUpload, m as FileStatusConfig, n as getFileExtensionsFromAcceptedTypes, o as FileDropzone, p as FileProgressCircleConfig, r as GridFileCard, s as FileUploadCanvas, t as getFilePluralizationText, u as OverlayStyleOptions } from "./index-B-GVogfk2.mjs";
|
|
4
|
+
export { FileCard, type FileCardAction, FileDropzone, FileDropzoneOverlay, FilePreviewList, type FileProgressCircleConfig, type FileStatusConfig, type FileStatusIcon, type FileStatusIconConfig, FileUpload, FileUploadCanvas, FileUploadContext, FileUploadProvider, GridFileCard, ListFileCard, type OverlayStyleOptions, UploadValidationContext, UploadValidationProvider, type ValidationError, getFileExtensionsFromAcceptedTypes, getFilePluralizationText, useFileUploadContext, useFileValidation, useValidationContext };
|
package/fileUpload.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { a as useValidationContext, c as getFilePluralizationText, i as UploadValidationProvider, l as getFileExtensionsFromAcceptedTypes, n as useFileValidation, r as UploadValidationContext } from "./hooks-D4sJ62Xl.mjs";
|
|
3
|
+
import { a as FileCard, c as FileDropzone, d as useFileUploadContext, i as FilePreviewList, l as FileUploadContext, n as FileDropzoneOverlay, o as ListFileCard, r as FileUpload, s as GridFileCard, t as FileUploadCanvas, u as FileUploadProvider } from "./FileUpload-p_pl9NXr.mjs";
|
|
4
|
+
export { FileCard, FileDropzone, FileDropzoneOverlay, FilePreviewList, FileUpload, FileUploadCanvas, FileUploadContext, FileUploadProvider, GridFileCard, ListFileCard, UploadValidationContext, UploadValidationProvider, getFileExtensionsFromAcceptedTypes, getFilePluralizationText, useFileUploadContext, useFileValidation, useValidationContext };
|
package/formLabel.cjs
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperties(exports, {
|
|
3
|
+
__esModule: { value: true },
|
|
4
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
5
|
+
});
|
|
6
|
+
const require_Icons = require("./Icons.cjs");
|
|
7
|
+
const require_Typography_Text = require("./Typography/Text.cjs");
|
|
8
|
+
let _evolve_ui_theme_system = require("@evolve.ui/theme-system");
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
//#region src/FormLabel/FormLabel.tsx
|
|
12
|
+
/**
|
|
13
|
+
* Here's a quick snippet of code to forward all props
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <FormLabel
|
|
16
|
+
* className={className}
|
|
17
|
+
* disabled={disabled}
|
|
18
|
+
* errorText={errorText}
|
|
19
|
+
* errorTextId={errorTextId}
|
|
20
|
+
* hasError={hasError}
|
|
21
|
+
* helpText={helpText}
|
|
22
|
+
* labelText={labelText}
|
|
23
|
+
* secure={secure}
|
|
24
|
+
* showTopLeft={showTopLeft}
|
|
25
|
+
* showTopRight={showTopRight}
|
|
26
|
+
* topLeft={topLeft}
|
|
27
|
+
* topRight={topRight}
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
const FormLabel = (0, react.forwardRef)(({ children, className, disabled, errorText, errorTextId, hasError = false, helpText, labelText, renderErrorTextAdjacent, renderHelpTextAdjacent, secure = false, showTopLeft = Boolean(labelText), showTopRight = secure, topLeft = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
31
|
+
className: (0, _evolve_ui_theme_system.cn)("hui-text-label-mini whitespace-nowrap", {
|
|
32
|
+
"text-text-disabled": disabled,
|
|
33
|
+
"text-text-secondary": !disabled
|
|
34
|
+
}),
|
|
35
|
+
children: labelText
|
|
36
|
+
}), topRight = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
37
|
+
className: (0, _evolve_ui_theme_system.cn)("hui-text-label-mini ml-auto flex items-center gap-[2px] text-text-secondary", {
|
|
38
|
+
"text-text-disabled": disabled,
|
|
39
|
+
"text-text-secondary": !disabled
|
|
40
|
+
}),
|
|
41
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.Lock, {
|
|
42
|
+
size: "xs",
|
|
43
|
+
style: "fill"
|
|
44
|
+
}), "Secure"]
|
|
45
|
+
}), ...rest }, ref) => {
|
|
46
|
+
const help = Boolean(helpText) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
47
|
+
className: (0, _evolve_ui_theme_system.cn)("hui-text-caption whitespace-nowrap", {
|
|
48
|
+
"text-text-disabled": disabled,
|
|
49
|
+
"text-text-secondary": !disabled
|
|
50
|
+
}),
|
|
51
|
+
children: helpText
|
|
52
|
+
}) : null;
|
|
53
|
+
const error = Boolean(errorText) && hasError ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography_Text.Caption, {
|
|
54
|
+
color: "critical",
|
|
55
|
+
id: errorTextId,
|
|
56
|
+
children: errorText
|
|
57
|
+
}) : null;
|
|
58
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
60
|
+
...rest,
|
|
61
|
+
className: (0, _evolve_ui_theme_system.cn)("flex flex-col gap-2xs", className),
|
|
62
|
+
ref,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(FormLabelHeader, {
|
|
65
|
+
showTopLeft,
|
|
66
|
+
showTopRight,
|
|
67
|
+
topLeft,
|
|
68
|
+
topRight
|
|
69
|
+
}),
|
|
70
|
+
children,
|
|
71
|
+
!renderHelpTextAdjacent && help,
|
|
72
|
+
!renderErrorTextAdjacent && error
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
renderHelpTextAdjacent && help,
|
|
76
|
+
renderErrorTextAdjacent && error
|
|
77
|
+
] });
|
|
78
|
+
});
|
|
79
|
+
const FormLabelHeader = ({ showTopLeft, showTopRight, topLeft, topRight }) => {
|
|
80
|
+
if (!showTopLeft && !showTopRight) return null;
|
|
81
|
+
if (showTopLeft && !showTopRight) return topLeft;
|
|
82
|
+
if (!showTopLeft && showTopRight) return topRight;
|
|
83
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
84
|
+
className: "flex items-center",
|
|
85
|
+
children: [showTopLeft && topLeft, showTopRight && topRight]
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const extractFormLabelProps = (props) => {
|
|
89
|
+
const { className, disabled, errorText, errorTextId, hasError, helpText, labelText, secure, ...rest } = props;
|
|
90
|
+
return [{
|
|
91
|
+
className,
|
|
92
|
+
disabled,
|
|
93
|
+
errorText,
|
|
94
|
+
errorTextId,
|
|
95
|
+
hasError,
|
|
96
|
+
helpText,
|
|
97
|
+
labelText,
|
|
98
|
+
secure
|
|
99
|
+
}, {
|
|
100
|
+
disabled,
|
|
101
|
+
...rest
|
|
102
|
+
}];
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.FormLabel = FormLabel;
|
|
106
|
+
exports.extractFormLabelProps = extractFormLabelProps;
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=formLabel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formLabel.cjs","names":["Lock","Caption"],"sources":["../src/FormLabel/FormLabel.tsx"],"sourcesContent":["import { cn } from '@evolve.ui/theme-system';\nimport { forwardRef, HTMLProps, ReactNode } from 'react';\n\nimport { Lock } from '../Icons';\nimport { Caption } from '../Typography/Text/Text';\n\n// This is imported in other files, hence, not just \"Props\"\ntype Props = {\n className?: string;\n disabled?: boolean;\n /**\n * Whether to show the error text / styles.\n */\n hasError?: boolean;\n helpText?: ReactNode;\n labelText?: ReactNode;\n /** Render the text as a sibling of the label rather than a child of label */\n renderErrorTextAdjacent?: boolean;\n /** Render the text as a sibling of the label rather than a child of label */\n renderHelpTextAdjacent?: boolean;\n /**\n * Show secure label at the top right of the component.\n */\n secure?: boolean;\n /* Useful for overriding */\n showTopLeft?: boolean;\n /* Useful for overriding */\n showTopRight?: boolean;\n /* Useful for overriding */\n topLeft?: ReactNode;\n /* Useful for overriding */\n topRight?: ReactNode;\n} & (\n | {\n errorText?: ReactNode;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId?: undefined;\n }\n | {\n errorText?: undefined;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId: string;\n }\n | {\n errorText: ReactNode;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId: string;\n }\n);\n\nexport type FormLabelProps = Omit<\n Props,\n 'topLeft' | 'topRight' | 'showTopLeft' | 'showTopRight' | 'renderErrorTextAdjacent' | 'renderHelpTextAdjacent'\n>;\n\n/**\n * Here's a quick snippet of code to forward all props\n * ```tsx\n * <FormLabel\n * className={className}\n * disabled={disabled}\n * errorText={errorText}\n * errorTextId={errorTextId}\n * hasError={hasError}\n * helpText={helpText}\n * labelText={labelText}\n * secure={secure}\n * showTopLeft={showTopLeft}\n * showTopRight={showTopRight}\n * topLeft={topLeft}\n * topRight={topRight}\n * ```\n */\nexport const FormLabel = forwardRef<HTMLLabelElement, Props & HTMLProps<HTMLLabelElement>>(\n (\n {\n children,\n className,\n disabled,\n errorText,\n errorTextId,\n hasError = false,\n helpText,\n labelText,\n renderErrorTextAdjacent,\n renderHelpTextAdjacent,\n secure = false,\n showTopLeft = Boolean(labelText),\n showTopRight = secure,\n topLeft = (\n <span\n className={cn('hui-text-label-mini whitespace-nowrap', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n {labelText}\n </span>\n ),\n topRight = (\n <span\n className={cn('hui-text-label-mini ml-auto flex items-center gap-[2px] text-text-secondary', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n <Lock\n size=\"xs\"\n style=\"fill\"\n />\n Secure\n </span>\n ),\n ...rest\n },\n ref\n ) => {\n const help = Boolean(helpText) ? (\n <span\n className={cn('hui-text-caption whitespace-nowrap', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n {helpText}\n </span>\n ) : null;\n const error =\n Boolean(errorText) && hasError ? (\n <Caption\n color=\"critical\"\n id={errorTextId}\n >\n {errorText}\n </Caption>\n ) : null;\n\n return (\n <>\n <label\n {...rest}\n className={cn('flex flex-col gap-2xs', className)}\n ref={ref}\n >\n <FormLabelHeader\n showTopLeft={showTopLeft}\n showTopRight={showTopRight}\n topLeft={topLeft}\n topRight={topRight}\n />\n {children}\n {!renderHelpTextAdjacent && help}\n {!renderErrorTextAdjacent && error}\n </label>\n {renderHelpTextAdjacent && help}\n {renderErrorTextAdjacent && error}\n </>\n );\n }\n);\n\nconst FormLabelHeader = ({\n showTopLeft,\n showTopRight,\n topLeft,\n topRight,\n}: Pick<Props, 'topLeft' | 'topRight' | 'showTopLeft' | 'showTopRight'>) => {\n if (!showTopLeft && !showTopRight) {\n return null;\n }\n\n if (showTopLeft && !showTopRight) {\n return topLeft;\n }\n\n if (!showTopLeft && showTopRight) {\n return topRight;\n }\n\n return (\n <div className=\"flex items-center\">\n {showTopLeft && topLeft}\n {showTopRight && topRight}\n </div>\n );\n};\n\nexport const extractFormLabelProps = <T extends FormLabelProps>(\n props: T\n): [FormLabelProps, Omit<T, keyof FormLabelProps> & Pick<FormLabelProps, 'disabled'>] => {\n const { className, disabled, errorText, errorTextId, hasError, helpText, labelText, secure, ...rest } = props;\n\n return [\n {\n className,\n disabled,\n errorText,\n errorTextId,\n hasError,\n helpText,\n labelText,\n secure,\n },\n { disabled, ...rest },\n ];\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,aAAA,GAAA,MAAA,WAAA,EAEL,EACI,UACA,WACA,UACA,WACA,aACA,WAAW,OACX,UACA,WACA,yBACA,wBACA,SAAS,OACT,cAAc,QAAQ,SAAS,GAC/B,eAAe,QACf,UACI,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;CACI,YAAA,GAAA,wBAAA,GAAA,CAAc,yCAAyC;EACnD,sBAAsB;EACtB,uBAAuB,CAAC;CAC5B,CAAC;WAEA;AACC,CAAA,GAEV,WACI,iBAAA,GAAA,kBAAA,KAAA,CAAC,QAAD;CACI,YAAA,GAAA,wBAAA,GAAA,CAAc,+EAA+E;EACzF,sBAAsB;EACtB,uBAAuB,CAAC;CAC5B,CAAC;WAJL,CAMI,iBAAA,GAAA,kBAAA,IAAA,CAACA,cAAAA,MAAD;EACI,MAAK;EACL,OAAM;CACT,CAAA,GAAC,QAEA;IAEV,GAAG,QAEP,QACC;CACD,MAAM,OAAO,QAAQ,QAAQ,IACzB,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EACI,YAAA,GAAA,wBAAA,GAAA,CAAc,sCAAsC;GAChD,sBAAsB;GACtB,uBAAuB,CAAC;EAC5B,CAAC;YAEA;CACC,CAAA,IACN;CACJ,MAAM,QACF,QAAQ,SAAS,KAAK,WAClB,iBAAA,GAAA,kBAAA,IAAA,CAACC,wBAAAA,SAAD;EACI,OAAM;EACN,IAAI;YAEH;CACI,CAAA,IACT;CAER,OACI,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA;EACI,iBAAA,GAAA,kBAAA,KAAA,CAAC,SAAD;GACI,GAAI;GACJ,YAAA,GAAA,wBAAA,GAAA,CAAc,yBAAyB,SAAS;GAC3C;aAHT;IAKI,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD;KACiB;KACC;KACL;KACC;IACb,CAAA;IACA;IACA,CAAC,0BAA0B;IAC3B,CAAC,2BAA2B;GAC1B;;EACN,0BAA0B;EAC1B,2BAA2B;CAC9B,EAAA,CAAA;AAEV,CACJ;AAEA,MAAM,mBAAmB,EACrB,aACA,cACA,SACA,eACwE;CACxE,IAAI,CAAC,eAAe,CAAC,cACjB,OAAO;CAGX,IAAI,eAAe,CAAC,cAChB,OAAO;CAGX,IAAI,CAAC,eAAe,cAChB,OAAO;CAGX,OACI,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;YAAf,CACK,eAAe,SACf,gBAAgB,QAChB;;AAEb;AAEA,MAAa,yBACT,UACqF;CACrF,MAAM,EAAE,WAAW,UAAU,WAAW,aAAa,UAAU,UAAU,WAAW,QAAQ,GAAG,SAAS;CAExG,OAAO,CACH;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACJ,GACA;EAAE;EAAU,GAAG;CAAK,CACxB;AACJ"}
|
package/formLabel.d.cts
ADDED
package/formLabel.d.mts
ADDED
package/formLabel.mjs
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Lock } from "./Icons.mjs";
|
|
3
|
+
import { Caption } from "./Typography/Text.mjs";
|
|
4
|
+
import { cn } from "@evolve.ui/theme-system";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/FormLabel/FormLabel.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Here's a quick snippet of code to forward all props
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <FormLabel
|
|
12
|
+
* className={className}
|
|
13
|
+
* disabled={disabled}
|
|
14
|
+
* errorText={errorText}
|
|
15
|
+
* errorTextId={errorTextId}
|
|
16
|
+
* hasError={hasError}
|
|
17
|
+
* helpText={helpText}
|
|
18
|
+
* labelText={labelText}
|
|
19
|
+
* secure={secure}
|
|
20
|
+
* showTopLeft={showTopLeft}
|
|
21
|
+
* showTopRight={showTopRight}
|
|
22
|
+
* topLeft={topLeft}
|
|
23
|
+
* topRight={topRight}
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
const FormLabel = forwardRef(({ children, className, disabled, errorText, errorTextId, hasError = false, helpText, labelText, renderErrorTextAdjacent, renderHelpTextAdjacent, secure = false, showTopLeft = Boolean(labelText), showTopRight = secure, topLeft = /* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: cn("hui-text-label-mini whitespace-nowrap", {
|
|
28
|
+
"text-text-disabled": disabled,
|
|
29
|
+
"text-text-secondary": !disabled
|
|
30
|
+
}),
|
|
31
|
+
children: labelText
|
|
32
|
+
}), topRight = /* @__PURE__ */ jsxs("span", {
|
|
33
|
+
className: cn("hui-text-label-mini ml-auto flex items-center gap-[2px] text-text-secondary", {
|
|
34
|
+
"text-text-disabled": disabled,
|
|
35
|
+
"text-text-secondary": !disabled
|
|
36
|
+
}),
|
|
37
|
+
children: [/* @__PURE__ */ jsx(Lock, {
|
|
38
|
+
size: "xs",
|
|
39
|
+
style: "fill"
|
|
40
|
+
}), "Secure"]
|
|
41
|
+
}), ...rest }, ref) => {
|
|
42
|
+
const help = Boolean(helpText) ? /* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: cn("hui-text-caption whitespace-nowrap", {
|
|
44
|
+
"text-text-disabled": disabled,
|
|
45
|
+
"text-text-secondary": !disabled
|
|
46
|
+
}),
|
|
47
|
+
children: helpText
|
|
48
|
+
}) : null;
|
|
49
|
+
const error = Boolean(errorText) && hasError ? /* @__PURE__ */ jsx(Caption, {
|
|
50
|
+
color: "critical",
|
|
51
|
+
id: errorTextId,
|
|
52
|
+
children: errorText
|
|
53
|
+
}) : null;
|
|
54
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
55
|
+
/* @__PURE__ */ jsxs("label", {
|
|
56
|
+
...rest,
|
|
57
|
+
className: cn("flex flex-col gap-2xs", className),
|
|
58
|
+
ref,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(FormLabelHeader, {
|
|
61
|
+
showTopLeft,
|
|
62
|
+
showTopRight,
|
|
63
|
+
topLeft,
|
|
64
|
+
topRight
|
|
65
|
+
}),
|
|
66
|
+
children,
|
|
67
|
+
!renderHelpTextAdjacent && help,
|
|
68
|
+
!renderErrorTextAdjacent && error
|
|
69
|
+
]
|
|
70
|
+
}),
|
|
71
|
+
renderHelpTextAdjacent && help,
|
|
72
|
+
renderErrorTextAdjacent && error
|
|
73
|
+
] });
|
|
74
|
+
});
|
|
75
|
+
const FormLabelHeader = ({ showTopLeft, showTopRight, topLeft, topRight }) => {
|
|
76
|
+
if (!showTopLeft && !showTopRight) return null;
|
|
77
|
+
if (showTopLeft && !showTopRight) return topLeft;
|
|
78
|
+
if (!showTopLeft && showTopRight) return topRight;
|
|
79
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
80
|
+
className: "flex items-center",
|
|
81
|
+
children: [showTopLeft && topLeft, showTopRight && topRight]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const extractFormLabelProps = (props) => {
|
|
85
|
+
const { className, disabled, errorText, errorTextId, hasError, helpText, labelText, secure, ...rest } = props;
|
|
86
|
+
return [{
|
|
87
|
+
className,
|
|
88
|
+
disabled,
|
|
89
|
+
errorText,
|
|
90
|
+
errorTextId,
|
|
91
|
+
hasError,
|
|
92
|
+
helpText,
|
|
93
|
+
labelText,
|
|
94
|
+
secure
|
|
95
|
+
}, {
|
|
96
|
+
disabled,
|
|
97
|
+
...rest
|
|
98
|
+
}];
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { FormLabel, extractFormLabelProps };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=formLabel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formLabel.mjs","names":[],"sources":["../src/FormLabel/FormLabel.tsx"],"sourcesContent":["import { cn } from '@evolve.ui/theme-system';\nimport { forwardRef, HTMLProps, ReactNode } from 'react';\n\nimport { Lock } from '../Icons';\nimport { Caption } from '../Typography/Text/Text';\n\n// This is imported in other files, hence, not just \"Props\"\ntype Props = {\n className?: string;\n disabled?: boolean;\n /**\n * Whether to show the error text / styles.\n */\n hasError?: boolean;\n helpText?: ReactNode;\n labelText?: ReactNode;\n /** Render the text as a sibling of the label rather than a child of label */\n renderErrorTextAdjacent?: boolean;\n /** Render the text as a sibling of the label rather than a child of label */\n renderHelpTextAdjacent?: boolean;\n /**\n * Show secure label at the top right of the component.\n */\n secure?: boolean;\n /* Useful for overriding */\n showTopLeft?: boolean;\n /* Useful for overriding */\n showTopRight?: boolean;\n /* Useful for overriding */\n topLeft?: ReactNode;\n /* Useful for overriding */\n topRight?: ReactNode;\n} & (\n | {\n errorText?: ReactNode;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId?: undefined;\n }\n | {\n errorText?: undefined;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId: string;\n }\n | {\n errorText: ReactNode;\n /**\n * Must be defined if `errorText` is defined.\n */\n errorTextId: string;\n }\n);\n\nexport type FormLabelProps = Omit<\n Props,\n 'topLeft' | 'topRight' | 'showTopLeft' | 'showTopRight' | 'renderErrorTextAdjacent' | 'renderHelpTextAdjacent'\n>;\n\n/**\n * Here's a quick snippet of code to forward all props\n * ```tsx\n * <FormLabel\n * className={className}\n * disabled={disabled}\n * errorText={errorText}\n * errorTextId={errorTextId}\n * hasError={hasError}\n * helpText={helpText}\n * labelText={labelText}\n * secure={secure}\n * showTopLeft={showTopLeft}\n * showTopRight={showTopRight}\n * topLeft={topLeft}\n * topRight={topRight}\n * ```\n */\nexport const FormLabel = forwardRef<HTMLLabelElement, Props & HTMLProps<HTMLLabelElement>>(\n (\n {\n children,\n className,\n disabled,\n errorText,\n errorTextId,\n hasError = false,\n helpText,\n labelText,\n renderErrorTextAdjacent,\n renderHelpTextAdjacent,\n secure = false,\n showTopLeft = Boolean(labelText),\n showTopRight = secure,\n topLeft = (\n <span\n className={cn('hui-text-label-mini whitespace-nowrap', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n {labelText}\n </span>\n ),\n topRight = (\n <span\n className={cn('hui-text-label-mini ml-auto flex items-center gap-[2px] text-text-secondary', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n <Lock\n size=\"xs\"\n style=\"fill\"\n />\n Secure\n </span>\n ),\n ...rest\n },\n ref\n ) => {\n const help = Boolean(helpText) ? (\n <span\n className={cn('hui-text-caption whitespace-nowrap', {\n 'text-text-disabled': disabled,\n 'text-text-secondary': !disabled,\n })}\n >\n {helpText}\n </span>\n ) : null;\n const error =\n Boolean(errorText) && hasError ? (\n <Caption\n color=\"critical\"\n id={errorTextId}\n >\n {errorText}\n </Caption>\n ) : null;\n\n return (\n <>\n <label\n {...rest}\n className={cn('flex flex-col gap-2xs', className)}\n ref={ref}\n >\n <FormLabelHeader\n showTopLeft={showTopLeft}\n showTopRight={showTopRight}\n topLeft={topLeft}\n topRight={topRight}\n />\n {children}\n {!renderHelpTextAdjacent && help}\n {!renderErrorTextAdjacent && error}\n </label>\n {renderHelpTextAdjacent && help}\n {renderErrorTextAdjacent && error}\n </>\n );\n }\n);\n\nconst FormLabelHeader = ({\n showTopLeft,\n showTopRight,\n topLeft,\n topRight,\n}: Pick<Props, 'topLeft' | 'topRight' | 'showTopLeft' | 'showTopRight'>) => {\n if (!showTopLeft && !showTopRight) {\n return null;\n }\n\n if (showTopLeft && !showTopRight) {\n return topLeft;\n }\n\n if (!showTopLeft && showTopRight) {\n return topRight;\n }\n\n return (\n <div className=\"flex items-center\">\n {showTopLeft && topLeft}\n {showTopRight && topRight}\n </div>\n );\n};\n\nexport const extractFormLabelProps = <T extends FormLabelProps>(\n props: T\n): [FormLabelProps, Omit<T, keyof FormLabelProps> & Pick<FormLabelProps, 'disabled'>] => {\n const { className, disabled, errorText, errorTextId, hasError, helpText, labelText, secure, ...rest } = props;\n\n return [\n {\n className,\n disabled,\n errorText,\n errorTextId,\n hasError,\n helpText,\n labelText,\n secure,\n },\n { disabled, ...rest },\n ];\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,YAAY,YAEjB,EACI,UACA,WACA,UACA,WACA,aACA,WAAW,OACX,UACA,WACA,yBACA,wBACA,SAAS,OACT,cAAc,QAAQ,SAAS,GAC/B,eAAe,QACf,UACI,oBAAC,QAAD;CACI,WAAW,GAAG,yCAAyC;EACnD,sBAAsB;EACtB,uBAAuB,CAAC;CAC5B,CAAC;WAEA;AACC,CAAA,GAEV,WACI,qBAAC,QAAD;CACI,WAAW,GAAG,+EAA+E;EACzF,sBAAsB;EACtB,uBAAuB,CAAC;CAC5B,CAAC;WAJL,CAMI,oBAAC,MAAD;EACI,MAAK;EACL,OAAM;CACT,CAAA,GAAC,QAEA;IAEV,GAAG,QAEP,QACC;CACD,MAAM,OAAO,QAAQ,QAAQ,IACzB,oBAAC,QAAD;EACI,WAAW,GAAG,sCAAsC;GAChD,sBAAsB;GACtB,uBAAuB,CAAC;EAC5B,CAAC;YAEA;CACC,CAAA,IACN;CACJ,MAAM,QACF,QAAQ,SAAS,KAAK,WAClB,oBAAC,SAAD;EACI,OAAM;EACN,IAAI;YAEH;CACI,CAAA,IACT;CAER,OACI,qBAAA,UAAA,EAAA,UAAA;EACI,qBAAC,SAAD;GACI,GAAI;GACJ,WAAW,GAAG,yBAAyB,SAAS;GAC3C;aAHT;IAKI,oBAAC,iBAAD;KACiB;KACC;KACL;KACC;IACb,CAAA;IACA;IACA,CAAC,0BAA0B;IAC3B,CAAC,2BAA2B;GAC1B;;EACN,0BAA0B;EAC1B,2BAA2B;CAC9B,EAAA,CAAA;AAEV,CACJ;AAEA,MAAM,mBAAmB,EACrB,aACA,cACA,SACA,eACwE;CACxE,IAAI,CAAC,eAAe,CAAC,cACjB,OAAO;CAGX,IAAI,eAAe,CAAC,cAChB,OAAO;CAGX,IAAI,CAAC,eAAe,cAChB,OAAO;CAGX,OACI,qBAAC,OAAD;EAAK,WAAU;YAAf,CACK,eAAe,SACf,gBAAgB,QAChB;;AAEb;AAEA,MAAa,yBACT,UACqF;CACrF,MAAM,EAAE,WAAW,UAAU,WAAW,aAAa,UAAU,UAAU,WAAW,QAAQ,GAAG,SAAS;CAExG,OAAO,CACH;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACJ,GACA;EAAE;EAAU,GAAG;CAAK,CACxB;AACJ"}
|