@sprawlify/react 0.0.31 → 0.0.32
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/accordion-anatomy-Os40r_rx.cjs +1 -0
- package/dist/anatomy-ZnwoyNdi.d.mts +51 -0
- package/dist/{anatomy-Jsh2T0Ur.d.cts → anatomy-zwx3__el.d.cts} +8 -8
- package/dist/angle-slider-anatomy-C2tO1B_U.cjs +1 -0
- package/dist/avatar-anatomy-Bs7BWLVe.cjs +1 -0
- package/dist/bottom-sheet-anatomy-CiYhiW4-.cjs +1 -0
- package/dist/carousel-anatomy-BnzOU9sG.d.mts +6 -0
- package/dist/carousel-anatomy-CanupWeW.cjs +13 -0
- package/dist/{carousel-anatomy-CrzOcXOV.d.mts → carousel-anatomy-uV_IbTOl.d.cts} +1 -1
- package/dist/checkbox-anatomy-D1BkIy3Y.cjs +13 -0
- package/dist/{chunk-Dsw3YZHa.cjs → chunk-CvCQGRaV.cjs} +4 -10
- package/dist/{chunk-C59VKDyD.mjs → chunk-DXsV1_K-.mjs} +3 -9
- package/dist/clipboard-anatomy-BCIktHp2.cjs +1 -0
- package/dist/{collapsible-GkC3RzgL.mjs → collapsible-BTxXTcJM.mjs} +6 -6
- package/dist/{collapsible-DxwYYaHu.cjs → collapsible-CMDPE4Nk.cjs} +18 -18
- package/dist/collapsible-anatomy-CBvotiyd.cjs +1 -0
- package/dist/{collection-_Y7sMbTm.cjs → collection-91WEOuDz.cjs} +13 -13
- package/dist/{collection-CaKlydgq.mjs → collection-DiinCgaJ.mjs} +1 -1
- package/dist/{color-picker-anatomy-1bbrO67D.d.mts → color-picker-anatomy-B4kiBJV3.d.mts} +1 -1
- package/dist/{color-picker-anatomy-CnxCJ7Tr.d.cts → color-picker-anatomy-BIeVpa58.d.cts} +2 -2
- package/dist/color-picker-anatomy-DlkyGFlm.cjs +13 -0
- package/dist/combobox-anatomy-BHd-tBWS.cjs +13 -0
- package/dist/combobox-anatomy-DO-1XyvC.d.mts +6 -0
- package/dist/combobox-anatomy-Drs2os6a.d.cts +6 -0
- package/dist/components/accordion/index.cjs +25 -25
- package/dist/components/accordion/index.d.cts +7 -7
- package/dist/components/accordion/index.d.mts +12 -12
- package/dist/components/accordion/index.mjs +10 -10
- package/dist/components/anatomy.cjs +129 -130
- package/dist/components/anatomy.d.cts +8 -8
- package/dist/components/anatomy.d.mts +49 -49
- package/dist/components/anatomy.mjs +50 -50
- package/dist/components/angle-slider/index.cjs +24 -24
- package/dist/components/angle-slider/index.d.cts +10 -10
- package/dist/components/angle-slider/index.d.mts +14 -14
- package/dist/components/angle-slider/index.mjs +8 -8
- package/dist/components/avatar/index.cjs +20 -20
- package/dist/components/avatar/index.d.cts +5 -5
- package/dist/components/avatar/index.d.mts +9 -9
- package/dist/components/avatar/index.mjs +8 -8
- package/dist/components/bottom-sheet/index.cjs +29 -29
- package/dist/components/bottom-sheet/index.d.cts +9 -9
- package/dist/components/bottom-sheet/index.d.mts +17 -17
- package/dist/components/bottom-sheet/index.mjs +12 -12
- package/dist/components/carousel/index.cjs +25 -25
- package/dist/components/carousel/index.d.cts +14 -14
- package/dist/components/carousel/index.d.mts +17 -17
- package/dist/components/carousel/index.mjs +8 -8
- package/dist/components/checkbox/index.cjs +29 -29
- package/dist/components/checkbox/index.d.cts +9 -9
- package/dist/components/checkbox/index.d.mts +13 -13
- package/dist/components/checkbox/index.mjs +15 -15
- package/dist/components/client-only/index.cjs +1 -1
- package/dist/components/clipboard/index.cjs +21 -21
- package/dist/components/clipboard/index.d.cts +9 -9
- package/dist/components/clipboard/index.d.mts +13 -13
- package/dist/components/clipboard/index.mjs +6 -6
- package/dist/components/collapsible/index.cjs +11 -11
- package/dist/components/collapsible/index.d.cts +6 -6
- package/dist/components/collapsible/index.d.mts +11 -11
- package/dist/components/collapsible/index.mjs +6 -6
- package/dist/components/collection/index.cjs +3 -3
- package/dist/components/collection/index.d.mts +1 -1
- package/dist/components/collection/index.mjs +2 -2
- package/dist/components/color-picker/index.cjs +52 -52
- package/dist/components/color-picker/index.d.cts +31 -31
- package/dist/components/color-picker/index.d.mts +35 -35
- package/dist/components/color-picker/index.mjs +15 -15
- package/dist/components/combobox/index.cjs +40 -40
- package/dist/components/combobox/index.d.cts +17 -17
- package/dist/components/combobox/index.d.mts +22 -22
- package/dist/components/combobox/index.mjs +16 -16
- package/dist/components/date-picker/index.cjs +47 -47
- package/dist/components/date-picker/index.d.cts +28 -28
- package/dist/components/date-picker/index.d.mts +32 -32
- package/dist/components/date-picker/index.mjs +11 -11
- package/dist/components/dialog/index.cjs +28 -28
- package/dist/components/dialog/index.d.cts +12 -12
- package/dist/components/dialog/index.d.mts +17 -17
- package/dist/components/dialog/index.mjs +11 -11
- package/dist/components/download-trigger/index.cjs +10 -10
- package/dist/components/download-trigger/index.d.cts +2 -2
- package/dist/components/download-trigger/index.d.mts +4 -4
- package/dist/components/download-trigger/index.mjs +4 -4
- package/dist/components/editable/index.cjs +30 -30
- package/dist/components/editable/index.d.cts +11 -11
- package/dist/components/editable/index.d.mts +14 -14
- package/dist/components/editable/index.mjs +12 -12
- package/dist/components/field/index.cjs +10 -10
- package/dist/components/field/index.d.cts +11 -11
- package/dist/components/field/index.d.mts +13 -13
- package/dist/components/field/index.mjs +8 -8
- package/dist/components/fieldset/index.cjs +10 -10
- package/dist/components/fieldset/index.d.cts +7 -7
- package/dist/components/fieldset/index.d.mts +9 -9
- package/dist/components/fieldset/index.mjs +8 -8
- package/dist/components/file-upload/index.cjs +34 -34
- package/dist/components/file-upload/index.d.cts +15 -15
- package/dist/components/file-upload/index.d.mts +19 -19
- package/dist/components/file-upload/index.mjs +12 -12
- package/dist/components/floating-panel/index.cjs +32 -32
- package/dist/components/floating-panel/index.d.cts +16 -16
- package/dist/components/floating-panel/index.d.mts +21 -21
- package/dist/components/floating-panel/index.mjs +11 -11
- package/dist/components/focus-trap/index.cjs +7 -7
- package/dist/components/focus-trap/index.d.cts +2 -2
- package/dist/components/focus-trap/index.d.mts +4 -4
- package/dist/components/focus-trap/index.mjs +4 -4
- package/dist/components/format/index.cjs +8 -8
- package/dist/components/format/index.d.mts +4 -4
- package/dist/components/format/index.mjs +3 -3
- package/dist/components/frame/index.cjs +7 -7
- package/dist/components/frame/index.d.cts +2 -2
- package/dist/components/frame/index.d.mts +3 -3
- package/dist/components/frame/index.mjs +5 -5
- package/dist/components/highlight/index.cjs +4 -4
- package/dist/components/highlight/index.d.mts +3 -3
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.cjs +25 -25
- package/dist/components/hover-card/index.d.cts +10 -10
- package/dist/components/hover-card/index.d.mts +15 -15
- package/dist/components/hover-card/index.mjs +10 -10
- package/dist/components/image-cropper/index.cjs +24 -24
- package/dist/components/image-cropper/index.d.cts +8 -8
- package/dist/components/image-cropper/index.d.mts +12 -12
- package/dist/components/image-cropper/index.mjs +8 -8
- package/dist/components/json-tree-view/index.cjs +27 -27
- package/dist/components/json-tree-view/index.d.cts +5 -5
- package/dist/components/json-tree-view/index.d.mts +9 -9
- package/dist/components/json-tree-view/index.mjs +12 -12
- package/dist/components/listbox/index.cjs +28 -28
- package/dist/components/listbox/index.d.cts +12 -12
- package/dist/components/listbox/index.d.mts +16 -16
- package/dist/components/listbox/index.mjs +10 -10
- package/dist/components/marquee/index.cjs +22 -22
- package/dist/components/marquee/index.d.cts +7 -7
- package/dist/components/marquee/index.d.mts +11 -11
- package/dist/components/marquee/index.mjs +8 -8
- package/dist/components/menu/index.cjs +38 -38
- package/dist/components/menu/index.d.cts +24 -24
- package/dist/components/menu/index.d.mts +43 -43
- package/dist/components/menu/index.mjs +11 -11
- package/dist/components/navigation-menu/index.cjs +35 -35
- package/dist/components/navigation-menu/index.d.cts +13 -13
- package/dist/components/navigation-menu/index.d.mts +18 -18
- package/dist/components/navigation-menu/index.mjs +13 -13
- package/dist/components/number-input/index.cjs +29 -29
- package/dist/components/number-input/index.d.cts +10 -10
- package/dist/components/number-input/index.d.mts +14 -14
- package/dist/components/number-input/index.mjs +12 -12
- package/dist/components/pagination/index.cjs +24 -24
- package/dist/components/pagination/index.d.cts +9 -9
- package/dist/components/pagination/index.d.mts +13 -13
- package/dist/components/pagination/index.mjs +8 -8
- package/dist/components/password-input/index.cjs +27 -27
- package/dist/components/password-input/index.d.cts +8 -8
- package/dist/components/password-input/index.d.mts +12 -12
- package/dist/components/password-input/index.mjs +12 -12
- package/dist/components/pin-input/index.cjs +26 -26
- package/dist/components/pin-input/index.d.cts +7 -7
- package/dist/components/pin-input/index.d.mts +11 -11
- package/dist/components/pin-input/index.mjs +12 -12
- package/dist/components/popover/index.cjs +30 -30
- package/dist/components/popover/index.d.cts +15 -15
- package/dist/components/popover/index.d.mts +20 -20
- package/dist/components/popover/index.mjs +10 -10
- package/dist/components/portal/index.cjs +5 -5
- package/dist/components/portal/index.d.mts +2 -2
- package/dist/components/portal/index.mjs +4 -4
- package/dist/components/presence/index.cjs +5 -5
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.mts +3 -3
- package/dist/components/presence/index.mjs +3 -3
- package/dist/components/progress/index.cjs +26 -26
- package/dist/components/progress/index.d.cts +11 -11
- package/dist/components/progress/index.d.mts +15 -15
- package/dist/components/progress/index.mjs +8 -8
- package/dist/components/qr-code/index.cjs +22 -22
- package/dist/components/qr-code/index.d.cts +7 -7
- package/dist/components/qr-code/index.d.mts +11 -11
- package/dist/components/qr-code/index.mjs +8 -8
- package/dist/components/radio-group/index.cjs +28 -28
- package/dist/components/radio-group/index.d.cts +9 -9
- package/dist/components/radio-group/index.d.mts +13 -13
- package/dist/components/radio-group/index.mjs +12 -12
- package/dist/components/rating-group/index.cjs +26 -26
- package/dist/components/rating-group/index.d.cts +7 -7
- package/dist/components/rating-group/index.d.mts +11 -11
- package/dist/components/rating-group/index.mjs +12 -12
- package/dist/components/scroll-area/index.cjs +23 -23
- package/dist/components/scroll-area/index.d.cts +8 -8
- package/dist/components/scroll-area/index.d.mts +12 -12
- package/dist/components/scroll-area/index.mjs +8 -8
- package/dist/components/segment-group/index.cjs +23 -23
- package/dist/components/segment-group/index.d.cts +10 -10
- package/dist/components/segment-group/index.d.mts +13 -13
- package/dist/components/segment-group/index.mjs +8 -8
- package/dist/components/select/index.cjs +43 -43
- package/dist/components/select/index.d.cts +17 -17
- package/dist/components/select/index.d.mts +23 -23
- package/dist/components/select/index.mjs +16 -16
- package/dist/components/signature-pad/index.cjs +28 -28
- package/dist/components/signature-pad/index.d.cts +9 -9
- package/dist/components/signature-pad/index.d.mts +13 -13
- package/dist/components/signature-pad/index.mjs +12 -12
- package/dist/components/slider/index.cjs +28 -28
- package/dist/components/slider/index.d.cts +13 -13
- package/dist/components/slider/index.d.mts +17 -17
- package/dist/components/slider/index.mjs +8 -8
- package/dist/components/splitter/index.cjs +23 -23
- package/dist/components/splitter/index.d.cts +6 -6
- package/dist/components/splitter/index.d.mts +10 -10
- package/dist/components/splitter/index.mjs +8 -8
- package/dist/components/steps/index.cjs +28 -28
- package/dist/components/steps/index.d.cts +13 -13
- package/dist/components/steps/index.d.mts +17 -17
- package/dist/components/steps/index.mjs +8 -8
- package/dist/components/switch/index.cjs +26 -26
- package/dist/components/switch/index.d.cts +7 -7
- package/dist/components/switch/index.d.mts +11 -11
- package/dist/components/switch/index.mjs +12 -12
- package/dist/components/tabs/index.cjs +26 -26
- package/dist/components/tabs/index.d.cts +7 -7
- package/dist/components/tabs/index.d.mts +12 -12
- package/dist/components/tabs/index.mjs +12 -12
- package/dist/components/tags-input/index.cjs +32 -32
- package/dist/components/tags-input/index.d.cts +13 -13
- package/dist/components/tags-input/index.d.mts +17 -17
- package/dist/components/tags-input/index.mjs +12 -12
- package/dist/components/timer/index.cjs +23 -23
- package/dist/components/timer/index.d.cts +8 -8
- package/dist/components/timer/index.d.mts +12 -12
- package/dist/components/timer/index.mjs +8 -8
- package/dist/components/toast/index.cjs +24 -24
- package/dist/components/toast/index.d.cts +7 -7
- package/dist/components/toast/index.d.mts +11 -11
- package/dist/components/toast/index.mjs +7 -7
- package/dist/components/toggle/index.cjs +14 -14
- package/dist/components/toggle/index.d.cts +3 -3
- package/dist/components/toggle/index.d.mts +6 -6
- package/dist/components/toggle/index.mjs +5 -5
- package/dist/components/toggle-group/index.cjs +19 -19
- package/dist/components/toggle-group/index.d.cts +4 -4
- package/dist/components/toggle-group/index.d.mts +8 -8
- package/dist/components/toggle-group/index.mjs +8 -8
- package/dist/components/tooltip/index.cjs +25 -25
- package/dist/components/tooltip/index.d.cts +10 -10
- package/dist/components/tooltip/index.d.mts +15 -15
- package/dist/components/tooltip/index.mjs +10 -10
- package/dist/components/tour/index.cjs +31 -31
- package/dist/components/tour/index.d.cts +17 -17
- package/dist/components/tour/index.d.mts +21 -21
- package/dist/components/tour/index.mjs +12 -12
- package/dist/components/tree-view/index.cjs +16 -16
- package/dist/components/tree-view/index.d.cts +1 -1
- package/dist/components/tree-view/index.d.mts +6 -6
- package/dist/components/tree-view/index.mjs +10 -10
- package/dist/{core-oy7TWDvO.cjs → core-XObZrqJF.cjs} +26 -26
- package/dist/{create-context-RCOpQR_m.cjs → create-context-DVn3n7gf.cjs} +3 -3
- package/dist/{date-picker-anatomy-Bx8QOLFd.d.cts → date-picker-anatomy-B-vp57aN.d.cts} +1 -1
- package/dist/date-picker-anatomy-BCl2ef3Q.cjs +13 -0
- package/dist/{date-picker-anatomy-CU8wyw7x.d.mts → date-picker-anatomy-CGO6W8aW.d.mts} +2 -2
- package/dist/dialog-anatomy-s1uQBot4.cjs +1 -0
- package/dist/editable-anatomy-jvqR2x_f.cjs +1 -0
- package/dist/{environment-CxN6E_IC.cjs → environment-Bg7owXYh.cjs} +5 -5
- package/dist/{factory-DY9J9D6d.cjs → factory-Cz8-l4y-.cjs} +4 -4
- package/dist/{factory-C3MVpSt5.mjs → factory-KspIEfUN.mjs} +1 -1
- package/dist/{field-BA77t9Y1.cjs → field-BYI7Sou7.cjs} +35 -35
- package/dist/{field-C1sN-xXx.mjs → field-DGXtN11Y.mjs} +9 -9
- package/dist/{field-anatomy-B5y9kh2P.d.mts → field-anatomy-DtJE1SCH.d.mts} +2 -2
- package/dist/{field-anatomy-BOnai41v.cjs → field-anatomy-gybp6xfg.cjs} +3 -3
- package/dist/{fieldset-3Atj1JBY.mjs → fieldset-BVlm5IOB.mjs} +9 -9
- package/dist/{fieldset-D1C6ulwM.cjs → fieldset-DKZpvk88.cjs} +20 -20
- package/dist/fieldset-anatomy-BPc1_uJe.d.mts +6 -0
- package/dist/{fieldset-anatomy-V8OKt2Kh.cjs → fieldset-anatomy-D60WIwKp.cjs} +3 -3
- package/dist/file-upload-anatomy-RWAqlgkf.cjs +1 -0
- package/dist/floating-panel-anatomy-Dz5holcN.cjs +1 -0
- package/dist/hover-card-anatomy-D1hjTlAk.cjs +1 -0
- package/dist/image-cropper-anatomy-BAb8LNR5.cjs +1 -0
- package/dist/{index-BqODwscy.d.cts → index-B6oMrvEf.d.cts} +12 -12
- package/dist/{index-C8cx019c.d.mts → index-C9s5yeIF.d.mts} +25 -25
- package/dist/{index-BcgKeSX7.d.mts → index-CK7eqzEL.d.mts} +54 -54
- package/dist/{index-BuMIGScO.d.cts → index-DHjMz3z4.d.cts} +1 -1
- package/dist/{index-BW15dLvd.d.mts → index-rpOwzLI6.d.mts} +7 -7
- package/dist/{index-C4PP7z-T.d.cts → index-xFVjmAaj.d.cts} +20 -20
- package/dist/index.cjs +177 -177
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +54 -54
- package/dist/index.mjs +57 -57
- package/dist/{listbox-anatomy-CmVVbWlj.d.mts → listbox-anatomy-BZxD8rBu.d.mts} +1 -1
- package/dist/{listbox-anatomy-BHU-R0-L.d.cts → listbox-anatomy-Bk1jxq9z.d.cts} +1 -1
- package/dist/listbox-anatomy-n6_oFbVn.cjs +13 -0
- package/dist/{locale-D3raWtvM.cjs → locale-C3PqkI4d.cjs} +6 -6
- package/dist/marquee-anatomy-DvTYru9n.cjs +1 -0
- package/dist/menu-anatomy-WIF6jnsz.cjs +1 -0
- package/dist/navigation-menu-anatomy-BjzIZ8IS.cjs +1 -0
- package/dist/number-input-anatomy-BYQT01JS.cjs +1 -0
- package/dist/pagination-anatomy-BfYg6peh.cjs +1 -0
- package/dist/password-input-anatomy-9qicCz1C.cjs +1 -0
- package/dist/pin-input-anatomy-B1wxt9i5.cjs +1 -0
- package/dist/popover-anatomy-D0XFWsEb.cjs +1 -0
- package/dist/{portal-DPViYwN5.mjs → portal-BBAhcDPi.mjs} +1 -1
- package/dist/{portal-CtFhUnti.cjs → portal-CtZyYAZi.cjs} +5 -5
- package/dist/{presence-iKKWvN-v.cjs → presence-C4LXhHqJ.cjs} +11 -11
- package/dist/{presence-DsT2DB6l.mjs → presence-cJ6WDRRn.mjs} +4 -4
- package/dist/progress-anatomy-_7jlOQoG.cjs +1 -0
- package/dist/qr-code-anatomy-DV8ZOzmo.cjs +1 -0
- package/dist/radio-group-anatomy-BsRgLNz3.cjs +1 -0
- package/dist/rating-group-anatomy-42Ty9XnC.cjs +1 -0
- package/dist/{render-strategy-BFt8QN3v.cjs → render-strategy-PtH88-lg.cjs} +2 -2
- package/dist/{render-strategy-DB0paNe_.mjs → render-strategy-qdbPeKxQ.mjs} +1 -1
- package/dist/scroll-area-anatomy-D3eA7R5N.cjs +1 -0
- package/dist/{segment-group-anatomy-DZKokXB8.d.cts → segment-group-anatomy-CaFzPyLk.d.cts} +1 -1
- package/dist/{segment-group-anatomy-C3-ibQRv.d.mts → segment-group-anatomy-DvwVVngG.d.mts} +1 -1
- package/dist/{segment-group-anatomy-CDEx99ku.cjs → segment-group-anatomy-wd4U3KQt.cjs} +3 -3
- package/dist/select-anatomy-COZxmoyU.cjs +1 -0
- package/dist/signature-pad-anatomy-BKHbCKp9.cjs +1 -0
- package/dist/slider-anatomy-BgUnr0k0.cjs +1 -0
- package/dist/splitter-anatomy-BokpycYY.cjs +1 -0
- package/dist/steps-anatomy-CKf2Vgy6.cjs +1 -0
- package/dist/switch-anatomy-QVHL5oxB.cjs +1 -0
- package/dist/tabs-anatomy-DFR0go55.cjs +1 -0
- package/dist/tags-input-anatomy-DGOxYEf5.cjs +1 -0
- package/dist/timer-anatomy-wIYZ8R63.cjs +1 -0
- package/dist/toast-anatomy-Db0QIqpx.cjs +1 -0
- package/dist/toggle-anatomy-BFTqVIfm.cjs +14 -0
- package/dist/toggle-group-anatomy-Dqk4nzrs.cjs +1 -0
- package/dist/tooltip-anatomy-BUT7X93k.cjs +1 -0
- package/dist/{tour-anatomy-DEEfDPXc.d.mts → tour-anatomy-BE8GMpYU.d.cts} +1 -1
- package/dist/{tour-anatomy-DYqhvOMY.d.cts → tour-anatomy-CQ77JcDW.d.mts} +1 -1
- package/dist/tour-anatomy-CdXI6VBE.cjs +13 -0
- package/dist/{tree-view-DFKSWAQJ.mjs → tree-view-CeeeGhJ3.mjs} +8 -8
- package/dist/{tree-view-B733zQBl.cjs → tree-view-DuquOg_A.cjs} +31 -31
- package/dist/tree-view-anatomy-0ChdG29n.cjs +1 -0
- package/dist/{use-event-BL68q4DR.cjs → use-event-CHv5QJkT.cjs} +1 -1
- package/dist/{use-fieldset-context-rTJubcWd.cjs → use-fieldset-context-CFrHx3_L.cjs} +1 -1
- package/dist/{use-safe-layout-effect-eViJP4Fs.cjs → use-safe-layout-effect-C4G5_A1s.cjs} +1 -1
- package/dist/utils/index.cjs +4 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/accordion-anatomy-TiYCIvSU.cjs +0 -1
- package/dist/anatomy-DZVQcsnx.cjs +0 -50
- package/dist/anatomy-DZcIojhw.d.mts +0 -51
- package/dist/anatomy-Fqi1rbnX.mjs +0 -52
- package/dist/angle-slider-anatomy-BarZytc0.cjs +0 -1
- package/dist/avatar-anatomy-C7tS8YMA.cjs +0 -1
- package/dist/bottom-sheet-anatomy-TCSwbPsz.cjs +0 -1
- package/dist/carousel-anatomy-Brr5h5DT.cjs +0 -13
- package/dist/carousel-anatomy-CwkFOEsD.d.cts +0 -6
- package/dist/checkbox-anatomy-D71wilRI.cjs +0 -13
- package/dist/clipboard-anatomy-BGpzSrp3.cjs +0 -1
- package/dist/collapsible-anatomy-CgzhYqkh.cjs +0 -1
- package/dist/color-picker-anatomy-DMskx2e2.cjs +0 -13
- package/dist/combobox-anatomy-BGkXFsVh.d.mts +0 -6
- package/dist/combobox-anatomy-CggVBmpr.d.cts +0 -6
- package/dist/combobox-anatomy-DcgOaDzw.cjs +0 -13
- package/dist/date-picker-anatomy-BzqdlOHy.cjs +0 -13
- package/dist/dialog-anatomy-4eC72hEa.cjs +0 -1
- package/dist/editable-anatomy--Lprbsy8.cjs +0 -1
- package/dist/fieldset-anatomy-BxcmDBAt.d.mts +0 -6
- package/dist/file-upload-anatomy-CVobYhZV.cjs +0 -1
- package/dist/floating-panel-anatomy-CG9s4mqd.cjs +0 -1
- package/dist/hover-card-anatomy-XAzrKFqw.cjs +0 -1
- package/dist/image-cropper-anatomy-OMUmSlmh.cjs +0 -1
- package/dist/listbox-anatomy-gkGe68ws.cjs +0 -13
- package/dist/marquee-anatomy-W0jdOy7x.cjs +0 -1
- package/dist/menu-anatomy-C4Rj1xEF.cjs +0 -1
- package/dist/navigation-menu-anatomy-eQxlXc6C.cjs +0 -1
- package/dist/number-input-anatomy-Cj83j2Bi.cjs +0 -1
- package/dist/pagination-anatomy-CWjoE6_C.cjs +0 -1
- package/dist/password-input-anatomy-Dx7zK78c.cjs +0 -1
- package/dist/pin-input-anatomy-DveeqgLN.cjs +0 -1
- package/dist/popover-anatomy-CfpIYZIo.cjs +0 -1
- package/dist/progress-anatomy-BtdAT4dQ.cjs +0 -1
- package/dist/qr-code-anatomy-FhaJsZF4.cjs +0 -1
- package/dist/radio-group-anatomy-CAh5fkBu.cjs +0 -1
- package/dist/rating-group-anatomy-Dqe5gIjm.cjs +0 -1
- package/dist/scroll-area-anatomy-CGAClGED.cjs +0 -1
- package/dist/select-anatomy-Ld7p8M5i.cjs +0 -1
- package/dist/signature-pad-anatomy-CCzIExLN.cjs +0 -1
- package/dist/slider-anatomy-ib0bbh6R.cjs +0 -1
- package/dist/splitter-anatomy-CQ0ixNs0.cjs +0 -1
- package/dist/steps-anatomy-BG7X0r1U.cjs +0 -1
- package/dist/switch-anatomy-DZWXiPbY.cjs +0 -1
- package/dist/tabs-anatomy-CRbdY2Vx.cjs +0 -1
- package/dist/tags-input-anatomy-mr-aRBvG.cjs +0 -1
- package/dist/timer-anatomy-DUm5g1bg.cjs +0 -1
- package/dist/toast-anatomy-Cov6ubHd.cjs +0 -1
- package/dist/toggle-anatomy-B2qpyV_G.cjs +0 -14
- package/dist/toggle-group-anatomy-SP8ZILZJ.cjs +0 -1
- package/dist/tooltip-anatomy-DQTI7HuY.cjs +0 -1
- package/dist/tour-anatomy-DL4J6JoA.cjs +0 -13
- package/dist/tree-view-anatomy-D-b5x1IP.cjs +0 -1
- package/dist/utils-B_Ojepvp.cjs +0 -1
- package/dist/utils-VISpNOGe.mjs +0 -3
- /package/dist/{accordion-anatomy-DM84wS7s.d.mts → accordion-anatomy-BjDvhYiZ.d.mts} +0 -0
- /package/dist/{accordion-anatomy-B9ODSC4s.mjs → accordion-anatomy-D7qz9nWp.mjs} +0 -0
- /package/dist/{angle-slider-anatomy-CJ8w7Vr8.d.mts → angle-slider-anatomy-Bv2y_yLX.d.mts} +0 -0
- /package/dist/{angle-slider-anatomy-D732WuyP.mjs → angle-slider-anatomy-CrrkVc1h.mjs} +0 -0
- /package/dist/{avatar-anatomy-BbK5QtHR.d.mts → avatar-anatomy-C_A-v5h1.d.mts} +0 -0
- /package/dist/{avatar-anatomy-BXgb7HMR.mjs → avatar-anatomy-CpP-IYQN.mjs} +0 -0
- /package/dist/{bottom-sheet-anatomy-BK2UyCm2.d.mts → bottom-sheet-anatomy-CoQwmmej.d.mts} +0 -0
- /package/dist/{bottom-sheet-anatomy-CslIkMUZ.mjs → bottom-sheet-anatomy-qdCuzqWj.mjs} +0 -0
- /package/dist/{carousel-anatomy-Bg15yjyC.mjs → carousel-anatomy-4S-Agb6o.mjs} +0 -0
- /package/dist/{checkbox-anatomy-CzngurY1.d.mts → checkbox-anatomy-DRmhYwIs.d.mts} +0 -0
- /package/dist/{checkbox-anatomy-CP9bBUnr.mjs → checkbox-anatomy-pPsZaOsI.mjs} +0 -0
- /package/dist/{clipboard-anatomy-B7vZDubi.mjs → clipboard-anatomy-AypSAhDs.mjs} +0 -0
- /package/dist/{clipboard-anatomy-C4z4Ic01.d.mts → clipboard-anatomy-DGkYUzx6.d.mts} +0 -0
- /package/dist/{collapsible-anatomy-BY04on8P.d.mts → collapsible-anatomy-DY8UZ6aK.d.mts} +0 -0
- /package/dist/{collapsible-anatomy-BJ1fU-lk.mjs → collapsible-anatomy-yQzXMAsu.mjs} +0 -0
- /package/dist/{color-picker-anatomy-DphCyLsu.mjs → color-picker-anatomy-3xUXFw2c.mjs} +0 -0
- /package/dist/{combobox-anatomy-D0yH6IiI.mjs → combobox-anatomy-Fj5IM76j.mjs} +0 -0
- /package/dist/{compose-refs-C5QNDywq.cjs → compose-refs-D8JygMj3.cjs} +0 -0
- /package/dist/{compose-refs-DtS_RGf4.mjs → compose-refs-DfK7aQwF.mjs} +0 -0
- /package/dist/{create-split-props-ButBrlN-.mjs → create-split-props-BHolGELv.mjs} +0 -0
- /package/dist/{create-split-props-3uzAEUIm.cjs → create-split-props-DyDT-QxT.cjs} +0 -0
- /package/dist/{date-picker-anatomy-DJjakP4t.mjs → date-picker-anatomy-X_d6BK7R.mjs} +0 -0
- /package/dist/{dialog-anatomy-cpl4yRBO.mjs → dialog-anatomy-DBElmBlC.mjs} +0 -0
- /package/dist/{dialog-anatomy-zxpC94aQ.d.mts → dialog-anatomy-DewiFtDw.d.mts} +0 -0
- /package/dist/{editable-anatomy-BvTzcLcu.d.mts → editable-anatomy-5zjxyN0U.d.mts} +0 -0
- /package/dist/{editable-anatomy-CGWwse5b.mjs → editable-anatomy-LGLovSVr.mjs} +0 -0
- /package/dist/{environment-SaOmH4By.mjs → environment-tHcckaxj.mjs} +0 -0
- /package/dist/{factory-FP_lLEyP.d.mts → factory-BHMhd025.d.mts} +0 -0
- /package/dist/{field-anatomy-LiwjUzYX.mjs → field-anatomy-lbqo_0oS.mjs} +0 -0
- /package/dist/{fieldset-anatomy-ByFjQHbS.mjs → fieldset-anatomy-CbOnthAm.mjs} +0 -0
- /package/dist/{file-upload-anatomy-DXyKjjeg.mjs → file-upload-anatomy-DVRYucGw.mjs} +0 -0
- /package/dist/{file-upload-anatomy-CVajVfa9.d.mts → file-upload-anatomy-ShLA5Vjv.d.mts} +0 -0
- /package/dist/{floating-panel-anatomy-CZOU8n0A.mjs → floating-panel-anatomy-B9Orhv8o.mjs} +0 -0
- /package/dist/{floating-panel-anatomy-CocrO3J-.d.mts → floating-panel-anatomy-CPPZkBpW.d.mts} +0 -0
- /package/dist/{hover-card-anatomy-B3iayejx.d.mts → hover-card-anatomy-Bj42vocJ.d.mts} +0 -0
- /package/dist/{hover-card-anatomy-DOBXa3L0.mjs → hover-card-anatomy-CQtlQUe_.mjs} +0 -0
- /package/dist/{image-cropper-anatomy-CYW_XdMj.mjs → image-cropper-anatomy-CSYrSFyq.mjs} +0 -0
- /package/dist/{image-cropper-anatomy-bs7Efinl.d.mts → image-cropper-anatomy-DJ0LYFWB.d.mts} +0 -0
- /package/dist/{index-CY4q0enN.d.mts → index-DZxjxmEf.d.mts} +0 -0
- /package/dist/{index-vVsZQ4T1.d.mts → index-MsrrZK-d.d.mts} +0 -0
- /package/dist/{index-vQ9UMDY6.d.mts → index-bnkolZBv.d.mts} +0 -0
- /package/dist/{listbox-anatomy-BH-gV3e9.mjs → listbox-anatomy-DPDustKl.mjs} +0 -0
- /package/dist/{locale-Bsrr4Z-J.mjs → locale-ypaK1JGy.mjs} +0 -0
- /package/dist/{marquee-anatomy-D6mTt9xn.d.mts → marquee-anatomy-CzQ2JNtJ.d.mts} +0 -0
- /package/dist/{marquee-anatomy-D1eUA9sr.mjs → marquee-anatomy-D_RABXng.mjs} +0 -0
- /package/dist/{menu-anatomy-BEImqCYk.mjs → menu-anatomy-BHtJiH-8.mjs} +0 -0
- /package/dist/{navigation-menu-anatomy-BLWGtaTR.d.mts → navigation-menu-anatomy-BmpEVMIc.d.mts} +0 -0
- /package/dist/{navigation-menu-anatomy-CYdBz045.mjs → navigation-menu-anatomy-CoEEyE5M.mjs} +0 -0
- /package/dist/{number-input-anatomy-nr2e4x5y.mjs → number-input-anatomy-D1aRkwwA.mjs} +0 -0
- /package/dist/{number-input-anatomy-CbyaS_2k.d.mts → number-input-anatomy-DZiFAj5A.d.mts} +0 -0
- /package/dist/{pagination-anatomy-DYcuGRAe.d.mts → pagination-anatomy-C4gl7RPp.d.mts} +0 -0
- /package/dist/{pagination-anatomy-mB3EiIXL.mjs → pagination-anatomy-Cp0yqj09.mjs} +0 -0
- /package/dist/{password-input-anatomy-D6tB1yTQ.mjs → password-input-anatomy-D1bDbErC.mjs} +0 -0
- /package/dist/{password-input-anatomy-CGyIpCw1.d.mts → password-input-anatomy-DgwdGDKt.d.mts} +0 -0
- /package/dist/{pin-input-anatomy-By-l4RXT.mjs → pin-input-anatomy-BD9tRplS.mjs} +0 -0
- /package/dist/{pin-input-anatomy-vXC3GGhL.d.mts → pin-input-anatomy-DXK9imHx.d.mts} +0 -0
- /package/dist/{popover-anatomy-gGz0lr7q.mjs → popover-anatomy-C4R9B1VO.mjs} +0 -0
- /package/dist/{popover-anatomy-DfuR3Cao.d.mts → popover-anatomy-DwPROe6n.d.mts} +0 -0
- /package/dist/{progress-anatomy-CXZavO9I.mjs → progress-anatomy-D4koBOth.mjs} +0 -0
- /package/dist/{progress-anatomy-DYDKsx2c.d.mts → progress-anatomy-SYGQyHY_.d.mts} +0 -0
- /package/dist/{providers-Dhji4k4B.mjs → providers-atRM3wB5.mjs} +0 -0
- /package/dist/{providers-BNAArubQ.cjs → providers-ur-JDrsf.cjs} +0 -0
- /package/dist/{qr-code-anatomy-C85oQynS.mjs → qr-code-anatomy-35Qa8k26.mjs} +0 -0
- /package/dist/{qr-code-anatomy-BHloN_cN.d.mts → qr-code-anatomy-D9dJpFw6.d.mts} +0 -0
- /package/dist/{radio-group-anatomy-B5WYKEEO.d.mts → radio-group-anatomy-7cm-biOb.d.mts} +0 -0
- /package/dist/{radio-group-anatomy-g0KbN9pG.mjs → radio-group-anatomy-ikpF0zYu.mjs} +0 -0
- /package/dist/{rating-group-anatomy-nPxqE8fz.mjs → rating-group-anatomy-BftUV9U6.mjs} +0 -0
- /package/dist/{rating-group-anatomy-CIenK6IJ.d.mts → rating-group-anatomy-D8v0aMfl.d.mts} +0 -0
- /package/dist/{render-strategy-xT5FMQr3.d.mts → render-strategy-B0TFI5G3.d.mts} +0 -0
- /package/dist/{scroll-area-anatomy-BC4pduog.mjs → scroll-area-anatomy-C-UaHasP.mjs} +0 -0
- /package/dist/{scroll-area-anatomy-M0Akp5gM.d.mts → scroll-area-anatomy-DlasggRV.d.mts} +0 -0
- /package/dist/{segment-group-anatomy-C9nG0XXn.mjs → segment-group-anatomy-maA9Z25m.mjs} +0 -0
- /package/dist/{select-anatomy-ANZvJnFP.d.mts → select-anatomy-DYC3hAzB.d.mts} +0 -0
- /package/dist/{select-anatomy-B3DAdkuc.mjs → select-anatomy-kXcpyDuX.mjs} +0 -0
- /package/dist/{signature-pad-anatomy-D-rUbP-D.mjs → signature-pad-anatomy-D3F2Ahr8.mjs} +0 -0
- /package/dist/{signature-pad-anatomy-B0NXQjlM.d.mts → signature-pad-anatomy-DQCYuQlL.d.mts} +0 -0
- /package/dist/{slider-anatomy-bB2ZN_7v.d.mts → slider-anatomy-D5pmjxdI.d.mts} +0 -0
- /package/dist/{slider-anatomy-CHAVNrE-.mjs → slider-anatomy-lwlkdKHs.mjs} +0 -0
- /package/dist/{splitter-anatomy-cxmhm9P1.d.mts → splitter-anatomy-CsUkEIRD.d.mts} +0 -0
- /package/dist/{splitter-anatomy-lw9nN6Os.mjs → splitter-anatomy-DwIGVKYP.mjs} +0 -0
- /package/dist/{steps-anatomy-l_xACyQU.d.mts → steps-anatomy-C-KmyTci.d.mts} +0 -0
- /package/dist/{steps-anatomy-L29X5b54.mjs → steps-anatomy-C4SIG77s.mjs} +0 -0
- /package/dist/{switch-anatomy-DLkJh8dW.d.mts → switch-anatomy-C7pZo86r.d.mts} +0 -0
- /package/dist/{switch-anatomy-25XoRlF9.mjs → switch-anatomy-sZj7UjX9.mjs} +0 -0
- /package/dist/{tabs-anatomy-DAH6NsVY.d.mts → tabs-anatomy-C28W3VK0.d.mts} +0 -0
- /package/dist/{tabs-anatomy-BFkzSLmz.mjs → tabs-anatomy-DYxjVB93.mjs} +0 -0
- /package/dist/{tags-input-anatomy-CWuQ53YR.mjs → tags-input-anatomy-Bkj54y9X.mjs} +0 -0
- /package/dist/{tags-input-anatomy-CfqbAIl5.d.mts → tags-input-anatomy-CbRkCDiT.d.mts} +0 -0
- /package/dist/{timer-anatomy-DkIszKtE.mjs → timer-anatomy-BNBMQ-5v.mjs} +0 -0
- /package/dist/{timer-anatomy-D543fp4K.d.mts → timer-anatomy-Cmp7ugO8.d.mts} +0 -0
- /package/dist/{toast-anatomy-BfJGt5x2.mjs → toast-anatomy-BeTfnL1w.mjs} +0 -0
- /package/dist/{toast-anatomy--lxC6HXz.d.mts → toast-anatomy-CiUISRvR.d.mts} +0 -0
- /package/dist/{toggle-anatomy-BF_-e1BY.d.mts → toggle-anatomy-CY5nT6Pd.d.mts} +0 -0
- /package/dist/{toggle-anatomy-Bvt2A4DJ.mjs → toggle-anatomy-iZ5zPR2s.mjs} +0 -0
- /package/dist/{toggle-group-anatomy-pDG2YN1o.mjs → toggle-group-anatomy-B1vbTBB1.mjs} +0 -0
- /package/dist/{toggle-group-anatomy-GDUrGh2o.d.mts → toggle-group-anatomy-B55PhzaJ.d.mts} +0 -0
- /package/dist/{tooltip-anatomy-Da49BV-l.mjs → tooltip-anatomy-C-23XWDF.mjs} +0 -0
- /package/dist/{tooltip-anatomy-BCTV9bmg.d.mts → tooltip-anatomy-d3gLxqP4.d.mts} +0 -0
- /package/dist/{tour-anatomy-DQvEQ0So.mjs → tour-anatomy-RndFkmPW.mjs} +0 -0
- /package/dist/{tree-view-anatomy-DAP4zwFO.mjs → tree-view-anatomy-BRw-O_EZ.mjs} +0 -0
- /package/dist/{tree-view-anatomy-BKVVcKzs.d.mts → tree-view-anatomy-bN8lKZwN.d.mts} +0 -0
- /package/dist/{types-DRV9A4aT.d.mts → types-B9Rw35YE.d.mts} +0 -0
- /package/dist/{use-event-BQvOizow.mjs → use-event-B3MQ10xO.mjs} +0 -0
- /package/dist/{use-fieldset-context-CYT86HpU.mjs → use-fieldset-context-Bww688EY.mjs} +0 -0
- /package/dist/{use-safe-layout-effect-UfjICYRK.mjs → use-safe-layout-effect-CerbN9KP.mjs} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
let
|
|
3
|
-
let
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
let _sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
3
|
+
let _sprawlify_primitives_utils = require("@sprawlify/primitives/utils");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_chunk.__toESM(react);
|
|
6
6
|
let react_dom = require("react-dom");
|
|
7
|
-
let
|
|
7
|
+
let _sprawlify_primitives_types = require("@sprawlify/primitives/types");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/core/use-layout-effect.ts
|
|
@@ -26,7 +26,7 @@ function useBindable(props) {
|
|
|
26
26
|
}, [value, props().value]);
|
|
27
27
|
const setFn = (value$1) => {
|
|
28
28
|
const prev = prevValue.current;
|
|
29
|
-
const next = (0,
|
|
29
|
+
const next = (0, _sprawlify_primitives_utils.isFunction)(value$1) ? value$1(prev) : value$1;
|
|
30
30
|
if (props().debug) console.log(`[bindable > ${props().debug}] setValue`, {
|
|
31
31
|
next,
|
|
32
32
|
prev
|
|
@@ -42,7 +42,7 @@ function useBindable(props) {
|
|
|
42
42
|
ref: valueRef,
|
|
43
43
|
get,
|
|
44
44
|
set(value$1) {
|
|
45
|
-
(props().sync ? react_dom.flushSync :
|
|
45
|
+
(props().sync ? react_dom.flushSync : _sprawlify_primitives_utils.identity)(() => setFn(value$1));
|
|
46
46
|
},
|
|
47
47
|
invoke(nextValue, prevValue$1) {
|
|
48
48
|
props().onChange?.(nextValue, prevValue$1);
|
|
@@ -101,7 +101,7 @@ const useTrack = (deps, effect) => {
|
|
|
101
101
|
function useMachine(machine, userProps = {}) {
|
|
102
102
|
const scope = (0, react.useMemo)(() => {
|
|
103
103
|
const { id, ids, getRootNode } = userProps;
|
|
104
|
-
return (0,
|
|
104
|
+
return (0, _sprawlify_primitives_core.createScope)({
|
|
105
105
|
id,
|
|
106
106
|
ids,
|
|
107
107
|
getRootNode
|
|
@@ -111,7 +111,7 @@ function useMachine(machine, userProps = {}) {
|
|
|
111
111
|
if (machine.debug) console.log(...args);
|
|
112
112
|
};
|
|
113
113
|
const prop = useProp(machine.props?.({
|
|
114
|
-
props: (0,
|
|
114
|
+
props: (0, _sprawlify_primitives_utils.compact)(userProps),
|
|
115
115
|
scope
|
|
116
116
|
}) ?? userProps);
|
|
117
117
|
const context = machine.context?.({
|
|
@@ -190,25 +190,25 @@ function useMachine(machine, userProps = {}) {
|
|
|
190
190
|
choose
|
|
191
191
|
});
|
|
192
192
|
const action = (keys) => {
|
|
193
|
-
const strs = (0,
|
|
193
|
+
const strs = (0, _sprawlify_primitives_utils.isFunction)(keys) ? keys(getParams()) : keys;
|
|
194
194
|
if (!strs) return;
|
|
195
195
|
const fns = strs.map((s) => {
|
|
196
196
|
const fn = machine.implementations?.actions?.[s];
|
|
197
|
-
if (!fn) (0,
|
|
197
|
+
if (!fn) (0, _sprawlify_primitives_utils.warn)(`[sprawlify-js] No implementation found for action "${JSON.stringify(s)}"`);
|
|
198
198
|
return fn;
|
|
199
199
|
});
|
|
200
200
|
for (const fn of fns) fn?.(getParams());
|
|
201
201
|
};
|
|
202
202
|
const guard = (str) => {
|
|
203
|
-
if ((0,
|
|
203
|
+
if ((0, _sprawlify_primitives_utils.isFunction)(str)) return str(getParams());
|
|
204
204
|
return machine.implementations?.guards?.[str](getParams());
|
|
205
205
|
};
|
|
206
206
|
const effect = (keys) => {
|
|
207
|
-
const strs = (0,
|
|
207
|
+
const strs = (0, _sprawlify_primitives_utils.isFunction)(keys) ? keys(getParams()) : keys;
|
|
208
208
|
if (!strs) return;
|
|
209
209
|
const fns = strs.map((s) => {
|
|
210
210
|
const fn = machine.implementations?.effects?.[s];
|
|
211
|
-
if (!fn) (0,
|
|
211
|
+
if (!fn) (0, _sprawlify_primitives_utils.warn)(`[sprawlify-js] No implementation found for effect "${JSON.stringify(s)}"`);
|
|
212
212
|
return fn;
|
|
213
213
|
});
|
|
214
214
|
const cleanups = [];
|
|
@@ -219,15 +219,15 @@ function useMachine(machine, userProps = {}) {
|
|
|
219
219
|
return () => cleanups.forEach((fn) => fn?.());
|
|
220
220
|
};
|
|
221
221
|
const choose = (transitions) => {
|
|
222
|
-
return (0,
|
|
222
|
+
return (0, _sprawlify_primitives_utils.toArray)(transitions).find((t) => {
|
|
223
223
|
let result = !t.guard;
|
|
224
|
-
if ((0,
|
|
225
|
-
else if ((0,
|
|
224
|
+
if ((0, _sprawlify_primitives_utils.isString)(t.guard)) result = !!guard(t.guard);
|
|
225
|
+
else if ((0, _sprawlify_primitives_utils.isFunction)(t.guard)) result = t.guard(getParams());
|
|
226
226
|
return result;
|
|
227
227
|
});
|
|
228
228
|
};
|
|
229
229
|
const computed = (key) => {
|
|
230
|
-
(0,
|
|
230
|
+
(0, _sprawlify_primitives_utils.ensure)(machine.computed, () => `[sprawlify-js] No computed object found on machine`);
|
|
231
231
|
const fn = machine.computed[key];
|
|
232
232
|
return fn({
|
|
233
233
|
context: ctx,
|
|
@@ -249,30 +249,30 @@ function useMachine(machine, userProps = {}) {
|
|
|
249
249
|
action(transitionRef.current?.actions);
|
|
250
250
|
const cleanup = effect(machine.states[nextState]?.effects);
|
|
251
251
|
if (cleanup) effects.current.set(nextState, cleanup);
|
|
252
|
-
if (prevState ===
|
|
252
|
+
if (prevState === _sprawlify_primitives_core.INIT_STATE) {
|
|
253
253
|
action(machine.entry);
|
|
254
254
|
const cleanup$1 = effect(machine.effects);
|
|
255
|
-
if (cleanup$1) effects.current.set(
|
|
255
|
+
if (cleanup$1) effects.current.set(_sprawlify_primitives_core.INIT_STATE, cleanup$1);
|
|
256
256
|
}
|
|
257
257
|
action(machine.states[nextState]?.entry);
|
|
258
258
|
}
|
|
259
259
|
}));
|
|
260
260
|
const hydratedStateRef = (0, react.useRef)(void 0);
|
|
261
|
-
const statusRef = (0, react.useRef)(
|
|
261
|
+
const statusRef = (0, react.useRef)(_sprawlify_primitives_core.MachineStatus.NotStarted);
|
|
262
262
|
useSafeLayoutEffect(() => {
|
|
263
263
|
queueMicrotask(() => {
|
|
264
|
-
const started = statusRef.current ===
|
|
265
|
-
statusRef.current =
|
|
264
|
+
const started = statusRef.current === _sprawlify_primitives_core.MachineStatus.Started;
|
|
265
|
+
statusRef.current = _sprawlify_primitives_core.MachineStatus.Started;
|
|
266
266
|
debug(started ? "rehydrating..." : "initializing...");
|
|
267
267
|
const initialState = hydratedStateRef.current ?? state.initial;
|
|
268
|
-
state.invoke(initialState, started ? state.get() :
|
|
268
|
+
state.invoke(initialState, started ? state.get() : _sprawlify_primitives_core.INIT_STATE);
|
|
269
269
|
});
|
|
270
270
|
const fns = effects.current;
|
|
271
271
|
const currentState = state.ref.current;
|
|
272
272
|
return () => {
|
|
273
273
|
debug("unmounting...");
|
|
274
274
|
hydratedStateRef.current = currentState;
|
|
275
|
-
statusRef.current =
|
|
275
|
+
statusRef.current = _sprawlify_primitives_core.MachineStatus.Stopped;
|
|
276
276
|
fns.forEach((fn) => fn?.());
|
|
277
277
|
effects.current = /* @__PURE__ */ new Map();
|
|
278
278
|
transitionRef.current = null;
|
|
@@ -287,7 +287,7 @@ function useMachine(machine, userProps = {}) {
|
|
|
287
287
|
};
|
|
288
288
|
const send = (event) => {
|
|
289
289
|
queueMicrotask(() => {
|
|
290
|
-
if (statusRef.current !==
|
|
290
|
+
if (statusRef.current !== _sprawlify_primitives_core.MachineStatus.Started) return;
|
|
291
291
|
previousEventRef.current = eventRef.current;
|
|
292
292
|
eventRef.current = event;
|
|
293
293
|
const currentState = getCurrentState();
|
|
@@ -334,7 +334,7 @@ function flush(fn) {
|
|
|
334
334
|
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/core/normalize-props.ts
|
|
337
|
-
const normalizeProps = (0,
|
|
337
|
+
const normalizeProps = (0, _sprawlify_primitives_types.createNormalizer)((v) => v);
|
|
338
338
|
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/core/portal.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
let
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
let _sprawlify_primitives_utils = require("@sprawlify/primitives/utils");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
|
|
5
5
|
//#region src/utils/create-context.ts
|
|
@@ -15,7 +15,7 @@ function createContext(options = {}) {
|
|
|
15
15
|
if (!context && strict) {
|
|
16
16
|
const error = new Error(errorMessage ?? getErrorMessage(hookName, providerName));
|
|
17
17
|
error.name = "ContextError";
|
|
18
|
-
if ((0,
|
|
18
|
+
if ((0, _sprawlify_primitives_utils.hasProp)(Error, "captureStackTrace") && (0, _sprawlify_primitives_utils.isFunction)(Error.captureStackTrace)) Error.captureStackTrace(error, useContext);
|
|
19
19
|
throw error;
|
|
20
20
|
}
|
|
21
21
|
return context;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _sprawlify_primitives_anatomy3 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/date-picker/date-picker-anatomy.d.ts
|
|
4
|
-
declare const datePickerAnatomy: _sprawlify_primitives_anatomy3.AnatomyInstance<"input" | "label" | "table" | "view" | "content" | "root" | "
|
|
4
|
+
declare const datePickerAnatomy: _sprawlify_primitives_anatomy3.AnatomyInstance<"input" | "label" | "table" | "view" | "content" | "root" | "trigger" | "control" | "clearTrigger" | "positioner" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { datePickerAnatomy as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
let _sprawlify_primitives_machines_date_picker = require("@sprawlify/primitives/machines/date-picker");
|
|
3
|
+
|
|
4
|
+
//#region src/components/date-picker/date-picker-anatomy.ts
|
|
5
|
+
const datePickerAnatomy = _sprawlify_primitives_machines_date_picker.anatomy.extendWith("view");
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, 'datePickerAnatomy', {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return datePickerAnatomy;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _sprawlify_primitives_anatomy2 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/date-picker/date-picker-anatomy.d.ts
|
|
4
|
-
declare const datePickerAnatomy:
|
|
4
|
+
declare const datePickerAnatomy: _sprawlify_primitives_anatomy2.AnatomyInstance<"input" | "label" | "table" | "view" | "content" | "root" | "trigger" | "control" | "clearTrigger" | "positioner" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { datePickerAnatomy as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let _sprawlify_primitives_machines_dialog = require("@sprawlify/primitives/machines/dialog");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let _sprawlify_primitives_machines_editable = require("@sprawlify/primitives/machines/editable");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
const require_create_context = require('./create-context-
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
const require_create_context = require('./create-context-DVn3n7gf.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let
|
|
5
|
+
let _sprawlify_primitives_dom_query = require("@sprawlify/primitives/dom-query");
|
|
6
6
|
|
|
7
7
|
//#region src/utils/run-if-fn.ts
|
|
8
8
|
const isFunction = (value) => typeof value === "function";
|
|
@@ -33,8 +33,8 @@ const EnvironmentProvider = (props) => {
|
|
|
33
33
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(EnvironmentContextProvider, {
|
|
34
34
|
value: (0, react.useMemo)(() => ({
|
|
35
35
|
getRootNode,
|
|
36
|
-
getWindow: () => (0,
|
|
37
|
-
getDocument: () => (0,
|
|
36
|
+
getWindow: () => (0, _sprawlify_primitives_dom_query.getWindow)(getRootNode()),
|
|
37
|
+
getDocument: () => (0, _sprawlify_primitives_dom_query.getDocument)(getRootNode())
|
|
38
38
|
}), [getRootNode]),
|
|
39
39
|
children: [children, !value && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
40
40
|
hidden: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
const require_compose_refs = require('./compose-refs-
|
|
3
|
-
let
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
const require_compose_refs = require('./compose-refs-D8JygMj3.cjs');
|
|
3
|
+
let _sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/components/factory.ts
|
|
@@ -24,7 +24,7 @@ const withAsChild = (Component) => {
|
|
|
24
24
|
const onlyChild = react.Children.only(children);
|
|
25
25
|
const childRef = getRef(onlyChild);
|
|
26
26
|
return (0, react.cloneElement)(onlyChild, {
|
|
27
|
-
...(0,
|
|
27
|
+
...(0, _sprawlify_primitives_core.mergeProps)(restProps, onlyChild.props),
|
|
28
28
|
ref: ref ? require_compose_refs.composeRefs(ref, childRef) : childRef
|
|
29
29
|
});
|
|
30
30
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as composeRefs } from "./compose-refs-
|
|
1
|
+
import { t as composeRefs } from "./compose-refs-DfK7aQwF.mjs";
|
|
2
2
|
import { mergeProps } from "@sprawlify/primitives/core";
|
|
3
3
|
import { Children, cloneElement, createElement, forwardRef, isValidElement, memo } from "react";
|
|
4
4
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
const require_create_context = require('./create-context-
|
|
3
|
-
const require_environment = require('./environment-
|
|
4
|
-
const require_compose_refs = require('./compose-refs-
|
|
5
|
-
const require_factory = require('./factory-
|
|
6
|
-
const require_field_anatomy = require('./field-anatomy-
|
|
7
|
-
const require_create_split_props = require('./create-split-props-
|
|
8
|
-
const require_use_fieldset_context = require('./use-fieldset-context-
|
|
9
|
-
const require_use_safe_layout_effect = require('./use-safe-layout-effect-
|
|
10
|
-
let
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
const require_create_context = require('./create-context-DVn3n7gf.cjs');
|
|
3
|
+
const require_environment = require('./environment-Bg7owXYh.cjs');
|
|
4
|
+
const require_compose_refs = require('./compose-refs-D8JygMj3.cjs');
|
|
5
|
+
const require_factory = require('./factory-Cz8-l4y-.cjs');
|
|
6
|
+
const require_field_anatomy = require('./field-anatomy-gybp6xfg.cjs');
|
|
7
|
+
const require_create_split_props = require('./create-split-props-DyDT-QxT.cjs');
|
|
8
|
+
const require_use_fieldset_context = require('./use-fieldset-context-CFrHx3_L.cjs');
|
|
9
|
+
const require_use_safe_layout_effect = require('./use-safe-layout-effect-C4G5_A1s.cjs');
|
|
10
|
+
let _sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
11
11
|
let react = require("react");
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
-
let
|
|
14
|
-
let
|
|
13
|
+
let _sprawlify_primitives_dom_query = require("@sprawlify/primitives/dom-query");
|
|
14
|
+
let _sprawlify_primitives_auto_resize = require("@sprawlify/primitives/auto-resize");
|
|
15
15
|
|
|
16
16
|
//#region src/components/field/use-field-context.ts
|
|
17
17
|
const [FieldProvider, useFieldContext] = require_create_context.createContext({
|
|
@@ -29,7 +29,7 @@ const FieldContext = (props) => props.children(useFieldContext());
|
|
|
29
29
|
//#region src/components/field/field-error-text.tsx
|
|
30
30
|
const FieldErrorText = (0, react.forwardRef)((props, ref) => {
|
|
31
31
|
const field = useFieldContext();
|
|
32
|
-
const mergedProps = (0,
|
|
32
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(field.getErrorTextProps(), props);
|
|
33
33
|
if (field?.invalid) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
34
34
|
...mergedProps,
|
|
35
35
|
ref
|
|
@@ -41,7 +41,7 @@ FieldErrorText.displayName = "FieldErrorText";
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/components/field/field-helper-text.tsx
|
|
43
43
|
const FieldHelperText = (0, react.forwardRef)((props, ref) => {
|
|
44
|
-
const mergedProps = (0,
|
|
44
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(useFieldContext()?.getHelperTextProps(), props);
|
|
45
45
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
46
46
|
...mergedProps,
|
|
47
47
|
ref
|
|
@@ -52,7 +52,7 @@ FieldHelperText.displayName = "FieldHelperText";
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/components/field/field-input.tsx
|
|
54
54
|
const FieldInput = (0, react.forwardRef)((props, ref) => {
|
|
55
|
-
const mergedProps = (0,
|
|
55
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(useFieldContext()?.getInputProps(), props);
|
|
56
56
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.input, {
|
|
57
57
|
...mergedProps,
|
|
58
58
|
ref
|
|
@@ -63,7 +63,7 @@ FieldInput.displayName = "FieldInput";
|
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/field/field-label.tsx
|
|
65
65
|
const FieldLabel = (0, react.forwardRef)((props, ref) => {
|
|
66
|
-
const mergedProps = (0,
|
|
66
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(useFieldContext()?.getLabelProps(), props);
|
|
67
67
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.label, {
|
|
68
68
|
...mergedProps,
|
|
69
69
|
ref
|
|
@@ -76,7 +76,7 @@ FieldLabel.displayName = "FieldLabel";
|
|
|
76
76
|
const FieldRequiredIndicator = (0, react.forwardRef)(({ fallback, ...props }, ref) => {
|
|
77
77
|
const field = useFieldContext();
|
|
78
78
|
if (!field.required) return fallback;
|
|
79
|
-
const mergedProps = (0,
|
|
79
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(field.getRequiredIndicatorProps(), props);
|
|
80
80
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
81
81
|
...mergedProps,
|
|
82
82
|
ref,
|
|
@@ -137,9 +137,9 @@ const useField = (props = {}) => {
|
|
|
137
137
|
id: rootId,
|
|
138
138
|
ref: rootRef,
|
|
139
139
|
role: "group",
|
|
140
|
-
"data-disabled": (0,
|
|
141
|
-
"data-invalid": (0,
|
|
142
|
-
"data-readonly": (0,
|
|
140
|
+
"data-disabled": (0, _sprawlify_primitives_dom_query.dataAttr)(disabled),
|
|
141
|
+
"data-invalid": (0, _sprawlify_primitives_dom_query.dataAttr)(invalid),
|
|
142
|
+
"data-readonly": (0, _sprawlify_primitives_dom_query.dataAttr)(readOnly)
|
|
143
143
|
}), [
|
|
144
144
|
disabled,
|
|
145
145
|
invalid,
|
|
@@ -149,10 +149,10 @@ const useField = (props = {}) => {
|
|
|
149
149
|
const getLabelProps = (0, react.useMemo)(() => () => ({
|
|
150
150
|
...require_field_anatomy.parts.label.attrs,
|
|
151
151
|
id: labelId,
|
|
152
|
-
"data-disabled": (0,
|
|
153
|
-
"data-invalid": (0,
|
|
154
|
-
"data-readonly": (0,
|
|
155
|
-
"data-required": (0,
|
|
152
|
+
"data-disabled": (0, _sprawlify_primitives_dom_query.dataAttr)(disabled),
|
|
153
|
+
"data-invalid": (0, _sprawlify_primitives_dom_query.dataAttr)(invalid),
|
|
154
|
+
"data-readonly": (0, _sprawlify_primitives_dom_query.dataAttr)(readOnly),
|
|
155
|
+
"data-required": (0, _sprawlify_primitives_dom_query.dataAttr)(required),
|
|
156
156
|
htmlFor: id
|
|
157
157
|
}), [
|
|
158
158
|
disabled,
|
|
@@ -164,10 +164,10 @@ const useField = (props = {}) => {
|
|
|
164
164
|
]);
|
|
165
165
|
const getControlProps = (0, react.useMemo)(() => () => ({
|
|
166
166
|
"aria-describedby": labelIds,
|
|
167
|
-
"aria-invalid": (0,
|
|
168
|
-
"data-invalid": (0,
|
|
169
|
-
"data-required": (0,
|
|
170
|
-
"data-readonly": (0,
|
|
167
|
+
"aria-invalid": (0, _sprawlify_primitives_dom_query.ariaAttr)(invalid),
|
|
168
|
+
"data-invalid": (0, _sprawlify_primitives_dom_query.dataAttr)(invalid),
|
|
169
|
+
"data-required": (0, _sprawlify_primitives_dom_query.dataAttr)(required),
|
|
170
|
+
"data-readonly": (0, _sprawlify_primitives_dom_query.dataAttr)(readOnly),
|
|
171
171
|
id,
|
|
172
172
|
required,
|
|
173
173
|
disabled,
|
|
@@ -195,7 +195,7 @@ const useField = (props = {}) => {
|
|
|
195
195
|
const getHelperTextProps = (0, react.useMemo)(() => () => ({
|
|
196
196
|
id: helperTextId,
|
|
197
197
|
...require_field_anatomy.parts.helperText.attrs,
|
|
198
|
-
"data-disabled": (0,
|
|
198
|
+
"data-disabled": (0, _sprawlify_primitives_dom_query.dataAttr)(disabled)
|
|
199
199
|
}), [disabled, helperTextId]);
|
|
200
200
|
const getErrorTextProps = (0, react.useMemo)(() => () => ({
|
|
201
201
|
id: errorTextId,
|
|
@@ -244,7 +244,7 @@ const FieldRoot = (0, react.forwardRef)((props, ref) => {
|
|
|
244
244
|
"required"
|
|
245
245
|
]);
|
|
246
246
|
const field = useField(useFieldProps);
|
|
247
|
-
const mergedProps = (0,
|
|
247
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(field.getRootProps(), localProps);
|
|
248
248
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldProvider, {
|
|
249
249
|
value: field,
|
|
250
250
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
@@ -260,7 +260,7 @@ FieldRoot.displayName = "FieldRoot";
|
|
|
260
260
|
const splitRootProviderProps = require_create_split_props.createSplitProps();
|
|
261
261
|
const FieldRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
262
262
|
const [{ value: field }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
263
|
-
const mergedProps = (0,
|
|
263
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(field.getRootProps(), localProps);
|
|
264
264
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldProvider, {
|
|
265
265
|
value: field,
|
|
266
266
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.div, {
|
|
@@ -274,7 +274,7 @@ FieldRootProvider.displayName = "FieldRootProvider";
|
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region src/components/field/field-select.tsx
|
|
276
276
|
const FieldSelect = (0, react.forwardRef)((props, ref) => {
|
|
277
|
-
const mergedProps = (0,
|
|
277
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(useFieldContext()?.getSelectProps(), props);
|
|
278
278
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.select, {
|
|
279
279
|
...mergedProps,
|
|
280
280
|
ref
|
|
@@ -287,10 +287,10 @@ FieldSelect.displayName = "FieldSelect";
|
|
|
287
287
|
const FieldTextarea = (0, react.forwardRef)((props, ref) => {
|
|
288
288
|
const { autoresize, ...textareaProps } = props;
|
|
289
289
|
const textareaRef = (0, react.useRef)(null);
|
|
290
|
-
const mergedProps = (0,
|
|
290
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(useFieldContext()?.getTextareaProps(), { style: { resize: autoresize ? "none" : void 0 } }, textareaProps);
|
|
291
291
|
(0, react.useEffect)(() => {
|
|
292
292
|
if (!autoresize) return;
|
|
293
|
-
return (0,
|
|
293
|
+
return (0, _sprawlify_primitives_auto_resize.autoresizeTextarea)(textareaRef.current);
|
|
294
294
|
}, [autoresize]);
|
|
295
295
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.textarea, {
|
|
296
296
|
...mergedProps,
|
|
@@ -301,7 +301,7 @@ FieldTextarea.displayName = "FieldTextarea";
|
|
|
301
301
|
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region src/components/field/field.ts
|
|
304
|
-
var field_exports = /* @__PURE__ */ require_chunk.
|
|
304
|
+
var field_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
305
305
|
Context: () => FieldContext,
|
|
306
306
|
ErrorText: () => FieldErrorText,
|
|
307
307
|
HelperText: () => FieldHelperText,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as __exportAll } from "./chunk-DXsV1_K-.mjs";
|
|
2
2
|
import { t as mergeProps$1 } from "./core-D5Nn8Do7.mjs";
|
|
3
3
|
import { t as createContext$1 } from "./create-context-C9f3ZSYn.mjs";
|
|
4
|
-
import { n as useEnvironmentContext } from "./environment-
|
|
5
|
-
import { t as composeRefs } from "./compose-refs-
|
|
6
|
-
import { n as sprawlify } from "./factory-
|
|
7
|
-
import { n as parts } from "./field-anatomy-
|
|
8
|
-
import { t as createSplitProps } from "./create-split-props-
|
|
9
|
-
import { n as useFieldsetContext } from "./use-fieldset-context-
|
|
10
|
-
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-
|
|
4
|
+
import { n as useEnvironmentContext } from "./environment-tHcckaxj.mjs";
|
|
5
|
+
import { t as composeRefs } from "./compose-refs-DfK7aQwF.mjs";
|
|
6
|
+
import { n as sprawlify } from "./factory-KspIEfUN.mjs";
|
|
7
|
+
import { n as parts } from "./field-anatomy-lbqo_0oS.mjs";
|
|
8
|
+
import { t as createSplitProps } from "./create-split-props-BHolGELv.mjs";
|
|
9
|
+
import { n as useFieldsetContext } from "./use-fieldset-context-Bww688EY.mjs";
|
|
10
|
+
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-CerbN9KP.mjs";
|
|
11
11
|
import { mergeProps } from "@sprawlify/primitives/core";
|
|
12
12
|
import { forwardRef, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -302,7 +302,7 @@ FieldTextarea.displayName = "FieldTextarea";
|
|
|
302
302
|
|
|
303
303
|
//#endregion
|
|
304
304
|
//#region src/components/field/field.ts
|
|
305
|
-
var field_exports = /* @__PURE__ */
|
|
305
|
+
var field_exports = /* @__PURE__ */ __exportAll({
|
|
306
306
|
Context: () => FieldContext,
|
|
307
307
|
ErrorText: () => FieldErrorText,
|
|
308
308
|
HelperText: () => FieldHelperText,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _sprawlify_primitives_anatomy4 from "@sprawlify/primitives/anatomy";
|
|
2
2
|
|
|
3
3
|
//#region src/components/field/field-anatomy.d.ts
|
|
4
|
-
declare const fieldAnatomy:
|
|
4
|
+
declare const fieldAnatomy: _sprawlify_primitives_anatomy4.AnatomyInstance<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { fieldAnatomy as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
let
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
let _sprawlify_primitives_anatomy = require("@sprawlify/primitives/anatomy");
|
|
3
3
|
|
|
4
4
|
//#region src/components/field/field-anatomy.ts
|
|
5
|
-
const fieldAnatomy = (0,
|
|
5
|
+
const fieldAnatomy = (0, _sprawlify_primitives_anatomy.createAnatomy)("field").parts("root", "errorText", "helperText", "input", "label", "select", "textarea", "requiredIndicator");
|
|
6
6
|
const parts = fieldAnatomy.build();
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as __exportAll } from "./chunk-DXsV1_K-.mjs";
|
|
2
2
|
import { t as mergeProps } from "./core-D5Nn8Do7.mjs";
|
|
3
|
-
import { n as useEnvironmentContext } from "./environment-
|
|
4
|
-
import { t as composeRefs } from "./compose-refs-
|
|
5
|
-
import { n as sprawlify } from "./factory-
|
|
6
|
-
import { n as parts } from "./fieldset-anatomy-
|
|
7
|
-
import { t as createSplitProps } from "./create-split-props-
|
|
8
|
-
import { n as useFieldsetContext, t as FieldsetProvider } from "./use-fieldset-context-
|
|
9
|
-
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-
|
|
3
|
+
import { n as useEnvironmentContext } from "./environment-tHcckaxj.mjs";
|
|
4
|
+
import { t as composeRefs } from "./compose-refs-DfK7aQwF.mjs";
|
|
5
|
+
import { n as sprawlify } from "./factory-KspIEfUN.mjs";
|
|
6
|
+
import { n as parts } from "./fieldset-anatomy-CbOnthAm.mjs";
|
|
7
|
+
import { t as createSplitProps } from "./create-split-props-BHolGELv.mjs";
|
|
8
|
+
import { n as useFieldsetContext, t as FieldsetProvider } from "./use-fieldset-context-Bww688EY.mjs";
|
|
9
|
+
import { t as useSafeLayoutEffect } from "./use-safe-layout-effect-CerbN9KP.mjs";
|
|
10
10
|
import { forwardRef, useId, useRef, useState } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
import { dataAttr } from "@sprawlify/primitives/dom-query";
|
|
@@ -168,7 +168,7 @@ FieldsetRootProvider.displayName = "FieldsetRootProvider";
|
|
|
168
168
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region src/components/fieldset/fieldset.ts
|
|
171
|
-
var fieldset_exports = /* @__PURE__ */
|
|
171
|
+
var fieldset_exports = /* @__PURE__ */ __exportAll({
|
|
172
172
|
Context: () => FieldsetContext,
|
|
173
173
|
ErrorText: () => FieldsetErrorText,
|
|
174
174
|
HelperText: () => FieldsetHelperText,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
const require_environment = require('./environment-
|
|
3
|
-
const require_compose_refs = require('./compose-refs-
|
|
4
|
-
const require_factory = require('./factory-
|
|
5
|
-
const require_fieldset_anatomy = require('./fieldset-anatomy-
|
|
6
|
-
const require_create_split_props = require('./create-split-props-
|
|
7
|
-
const require_use_fieldset_context = require('./use-fieldset-context-
|
|
8
|
-
const require_use_safe_layout_effect = require('./use-safe-layout-effect-
|
|
1
|
+
const require_chunk = require('./chunk-CvCQGRaV.cjs');
|
|
2
|
+
const require_environment = require('./environment-Bg7owXYh.cjs');
|
|
3
|
+
const require_compose_refs = require('./compose-refs-D8JygMj3.cjs');
|
|
4
|
+
const require_factory = require('./factory-Cz8-l4y-.cjs');
|
|
5
|
+
const require_fieldset_anatomy = require('./fieldset-anatomy-D60WIwKp.cjs');
|
|
6
|
+
const require_create_split_props = require('./create-split-props-DyDT-QxT.cjs');
|
|
7
|
+
const require_use_fieldset_context = require('./use-fieldset-context-CFrHx3_L.cjs');
|
|
8
|
+
const require_use_safe_layout_effect = require('./use-safe-layout-effect-C4G5_A1s.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
-
let
|
|
12
|
-
let
|
|
11
|
+
let _sprawlify_primitives_dom_query = require("@sprawlify/primitives/dom-query");
|
|
12
|
+
let _sprawlify_primitives_core = require("@sprawlify/primitives/core");
|
|
13
13
|
|
|
14
14
|
//#region src/components/fieldset/fieldset-context.tsx
|
|
15
15
|
const FieldsetContext = (props) => props.children(require_use_fieldset_context.useFieldsetContext());
|
|
@@ -18,7 +18,7 @@ const FieldsetContext = (props) => props.children(require_use_fieldset_context.u
|
|
|
18
18
|
//#region src/components/fieldset/fieldset-error-text.tsx
|
|
19
19
|
const FieldsetErrorText = (0, react.forwardRef)((props, ref) => {
|
|
20
20
|
const fieldset = require_use_fieldset_context.useFieldsetContext();
|
|
21
|
-
const mergedProps = (0,
|
|
21
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(fieldset.getErrorTextProps(), props);
|
|
22
22
|
return fieldset.invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
23
23
|
...mergedProps,
|
|
24
24
|
ref
|
|
@@ -29,7 +29,7 @@ FieldsetErrorText.displayName = "FieldsetErrorText";
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/fieldset/fieldset-helper-text.tsx
|
|
31
31
|
const FieldsetHelperText = (0, react.forwardRef)((props, ref) => {
|
|
32
|
-
const mergedProps = (0,
|
|
32
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(require_use_fieldset_context.useFieldsetContext().getHelperTextProps(), props);
|
|
33
33
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.span, {
|
|
34
34
|
...mergedProps,
|
|
35
35
|
ref
|
|
@@ -40,7 +40,7 @@ FieldsetHelperText.displayName = "FieldsetHelperText";
|
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/components/fieldset/fieldset-legend.tsx
|
|
42
42
|
const FieldsetLegend = (0, react.forwardRef)((props, ref) => {
|
|
43
|
-
const mergedProps = (0,
|
|
43
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(require_use_fieldset_context.useFieldsetContext().getLegendProps(), props);
|
|
44
44
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.legend, {
|
|
45
45
|
...mergedProps,
|
|
46
46
|
ref
|
|
@@ -93,16 +93,16 @@ const useFieldset = (props = {}) => {
|
|
|
93
93
|
...require_fieldset_anatomy.parts.root.attrs,
|
|
94
94
|
ref: rootRef,
|
|
95
95
|
disabled,
|
|
96
|
-
"data-disabled": (0,
|
|
97
|
-
"data-invalid": (0,
|
|
96
|
+
"data-disabled": (0, _sprawlify_primitives_dom_query.dataAttr)(disabled),
|
|
97
|
+
"data-invalid": (0, _sprawlify_primitives_dom_query.dataAttr)(invalid),
|
|
98
98
|
"aria-labelledby": legendId,
|
|
99
99
|
"aria-describedby": labelIds
|
|
100
100
|
});
|
|
101
101
|
const getLegendProps = () => ({
|
|
102
102
|
id: legendId,
|
|
103
103
|
...require_fieldset_anatomy.parts.legend.attrs,
|
|
104
|
-
"data-disabled": (0,
|
|
105
|
-
"data-invalid": (0,
|
|
104
|
+
"data-disabled": (0, _sprawlify_primitives_dom_query.dataAttr)(disabled),
|
|
105
|
+
"data-invalid": (0, _sprawlify_primitives_dom_query.dataAttr)(invalid)
|
|
106
106
|
});
|
|
107
107
|
const getHelperTextProps = () => ({
|
|
108
108
|
id: helperTextId,
|
|
@@ -139,7 +139,7 @@ const FieldsetRoot = (0, react.forwardRef)((props, ref) => {
|
|
|
139
139
|
"invalid"
|
|
140
140
|
]);
|
|
141
141
|
const fieldset = useFieldset(useFieldsetProps);
|
|
142
|
-
const mergedProps = (0,
|
|
142
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(fieldset.getRootProps(), localProps);
|
|
143
143
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_fieldset_context.FieldsetProvider, {
|
|
144
144
|
value: fieldset,
|
|
145
145
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.fieldset, {
|
|
@@ -155,7 +155,7 @@ FieldsetRoot.displayName = "FieldsetRoot";
|
|
|
155
155
|
const splitRootProviderProps = require_create_split_props.createSplitProps();
|
|
156
156
|
const FieldsetRootProvider = (0, react.forwardRef)((props, ref) => {
|
|
157
157
|
const [{ value: fieldset }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
158
|
-
const mergedProps = (0,
|
|
158
|
+
const mergedProps = (0, _sprawlify_primitives_core.mergeProps)(fieldset.getRootProps(), localProps);
|
|
159
159
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_fieldset_context.FieldsetProvider, {
|
|
160
160
|
value: fieldset,
|
|
161
161
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.sprawlify.fieldset, {
|
|
@@ -168,7 +168,7 @@ FieldsetRootProvider.displayName = "FieldsetRootProvider";
|
|
|
168
168
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region src/components/fieldset/fieldset.ts
|
|
171
|
-
var fieldset_exports = /* @__PURE__ */ require_chunk.
|
|
171
|
+
var fieldset_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
172
172
|
Context: () => FieldsetContext,
|
|
173
173
|
ErrorText: () => FieldsetErrorText,
|
|
174
174
|
HelperText: () => FieldsetHelperText,
|