@sprawlify/primitives 0.0.6 → 0.0.8
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/dist/anatomy.d.cts +1 -1
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +1 -1
- package/dist/{aria-hidden-Dvvxh8vn.mjs → aria-hidden-DIoJxbA3.mjs} +1 -1
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-jPNnPyMJ.mjs → auto-resize-L6Oqa0lE.mjs} +1 -1
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-Bxz7UdDS.mjs → collection-0DmMA3br.mjs} +2 -2
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-DbSDg6nI.mjs → color-utils-D0Lo5X-u.mjs} +2 -2
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-Bap2tV4J.d.cts → core-75kSaDJc.d.mts} +3 -3
- package/dist/{core-1JwD9Bth.d.mts → core-D_pI64vx.d.cts} +3 -3
- package/dist/{core-C77LsUvk.mjs → core-qHH8MshY.mjs} +2 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +3 -3
- package/dist/date-utils.d.cts +6 -6
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +1 -1
- package/dist/{dismissable-WpM6GqPg.mjs → dismissable-C-6M-juU.mjs} +3 -3
- package/dist/{dismissable-layer-DwFMEm4o.d.mts → dismissable-layer-2TW8ZBcS.d.cts} +2 -2
- package/dist/{dismissable-layer-BHdxdWFo.d.cts → dismissable-layer-CllXZ1N9.d.mts} +2 -2
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-DlipWdON.mjs → dom-query-Bwyyt0Vp.mjs} +1 -1
- package/dist/dom-query.d.cts +6 -6
- package/dist/dom-query.d.mts +6 -6
- package/dist/dom-query.mjs +1 -1
- package/dist/file-utils-5E6-AtJ9.mjs +210 -0
- package/dist/file-utils-G9_tYexo.cjs +270 -0
- package/dist/file-utils.cjs +12 -220
- package/dist/file-utils.d.cts +2 -12
- package/dist/file-utils.d.mts +2 -12
- package/dist/file-utils.mjs +1 -208
- package/dist/{focus-trap-BY0WXiLZ.mjs → focus-trap-BG22frp5.mjs} +2 -2
- package/dist/focus-trap.cjs +1 -1
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-C8Gu5QYM.mjs → focus-visible-BKLakzc7.mjs} +1 -1
- package/dist/focus-visible.cjs +1 -1
- package/dist/focus-visible.mjs +2 -2
- package/dist/hotkeys.mjs +1 -1
- package/dist/i18n-utils-B8IY1mOh.cjs +505 -0
- package/dist/i18n-utils-DCz8B6DF.mjs +440 -0
- package/dist/i18n-utils.cjs +14 -450
- package/dist/i18n-utils.mjs +2 -438
- package/dist/{index-CNyu_Zzq.d.mts → index-DYzqCFaj.d.mts} +5 -5
- package/dist/{interact-outside-JTrDIgHe.mjs → interact-outside-BtY3-DVp.mjs} +2 -2
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +3 -3
- package/dist/{list-collection-BQSMBg4X.d.mts → list-collection-BvMwDNHf.d.cts} +1 -1
- package/dist/{list-collection-DrnwYduc.d.cts → list-collection-CTt1eong.d.mts} +1 -1
- package/dist/live-region.cjs +1 -1
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +1 -1
- package/dist/machines/accordion/index.cjs +1 -1
- package/dist/machines/accordion/index.d.cts +3 -3
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +5 -5
- package/dist/machines/angle-slider/index.cjs +2 -2
- package/dist/machines/angle-slider/index.d.cts +4 -4
- package/dist/machines/angle-slider/index.d.mts +4 -4
- package/dist/machines/angle-slider/index.mjs +6 -6
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +3 -3
- package/dist/machines/avatar/index.cjs +1 -1
- package/dist/machines/avatar/index.d.cts +3 -3
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +5 -5
- package/dist/machines/bottom-sheet/index.cjs +3 -3
- package/dist/machines/bottom-sheet/index.d.cts +6 -6
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +11 -11
- package/dist/machines/carousel/index.cjs +2 -2
- package/dist/machines/carousel/index.d.cts +4 -4
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +6 -6
- package/dist/machines/checkbox/index.cjs +2 -2
- package/dist/machines/checkbox/index.d.cts +4 -4
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +6 -6
- package/dist/machines/clipboard/index.cjs +1 -1
- package/dist/machines/clipboard/index.d.cts +4 -4
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +5 -5
- package/dist/machines/collapsible/index.cjs +1 -1
- package/dist/machines/collapsible/index.d.cts +4 -4
- package/dist/machines/collapsible/index.d.mts +4 -4
- package/dist/machines/collapsible/index.mjs +5 -5
- package/dist/machines/color-picker/index.cjs +2 -2
- package/dist/machines/color-picker/index.d.cts +7 -7
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +9 -9
- package/dist/machines/combobox/index.cjs +2 -2
- package/dist/machines/combobox/index.d.cts +8 -8
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +9 -9
- package/dist/machines/date-picker/index.cjs +3 -3
- package/dist/machines/date-picker/index.d.cts +8 -8
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +10 -10
- package/dist/machines/dialog/index.cjs +3 -3
- package/dist/machines/dialog/index.d.cts +6 -6
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +10 -10
- package/dist/machines/editable/index.cjs +1 -1
- package/dist/machines/editable/index.d.cts +5 -5
- package/dist/machines/editable/index.d.mts +5 -5
- package/dist/machines/editable/index.mjs +6 -6
- package/dist/machines/file-upload/index.cjs +627 -0
- package/dist/machines/file-upload/index.d.cts +145 -0
- package/dist/machines/file-upload/index.d.mts +145 -0
- package/dist/machines/file-upload/index.mjs +621 -0
- package/dist/machines/floating-panel/index.cjs +3 -3
- package/dist/machines/floating-panel/index.d.cts +5 -5
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +7 -7
- package/dist/machines/hover-card/index.cjs +2 -2
- package/dist/machines/hover-card/index.d.cts +6 -6
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +8 -8
- package/dist/machines/image-cropper/index.cjs +1 -1
- package/dist/machines/image-cropper/index.d.cts +3 -3
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +5 -5
- package/dist/machines/listbox/index.cjs +2 -2
- package/dist/machines/listbox/index.d.cts +8 -8
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +7 -7
- package/dist/machines/marquee/index.cjs +1 -1
- package/dist/machines/marquee/index.d.cts +6 -6
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +5 -5
- package/dist/machines/menu/index.cjs +3 -3
- package/dist/machines/menu/index.d.cts +9 -9
- package/dist/machines/menu/index.d.mts +9 -9
- package/dist/machines/menu/index.mjs +9 -9
- package/dist/machines/navigation-menu/index.cjs +1 -1
- package/dist/machines/navigation-menu/index.d.cts +4 -4
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +7 -7
- package/dist/machines/number-input/index.cjs +1 -1
- package/dist/machines/number-input/index.d.cts +4 -4
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +5 -5
- package/dist/machines/pagination/index.cjs +1 -1
- package/dist/machines/pagination/index.d.cts +4 -4
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +5 -5
- package/dist/machines/password-input/index.cjs +1 -1
- package/dist/machines/password-input/index.d.cts +4 -4
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +5 -5
- package/dist/machines/pin-input/index.cjs +1 -1
- package/dist/machines/pin-input/index.d.cts +4 -4
- package/dist/machines/pin-input/index.d.mts +4 -4
- package/dist/machines/pin-input/index.mjs +5 -5
- package/dist/machines/popover/index.cjs +4 -4
- package/dist/machines/popover/index.d.cts +7 -7
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +11 -11
- package/dist/machines/presence/index.cjs +1 -1
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +4 -4
- package/dist/machines/progress/index.cjs +1 -1
- package/dist/machines/progress/index.d.cts +4 -4
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +5 -5
- package/dist/machines/qr-code/index.cjs +1 -1
- package/dist/machines/qr-code/index.d.cts +4 -4
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +5 -5
- package/dist/machines/radio-group/index.cjs +2 -2
- package/dist/machines/radio-group/index.d.cts +4 -4
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +6 -6
- package/dist/machines/rating-group/index.cjs +1 -1
- package/dist/machines/rating-group/index.d.cts +4 -4
- package/dist/machines/rating-group/index.d.mts +4 -4
- package/dist/machines/rating-group/index.mjs +5 -5
- package/dist/machines/scroll-area/index.cjs +1 -1
- package/dist/machines/scroll-area/index.d.cts +4 -4
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +6 -6
- package/dist/machines/select/index.cjs +2 -2
- package/dist/machines/select/index.d.cts +9 -9
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +9 -9
- package/dist/machines/signature-pad/index.cjs +1 -1
- package/dist/machines/signature-pad/index.d.cts +4 -4
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +5 -5
- package/dist/machines/slider/index.cjs +1 -1
- package/dist/machines/slider/index.d.cts +4 -4
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +5 -5
- package/dist/machines/splitter/index.cjs +1 -1
- package/dist/machines/splitter/index.d.cts +3 -3
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +5 -5
- package/dist/machines/steps/index.cjs +1 -1
- package/dist/machines/steps/index.d.cts +4 -4
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +5 -5
- package/dist/machines/switch/index.cjs +2 -2
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +3 -3
- package/dist/machines/switch/index.mjs +6 -6
- package/dist/machines/tabs/index.cjs +1 -1
- package/dist/machines/tabs/index.d.cts +4 -4
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +5 -5
- package/dist/machines/tags-input/index.cjs +2 -2
- package/dist/machines/tags-input/index.d.cts +6 -6
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +8 -8
- package/dist/machines/timer/index.cjs +1 -1
- package/dist/machines/timer/index.d.cts +4 -4
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +5 -5
- package/dist/machines/toast/index.d.cts +5 -5
- package/dist/machines/toast/index.d.mts +5 -5
- package/dist/machines/toast/index.mjs +6 -6
- package/dist/machines/toggle/index.cjs +1 -1
- package/dist/machines/toggle/index.d.cts +3 -3
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +5 -5
- package/dist/machines/toggle-group/index.cjs +1 -1
- package/dist/machines/toggle-group/index.d.cts +3 -3
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +5 -5
- package/dist/machines/tooltip/index.cjs +3 -3
- package/dist/machines/tooltip/index.d.cts +5 -5
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +7 -7
- package/dist/machines/tour/index.cjs +3 -3
- package/dist/machines/tour/index.d.cts +7 -7
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +9 -9
- package/dist/machines/tree-view/index.cjs +1 -1
- package/dist/machines/tree-view/index.d.cts +7 -7
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +6 -6
- package/dist/{popper-MxgCIf_4.mjs → popper-4MZcEna4.mjs} +2 -2
- package/dist/popper.cjs +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-BENI97My.mjs → rect-utils-j6C9uZk1.mjs} +1 -1
- package/dist/rect-utils.cjs +1 -1
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +1 -1
- package/dist/{remove-scroll-BL1SJPHq.mjs → remove-scroll-C73TLIgr.mjs} +1 -1
- package/dist/{scroll-snap-D-BtyzPh.mjs → scroll-snap-D4hJV_c8.mjs} +1 -1
- package/dist/scroll-snap.cjs +1 -1
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-BerN7Dvw.d.mts → selection-JDFmyke7.d.mts} +2 -2
- package/dist/{selection-Bm0boSA-.d.cts → selection-vng1guNc.d.cts} +2 -2
- package/dist/store.cjs +1 -1
- package/dist/store.mjs +1 -1
- package/dist/{tree-collection-Ders6toe.d.mts → tree-collection-DYIVkVee.d.mts} +1 -1
- package/dist/{tree-collection-CcgKezAi.d.cts → tree-collection-Dlv1BAsc.d.cts} +1 -1
- package/dist/types-CsK6JMut.d.mts +13 -0
- package/dist/types-xyuh-a2-.d.cts +13 -0
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-BxXp67XU.mjs → utils-hFKGi-oS.mjs} +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +11 -1
- /package/dist/{color-DMmL1Ky0.d.cts → color-CIaXnwJx.d.mts} +0 -0
- /package/dist/{color-blKFMqAz.d.mts → color-_pKYh-E2.d.cts} +0 -0
- /package/dist/{create-anatomy-Df7y5SsP.mjs → create-anatomy-CArN8dVu.mjs} +0 -0
- /package/dist/{create-anatomy-B1eclDhe.d.cts → create-anatomy-DHVOqZET.d.mts} +0 -0
- /package/dist/{create-anatomy-B9oniNA9.d.mts → create-anatomy-smWrirg1.d.cts} +0 -0
- /package/dist/{create-props-BML_gpX0.mjs → create-props-SRSjdUTq.mjs} +0 -0
- /package/dist/{create-props-YKy7JIKj.cjs → create-props-l5q5b8Wo.cjs} +0 -0
- /package/dist/{data-url-B5BT_GnT.d.mts → data-url-BqpiKO1L.d.mts} +0 -0
- /package/dist/{data-url-p1B_RG_H.d.cts → data-url-og2AwQaU.d.cts} +0 -0
- /package/dist/{date-utils-DftsV7SR.mjs → date-utils-d1Jt6z5f.mjs} +0 -0
- /package/dist/{defineProperty-DxNiKPNe.mjs → defineProperty-Cql4jybt.mjs} +0 -0
- /package/dist/{focus-trap-D4i52S9A.cjs → focus-trap-DMoa9bOi.cjs} +0 -0
- /package/dist/{focus-visible-DYTWdWpa.cjs → focus-visible-BVOZnp76.cjs} +0 -0
- /package/dist/{functions-D3G3aWHL.d.mts → functions-DFnYr-gp.d.cts} +0 -0
- /package/dist/{functions-DtSGq3MR.d.cts → functions-i_nVCRW0.d.mts} +0 -0
- /package/dist/{index-CefB9yps.d.mts → index-9OlOKr2i.d.mts} +0 -0
- /package/dist/{index-DQnU976_.d.cts → index-BBTkH09t.d.cts} +0 -0
- /package/dist/{index-CuONGeOw.d.mts → index-BVcPBg7R.d.mts} +0 -0
- /package/dist/{index-WDB45Zqi.d.mts → index-C9ajBf1B.d.mts} +0 -0
- /package/dist/{index-DvpM-Mfi.d.cts → index-DFiQyzeW.d.cts} +0 -0
- /package/dist/{index-pPMoFaB-.d.mts → index-DikGG00a.d.mts} +0 -0
- /package/dist/{index-PMpGStDQ.d.cts → index-UNyqrBDu.d.cts} +0 -0
- /package/dist/{live-region-CcZPGo89.cjs → live-region-2RiuzOr-.cjs} +0 -0
- /package/dist/{live-region-BjruYEJ2.mjs → live-region-BcSdQIM8.mjs} +0 -0
- /package/dist/{node-Cs9VjvUL.d.cts → node-BecR7gec.d.cts} +0 -0
- /package/dist/{node-R56TVizn.d.mts → node-v8Pyrj9P.d.mts} +0 -0
- /package/dist/{popper-D0FAW_p7.cjs → popper-CWip5FHB.cjs} +0 -0
- /package/dist/{raf-BBPHUdcb.d.mts → raf-BF2VrckK.d.cts} +0 -0
- /package/dist/{raf-DiJ6_y_m.d.cts → raf-DX52LaVy.d.mts} +0 -0
- /package/dist/{rect-utils-DKLRhP8G.cjs → rect-utils-Dp9Wvl7-.cjs} +0 -0
- /package/dist/{remove-scroll-Uvzg1L9r.cjs → remove-scroll-Dh9PjZFE.cjs} +0 -0
- /package/dist/{scroll-snap-zyiZLv7W.cjs → scroll-snap-BsPbmOTg.cjs} +0 -0
- /package/dist/{store-D6DXvVrK.mjs → store-CpMJ6RZR.mjs} +0 -0
- /package/dist/{store-BZcXv49B.cjs → store-DDjfrUhd.cjs} +0 -0
- /package/dist/{typeahead-DoNxux_s.d.mts → typeahead-BWyD_KIb.d.cts} +0 -0
- /package/dist/{typeahead-JQJrD3Fg.d.cts → typeahead-BX-BWYjD.d.mts} +0 -0
- /package/dist/{types-BrAcjFWl.d.cts → types-BIy26Uwn.d.cts} +0 -0
- /package/dist/{types-BLWhvNQm.d.cts → types-ByFp2QfD.d.mts} +0 -0
- /package/dist/{types-BXIZOjVE.d.mts → types-CADkcKtr.d.cts} +0 -0
- /package/dist/{types-YxEXuJrz.d.mts → types-CaxzY9yP.d.cts} +0 -0
- /package/dist/{types-DwwrI0dI.d.cts → types-Df8ZhdY-.d.mts} +0 -0
- /package/dist/{types-oXs2YVjs.d.cts → types-PjLoIczn.d.cts} +0 -0
- /package/dist/{types-D9XpvNCK.d.mts → types-jyV564Ip.d.mts} +0 -0
- /package/dist/{types-D3yZIhlx.d.cts → types-oh90SH45.d.cts} +0 -0
- /package/dist/{wait-for-CdgWKT7N.d.mts → wait-for-C9QyzQj2.d.cts} +0 -0
- /package/dist/{wait-for-kzsbN3VT.d.cts → wait-for-Pn6RmrHX.d.mts} +0 -0
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as debounce, c as noop, d as tryCatch, f as uuid, i as cast, l as runIfFn, n as Nullable, o as identity, r as callAll, s as match, t as MaybeFunction, u as throttle } from "./functions-
|
|
1
|
+
import { a as debounce, c as noop, d as tryCatch, f as uuid, i as cast, l as runIfFn, n as Nullable, o as identity, r as callAll, s as match, t as MaybeFunction, u as throttle } from "./functions-DFnYr-gp.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/utils/array.d.ts
|
|
4
4
|
declare function toArray<T>(v: T | T[] | undefined | null): T[];
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as debounce, c as noop, d as tryCatch, f as uuid, i as cast, l as runIfFn, n as Nullable, o as identity, r as callAll, s as match, t as MaybeFunction, u as throttle } from "./functions-
|
|
1
|
+
import { a as debounce, c as noop, d as tryCatch, f as uuid, i as cast, l as runIfFn, n as Nullable, o as identity, r as callAll, s as match, t as MaybeFunction, u as throttle } from "./functions-i_nVCRW0.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/utils/array.d.ts
|
|
4
4
|
declare function toArray<T>(v: T | T[] | undefined | null): T[];
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as uuid, A as isNaN, At as removeAt, B as snapValueToStep, C as getPercentValue, Ct as last, D as getValueSetterAtIndex, Dt as prev, E as getValueRanges, Et as partition, F as nan, G as cast, H as toPx, I as roundToDpr, J as match, K as debounce, L as roundToStepPrecision, M as isValueAtMin, Mt as uniq, N as isValueWithinRange, O as getValueTransformer, Ot as prevIndex, P as mod, Q as tryCatch, R as roundValue, S as getNextStepValue, St as isEmpty, T as getValuePercent, Tt as nextIndex, U as wrap, V as toFixedNumber, W as callAll, X as runIfFn, Y as noop, Z as throttle, _ as decrementValue, _t as first, a as Timer, at as isNull, b as getMaxValueAtIndex, bt as has, c as createStore, ct as isObjectLike, d as json, dt as isEqual, et as hasProp, f as omit, ft as add, g as clampValue, gt as diff, h as clampPercent, ht as clear, i as warn, it as isFunction, j as isValueAtMax, jt as toArray, k as incrementValue, kt as remove, l as compact, lt as isPlainObject, m as splitProps, mt as chunk, n as ensureProps, nt as isBoolean, o as setRafInterval, ot as isNumber, p as pick, pt as addOrRemove, q as identity, r as invariant, rt as isDev, s as setRafTimeout, st as isObject, t as ensure, tt as isArray, u as createSplitProps, ut as isString, v as getClosestValue, vt as flatArray, w as getPreviousStepValue, wt as next, x as getMinValueAtIndex, xt as insertAt, y as getClosestValueIndex, yt as fromLength, z as setValueAtIndex } from "./utils-
|
|
1
|
+
import { $ as uuid, A as isNaN, At as removeAt, B as snapValueToStep, C as getPercentValue, Ct as last, D as getValueSetterAtIndex, Dt as prev, E as getValueRanges, Et as partition, F as nan, G as cast, H as toPx, I as roundToDpr, J as match, K as debounce, L as roundToStepPrecision, M as isValueAtMin, Mt as uniq, N as isValueWithinRange, O as getValueTransformer, Ot as prevIndex, P as mod, Q as tryCatch, R as roundValue, S as getNextStepValue, St as isEmpty, T as getValuePercent, Tt as nextIndex, U as wrap, V as toFixedNumber, W as callAll, X as runIfFn, Y as noop, Z as throttle, _ as decrementValue, _t as first, a as Timer, at as isNull, b as getMaxValueAtIndex, bt as has, c as createStore, ct as isObjectLike, d as json, dt as isEqual, et as hasProp, f as omit, ft as add, g as clampValue, gt as diff, h as clampPercent, ht as clear, i as warn, it as isFunction, j as isValueAtMax, jt as toArray, k as incrementValue, kt as remove, l as compact, lt as isPlainObject, m as splitProps, mt as chunk, n as ensureProps, nt as isBoolean, o as setRafInterval, ot as isNumber, p as pick, pt as addOrRemove, q as identity, r as invariant, rt as isDev, s as setRafTimeout, st as isObject, t as ensure, tt as isArray, u as createSplitProps, ut as isString, v as getClosestValue, vt as flatArray, w as getPreviousStepValue, wt as next, x as getMinValueAtIndex, xt as insertAt, y as getClosestValueIndex, yt as fromLength, z as setValueAtIndex } from "./utils-hFKGi-oS.mjs";
|
|
2
2
|
|
|
3
3
|
export { Timer, add, addOrRemove, callAll, cast, chunk, clampPercent, clampValue, clear, compact, createSplitProps, createStore, debounce, decrementValue, diff, ensure, ensureProps, first, flatArray, fromLength, getClosestValue, getClosestValueIndex, getMaxValueAtIndex, getMinValueAtIndex, getNextStepValue, getPercentValue, getPreviousStepValue, getValuePercent, getValueRanges, getValueSetterAtIndex, getValueTransformer, has, hasProp, identity, incrementValue, insertAt, invariant, isArray, isBoolean, isDev, isEmpty, isEqual, isFunction, isNaN, isNull, isNumber, isObject, isObjectLike, isPlainObject, isString, isValueAtMax, isValueAtMin, isValueWithinRange, json, last, match, mod, nan, next, nextIndex, noop, omit, partition, pick, prev, prevIndex, remove, removeAt, roundToDpr, roundToStepPrecision, roundValue, runIfFn, setRafInterval, setRafTimeout, setValueAtIndex, snapValueToStep, splitProps, throttle, toArray, toFixedNumber, toPx, tryCatch, uniq, uuid, warn, wrap };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprawlify/primitives",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of primitive components for building user interfaces.",
|
|
6
6
|
"author": "sprawlify <npm@sprawlify.com>",
|
|
@@ -38,6 +38,16 @@
|
|
|
38
38
|
"default": "./dist/aria-hidden.cjs"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
+
"./auto-resize": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/auto-resize.d.mts",
|
|
44
|
+
"default": "./dist/auto-resize.mjs"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/auto-resize.d.cts",
|
|
48
|
+
"default": "./dist/auto-resize.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
41
51
|
"./collection": {
|
|
42
52
|
"import": {
|
|
43
53
|
"types": "./dist/collection.d.mts",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|