@sprawlify/react 0.0.61 → 0.0.63
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-DoseXS-u.d.cts +51 -0
- package/dist/anatomy-FyY1irLN.d.mts +51 -0
- package/dist/{carousel-anatomy-DpVGmqKh.d.mts → carousel-anatomy-BPGpQfMu.d.mts} +1 -1
- package/dist/carousel-anatomy-fVN4aGaf.d.cts +6 -0
- package/dist/{checkbox-anatomy-ClYuKgmx.d.mts → checkbox-anatomy-BfvWczS9.d.cts} +1 -1
- package/dist/checkbox-anatomy-BmUMwNRR.d.mts +6 -0
- package/dist/{collapsible-BTxXTcJM.mjs → collapsible-C3dNn-jW.mjs} +16 -16
- package/dist/{collapsible-CMDPE4Nk.cjs → collapsible-kCLYszP2.cjs} +1 -1
- package/dist/{collection-BVeAj1D0.mjs → collection-349IgODS.mjs} +10 -10
- package/dist/{collection-Bjy-vv-0.cjs → collection-DraYQkEk.cjs} +9 -9
- package/dist/color-picker-anatomy-DG3oSnQI.d.mts +6 -0
- package/dist/color-picker-anatomy-DyRIB62l.d.cts +6 -0
- package/dist/combobox-anatomy-ChsPcW4L.d.mts +6 -0
- package/dist/combobox-anatomy-zUfinFk1.d.cts +6 -0
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.d.cts +12 -12
- package/dist/components/accordion/index.d.mts +12 -12
- package/dist/components/accordion/index.mjs +28 -27
- package/dist/components/anatomy.cjs +1 -1
- package/dist/components/anatomy.d.cts +49 -49
- package/dist/components/anatomy.d.mts +49 -49
- package/dist/components/anatomy.mjs +50 -50
- package/dist/components/angle-slider/index.cjs +1 -1
- package/dist/components/angle-slider/index.d.cts +14 -14
- package/dist/components/angle-slider/index.d.mts +14 -14
- package/dist/components/angle-slider/index.mjs +17 -17
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.d.cts +9 -9
- package/dist/components/avatar/index.d.mts +9 -9
- package/dist/components/avatar/index.mjs +15 -15
- package/dist/components/bottom-sheet/index.cjs +2 -2
- package/dist/components/bottom-sheet/index.d.cts +16 -16
- package/dist/components/bottom-sheet/index.d.mts +17 -17
- package/dist/components/bottom-sheet/index.mjs +27 -27
- package/dist/components/carousel/index.cjs +1 -1
- package/dist/components/carousel/index.d.cts +17 -17
- package/dist/components/carousel/index.d.mts +17 -17
- package/dist/components/carousel/index.mjs +20 -20
- package/dist/components/checkbox/index.cjs +12 -12
- package/dist/components/checkbox/index.d.cts +13 -13
- package/dist/components/checkbox/index.d.mts +13 -13
- package/dist/components/checkbox/index.mjs +32 -32
- package/dist/components/clipboard/index.cjs +1 -1
- package/dist/components/clipboard/index.d.cts +13 -13
- package/dist/components/clipboard/index.d.mts +13 -13
- package/dist/components/clipboard/index.mjs +18 -18
- package/dist/components/collapsible/index.cjs +2 -2
- package/dist/components/collapsible/index.d.cts +11 -11
- package/dist/components/collapsible/index.d.mts +11 -11
- package/dist/components/collapsible/index.mjs +8 -8
- package/dist/components/collection/index.cjs +2 -2
- package/dist/components/collection/index.d.cts +1 -1
- package/dist/components/collection/index.d.mts +1 -1
- package/dist/components/collection/index.mjs +3 -3
- package/dist/components/color-picker/index.cjs +5 -5
- package/dist/components/color-picker/index.d.cts +34 -34
- package/dist/components/color-picker/index.d.mts +35 -35
- package/dist/components/color-picker/index.mjs +51 -51
- package/dist/components/combobox/index.cjs +6 -6
- package/dist/components/combobox/index.d.cts +21 -21
- package/dist/components/combobox/index.d.mts +22 -22
- package/dist/components/combobox/index.mjs +38 -38
- package/dist/components/date-picker/index.cjs +28 -3
- package/dist/components/date-picker/index.d.cts +49 -34
- package/dist/components/date-picker/index.d.mts +50 -35
- package/dist/components/date-picker/index.mjs +86 -62
- package/dist/components/dialog/index.cjs +2 -2
- package/dist/components/dialog/index.d.cts +16 -16
- package/dist/components/dialog/index.d.mts +17 -17
- package/dist/components/dialog/index.mjs +26 -26
- package/dist/components/download-trigger/index.cjs +3 -3
- package/dist/components/download-trigger/index.d.cts +4 -4
- package/dist/components/download-trigger/index.d.mts +4 -4
- package/dist/components/download-trigger/index.mjs +8 -8
- package/dist/components/editable/index.cjs +4 -4
- package/dist/components/editable/index.d.cts +14 -14
- package/dist/components/editable/index.d.mts +14 -14
- package/dist/components/editable/index.mjs +19 -19
- package/dist/components/field/index.cjs +4 -4
- package/dist/components/field/index.d.cts +13 -13
- package/dist/components/field/index.d.mts +13 -13
- package/dist/components/field/index.mjs +10 -10
- package/dist/components/fieldset/index.cjs +4 -4
- package/dist/components/fieldset/index.d.cts +9 -9
- package/dist/components/fieldset/index.d.mts +9 -9
- package/dist/components/fieldset/index.mjs +10 -10
- package/dist/components/file-upload/index.cjs +5 -5
- package/dist/components/file-upload/index.d.cts +19 -19
- package/dist/components/file-upload/index.d.mts +19 -19
- package/dist/components/file-upload/index.mjs +34 -34
- package/dist/components/floating-panel/index.cjs +2 -2
- package/dist/components/floating-panel/index.d.cts +20 -20
- package/dist/components/floating-panel/index.d.mts +21 -21
- package/dist/components/floating-panel/index.mjs +22 -22
- package/dist/components/focus-trap/index.cjs +1 -1
- package/dist/components/focus-trap/index.d.cts +4 -4
- package/dist/components/focus-trap/index.d.mts +4 -4
- package/dist/components/focus-trap/index.mjs +4 -4
- package/dist/components/format/index.d.cts +4 -4
- package/dist/components/format/index.d.mts +4 -4
- package/dist/components/format/index.mjs +3 -3
- package/dist/components/frame/index.cjs +6 -6
- package/dist/components/frame/index.d.cts +3 -3
- package/dist/components/frame/index.d.mts +3 -3
- package/dist/components/frame/index.mjs +11 -11
- package/dist/components/highlight/index.d.cts +3 -3
- package/dist/components/highlight/index.d.mts +3 -3
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.cjs +2 -2
- package/dist/components/hover-card/index.d.cts +14 -14
- package/dist/components/hover-card/index.d.mts +15 -15
- package/dist/components/hover-card/index.mjs +19 -19
- package/dist/components/image-cropper/index.cjs +1 -1
- package/dist/components/image-cropper/index.d.cts +12 -12
- package/dist/components/image-cropper/index.d.mts +12 -12
- package/dist/components/image-cropper/index.mjs +15 -15
- package/dist/components/json-tree-view/index.cjs +4 -4
- package/dist/components/json-tree-view/index.d.cts +5 -5
- package/dist/components/json-tree-view/index.d.mts +10 -10
- package/dist/components/json-tree-view/index.mjs +15 -14
- package/dist/components/listbox/index.cjs +2 -2
- package/dist/components/listbox/index.d.cts +16 -16
- package/dist/components/listbox/index.d.mts +16 -16
- package/dist/components/listbox/index.mjs +29 -29
- package/dist/components/marquee/index.cjs +1 -1
- package/dist/components/marquee/index.d.cts +11 -11
- package/dist/components/marquee/index.d.mts +11 -11
- package/dist/components/marquee/index.mjs +15 -15
- package/dist/components/menu/index.cjs +2 -2
- package/dist/components/menu/index.d.cts +27 -27
- package/dist/components/menu/index.d.mts +72 -60
- package/dist/components/menu/index.mjs +39 -39
- package/dist/components/navigation-menu/index.cjs +2 -2
- package/dist/components/navigation-menu/index.d.cts +18 -18
- package/dist/components/navigation-menu/index.d.mts +18 -18
- package/dist/components/navigation-menu/index.mjs +28 -28
- package/dist/components/number-input/index.cjs +4 -4
- package/dist/components/number-input/index.d.cts +14 -14
- package/dist/components/number-input/index.d.mts +14 -14
- package/dist/components/number-input/index.mjs +22 -22
- package/dist/components/pagination/index.cjs +1 -1
- package/dist/components/pagination/index.d.cts +13 -13
- package/dist/components/pagination/index.d.mts +13 -13
- package/dist/components/pagination/index.mjs +15 -15
- package/dist/components/password-input/index.cjs +4 -4
- package/dist/components/password-input/index.d.cts +12 -12
- package/dist/components/password-input/index.d.mts +12 -12
- package/dist/components/password-input/index.mjs +22 -22
- package/dist/components/pin-input/index.cjs +4 -4
- package/dist/components/pin-input/index.d.cts +11 -11
- package/dist/components/pin-input/index.d.mts +11 -11
- package/dist/components/pin-input/index.mjs +19 -19
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.d.cts +19 -19
- package/dist/components/popover/index.d.mts +17 -17
- package/dist/components/popover/index.mjs +24 -24
- package/dist/components/portal/index.d.cts +2 -2
- package/dist/components/portal/index.d.mts +2 -2
- package/dist/components/portal/index.mjs +5 -5
- package/dist/components/presence/index.cjs +2 -2
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.mts +3 -3
- package/dist/components/presence/index.mjs +5 -5
- package/dist/components/progress/index.cjs +1 -1
- package/dist/components/progress/index.d.cts +15 -15
- package/dist/components/progress/index.d.mts +15 -15
- package/dist/components/progress/index.mjs +18 -18
- package/dist/components/qr-code/index.cjs +1 -1
- package/dist/components/qr-code/index.d.cts +11 -11
- package/dist/components/qr-code/index.d.mts +11 -11
- package/dist/components/qr-code/index.mjs +9 -9
- package/dist/components/radio-group/index.cjs +4 -4
- package/dist/components/radio-group/index.d.cts +13 -13
- package/dist/components/radio-group/index.d.mts +13 -13
- package/dist/components/radio-group/index.mjs +13 -13
- package/dist/components/rating-group/index.cjs +4 -4
- package/dist/components/rating-group/index.d.cts +11 -11
- package/dist/components/rating-group/index.d.mts +11 -11
- package/dist/components/rating-group/index.mjs +13 -13
- package/dist/components/scroll-area/index.cjs +1 -1
- package/dist/components/scroll-area/index.d.cts +12 -12
- package/dist/components/scroll-area/index.d.mts +12 -12
- package/dist/components/scroll-area/index.mjs +15 -15
- package/dist/components/segment-group/index.cjs +1 -1
- package/dist/components/segment-group/index.d.cts +13 -13
- package/dist/components/segment-group/index.d.mts +13 -13
- package/dist/components/segment-group/index.mjs +24 -24
- package/dist/components/select/index.cjs +6 -6
- package/dist/components/select/index.d.cts +22 -22
- package/dist/components/select/index.d.mts +23 -23
- package/dist/components/select/index.mjs +46 -46
- package/dist/components/signature-pad/index.cjs +4 -4
- package/dist/components/signature-pad/index.d.cts +13 -13
- package/dist/components/signature-pad/index.d.mts +13 -13
- package/dist/components/signature-pad/index.mjs +23 -23
- package/dist/components/slider/index.cjs +1 -1
- package/dist/components/slider/index.d.cts +17 -17
- package/dist/components/slider/index.d.mts +17 -17
- package/dist/components/slider/index.mjs +23 -23
- package/dist/components/splitter/index.cjs +1 -1
- package/dist/components/splitter/index.d.cts +10 -10
- package/dist/components/splitter/index.d.mts +10 -10
- package/dist/components/splitter/index.mjs +17 -17
- package/dist/components/steps/index.cjs +1 -1
- package/dist/components/steps/index.d.cts +17 -17
- package/dist/components/steps/index.d.mts +17 -17
- package/dist/components/steps/index.mjs +26 -26
- package/dist/components/switch/index.cjs +4 -4
- package/dist/components/switch/index.d.cts +11 -11
- package/dist/components/switch/index.d.mts +11 -11
- package/dist/components/switch/index.mjs +13 -13
- package/dist/components/tabs/index.cjs +2 -2
- package/dist/components/tabs/index.d.cts +12 -12
- package/dist/components/tabs/index.d.mts +12 -12
- package/dist/components/tabs/index.mjs +22 -22
- package/dist/components/tags-input/index.cjs +4 -4
- package/dist/components/tags-input/index.d.cts +17 -17
- package/dist/components/tags-input/index.d.mts +17 -17
- package/dist/components/tags-input/index.mjs +30 -30
- package/dist/components/timer/index.cjs +1 -1
- package/dist/components/timer/index.d.cts +12 -12
- package/dist/components/timer/index.d.mts +12 -12
- package/dist/components/timer/index.mjs +18 -18
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.d.cts +11 -11
- package/dist/components/toast/index.d.mts +11 -11
- package/dist/components/toast/index.mjs +15 -15
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.d.cts +6 -6
- package/dist/components/toggle/index.d.mts +6 -6
- package/dist/components/toggle/index.mjs +12 -12
- package/dist/components/toggle-group/index.cjs +1 -1
- package/dist/components/toggle-group/index.d.cts +8 -8
- package/dist/components/toggle-group/index.d.mts +8 -8
- package/dist/components/toggle-group/index.mjs +12 -12
- package/dist/components/tooltip/index.cjs +2 -2
- package/dist/components/tooltip/index.d.cts +14 -14
- package/dist/components/tooltip/index.d.mts +15 -15
- package/dist/components/tooltip/index.mjs +19 -19
- package/dist/components/tour/index.cjs +2 -2
- package/dist/components/tour/index.d.cts +20 -20
- package/dist/components/tour/index.d.mts +19 -19
- package/dist/components/tour/index.mjs +38 -38
- package/dist/components/tree-view/index.cjs +4 -4
- package/dist/components/tree-view/index.d.cts +3 -3
- package/dist/components/tree-view/index.d.mts +6 -6
- package/dist/components/tree-view/index.mjs +13 -12
- package/dist/{core-D5Nn8Do7.mjs → core-BxCFHKQ_.mjs} +10 -10
- package/dist/{core-XObZrqJF.cjs → core-DewT0RE5.cjs} +10 -10
- package/dist/date-picker-anatomy-BbyLu8dt.d.mts +6 -0
- package/dist/date-picker-anatomy-DJ39M7tF.d.cts +6 -0
- package/dist/{date-picker-anatomy-BCl2ef3Q.cjs → date-picker-anatomy-QixtR9PA.cjs} +1 -1
- package/dist/{date-picker-anatomy-X_d6BK7R.mjs → date-picker-anatomy-x7ZxtgJO.mjs} +1 -1
- package/dist/{environment-tHcckaxj.mjs → environment-9mOM5FKS.mjs} +1 -1
- package/dist/{factory-BHMhd025.d.mts → factory-BIg2TdAk.d.mts} +2 -2
- package/dist/{factory-BqX8l4xK.d.cts → factory-CwKrB2Br.d.cts} +2 -2
- package/dist/{factory-KspIEfUN.mjs → factory-D0O3O5Jq.mjs} +1 -1
- package/dist/{field-D8F94pbs.mjs → field-CAhL6y6X.mjs} +14 -14
- package/dist/{field-C5Spk5xr.cjs → field-VMahsakb.cjs} +6 -6
- package/dist/field-anatomy-BXOHAoe0.d.mts +6 -0
- package/dist/field-anatomy-CpEdsl0Z.d.cts +6 -0
- package/dist/{fieldset-BZbX0igX.mjs → fieldset-BOWrMdSw.mjs} +9 -9
- package/dist/{fieldset-3A-HAhtn.cjs → fieldset-DKZpvk88.cjs} +2 -2
- package/dist/fieldset-anatomy-DEitMtaT.d.cts +6 -0
- package/dist/fieldset-anatomy-puKqRNHQ.d.mts +6 -0
- package/dist/{index-CUWBNY9M.d.mts → index-BY0HwNOP.d.mts} +25 -25
- package/dist/{index-j2naPRuA.d.cts → index-CrkdIF1y.d.cts} +54 -54
- package/dist/{index-C9nTAqVt.d.mts → index-CzwF843n.d.mts} +7 -7
- package/dist/{index-C_bFhccV.d.cts → index-DIJ8ltsu.d.cts} +25 -25
- package/dist/{index-fqlSjbJh.d.cts → index-DkqbdQrX.d.cts} +7 -7
- package/dist/{index-CjrFXK-1.d.mts → index-XicMXUCY.d.mts} +57 -57
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +54 -54
- package/dist/index.d.mts +54 -54
- package/dist/index.mjs +56 -56
- package/dist/listbox-anatomy-Chk3e_Nk.d.cts +6 -0
- package/dist/listbox-anatomy-mMFw0Elc.d.mts +6 -0
- package/dist/{locale-ypaK1JGy.mjs → locale-De5Z27ES.mjs} +1 -1
- package/dist/{portal-BBAhcDPi.mjs → portal-BtL5ggC3.mjs} +1 -1
- package/dist/{presence-C4LXhHqJ.cjs → presence-B9EFwRVv.cjs} +1 -1
- package/dist/{presence-cJ6WDRRn.mjs → presence-bN93pVGw.mjs} +10 -10
- package/dist/{render-strategy-qdbPeKxQ.mjs → render-strategy-BvdfkxuI.mjs} +2 -2
- package/dist/{segment-group-anatomy-B-X8Uf79.d.cts → segment-group-anatomy-CCeiTOk6.d.mts} +2 -2
- package/dist/segment-group-anatomy-CwROypnn.d.cts +6 -0
- package/dist/toggle-anatomy-3fBZqf3L.d.mts +6 -0
- package/dist/toggle-anatomy-Bvm1dy8B.d.cts +6 -0
- package/dist/tour-anatomy-BlhLa9xs.d.cts +6 -0
- package/dist/tour-anatomy-Cyle6MwT.d.mts +6 -0
- package/dist/{tree-view-DuquOg_A.cjs → tree-view-8tu8HWZ0.cjs} +2 -2
- package/dist/{tree-view-CeeeGhJ3.mjs → tree-view-DIzMJfqd.mjs} +40 -40
- package/dist/{use-fieldset-context-DMlYDhkR.mjs → use-fieldset-context-CwklHNpM.mjs} +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/anatomy-BtX7eyOo.d.cts +0 -51
- package/dist/anatomy-CyarI0kE.d.mts +0 -51
- package/dist/carousel-anatomy-BesEz5n2.d.cts +0 -6
- package/dist/checkbox-anatomy-DyvKh30P.d.cts +0 -6
- package/dist/color-picker-anatomy-BleO_17t.d.mts +0 -6
- package/dist/color-picker-anatomy-DGgbBFqO.d.cts +0 -6
- package/dist/combobox-anatomy-7Z2IHCg9.d.cts +0 -6
- package/dist/combobox-anatomy-BPKtijh2.d.mts +0 -6
- package/dist/date-picker-anatomy-CHh2h6QJ.d.mts +0 -6
- package/dist/date-picker-anatomy-CVRvwooZ.d.cts +0 -6
- package/dist/field-anatomy-BgvYO_7E.d.cts +0 -6
- package/dist/field-anatomy-CTA-nw78.d.mts +0 -6
- package/dist/fieldset-anatomy-3awH9fwY.d.cts +0 -6
- package/dist/fieldset-anatomy-DvsCRdoo.d.mts +0 -6
- package/dist/listbox-anatomy-Cc-4wasM.d.mts +0 -6
- package/dist/listbox-anatomy-DgtEEC_f.d.cts +0 -6
- package/dist/segment-group-anatomy-Cm3Tt7tU.d.mts +0 -6
- package/dist/toggle-anatomy-GFNhh4aS.d.mts +0 -6
- package/dist/toggle-anatomy-PUL55bxe.d.cts +0 -6
- package/dist/tour-anatomy-BWonFe_5.d.mts +0 -6
- package/dist/tour-anatomy-Ck0hv_9j.d.cts +0 -6
- /package/dist/{accordion-anatomy-D7qz9nWp.mjs → accordion-anatomy-B3vJFV-U.mjs} +0 -0
- /package/dist/{accordion-anatomy-BjDvhYiZ.d.mts → accordion-anatomy-BULu-dIl.d.cts} +0 -0
- /package/dist/{accordion-anatomy-CD01A1iE.d.cts → accordion-anatomy-C2zgfKc_.d.mts} +0 -0
- /package/dist/{angle-slider-anatomy-Bv2y_yLX.d.mts → angle-slider-anatomy-9K5yu_ro.d.cts} +0 -0
- /package/dist/{angle-slider-anatomy-CrrkVc1h.mjs → angle-slider-anatomy-D8aM-Q1y.mjs} +0 -0
- /package/dist/{angle-slider-anatomy-socw8IDt.d.cts → angle-slider-anatomy-pgtE9Rhu.d.mts} +0 -0
- /package/dist/{avatar-anatomy-C_A-v5h1.d.mts → avatar-anatomy-BUT_uSfP.d.cts} +0 -0
- /package/dist/{avatar-anatomy-C_EzyOEZ.d.cts → avatar-anatomy-CZNk5jTG.d.mts} +0 -0
- /package/dist/{avatar-anatomy-CpP-IYQN.mjs → avatar-anatomy-Cn0_yoTX.mjs} +0 -0
- /package/dist/{bottom-sheet-anatomy-CoQwmmej.d.mts → bottom-sheet-anatomy-DVTX9tnr.d.mts} +0 -0
- /package/dist/{bottom-sheet-anatomy-qdCuzqWj.mjs → bottom-sheet-anatomy-JkRlzybU.mjs} +0 -0
- /package/dist/{bottom-sheet-anatomy-DFp5PLG7.d.cts → bottom-sheet-anatomy-vRyEY3E9.d.cts} +0 -0
- /package/dist/{carousel-anatomy-4S-Agb6o.mjs → carousel-anatomy-DzieVM_O.mjs} +0 -0
- /package/dist/{checkbox-anatomy-pPsZaOsI.mjs → checkbox-anatomy-7csm5PZ0.mjs} +0 -0
- /package/dist/{chunk-DXsV1_K-.mjs → chunk-DWkwRR9H.mjs} +0 -0
- /package/dist/{clipboard-anatomy-BBG980Uy.d.cts → clipboard-anatomy-D-StbGK_.d.cts} +0 -0
- /package/dist/{clipboard-anatomy-AypSAhDs.mjs → clipboard-anatomy-Dmqgp_Jo.mjs} +0 -0
- /package/dist/{clipboard-anatomy-DGkYUzx6.d.mts → clipboard-anatomy-DpN_4bd0.d.mts} +0 -0
- /package/dist/{collapsible-anatomy-BNzFeDbw.d.cts → collapsible-anatomy-CGvQUDW1.d.cts} +0 -0
- /package/dist/{collapsible-anatomy-DY8UZ6aK.d.mts → collapsible-anatomy-DIWcQeOs.d.mts} +0 -0
- /package/dist/{collapsible-anatomy-yQzXMAsu.mjs → collapsible-anatomy-pcRVlO7f.mjs} +0 -0
- /package/dist/{color-picker-anatomy-3xUXFw2c.mjs → color-picker-anatomy-BfqtK22Y.mjs} +0 -0
- /package/dist/{combobox-anatomy-Fj5IM76j.mjs → combobox-anatomy-Com3dPZ_.mjs} +0 -0
- /package/dist/{compose-refs-DfK7aQwF.mjs → compose-refs-JvsPOcHE.mjs} +0 -0
- /package/dist/{create-context-C9f3ZSYn.mjs → create-context-DuRB02yv.mjs} +0 -0
- /package/dist/{create-split-props-BHolGELv.mjs → create-split-props-BrrYfbxV.mjs} +0 -0
- /package/dist/{dialog-anatomy-DBElmBlC.mjs → dialog-anatomy-82ZtkZN8.mjs} +0 -0
- /package/dist/{dialog-anatomy-DewiFtDw.d.mts → dialog-anatomy-DTfVgKoI.d.mts} +0 -0
- /package/dist/{dialog-anatomy-PFoojjde.d.cts → dialog-anatomy-DbXP0_rZ.d.cts} +0 -0
- /package/dist/{editable-anatomy-5zjxyN0U.d.mts → editable-anatomy-Ciz7dC1s.d.cts} +0 -0
- /package/dist/{editable-anatomy-LGLovSVr.mjs → editable-anatomy-DOdGtCkE.mjs} +0 -0
- /package/dist/{editable-anatomy-ChVmNTaw.d.cts → editable-anatomy-Dk25wKZT.d.mts} +0 -0
- /package/dist/{field-anatomy-lbqo_0oS.mjs → field-anatomy-CEUB_Ta7.mjs} +0 -0
- /package/dist/{fieldset-anatomy-CbOnthAm.mjs → fieldset-anatomy-gpWc3jkH.mjs} +0 -0
- /package/dist/{file-upload-anatomy-CSLpjY81.d.cts → file-upload-anatomy-B9jYHncK.d.cts} +0 -0
- /package/dist/{file-upload-anatomy-DVRYucGw.mjs → file-upload-anatomy-BWIxYDIJ.mjs} +0 -0
- /package/dist/{file-upload-anatomy-ShLA5Vjv.d.mts → file-upload-anatomy-DBsWE813.d.mts} +0 -0
- /package/dist/{floating-panel-anatomy-CPPZkBpW.d.mts → floating-panel-anatomy-BYClS8Pl.d.cts} +0 -0
- /package/dist/{floating-panel-anatomy-B9Orhv8o.mjs → floating-panel-anatomy-ClWKvaVa.mjs} +0 -0
- /package/dist/{floating-panel-anatomy-uaCG0I0g.d.cts → floating-panel-anatomy-Z6W8fNOZ.d.mts} +0 -0
- /package/dist/{hover-card-anatomy-Bj42vocJ.d.mts → hover-card-anatomy-C0T57bWy.d.mts} +0 -0
- /package/dist/{hover-card-anatomy-CQtlQUe_.mjs → hover-card-anatomy-COWw9SVe.mjs} +0 -0
- /package/dist/{hover-card-anatomy-ByW_9zER.d.cts → hover-card-anatomy-CYfhU4x6.d.cts} +0 -0
- /package/dist/{image-cropper-anatomy-CSYrSFyq.mjs → image-cropper-anatomy-DakRMhvF.mjs} +0 -0
- /package/dist/{image-cropper-anatomy-DBqhXOyb.d.cts → image-cropper-anatomy-Du5638m9.d.mts} +0 -0
- /package/dist/{image-cropper-anatomy-DJ0LYFWB.d.mts → image-cropper-anatomy-PoIGd-7g.d.cts} +0 -0
- /package/dist/{index-D43NaN4q.d.cts → index-BV6USqPg.d.cts} +0 -0
- /package/dist/{index-MsrrZK-d.d.mts → index-CpyFpCKZ.d.mts} +0 -0
- /package/dist/{index-g-TCevCo.d.cts → index-DgwcDpmv.d.cts} +0 -0
- /package/dist/{index-DZxjxmEf.d.mts → index-Drqgf8cV.d.mts} +0 -0
- /package/dist/{index-bnkolZBv.d.mts → index-JQlE9bL5.d.mts} +0 -0
- /package/dist/{listbox-anatomy-DPDustKl.mjs → listbox-anatomy-MK4ZOJyf.mjs} +0 -0
- /package/dist/{marquee-anatomy-C9HAWHcH.d.cts → marquee-anatomy-4HYJUJtD.d.cts} +0 -0
- /package/dist/{marquee-anatomy-CzQ2JNtJ.d.mts → marquee-anatomy-DExrAsUr.d.mts} +0 -0
- /package/dist/{marquee-anatomy-D_RABXng.mjs → marquee-anatomy-DlTf08tq.mjs} +0 -0
- /package/dist/{menu-anatomy-BHtJiH-8.mjs → menu-anatomy-BAyP6if6.mjs} +0 -0
- /package/dist/{navigation-menu-anatomy-CoEEyE5M.mjs → navigation-menu-anatomy-Bon0Jq-M.mjs} +0 -0
- /package/dist/{navigation-menu-anatomy-BmpEVMIc.d.mts → navigation-menu-anatomy-HsTfLEvk.d.cts} +0 -0
- /package/dist/{navigation-menu-anatomy-Dv0Nhwjm.d.cts → navigation-menu-anatomy-Td69uLtF.d.mts} +0 -0
- /package/dist/{normalize-props-BeSH6oua.d.cts → normalize-props-CI_xNrEa.d.cts} +0 -0
- /package/dist/{number-input-anatomy-D74_w7aW.d.cts → number-input-anatomy-4CDrC2Vw.d.mts} +0 -0
- /package/dist/{number-input-anatomy-D1aRkwwA.mjs → number-input-anatomy-C8JsrMzh.mjs} +0 -0
- /package/dist/{number-input-anatomy-DZiFAj5A.d.mts → number-input-anatomy-Ce6pW1U0.d.cts} +0 -0
- /package/dist/{pagination-anatomy-C4gl7RPp.d.mts → pagination-anatomy-BLyo9FSW.d.cts} +0 -0
- /package/dist/{pagination-anatomy-D5kUtIjp.d.cts → pagination-anatomy-BU6EGcdq.d.mts} +0 -0
- /package/dist/{pagination-anatomy-Cp0yqj09.mjs → pagination-anatomy-CL6uX2Hn.mjs} +0 -0
- /package/dist/{password-input-anatomy-D1bDbErC.mjs → password-input-anatomy-Bye9Gxt9.mjs} +0 -0
- /package/dist/{password-input-anatomy-BpA7ZmUl.d.cts → password-input-anatomy-CuBepIh9.d.cts} +0 -0
- /package/dist/{password-input-anatomy-DgwdGDKt.d.mts → password-input-anatomy-DfbdVvLY.d.mts} +0 -0
- /package/dist/{pin-input-anatomy-1dD0f2mO.d.cts → pin-input-anatomy-CpwReaHB.d.cts} +0 -0
- /package/dist/{pin-input-anatomy-DXK9imHx.d.mts → pin-input-anatomy-CqIxLeoh.d.mts} +0 -0
- /package/dist/{pin-input-anatomy-BD9tRplS.mjs → pin-input-anatomy-Sh858T5D.mjs} +0 -0
- /package/dist/{popover-anatomy-D9qirge6.d.cts → popover-anatomy-BAGacwDE.d.mts} +0 -0
- /package/dist/{popover-anatomy-DwPROe6n.d.mts → popover-anatomy-C04WZ8Xj.d.cts} +0 -0
- /package/dist/{popover-anatomy-C4R9B1VO.mjs → popover-anatomy-pebIoS53.mjs} +0 -0
- /package/dist/{progress-anatomy-D4koBOth.mjs → progress-anatomy-CMCJbgCC.mjs} +0 -0
- /package/dist/{progress-anatomy-BrCRtxUf.d.cts → progress-anatomy-DzzY65y-.d.mts} +0 -0
- /package/dist/{progress-anatomy-SYGQyHY_.d.mts → progress-anatomy-SU1qSe09.d.cts} +0 -0
- /package/dist/{providers-atRM3wB5.mjs → providers-U5faJq0V.mjs} +0 -0
- /package/dist/{qr-code-anatomy-D5nOi2TD.d.cts → qr-code-anatomy-D6Kf19ed.d.mts} +0 -0
- /package/dist/{qr-code-anatomy-D9dJpFw6.d.mts → qr-code-anatomy-DAakjbH5.d.cts} +0 -0
- /package/dist/{qr-code-anatomy-35Qa8k26.mjs → qr-code-anatomy-DVR5fI0a.mjs} +0 -0
- /package/dist/{radio-group-anatomy-7cm-biOb.d.mts → radio-group-anatomy-B5sOnnTr.d.mts} +0 -0
- /package/dist/{radio-group-anatomy-ikpF0zYu.mjs → radio-group-anatomy-B8qr5TNH.mjs} +0 -0
- /package/dist/{radio-group-anatomy-DKUNIvEg.d.cts → radio-group-anatomy-D2lQ866L.d.cts} +0 -0
- /package/dist/{rating-group-anatomy-Cc8bBTCG.d.cts → rating-group-anatomy-B0vdZIQp.d.cts} +0 -0
- /package/dist/{rating-group-anatomy-BftUV9U6.mjs → rating-group-anatomy-B1S-Gxsb.mjs} +0 -0
- /package/dist/{rating-group-anatomy-D8v0aMfl.d.mts → rating-group-anatomy-BvNjY5vj.d.mts} +0 -0
- /package/dist/{render-strategy-B0TFI5G3.d.mts → render-strategy-CqOdtkQI.d.mts} +0 -0
- /package/dist/{render-strategy-CaB6s5ot.d.cts → render-strategy-G1aEn-1X.d.cts} +0 -0
- /package/dist/{scroll-area-anatomy-C-UaHasP.mjs → scroll-area-anatomy-By_VD3OG.mjs} +0 -0
- /package/dist/{scroll-area-anatomy-Bj-dZIOP.d.cts → scroll-area-anatomy-CZsfqih7.d.cts} +0 -0
- /package/dist/{scroll-area-anatomy-DlasggRV.d.mts → scroll-area-anatomy-CwD6fWKj.d.mts} +0 -0
- /package/dist/{segment-group-anatomy-maA9Z25m.mjs → segment-group-anatomy-M-qDdmU8.mjs} +0 -0
- /package/dist/{select-anatomy-BgUycplU.d.cts → select-anatomy-B2OXeIZp.d.mts} +0 -0
- /package/dist/{select-anatomy-kXcpyDuX.mjs → select-anatomy-BbMFhSP3.mjs} +0 -0
- /package/dist/{select-anatomy-DYC3hAzB.d.mts → select-anatomy-D0Dqcz3w.d.cts} +0 -0
- /package/dist/{signature-pad-anatomy-DQCYuQlL.d.mts → signature-pad-anatomy-CMfnFuQS.d.mts} +0 -0
- /package/dist/{signature-pad-anatomy-D3F2Ahr8.mjs → signature-pad-anatomy-R5Ukq905.mjs} +0 -0
- /package/dist/{signature-pad-anatomy-tlcST0A9.d.cts → signature-pad-anatomy-Tx9hhqnC.d.cts} +0 -0
- /package/dist/{slider-anatomy-D5pmjxdI.d.mts → slider-anatomy-CY_YtBDB.d.mts} +0 -0
- /package/dist/{slider-anatomy-lwlkdKHs.mjs → slider-anatomy-DMbGI0i5.mjs} +0 -0
- /package/dist/{slider-anatomy-DeuOu_yr.d.cts → slider-anatomy-DvJQTUR8.d.cts} +0 -0
- /package/dist/{splitter-anatomy-DwIGVKYP.mjs → splitter-anatomy-BEnPE1ZN.mjs} +0 -0
- /package/dist/{splitter-anatomy-BdgcwAeU.d.cts → splitter-anatomy-Bd_hfJQj.d.mts} +0 -0
- /package/dist/{splitter-anatomy-CsUkEIRD.d.mts → splitter-anatomy-tCTgJYrq.d.cts} +0 -0
- /package/dist/{steps-anatomy-C4SIG77s.mjs → steps-anatomy-BZQiIXg8.mjs} +0 -0
- /package/dist/{steps-anatomy-Bplgb53H.d.cts → steps-anatomy-BhkGJwTF.d.cts} +0 -0
- /package/dist/{steps-anatomy-C-KmyTci.d.mts → steps-anatomy-JeP7KZG-.d.mts} +0 -0
- /package/dist/{switch-anatomy-sZj7UjX9.mjs → switch-anatomy-5UpLPKgE.mjs} +0 -0
- /package/dist/{switch-anatomy-C7pZo86r.d.mts → switch-anatomy-BGqnTLja.d.mts} +0 -0
- /package/dist/{switch-anatomy-Ci-WWIh0.d.cts → switch-anatomy-Dj6cEPG1.d.cts} +0 -0
- /package/dist/{tabs-anatomy-C28W3VK0.d.mts → tabs-anatomy-BnW2HaLO.d.cts} +0 -0
- /package/dist/{tabs-anatomy-DYxjVB93.mjs → tabs-anatomy-DHdiXDog.mjs} +0 -0
- /package/dist/{tabs-anatomy-DX2Jj16R.d.cts → tabs-anatomy-eRmtlQsU.d.mts} +0 -0
- /package/dist/{tags-input-anatomy-B6yIvWqq.d.cts → tags-input-anatomy-B3texlC6.d.mts} +0 -0
- /package/dist/{tags-input-anatomy-Bkj54y9X.mjs → tags-input-anatomy-BiXprJGY.mjs} +0 -0
- /package/dist/{tags-input-anatomy-CbRkCDiT.d.mts → tags-input-anatomy-zZukAFit.d.cts} +0 -0
- /package/dist/{timer-anatomy-Cmp7ugO8.d.mts → timer-anatomy-C2BAZwQ1.d.cts} +0 -0
- /package/dist/{timer-anatomy-BNBMQ-5v.mjs → timer-anatomy-D8iUnRzP.mjs} +0 -0
- /package/dist/{timer-anatomy-DYCbV039.d.cts → timer-anatomy-DUqM2eDi.d.mts} +0 -0
- /package/dist/{toast-anatomy-BeTfnL1w.mjs → toast-anatomy-DwQXQiOi.mjs} +0 -0
- /package/dist/{toast-anatomy-BgE_vsnK.d.cts → toast-anatomy-QYhMo--I.d.mts} +0 -0
- /package/dist/{toast-anatomy-CiUISRvR.d.mts → toast-anatomy-SLgBMq02.d.cts} +0 -0
- /package/dist/{toggle-anatomy-iZ5zPR2s.mjs → toggle-anatomy-BF4YpgWb.mjs} +0 -0
- /package/dist/{toggle-group-anatomy-B55PhzaJ.d.mts → toggle-group-anatomy-DQAWzLwW.d.cts} +0 -0
- /package/dist/{toggle-group-anatomy-CseKfB3J.d.cts → toggle-group-anatomy-ZiLh1tWf.d.mts} +0 -0
- /package/dist/{toggle-group-anatomy-B1vbTBB1.mjs → toggle-group-anatomy-jj7uq9td.mjs} +0 -0
- /package/dist/{tooltip-anatomy-BXJ3m4JD.d.cts → tooltip-anatomy-BI2lWnxV.d.mts} +0 -0
- /package/dist/{tooltip-anatomy-C-23XWDF.mjs → tooltip-anatomy-C46Bzt4g.mjs} +0 -0
- /package/dist/{tooltip-anatomy-d3gLxqP4.d.mts → tooltip-anatomy-x0MXMXtu.d.cts} +0 -0
- /package/dist/{tour-anatomy-RndFkmPW.mjs → tour-anatomy-DfPqr_UW.mjs} +0 -0
- /package/dist/{tree-view-anatomy-BRw-O_EZ.mjs → tree-view-anatomy-CTdYmMrt.mjs} +0 -0
- /package/dist/{tree-view-anatomy-BbXee4_Y.d.cts → tree-view-anatomy-CbZbvgAt.d.cts} +0 -0
- /package/dist/{tree-view-anatomy-bN8lKZwN.d.mts → tree-view-anatomy-DRt3k93I.d.mts} +0 -0
- /package/dist/{types-B9Rw35YE.d.mts → types-DBJaHk-X.d.mts} +0 -0
- /package/dist/{types-CCi_nex5.d.cts → types-DhoBSqCC.d.cts} +0 -0
- /package/dist/{use-event-B3MQ10xO.mjs → use-event-BZ7aKdTe.mjs} +0 -0
- /package/dist/{use-fieldset-context-wVosgVyb.cjs → use-fieldset-context-CFrHx3_L.cjs} +0 -0
- /package/dist/{use-safe-layout-effect-CXFdB5AA.cjs → use-safe-layout-effect-C4G5_A1s.cjs} +0 -0
- /package/dist/{use-safe-layout-effect-c21-N1lb.mjs → use-safe-layout-effect-DzNlaBXT.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as __exportAll } from "../../chunk-
|
|
2
|
-
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-
|
|
3
|
-
import { t as createContext$1 } from "../../create-context-
|
|
4
|
-
import { n as useEnvironmentContext } from "../../environment-
|
|
5
|
-
import { i as useLocaleContext } from "../../locale-
|
|
6
|
-
import "../../providers-
|
|
7
|
-
import { n as sprawlify } from "../../factory-
|
|
8
|
-
import { t as carouselAnatomy } from "../../carousel-anatomy-
|
|
9
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
1
|
+
import { t as __exportAll } from "../../chunk-DWkwRR9H.mjs";
|
|
2
|
+
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-BxCFHKQ_.mjs";
|
|
3
|
+
import { t as createContext$1 } from "../../create-context-DuRB02yv.mjs";
|
|
4
|
+
import { n as useEnvironmentContext } from "../../environment-9mOM5FKS.mjs";
|
|
5
|
+
import { i as useLocaleContext } from "../../locale-De5Z27ES.mjs";
|
|
6
|
+
import "../../providers-U5faJq0V.mjs";
|
|
7
|
+
import { n as sprawlify } from "../../factory-D0O3O5Jq.mjs";
|
|
8
|
+
import { t as carouselAnatomy } from "../../carousel-anatomy-DzieVM_O.mjs";
|
|
9
|
+
import { t as createSplitProps } from "../../create-split-props-BrrYfbxV.mjs";
|
|
10
10
|
import { forwardRef, useId, useMemo } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
import * as carousel from "@sprawlify/primitives/machines/carousel";
|
|
@@ -23,12 +23,12 @@ const [CarouselProvider, useCarouselContext] = createContext$1({
|
|
|
23
23
|
const parts$1 = carouselAnatomy.build();
|
|
24
24
|
const CarouselAutoplayIndicator = forwardRef((props, ref) => {
|
|
25
25
|
const { children, fallback, ...restProps } = props;
|
|
26
|
-
const carousel
|
|
26
|
+
const carousel = useCarouselContext();
|
|
27
27
|
return /* @__PURE__ */ jsx(sprawlify.span, {
|
|
28
28
|
ref,
|
|
29
29
|
...parts$1.autoplayIndicator.attrs,
|
|
30
30
|
...restProps,
|
|
31
|
-
children: carousel
|
|
31
|
+
children: carousel.isPlaying ? children : fallback
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
@@ -37,10 +37,10 @@ CarouselAutoplayIndicator.displayName = "CarouselAutoplayIndicator";
|
|
|
37
37
|
//#region src/components/carousel/carousel-progress-text.tsx
|
|
38
38
|
const parts = carouselAnatomy.build();
|
|
39
39
|
const CarouselProgressText = forwardRef((props, ref) => {
|
|
40
|
-
const carousel
|
|
40
|
+
const carousel = useCarouselContext();
|
|
41
41
|
const progressText = useMemo(() => {
|
|
42
|
-
return `${carousel
|
|
43
|
-
}, [carousel
|
|
42
|
+
return `${carousel.page + 1} / ${carousel.pageSnapPoints.length}`;
|
|
43
|
+
}, [carousel.page, carousel.pageSnapPoints.length]);
|
|
44
44
|
return /* @__PURE__ */ jsx(sprawlify.span, {
|
|
45
45
|
ref,
|
|
46
46
|
...parts.progressText.attrs,
|
|
@@ -189,10 +189,10 @@ const CarouselRoot = forwardRef((props, ref) => {
|
|
|
189
189
|
"spacing",
|
|
190
190
|
"translations"
|
|
191
191
|
]);
|
|
192
|
-
const carousel
|
|
193
|
-
const mergedProps = mergeProps(carousel
|
|
192
|
+
const carousel = useCarousel(useCarouselProps);
|
|
193
|
+
const mergedProps = mergeProps(carousel.getRootProps(), localProps);
|
|
194
194
|
return /* @__PURE__ */ jsx(CarouselProvider, {
|
|
195
|
-
value: carousel
|
|
195
|
+
value: carousel,
|
|
196
196
|
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
197
197
|
...mergedProps,
|
|
198
198
|
ref
|
|
@@ -205,10 +205,10 @@ CarouselRoot.displayName = "CarouselRoot";
|
|
|
205
205
|
//#region src/components/carousel/carousel-root-provider.tsx
|
|
206
206
|
const splitRootProviderProps = createSplitProps();
|
|
207
207
|
const CarouselRootProvider = forwardRef((props, ref) => {
|
|
208
|
-
const [{ value: carousel
|
|
209
|
-
const mergedProps = mergeProps(carousel
|
|
208
|
+
const [{ value: carousel }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
209
|
+
const mergedProps = mergeProps(carousel.getRootProps(), localProps);
|
|
210
210
|
return /* @__PURE__ */ jsx(CarouselProvider, {
|
|
211
|
-
value: carousel
|
|
211
|
+
value: carousel,
|
|
212
212
|
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
213
213
|
...mergedProps,
|
|
214
214
|
ref
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('../../chunk-CvCQGRaV.cjs');
|
|
2
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_core = require('../../core-DewT0RE5.cjs');
|
|
3
3
|
const require_create_context = require('../../create-context-DVn3n7gf.cjs');
|
|
4
4
|
const require_environment = require('../../environment-Bg7owXYh.cjs');
|
|
5
5
|
const require_locale = require('../../locale-C3PqkI4d.cjs');
|
|
@@ -10,10 +10,10 @@ require('../../field-anatomy-gybp6xfg.cjs');
|
|
|
10
10
|
require('../../fieldset-anatomy-D60WIwKp.cjs');
|
|
11
11
|
const require_create_split_props = require('../../create-split-props-DyDT-QxT.cjs');
|
|
12
12
|
const require_use_event = require('../../use-event-CHv5QJkT.cjs');
|
|
13
|
-
const require_use_fieldset_context = require('../../use-fieldset-context-
|
|
14
|
-
require('../../fieldset-
|
|
15
|
-
require('../../use-safe-layout-effect-
|
|
16
|
-
const require_field = require('../../field-
|
|
13
|
+
const require_use_fieldset_context = require('../../use-fieldset-context-CFrHx3_L.cjs');
|
|
14
|
+
require('../../fieldset-DKZpvk88.cjs');
|
|
15
|
+
require('../../use-safe-layout-effect-C4G5_A1s.cjs');
|
|
16
|
+
const require_field = require('../../field-VMahsakb.cjs');
|
|
17
17
|
let react = require("react");
|
|
18
18
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
19
19
|
let _sprawlify_primitives_machines_checkbox = require("@sprawlify/primitives/machines/checkbox");
|
|
@@ -48,10 +48,10 @@ function useControllableState(props) {
|
|
|
48
48
|
const { value, onChange, defaultValue } = props;
|
|
49
49
|
const [uncontrolledValue, setUncontrolledValue] = (0, react.useState)(defaultValue);
|
|
50
50
|
const controlled = value !== void 0;
|
|
51
|
-
return [controlled ? value : uncontrolledValue, (0, react.useCallback)((value
|
|
52
|
-
if (controlled) return onChange?.(value
|
|
53
|
-
setUncontrolledValue(value
|
|
54
|
-
return onChange?.(value
|
|
51
|
+
return [controlled ? value : uncontrolledValue, (0, react.useCallback)((value) => {
|
|
52
|
+
if (controlled) return onChange?.(value);
|
|
53
|
+
setUncontrolledValue(value);
|
|
54
|
+
return onChange?.(value);
|
|
55
55
|
}, [controlled, onChange])];
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -82,11 +82,11 @@ function useCheckboxGroup(props = {}) {
|
|
|
82
82
|
if (!interactive) return;
|
|
83
83
|
setValue(value.filter((v) => String(v) !== String(val)));
|
|
84
84
|
};
|
|
85
|
-
const getItemProps = (props
|
|
85
|
+
const getItemProps = (props) => {
|
|
86
86
|
return {
|
|
87
|
-
checked: props
|
|
87
|
+
checked: props.value != null ? isChecked(props.value) : void 0,
|
|
88
88
|
onCheckedChange() {
|
|
89
|
-
if (props
|
|
89
|
+
if (props.value != null) toggleValue(props.value);
|
|
90
90
|
},
|
|
91
91
|
name,
|
|
92
92
|
disabled,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as PropTypes } from "../../normalize-props-
|
|
2
|
-
import { r as Optional, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as checkboxAnatomy } from "../../checkbox-anatomy-
|
|
5
|
-
import * as
|
|
1
|
+
import { t as PropTypes } from "../../normalize-props-CI_xNrEa.cjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-DhoBSqCC.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-CwKrB2Br.cjs";
|
|
4
|
+
import { t as checkboxAnatomy } from "../../checkbox-anatomy-BfvWczS9.cjs";
|
|
5
|
+
import * as react68 from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
import * as checkbox from "@sprawlify/primitives/machines/checkbox";
|
|
8
8
|
import { CheckedChangeDetails, CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState, CheckedState as CheckboxCheckedState } from "@sprawlify/primitives/machines/checkbox";
|
|
@@ -24,7 +24,7 @@ declare const CheckboxContext: (props: CheckboxContextProps) => ReactNode;
|
|
|
24
24
|
//#region src/components/checkbox/checkbox-control.d.ts
|
|
25
25
|
interface CheckboxControlBaseProps extends PolymorphicProps {}
|
|
26
26
|
interface CheckboxControlProps extends HTMLProps<"div">, CheckboxControlBaseProps {}
|
|
27
|
-
declare const CheckboxControl:
|
|
27
|
+
declare const CheckboxControl: react68.ForwardRefExoticComponent<CheckboxControlProps & react68.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/components/checkbox/use-checkbox-group.d.ts
|
|
30
30
|
interface UseCheckboxGroupProps {
|
|
@@ -63,7 +63,7 @@ type UseCheckboxGroupReturn = ReturnType<typeof useCheckboxGroup>;
|
|
|
63
63
|
//#region src/components/checkbox/checkbox-group.d.ts
|
|
64
64
|
interface CheckboxGroupBaseProps extends UseCheckboxGroupProps, PolymorphicProps {}
|
|
65
65
|
interface CheckboxGroupProps extends Assign<HTMLProps<"div">, CheckboxGroupBaseProps> {}
|
|
66
|
-
declare const CheckboxGroup:
|
|
66
|
+
declare const CheckboxGroup: react68.ForwardRefExoticComponent<CheckboxGroupProps & react68.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/checkbox/use-checkbox-group-context.d.ts
|
|
69
69
|
interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {}
|
|
@@ -74,29 +74,29 @@ interface ProviderProps {
|
|
|
74
74
|
}
|
|
75
75
|
interface CheckboxGroupProviderBaseProps extends ProviderProps, PolymorphicProps {}
|
|
76
76
|
interface CheckboxGroupProviderProps extends Assign<HTMLProps<"div">, CheckboxGroupProviderBaseProps> {}
|
|
77
|
-
declare const CheckboxGroupProvider:
|
|
77
|
+
declare const CheckboxGroupProvider: react68.ForwardRefExoticComponent<CheckboxGroupProviderProps & react68.RefAttributes<HTMLDivElement>>;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/components/checkbox/checkbox-hidden-input.d.ts
|
|
80
80
|
interface CheckboxHiddenInputBaseProps extends PolymorphicProps {}
|
|
81
81
|
interface CheckboxHiddenInputProps extends HTMLProps<"input">, CheckboxHiddenInputBaseProps {}
|
|
82
|
-
declare const CheckboxHiddenInput:
|
|
82
|
+
declare const CheckboxHiddenInput: react68.ForwardRefExoticComponent<CheckboxHiddenInputProps & react68.RefAttributes<HTMLInputElement>>;
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/checkbox/checkbox-indicator.d.ts
|
|
85
85
|
interface CheckboxIndicatorBaseProps extends PolymorphicProps {
|
|
86
86
|
indeterminate?: boolean | undefined;
|
|
87
87
|
}
|
|
88
88
|
interface CheckboxIndicatorProps extends HTMLProps<"div">, CheckboxIndicatorBaseProps {}
|
|
89
|
-
declare const CheckboxIndicator:
|
|
89
|
+
declare const CheckboxIndicator: react68.ForwardRefExoticComponent<CheckboxIndicatorProps & react68.RefAttributes<HTMLDivElement>>;
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/checkbox/checkbox-label.d.ts
|
|
92
92
|
interface CheckboxLabelBaseProps extends PolymorphicProps {}
|
|
93
93
|
interface CheckboxLabelProps extends HTMLProps<"span">, CheckboxLabelBaseProps {}
|
|
94
|
-
declare const CheckboxLabel:
|
|
94
|
+
declare const CheckboxLabel: react68.ForwardRefExoticComponent<CheckboxLabelProps & react68.RefAttributes<HTMLSpanElement>>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/components/checkbox/checkbox-root.d.ts
|
|
97
97
|
interface CheckboxRootBaseProps extends UseCheckboxProps, PolymorphicProps {}
|
|
98
98
|
interface CheckboxRootProps extends Assign<HTMLProps<"label">, CheckboxRootBaseProps> {}
|
|
99
|
-
declare const CheckboxRoot:
|
|
99
|
+
declare const CheckboxRoot: react68.ForwardRefExoticComponent<CheckboxRootProps & react68.RefAttributes<HTMLLabelElement>>;
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/components/checkbox/checkbox-root-provider.d.ts
|
|
102
102
|
interface RootProviderProps {
|
|
@@ -104,7 +104,7 @@ interface RootProviderProps {
|
|
|
104
104
|
}
|
|
105
105
|
interface CheckboxRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
106
106
|
interface CheckboxRootProviderProps extends HTMLProps<"label">, CheckboxRootProviderBaseProps {}
|
|
107
|
-
declare const CheckboxRootProvider:
|
|
107
|
+
declare const CheckboxRootProvider: react68.ForwardRefExoticComponent<CheckboxRootProviderProps & react68.RefAttributes<HTMLLabelElement>>;
|
|
108
108
|
declare namespace checkbox_d_exports {
|
|
109
109
|
export { CheckedChangeDetails, CheckedState, CheckboxContext as Context, CheckboxContextProps as ContextProps, CheckboxControl as Control, CheckboxControlBaseProps as ControlBaseProps, CheckboxControlProps as ControlProps, CheckboxGroup as Group, CheckboxGroupBaseProps as GroupBaseProps, CheckboxGroupProps as GroupProps, CheckboxGroupProvider as GroupProvider, CheckboxGroupProviderBaseProps as GroupProviderBaseProps, CheckboxGroupProviderProps as GroupProviderProps, CheckboxHiddenInput as HiddenInput, CheckboxHiddenInputBaseProps as HiddenInputBaseProps, CheckboxHiddenInputProps as HiddenInputProps, CheckboxIndicator as Indicator, CheckboxIndicatorBaseProps as IndicatorBaseProps, CheckboxIndicatorProps as IndicatorProps, CheckboxLabel as Label, CheckboxLabelBaseProps as LabelBaseProps, CheckboxLabelProps as LabelProps, CheckboxRoot as Root, CheckboxRootBaseProps as RootBaseProps, CheckboxRootProps as RootProps, CheckboxRootProvider as RootProvider, CheckboxRootProviderBaseProps as RootProviderBaseProps, CheckboxRootProviderProps as RootProviderProps };
|
|
110
110
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as PropTypes } from "../../index-
|
|
2
|
-
import { r as Optional, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as checkboxAnatomy } from "../../checkbox-anatomy-
|
|
5
|
-
import * as
|
|
1
|
+
import { r as PropTypes } from "../../index-CpyFpCKZ.mjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-DBJaHk-X.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BIg2TdAk.mjs";
|
|
4
|
+
import { t as checkboxAnatomy } from "../../checkbox-anatomy-BmUMwNRR.mjs";
|
|
5
|
+
import * as react18 from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
import * as checkbox from "@sprawlify/primitives/machines/checkbox";
|
|
8
8
|
import { CheckedChangeDetails, CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState, CheckedState as CheckboxCheckedState } from "@sprawlify/primitives/machines/checkbox";
|
|
@@ -24,7 +24,7 @@ declare const CheckboxContext: (props: CheckboxContextProps) => ReactNode;
|
|
|
24
24
|
//#region src/components/checkbox/checkbox-control.d.ts
|
|
25
25
|
interface CheckboxControlBaseProps extends PolymorphicProps {}
|
|
26
26
|
interface CheckboxControlProps extends HTMLProps<"div">, CheckboxControlBaseProps {}
|
|
27
|
-
declare const CheckboxControl:
|
|
27
|
+
declare const CheckboxControl: react18.ForwardRefExoticComponent<CheckboxControlProps & react18.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/components/checkbox/use-checkbox-group.d.ts
|
|
30
30
|
interface UseCheckboxGroupProps {
|
|
@@ -63,7 +63,7 @@ type UseCheckboxGroupReturn = ReturnType<typeof useCheckboxGroup>;
|
|
|
63
63
|
//#region src/components/checkbox/checkbox-group.d.ts
|
|
64
64
|
interface CheckboxGroupBaseProps extends UseCheckboxGroupProps, PolymorphicProps {}
|
|
65
65
|
interface CheckboxGroupProps extends Assign<HTMLProps<"div">, CheckboxGroupBaseProps> {}
|
|
66
|
-
declare const CheckboxGroup:
|
|
66
|
+
declare const CheckboxGroup: react18.ForwardRefExoticComponent<CheckboxGroupProps & react18.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/checkbox/use-checkbox-group-context.d.ts
|
|
69
69
|
interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {}
|
|
@@ -74,29 +74,29 @@ interface ProviderProps {
|
|
|
74
74
|
}
|
|
75
75
|
interface CheckboxGroupProviderBaseProps extends ProviderProps, PolymorphicProps {}
|
|
76
76
|
interface CheckboxGroupProviderProps extends Assign<HTMLProps<"div">, CheckboxGroupProviderBaseProps> {}
|
|
77
|
-
declare const CheckboxGroupProvider:
|
|
77
|
+
declare const CheckboxGroupProvider: react18.ForwardRefExoticComponent<CheckboxGroupProviderProps & react18.RefAttributes<HTMLDivElement>>;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/components/checkbox/checkbox-hidden-input.d.ts
|
|
80
80
|
interface CheckboxHiddenInputBaseProps extends PolymorphicProps {}
|
|
81
81
|
interface CheckboxHiddenInputProps extends HTMLProps<"input">, CheckboxHiddenInputBaseProps {}
|
|
82
|
-
declare const CheckboxHiddenInput:
|
|
82
|
+
declare const CheckboxHiddenInput: react18.ForwardRefExoticComponent<CheckboxHiddenInputProps & react18.RefAttributes<HTMLInputElement>>;
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/checkbox/checkbox-indicator.d.ts
|
|
85
85
|
interface CheckboxIndicatorBaseProps extends PolymorphicProps {
|
|
86
86
|
indeterminate?: boolean | undefined;
|
|
87
87
|
}
|
|
88
88
|
interface CheckboxIndicatorProps extends HTMLProps<"div">, CheckboxIndicatorBaseProps {}
|
|
89
|
-
declare const CheckboxIndicator:
|
|
89
|
+
declare const CheckboxIndicator: react18.ForwardRefExoticComponent<CheckboxIndicatorProps & react18.RefAttributes<HTMLDivElement>>;
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/checkbox/checkbox-label.d.ts
|
|
92
92
|
interface CheckboxLabelBaseProps extends PolymorphicProps {}
|
|
93
93
|
interface CheckboxLabelProps extends HTMLProps<"span">, CheckboxLabelBaseProps {}
|
|
94
|
-
declare const CheckboxLabel:
|
|
94
|
+
declare const CheckboxLabel: react18.ForwardRefExoticComponent<CheckboxLabelProps & react18.RefAttributes<HTMLSpanElement>>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/components/checkbox/checkbox-root.d.ts
|
|
97
97
|
interface CheckboxRootBaseProps extends UseCheckboxProps, PolymorphicProps {}
|
|
98
98
|
interface CheckboxRootProps extends Assign<HTMLProps<"label">, CheckboxRootBaseProps> {}
|
|
99
|
-
declare const CheckboxRoot:
|
|
99
|
+
declare const CheckboxRoot: react18.ForwardRefExoticComponent<CheckboxRootProps & react18.RefAttributes<HTMLLabelElement>>;
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/components/checkbox/checkbox-root-provider.d.ts
|
|
102
102
|
interface RootProviderProps {
|
|
@@ -104,7 +104,7 @@ interface RootProviderProps {
|
|
|
104
104
|
}
|
|
105
105
|
interface CheckboxRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
106
106
|
interface CheckboxRootProviderProps extends HTMLProps<"label">, CheckboxRootProviderBaseProps {}
|
|
107
|
-
declare const CheckboxRootProvider:
|
|
107
|
+
declare const CheckboxRootProvider: react18.ForwardRefExoticComponent<CheckboxRootProviderProps & react18.RefAttributes<HTMLLabelElement>>;
|
|
108
108
|
declare namespace checkbox_d_exports {
|
|
109
109
|
export { CheckedChangeDetails, CheckedState, CheckboxContext as Context, CheckboxContextProps as ContextProps, CheckboxControl as Control, CheckboxControlBaseProps as ControlBaseProps, CheckboxControlProps as ControlProps, CheckboxGroup as Group, CheckboxGroupBaseProps as GroupBaseProps, CheckboxGroupProps as GroupProps, CheckboxGroupProvider as GroupProvider, CheckboxGroupProviderBaseProps as GroupProviderBaseProps, CheckboxGroupProviderProps as GroupProviderProps, CheckboxHiddenInput as HiddenInput, CheckboxHiddenInputBaseProps as HiddenInputBaseProps, CheckboxHiddenInputProps as HiddenInputProps, CheckboxIndicator as Indicator, CheckboxIndicatorBaseProps as IndicatorBaseProps, CheckboxIndicatorProps as IndicatorProps, CheckboxLabel as Label, CheckboxLabelBaseProps as LabelBaseProps, CheckboxLabelProps as LabelProps, CheckboxRoot as Root, CheckboxRootBaseProps as RootBaseProps, CheckboxRootProps as RootProps, CheckboxRootProvider as RootProvider, CheckboxRootProviderBaseProps as RootProviderBaseProps, CheckboxRootProviderProps as RootProviderProps };
|
|
110
110
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as __exportAll } from "../../chunk-
|
|
2
|
-
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-
|
|
3
|
-
import { t as createContext$1 } from "../../create-context-
|
|
4
|
-
import { n as useEnvironmentContext } from "../../environment-
|
|
5
|
-
import { i as useLocaleContext } from "../../locale-
|
|
6
|
-
import "../../providers-
|
|
7
|
-
import { n as sprawlify } from "../../factory-
|
|
8
|
-
import { t as checkboxAnatomy } from "../../checkbox-anatomy-
|
|
9
|
-
import "../../field-anatomy-
|
|
10
|
-
import "../../fieldset-anatomy-
|
|
11
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
12
|
-
import { t as useEvent } from "../../use-event-
|
|
13
|
-
import { n as useFieldsetContext } from "../../use-fieldset-context-
|
|
14
|
-
import "../../fieldset-
|
|
15
|
-
import "../../use-safe-layout-effect-
|
|
16
|
-
import { p as useFieldContext } from "../../field-
|
|
1
|
+
import { t as __exportAll } from "../../chunk-DWkwRR9H.mjs";
|
|
2
|
+
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-BxCFHKQ_.mjs";
|
|
3
|
+
import { t as createContext$1 } from "../../create-context-DuRB02yv.mjs";
|
|
4
|
+
import { n as useEnvironmentContext } from "../../environment-9mOM5FKS.mjs";
|
|
5
|
+
import { i as useLocaleContext } from "../../locale-De5Z27ES.mjs";
|
|
6
|
+
import "../../providers-U5faJq0V.mjs";
|
|
7
|
+
import { n as sprawlify } from "../../factory-D0O3O5Jq.mjs";
|
|
8
|
+
import { t as checkboxAnatomy } from "../../checkbox-anatomy-7csm5PZ0.mjs";
|
|
9
|
+
import "../../field-anatomy-CEUB_Ta7.mjs";
|
|
10
|
+
import "../../fieldset-anatomy-gpWc3jkH.mjs";
|
|
11
|
+
import { t as createSplitProps } from "../../create-split-props-BrrYfbxV.mjs";
|
|
12
|
+
import { t as useEvent } from "../../use-event-BZ7aKdTe.mjs";
|
|
13
|
+
import { n as useFieldsetContext } from "../../use-fieldset-context-CwklHNpM.mjs";
|
|
14
|
+
import "../../fieldset-BOWrMdSw.mjs";
|
|
15
|
+
import "../../use-safe-layout-effect-DzNlaBXT.mjs";
|
|
16
|
+
import { p as useFieldContext } from "../../field-CAhL6y6X.mjs";
|
|
17
17
|
import { forwardRef, useCallback, useId, useMemo, useState } from "react";
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
import * as checkbox from "@sprawlify/primitives/machines/checkbox";
|
|
@@ -46,10 +46,10 @@ function useControllableState(props) {
|
|
|
46
46
|
const { value, onChange, defaultValue } = props;
|
|
47
47
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
48
48
|
const controlled = value !== void 0;
|
|
49
|
-
return [controlled ? value : uncontrolledValue, useCallback((value
|
|
50
|
-
if (controlled) return onChange?.(value
|
|
51
|
-
setUncontrolledValue(value
|
|
52
|
-
return onChange?.(value
|
|
49
|
+
return [controlled ? value : uncontrolledValue, useCallback((value) => {
|
|
50
|
+
if (controlled) return onChange?.(value);
|
|
51
|
+
setUncontrolledValue(value);
|
|
52
|
+
return onChange?.(value);
|
|
53
53
|
}, [controlled, onChange])];
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -80,11 +80,11 @@ function useCheckboxGroup(props = {}) {
|
|
|
80
80
|
if (!interactive) return;
|
|
81
81
|
setValue(value.filter((v) => String(v) !== String(val)));
|
|
82
82
|
};
|
|
83
|
-
const getItemProps = (props
|
|
83
|
+
const getItemProps = (props) => {
|
|
84
84
|
return {
|
|
85
|
-
checked: props
|
|
85
|
+
checked: props.value != null ? isChecked(props.value) : void 0,
|
|
86
86
|
onCheckedChange() {
|
|
87
|
-
if (props
|
|
87
|
+
if (props.value != null) toggleValue(props.value);
|
|
88
88
|
},
|
|
89
89
|
name,
|
|
90
90
|
disabled,
|
|
@@ -174,9 +174,9 @@ CheckboxHiddenInput.displayName = "CheckboxHiddenInput";
|
|
|
174
174
|
//#region src/components/checkbox/checkbox-indicator.tsx
|
|
175
175
|
const CheckboxIndicator = forwardRef((props, ref) => {
|
|
176
176
|
const { indeterminate, ...rest } = props;
|
|
177
|
-
const checkbox
|
|
178
|
-
const mergedProps = mergeProps(checkbox
|
|
179
|
-
const isVisible = indeterminate ? checkbox
|
|
177
|
+
const checkbox = useCheckboxContext();
|
|
178
|
+
const mergedProps = mergeProps(checkbox.getIndicatorProps(), rest);
|
|
179
|
+
const isVisible = indeterminate ? checkbox.indeterminate : checkbox.checked;
|
|
180
180
|
return /* @__PURE__ */ jsx(sprawlify.div, {
|
|
181
181
|
...mergedProps,
|
|
182
182
|
hidden: !isVisible,
|
|
@@ -243,10 +243,10 @@ const CheckboxRoot = forwardRef((props, ref) => {
|
|
|
243
243
|
"required",
|
|
244
244
|
"value"
|
|
245
245
|
]);
|
|
246
|
-
const checkbox
|
|
247
|
-
const mergedProps = mergeProps(checkbox
|
|
246
|
+
const checkbox = useCheckbox(useCheckboxProps);
|
|
247
|
+
const mergedProps = mergeProps(checkbox.getRootProps(), localProps);
|
|
248
248
|
return /* @__PURE__ */ jsx(CheckboxProvider, {
|
|
249
|
-
value: checkbox
|
|
249
|
+
value: checkbox,
|
|
250
250
|
children: /* @__PURE__ */ jsx(sprawlify.label, {
|
|
251
251
|
...mergedProps,
|
|
252
252
|
ref
|
|
@@ -259,10 +259,10 @@ CheckboxRoot.displayName = "CheckboxRoot";
|
|
|
259
259
|
//#region src/components/checkbox/checkbox-root-provider.tsx
|
|
260
260
|
const splitRootProviderProps = createSplitProps();
|
|
261
261
|
const CheckboxRootProvider = forwardRef((props, ref) => {
|
|
262
|
-
const [{ value: checkbox
|
|
263
|
-
const mergedProps = mergeProps(checkbox
|
|
262
|
+
const [{ value: checkbox }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
263
|
+
const mergedProps = mergeProps(checkbox.getRootProps(), localProps);
|
|
264
264
|
return /* @__PURE__ */ jsx(CheckboxProvider, {
|
|
265
|
-
value: checkbox
|
|
265
|
+
value: checkbox,
|
|
266
266
|
children: /* @__PURE__ */ jsx(sprawlify.label, {
|
|
267
267
|
...mergedProps,
|
|
268
268
|
ref
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('../../chunk-CvCQGRaV.cjs');
|
|
2
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_core = require('../../core-DewT0RE5.cjs');
|
|
3
3
|
const require_create_context = require('../../create-context-DVn3n7gf.cjs');
|
|
4
4
|
const require_environment = require('../../environment-Bg7owXYh.cjs');
|
|
5
5
|
const require_factory = require('../../factory-Cz8-l4y-.cjs');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as PropTypes } from "../../normalize-props-
|
|
2
|
-
import { r as Optional, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as clipboardAnatomy } from "../../clipboard-anatomy-
|
|
5
|
-
import * as
|
|
1
|
+
import { t as PropTypes } from "../../normalize-props-CI_xNrEa.cjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-DhoBSqCC.cjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-CwKrB2Br.cjs";
|
|
4
|
+
import { t as clipboardAnatomy } from "../../clipboard-anatomy-D-StbGK_.cjs";
|
|
5
|
+
import * as react101 from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
import * as clipboard from "@sprawlify/primitives/machines/clipboard";
|
|
8
8
|
import { CopyStatusDetails, CopyStatusDetails as ClipboardCopyStatusDetails } from "@sprawlify/primitives/machines/clipboard";
|
|
@@ -24,29 +24,29 @@ declare const ClipboardContext: (props: ClipboardContextProps) => ReactNode;
|
|
|
24
24
|
//#region src/components/clipboard/clipboard-control.d.ts
|
|
25
25
|
interface ClipboardControlBaseProps extends PolymorphicProps {}
|
|
26
26
|
interface ClipboardControlProps extends HTMLProps<"div">, ClipboardControlBaseProps {}
|
|
27
|
-
declare const ClipboardControl:
|
|
27
|
+
declare const ClipboardControl: react101.ForwardRefExoticComponent<ClipboardControlProps & react101.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/components/clipboard/clipboard-indicator.d.ts
|
|
30
30
|
interface ClipboardIndicatorBaseProps extends PolymorphicProps {
|
|
31
31
|
copied?: ReactNode | undefined;
|
|
32
32
|
}
|
|
33
33
|
interface ClipboardIndicatorProps extends HTMLProps<"div">, ClipboardIndicatorBaseProps {}
|
|
34
|
-
declare const ClipboardIndicator:
|
|
34
|
+
declare const ClipboardIndicator: react101.ForwardRefExoticComponent<ClipboardIndicatorProps & react101.RefAttributes<HTMLDivElement>>;
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/components/clipboard/clipboard-input.d.ts
|
|
37
37
|
interface ClipboardInputBaseProps extends PolymorphicProps {}
|
|
38
38
|
interface ClipboardInputProps extends HTMLProps<"input">, ClipboardInputBaseProps {}
|
|
39
|
-
declare const ClipboardInput:
|
|
39
|
+
declare const ClipboardInput: react101.ForwardRefExoticComponent<ClipboardInputProps & react101.RefAttributes<HTMLInputElement>>;
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/components/clipboard/clipboard-label.d.ts
|
|
42
42
|
interface ClipboardLabelBaseProps extends PolymorphicProps {}
|
|
43
43
|
interface ClipboardLabelProps extends HTMLProps<"label">, ClipboardLabelBaseProps {}
|
|
44
|
-
declare const ClipboardLabel:
|
|
44
|
+
declare const ClipboardLabel: react101.ForwardRefExoticComponent<ClipboardLabelProps & react101.RefAttributes<HTMLLabelElement>>;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/components/clipboard/clipboard-root.d.ts
|
|
47
47
|
interface ClipboardRootBaseProps extends UseClipboardProps, PolymorphicProps {}
|
|
48
48
|
interface ClipboardRootProps extends Assign<HTMLProps<"div">, ClipboardRootBaseProps> {}
|
|
49
|
-
declare const ClipboardRoot:
|
|
49
|
+
declare const ClipboardRoot: react101.ForwardRefExoticComponent<ClipboardRootProps & react101.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/components/clipboard/clipboard-root-provider.d.ts
|
|
52
52
|
interface RootProviderProps {
|
|
@@ -54,17 +54,17 @@ interface RootProviderProps {
|
|
|
54
54
|
}
|
|
55
55
|
interface ClipboardRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
56
56
|
interface ClipboardRootProviderProps extends HTMLProps<"div">, ClipboardRootProviderBaseProps {}
|
|
57
|
-
declare const ClipboardRootProvider:
|
|
57
|
+
declare const ClipboardRootProvider: react101.ForwardRefExoticComponent<ClipboardRootProviderProps & react101.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/clipboard/clipboard-trigger.d.ts
|
|
60
60
|
interface ClipboardTriggerBaseProps extends PolymorphicProps {}
|
|
61
61
|
interface ClipboardTriggerProps extends HTMLProps<"button">, ClipboardTriggerBaseProps {}
|
|
62
|
-
declare const ClipboardTrigger:
|
|
62
|
+
declare const ClipboardTrigger: react101.ForwardRefExoticComponent<ClipboardTriggerProps & react101.RefAttributes<HTMLButtonElement>>;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/clipboard/clipboard-value-text.d.ts
|
|
65
65
|
interface ClipboardValueTextBaseProps extends PolymorphicProps {}
|
|
66
66
|
interface ClipboardValueTextProps extends HTMLProps<"span">, ClipboardValueTextBaseProps {}
|
|
67
|
-
declare const ClipboardValueText:
|
|
67
|
+
declare const ClipboardValueText: react101.ForwardRefExoticComponent<ClipboardValueTextProps & react101.RefAttributes<HTMLDivElement>>;
|
|
68
68
|
declare namespace clipboard_d_exports {
|
|
69
69
|
export { ClipboardContext as Context, ClipboardContextProps as ContextProps, ClipboardControl as Control, ClipboardControlBaseProps as ControlBaseProps, ClipboardControlProps as ControlProps, CopyStatusDetails, ClipboardIndicator as Indicator, ClipboardIndicatorBaseProps as IndicatorBaseProps, ClipboardIndicatorProps as IndicatorProps, ClipboardInput as Input, ClipboardInputBaseProps as InputBaseProps, ClipboardInputProps as InputProps, ClipboardLabel as Label, ClipboardLabelBaseProps as LabelBaseProps, ClipboardLabelProps as LabelProps, ClipboardRoot as Root, ClipboardRootBaseProps as RootBaseProps, ClipboardRootProps as RootProps, ClipboardRootProvider as RootProvider, ClipboardRootProviderBaseProps as RootProviderBaseProps, ClipboardRootProviderProps as RootProviderProps, ClipboardTrigger as Trigger, ClipboardTriggerBaseProps as TriggerBaseProps, ClipboardTriggerProps as TriggerProps, ClipboardValueText as ValueText, ClipboardValueTextBaseProps as ValueTextBaseProps, ClipboardValueTextProps as ValueTextProps };
|
|
70
70
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as PropTypes } from "../../index-
|
|
2
|
-
import { r as Optional, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as clipboardAnatomy } from "../../clipboard-anatomy-
|
|
5
|
-
import * as
|
|
1
|
+
import { r as PropTypes } from "../../index-CpyFpCKZ.mjs";
|
|
2
|
+
import { r as Optional, t as Assign } from "../../types-DBJaHk-X.mjs";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BIg2TdAk.mjs";
|
|
4
|
+
import { t as clipboardAnatomy } from "../../clipboard-anatomy-DpN_4bd0.mjs";
|
|
5
|
+
import * as react422 from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
import * as clipboard from "@sprawlify/primitives/machines/clipboard";
|
|
8
8
|
import { CopyStatusDetails, CopyStatusDetails as ClipboardCopyStatusDetails } from "@sprawlify/primitives/machines/clipboard";
|
|
@@ -24,29 +24,29 @@ declare const ClipboardContext: (props: ClipboardContextProps) => ReactNode;
|
|
|
24
24
|
//#region src/components/clipboard/clipboard-control.d.ts
|
|
25
25
|
interface ClipboardControlBaseProps extends PolymorphicProps {}
|
|
26
26
|
interface ClipboardControlProps extends HTMLProps<"div">, ClipboardControlBaseProps {}
|
|
27
|
-
declare const ClipboardControl:
|
|
27
|
+
declare const ClipboardControl: react422.ForwardRefExoticComponent<ClipboardControlProps & react422.RefAttributes<HTMLDivElement>>;
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/components/clipboard/clipboard-indicator.d.ts
|
|
30
30
|
interface ClipboardIndicatorBaseProps extends PolymorphicProps {
|
|
31
31
|
copied?: ReactNode | undefined;
|
|
32
32
|
}
|
|
33
33
|
interface ClipboardIndicatorProps extends HTMLProps<"div">, ClipboardIndicatorBaseProps {}
|
|
34
|
-
declare const ClipboardIndicator:
|
|
34
|
+
declare const ClipboardIndicator: react422.ForwardRefExoticComponent<ClipboardIndicatorProps & react422.RefAttributes<HTMLDivElement>>;
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/components/clipboard/clipboard-input.d.ts
|
|
37
37
|
interface ClipboardInputBaseProps extends PolymorphicProps {}
|
|
38
38
|
interface ClipboardInputProps extends HTMLProps<"input">, ClipboardInputBaseProps {}
|
|
39
|
-
declare const ClipboardInput:
|
|
39
|
+
declare const ClipboardInput: react422.ForwardRefExoticComponent<ClipboardInputProps & react422.RefAttributes<HTMLInputElement>>;
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/components/clipboard/clipboard-label.d.ts
|
|
42
42
|
interface ClipboardLabelBaseProps extends PolymorphicProps {}
|
|
43
43
|
interface ClipboardLabelProps extends HTMLProps<"label">, ClipboardLabelBaseProps {}
|
|
44
|
-
declare const ClipboardLabel:
|
|
44
|
+
declare const ClipboardLabel: react422.ForwardRefExoticComponent<ClipboardLabelProps & react422.RefAttributes<HTMLLabelElement>>;
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/components/clipboard/clipboard-root.d.ts
|
|
47
47
|
interface ClipboardRootBaseProps extends UseClipboardProps, PolymorphicProps {}
|
|
48
48
|
interface ClipboardRootProps extends Assign<HTMLProps<"div">, ClipboardRootBaseProps> {}
|
|
49
|
-
declare const ClipboardRoot:
|
|
49
|
+
declare const ClipboardRoot: react422.ForwardRefExoticComponent<ClipboardRootProps & react422.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/components/clipboard/clipboard-root-provider.d.ts
|
|
52
52
|
interface RootProviderProps {
|
|
@@ -54,17 +54,17 @@ interface RootProviderProps {
|
|
|
54
54
|
}
|
|
55
55
|
interface ClipboardRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
56
56
|
interface ClipboardRootProviderProps extends HTMLProps<"div">, ClipboardRootProviderBaseProps {}
|
|
57
|
-
declare const ClipboardRootProvider:
|
|
57
|
+
declare const ClipboardRootProvider: react422.ForwardRefExoticComponent<ClipboardRootProviderProps & react422.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/clipboard/clipboard-trigger.d.ts
|
|
60
60
|
interface ClipboardTriggerBaseProps extends PolymorphicProps {}
|
|
61
61
|
interface ClipboardTriggerProps extends HTMLProps<"button">, ClipboardTriggerBaseProps {}
|
|
62
|
-
declare const ClipboardTrigger:
|
|
62
|
+
declare const ClipboardTrigger: react422.ForwardRefExoticComponent<ClipboardTriggerProps & react422.RefAttributes<HTMLButtonElement>>;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/clipboard/clipboard-value-text.d.ts
|
|
65
65
|
interface ClipboardValueTextBaseProps extends PolymorphicProps {}
|
|
66
66
|
interface ClipboardValueTextProps extends HTMLProps<"span">, ClipboardValueTextBaseProps {}
|
|
67
|
-
declare const ClipboardValueText:
|
|
67
|
+
declare const ClipboardValueText: react422.ForwardRefExoticComponent<ClipboardValueTextProps & react422.RefAttributes<HTMLDivElement>>;
|
|
68
68
|
declare namespace clipboard_d_exports {
|
|
69
69
|
export { ClipboardContext as Context, ClipboardContextProps as ContextProps, ClipboardControl as Control, ClipboardControlBaseProps as ControlBaseProps, ClipboardControlProps as ControlProps, CopyStatusDetails, ClipboardIndicator as Indicator, ClipboardIndicatorBaseProps as IndicatorBaseProps, ClipboardIndicatorProps as IndicatorProps, ClipboardInput as Input, ClipboardInputBaseProps as InputBaseProps, ClipboardInputProps as InputProps, ClipboardLabel as Label, ClipboardLabelBaseProps as LabelBaseProps, ClipboardLabelProps as LabelProps, ClipboardRoot as Root, ClipboardRootBaseProps as RootBaseProps, ClipboardRootProps as RootProps, ClipboardRootProvider as RootProvider, ClipboardRootProviderBaseProps as RootProviderBaseProps, ClipboardRootProviderProps as RootProviderProps, ClipboardTrigger as Trigger, ClipboardTriggerBaseProps as TriggerBaseProps, ClipboardTriggerProps as TriggerProps, ClipboardValueText as ValueText, ClipboardValueTextBaseProps as ValueTextBaseProps, ClipboardValueTextProps as ValueTextProps };
|
|
70
70
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "../../chunk-
|
|
2
|
-
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-
|
|
3
|
-
import { t as createContext$1 } from "../../create-context-
|
|
4
|
-
import { n as useEnvironmentContext } from "../../environment-
|
|
5
|
-
import { n as sprawlify } from "../../factory-
|
|
6
|
-
import { t as clipboardAnatomy } from "../../clipboard-anatomy-
|
|
7
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
1
|
+
import { t as __exportAll } from "../../chunk-DWkwRR9H.mjs";
|
|
2
|
+
import { i as useMachine, r as normalizeProps, t as mergeProps } from "../../core-BxCFHKQ_.mjs";
|
|
3
|
+
import { t as createContext$1 } from "../../create-context-DuRB02yv.mjs";
|
|
4
|
+
import { n as useEnvironmentContext } from "../../environment-9mOM5FKS.mjs";
|
|
5
|
+
import { n as sprawlify } from "../../factory-D0O3O5Jq.mjs";
|
|
6
|
+
import { t as clipboardAnatomy } from "../../clipboard-anatomy-Dmqgp_Jo.mjs";
|
|
7
|
+
import { t as createSplitProps } from "../../create-split-props-BrrYfbxV.mjs";
|
|
8
8
|
import { forwardRef, useId } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import * as clipboard from "@sprawlify/primitives/machines/clipboard";
|
|
@@ -35,12 +35,12 @@ ClipboardControl.displayName = "ClipboardControl";
|
|
|
35
35
|
//#region src/components/clipboard/clipboard-indicator.tsx
|
|
36
36
|
const ClipboardIndicator = forwardRef((props, ref) => {
|
|
37
37
|
const { children, copied, ...localProps } = props;
|
|
38
|
-
const clipboard
|
|
39
|
-
const mergedProps = mergeProps(clipboard
|
|
38
|
+
const clipboard = useClipboardContext();
|
|
39
|
+
const mergedProps = mergeProps(clipboard.getIndicatorProps({ copied: clipboard.copied }), localProps);
|
|
40
40
|
return /* @__PURE__ */ jsx(sprawlify.div, {
|
|
41
41
|
...mergedProps,
|
|
42
42
|
ref,
|
|
43
|
-
children: clipboard
|
|
43
|
+
children: clipboard.copied ? copied : children
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
ClipboardIndicator.displayName = "ClipboardIndicator";
|
|
@@ -94,10 +94,10 @@ const ClipboardRoot = forwardRef((props, ref) => {
|
|
|
94
94
|
"timeout",
|
|
95
95
|
"value"
|
|
96
96
|
]);
|
|
97
|
-
const clipboard
|
|
98
|
-
const mergedProps = mergeProps(clipboard
|
|
97
|
+
const clipboard = useClipboard(useClipboardProps);
|
|
98
|
+
const mergedProps = mergeProps(clipboard.getRootProps(), localProps);
|
|
99
99
|
return /* @__PURE__ */ jsx(ClipboardProvider, {
|
|
100
|
-
value: clipboard
|
|
100
|
+
value: clipboard,
|
|
101
101
|
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
102
102
|
ref,
|
|
103
103
|
...mergedProps
|
|
@@ -110,10 +110,10 @@ ClipboardRoot.displayName = "ClipboardRoot";
|
|
|
110
110
|
//#region src/components/clipboard/clipboard-root-provider.tsx
|
|
111
111
|
const splitRootProviderProps = createSplitProps();
|
|
112
112
|
const ClipboardRootProvider = forwardRef((props, ref) => {
|
|
113
|
-
const [{ value: clipboard
|
|
114
|
-
const mergedProps = mergeProps(clipboard
|
|
113
|
+
const [{ value: clipboard }, localProps] = splitRootProviderProps(props, ["value"]);
|
|
114
|
+
const mergedProps = mergeProps(clipboard.getRootProps(), localProps);
|
|
115
115
|
return /* @__PURE__ */ jsx(ClipboardProvider, {
|
|
116
|
-
value: clipboard
|
|
116
|
+
value: clipboard,
|
|
117
117
|
children: /* @__PURE__ */ jsx(sprawlify.div, {
|
|
118
118
|
ref,
|
|
119
119
|
...mergedProps
|
|
@@ -136,11 +136,11 @@ ClipboardTrigger.displayName = "ClipboardTrigger";
|
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/components/clipboard/clipboard-value-text.tsx
|
|
138
138
|
const ClipboardValueText = forwardRef((props, ref) => {
|
|
139
|
-
const clipboard
|
|
139
|
+
const clipboard = useClipboardContext();
|
|
140
140
|
return /* @__PURE__ */ jsx(sprawlify.span, {
|
|
141
141
|
...props,
|
|
142
142
|
ref,
|
|
143
|
-
children: props.children || clipboard
|
|
143
|
+
children: props.children || clipboard.value
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
146
|
ClipboardValueText.displayName = "ClipboardValueText";
|