@sprawlify/solid 0.0.111 → 0.0.112
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/{alert-dialog-anatomy-C2_0cMsp.d.ts → alert-dialog-anatomy-Divf2Pd0.d.ts} +1 -1
- package/dist/{carousel-anatomy-D6Mj7oF7.d.ts → carousel-anatomy-CxiyJUg-.d.ts} +1 -1
- package/dist/{checkbox-anatomy-6YrEMoE8.d.ts → checkbox-anatomy-PPxvbQhr.d.ts} +1 -1
- package/dist/{collapsible-CqDl0d8N.js → collapsible-Dl7EhB4_.js} +2 -2
- package/dist/{color-picker-anatomy-CYCuI0Qh.d.ts → color-picker-anatomy-C1t36hMB.d.ts} +1 -1
- package/dist/{combobox-anatomy-BP3wcKDL.d.ts → combobox-anatomy-Cx_UzmKN.d.ts} +1 -1
- package/dist/components/accordion/index.d.ts +5 -5
- package/dist/components/accordion/index.js +3 -3
- package/dist/components/alert-dialog/index.d.ts +5 -5
- package/dist/components/alert-dialog/index.js +5 -4
- package/dist/components/alert-dialog/index.jsx +2 -1
- package/dist/components/anatomy.d.ts +53 -52
- package/dist/components/anatomy.js +12 -11
- package/dist/components/angle-slider/index.d.ts +4 -4
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/aspect-ratio/index.d.ts +3 -3
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/carousel/index.d.ts +4 -4
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.d.ts +4 -4
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/checkbox/index.jsx +2 -2
- package/dist/components/clipboard/index.d.ts +4 -4
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/collapsible/index.d.ts +5 -5
- package/dist/components/collapsible/index.js +3 -3
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/collection/index.jsx +1 -1
- package/dist/components/color-picker/index.d.ts +5 -5
- package/dist/components/color-picker/index.js +7 -6
- package/dist/components/color-picker/index.jsx +4 -3
- package/dist/components/combobox/index.d.ts +6 -6
- package/dist/components/combobox/index.js +8 -7
- package/dist/components/combobox/index.jsx +5 -4
- package/dist/components/date-picker/index.d.ts +5 -5
- package/dist/components/date-picker/index.js +5 -4
- package/dist/components/date-picker/index.jsx +2 -1
- package/dist/components/dialog/index.d.ts +5 -5
- package/dist/components/dialog/index.js +5 -4
- package/dist/components/dialog/index.jsx +2 -1
- package/dist/components/download-trigger/index.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +5 -5
- package/dist/components/drawer/index.js +5 -4
- package/dist/components/drawer/index.jsx +2 -1
- package/dist/components/dropdown-menu/index.d.ts +5 -5
- package/dist/components/dropdown-menu/index.js +5 -4
- package/dist/components/dropdown-menu/index.jsx +2 -1
- package/dist/components/editable/index.d.ts +4 -4
- package/dist/components/editable/index.js +4 -4
- package/dist/components/editable/index.jsx +2 -2
- package/dist/components/field/index.d.ts +3 -3
- package/dist/components/field/index.js +4 -4
- package/dist/components/field/index.jsx +2 -2
- package/dist/components/fieldset/index.d.ts +3 -3
- package/dist/components/fieldset/index.js +3 -3
- package/dist/components/fieldset/index.jsx +1 -1
- package/dist/components/file-upload/index.d.ts +4 -4
- package/dist/components/file-upload/index.js +4 -4
- package/dist/components/file-upload/index.jsx +2 -2
- package/dist/components/floating-panel/index.d.ts +5 -5
- package/dist/components/floating-panel/index.js +5 -4
- package/dist/components/floating-panel/index.jsx +2 -1
- package/dist/components/focus-trap/index.d.ts +2 -2
- package/dist/components/focus-trap/index.js +2 -2
- package/dist/components/frame/index.d.ts +1 -1
- package/dist/components/frame/index.js +1 -1
- package/dist/components/highlight/index.d.ts +1 -1
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +5 -5
- package/dist/components/hover-card/index.js +5 -4
- package/dist/components/hover-card/index.jsx +2 -1
- package/dist/components/image-cropper/index.d.ts +4 -4
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/json-tree-view/index.d.ts +1 -1
- package/dist/components/json-tree-view/index.js +6 -5
- package/dist/components/json-tree-view/index.jsx +2 -2
- package/dist/components/listbox/index.d.ts +5 -5
- package/dist/components/listbox/index.js +2 -2
- package/dist/components/listbox/index.jsx +1 -1
- package/dist/components/marquee/index.d.ts +4 -4
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +5 -5
- package/dist/components/navigation-menu/index.js +5 -4
- package/dist/components/navigation-menu/index.jsx +2 -1
- package/dist/components/number-input/index.d.ts +4 -4
- package/dist/components/number-input/index.js +4 -4
- package/dist/components/number-input/index.jsx +2 -2
- package/dist/components/pagination/index.d.ts +4 -4
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.d.ts +4 -4
- package/dist/components/password-input/index.js +4 -4
- package/dist/components/password-input/index.jsx +2 -2
- package/dist/components/pin-input/index.d.ts +4 -4
- package/dist/components/pin-input/index.js +4 -4
- package/dist/components/pin-input/index.jsx +2 -2
- package/dist/components/popover/index.d.ts +5 -5
- package/dist/components/popover/index.js +5 -4
- package/dist/components/popover/index.jsx +2 -1
- package/dist/components/presence/index.d.ts +2 -1
- package/dist/components/presence/index.js +5 -4
- package/dist/components/presence/index.jsx +2 -1
- package/dist/components/progress/index.d.ts +4 -4
- package/dist/components/progress/index.js +1 -1
- package/dist/components/qr-code/index.d.ts +4 -4
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radio-group/index.d.ts +4 -4
- package/dist/components/radio-group/index.js +3 -3
- package/dist/components/radio-group/index.jsx +1 -1
- package/dist/components/rating-group/index.d.ts +4 -4
- package/dist/components/rating-group/index.js +4 -4
- package/dist/components/rating-group/index.jsx +2 -2
- package/dist/components/scroll-area/index.d.ts +4 -4
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/segment-group/index.d.ts +4 -4
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/select/index.d.ts +6 -6
- package/dist/components/select/index.js +8 -7
- package/dist/components/select/index.jsx +5 -4
- package/dist/components/separator/index.d.ts +4 -4
- package/dist/components/separator/index.js +1 -1
- package/dist/components/signature-pad/index.d.ts +4 -4
- package/dist/components/signature-pad/index.js +4 -4
- package/dist/components/signature-pad/index.jsx +2 -2
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/index.js +1 -1
- package/dist/components/splitter/index.d.ts +4 -4
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/steps/index.d.ts +4 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/swap/index.d.ts +69 -0
- package/dist/components/swap/index.js +123 -0
- package/dist/components/swap/index.jsx +110 -0
- package/dist/components/switch/index.d.ts +4 -4
- package/dist/components/switch/index.js +5 -5
- package/dist/components/switch/index.jsx +2 -2
- package/dist/components/tabs/index.d.ts +5 -5
- package/dist/components/tabs/index.js +6 -5
- package/dist/components/tabs/index.jsx +2 -1
- package/dist/components/tags-input/index.d.ts +4 -4
- package/dist/components/tags-input/index.js +5 -5
- package/dist/components/tags-input/index.jsx +2 -2
- package/dist/components/timer/index.d.ts +4 -4
- package/dist/components/timer/index.js +2 -2
- package/dist/components/toast/index.d.ts +4 -4
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle/index.d.ts +3 -3
- package/dist/components/toggle/index.js +2 -2
- package/dist/components/toggle-group/index.d.ts +4 -4
- package/dist/components/toggle-group/index.js +2 -2
- package/dist/components/tooltip/index.d.ts +5 -5
- package/dist/components/tooltip/index.js +6 -5
- package/dist/components/tooltip/index.jsx +2 -1
- package/dist/components/tour/index.d.ts +5 -5
- package/dist/components/tour/index.js +6 -5
- package/dist/components/tour/index.jsx +2 -1
- package/dist/components/tree-view/index.d.ts +3 -3
- package/dist/components/tree-view/index.js +6 -6
- package/dist/components/tree-view/index.jsx +2 -2
- package/dist/{date-picker-anatomy-DFw6S35t.d.ts → date-picker-anatomy-BroAPu-j.d.ts} +1 -1
- package/dist/{factory-DkYIAa1r.d.ts → factory-BWHPCsSi.d.ts} +1 -1
- package/dist/{factory-BxBlXUD3.d.ts → factory-Czr-_Ofr.d.ts} +1 -1
- package/dist/{field-GL4C0tUr.js → field-C70Ji8uk.js} +3 -3
- package/dist/{field-Blp6NDsc.jsx → field-DXEYzw2T.jsx} +1 -1
- package/dist/{field-anatomy-DfP5AI6N.d.ts → field-anatomy-BasO5CS7.d.ts} +1 -1
- package/dist/{fieldset-DQUqxXN2.js → fieldset-BtF74SAd.js} +2 -2
- package/dist/{fieldset-anatomy-CKytu4jl.d.ts → fieldset-anatomy-DJxvxcg3.d.ts} +1 -1
- package/dist/index-3V4EpIEV.d.ts +17 -0
- package/dist/{index-CdpGOel-.d.ts → index-BswdUT0r.d.ts} +1 -1
- package/dist/{index-Dho3m7QX.d.ts → index-By9-0uzG.d.ts} +3 -24
- package/dist/{index-DJkj8LZ-.d.ts → index-D99Vniel.d.ts} +5 -5
- package/dist/{index-D1ooJgqW.d.ts → index-DIvFpCUM.d.ts} +1 -1
- package/dist/{index-ZHZGSdr3.d.ts → index-Dwb6sILP.d.ts} +1 -1
- package/dist/{index-BbGXwXgM.d.ts → index-WabVOPPI.d.ts} +1 -1
- package/dist/{index-DiSjSt81.d.ts → index-kdZWirLQ.d.ts} +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/{listbox-anatomy-C6Bu4F-s.d.ts → listbox-anatomy-CIn4BxN-.d.ts} +1 -1
- package/dist/presence-DKT1oc5F.js +47 -0
- package/dist/presence-DRsmHLrP.jsx +34 -0
- package/dist/{render-strategy-BAqQL-Hs.js → render-strategy-Cq9ZZosp.js} +1 -1
- package/dist/{segment-group-anatomy-DKBcX-Mi.d.ts → segment-group-anatomy-DW5nrFOt.d.ts} +1 -1
- package/dist/swap-anatomy-CCWSAMZh.d.ts +6 -0
- package/dist/swap-anatomy-DoDvoWlX.js +6 -0
- package/dist/{tour-anatomy-BrwK1nVa.d.ts → tour-anatomy-gzwTjoy4.d.ts} +1 -1
- package/dist/{tree-view-DqjhHVfK.js → tree-view-Bg4RiWRk.js} +3 -3
- package/dist/use-presence-1Kxv6PoO.jsx +33 -0
- package/dist/use-presence-BLO11KjZ.d.ts +25 -0
- package/dist/use-presence-BWP_tdWv.js +33 -0
- package/dist/use-presence-Dz4pi-k1.d.ts +25 -0
- package/package.json +7 -2
- package/dist/index-Ywo5uneC.d.ts +0 -38
- package/dist/presence-BcYjLSBT.jsx +0 -63
- package/dist/presence-CuZG4SWb.js +0 -76
- /package/dist/{accordion-anatomy-Dlbi7hWX.d.ts → accordion-anatomy-C429Vw0w.d.ts} +0 -0
- /package/dist/{angle-slider-anatomy-D9WEbUDV.d.ts → angle-slider-anatomy-Dv78eP47.d.ts} +0 -0
- /package/dist/{avatar-anatomy-B1gugBlI.d.ts → avatar-anatomy-DHXW281Q.d.ts} +0 -0
- /package/dist/{clipboard-anatomy-nY5kNeMj.d.ts → clipboard-anatomy-gpC-or8a.d.ts} +0 -0
- /package/dist/{collapsible-anatomy-B75vA5QB.d.ts → collapsible-anatomy-ClRt7ESN.d.ts} +0 -0
- /package/dist/{collection-D83ZAzYd.js → collection-DnSW_ep2.js} +0 -0
- /package/dist/{collection-CotDTAMT.jsx → collection-UvoAoZwM.jsx} +0 -0
- /package/dist/{compose-refs-BKcaHXR8.js → compose-refs-CErSWGrI.js} +0 -0
- /package/dist/{create-split-props-OE-yOtGc.js → create-split-props-48F6HUEZ.js} +0 -0
- /package/dist/{dialog-anatomy-fsIDNa4U.d.ts → dialog-anatomy-BleGXY-0.d.ts} +0 -0
- /package/dist/{drawer-anatomy-BX_dO1CK.d.ts → drawer-anatomy--gagvSDB.d.ts} +0 -0
- /package/dist/{dropdown-menu-anatomy-6hFasLVn.d.ts → dropdown-menu-anatomy-Bi0jYnCG.d.ts} +0 -0
- /package/dist/{editable-anatomy-CDcZMAjM.d.ts → editable-anatomy-BjHWEjJ7.d.ts} +0 -0
- /package/dist/{fieldset-Lbk9tsVV.jsx → fieldset-DGggJ3qa.jsx} +0 -0
- /package/dist/{file-upload-anatomy-oz5HPKAl.d.ts → file-upload-anatomy-Kr9Qtpm4.d.ts} +0 -0
- /package/dist/{floating-panel-anatomy-CWHJO-gk.d.ts → floating-panel-anatomy-DwzhDYGr.d.ts} +0 -0
- /package/dist/{hover-card-anatomy-CrEsa3XF.d.ts → hover-card-anatomy-BeL7Wdzl.d.ts} +0 -0
- /package/dist/{image-cropper-anatomy-S1DPpjWp.d.ts → image-cropper-anatomy-SiJH9k2p.d.ts} +0 -0
- /package/dist/{index-Bnd2Fp7Q.d.ts → index-BNNwG8TW.d.ts} +0 -0
- /package/dist/{index-CRqsjDZx.d.ts → index-DcVpvJuo.d.ts} +0 -0
- /package/dist/{marquee-anatomy-B0VBpa40.d.ts → marquee-anatomy-CGqQSKHO.d.ts} +0 -0
- /package/dist/{navigation-menu-anatomy-6TacFtNy.d.ts → navigation-menu-anatomy-0kxxhca-.d.ts} +0 -0
- /package/dist/{number-input-anatomy-Be06g82m.d.ts → number-input-anatomy-DrXRPc-2.d.ts} +0 -0
- /package/dist/{pagination-anatomy-hb5d75ds.d.ts → pagination-anatomy-IbVBkvDE.d.ts} +0 -0
- /package/dist/{password-input-anatomy-DY3Btk4Z.d.ts → password-input-anatomy-DukzKaA_.d.ts} +0 -0
- /package/dist/{pin-input-anatomy-Dh7dVbsT.d.ts → pin-input-anatomy-Dod0i2Fj.d.ts} +0 -0
- /package/dist/{popover-anatomy-CIt7PUmS.d.ts → popover-anatomy-BRUYTStu.d.ts} +0 -0
- /package/dist/{progress-anatomy-Bh9Sh8d2.d.ts → progress-anatomy-CdUb6E_m.d.ts} +0 -0
- /package/dist/{qr-code-anatomy-Daeh1gXt.d.ts → qr-code-anatomy-HIK_cqc4.d.ts} +0 -0
- /package/dist/{radio-group-anatomy-fu9jDbmu.d.ts → radio-group-anatomy-4AtLbTvX.d.ts} +0 -0
- /package/dist/{rating-group-anatomy-B8hoEZBE.d.ts → rating-group-anatomy-C4MeQJFb.d.ts} +0 -0
- /package/dist/{render-strategy-C-bqwyH6.d.ts → render-strategy-Ci6JQxar.d.ts} +0 -0
- /package/dist/{render-strategy-RoCfkF8z.d.ts → render-strategy-VFaN_ls2.d.ts} +0 -0
- /package/dist/{scroll-area-anatomy-Eg5UQD6w.d.ts → scroll-area-anatomy-DpXR-8Ka.d.ts} +0 -0
- /package/dist/{select-anatomy-C85MRleF.d.ts → select-anatomy-DvmePPct.d.ts} +0 -0
- /package/dist/{separator-anatomy-CoRBCozn.d.ts → separator-anatomy-DcmKkhH4.d.ts} +0 -0
- /package/dist/{signature-pad-anatomy-69rnG-8v.d.ts → signature-pad-anatomy-CE3VaGlN.d.ts} +0 -0
- /package/dist/{slider-anatomy-Bi2M9sIn.d.ts → slider-anatomy-Bcn8infz.d.ts} +0 -0
- /package/dist/{splitter-anatomy-DOrZZHLS.d.ts → splitter-anatomy-CcU7r6nC.d.ts} +0 -0
- /package/dist/{steps-anatomy-DyFBdyZm.d.ts → steps-anatomy-BFfGItPO.d.ts} +0 -0
- /package/dist/{switch-anatomy-D5Q54mGY.js → switch-anatomy-BBKGer2O.js} +0 -0
- /package/dist/{switch-anatomy-ChIrrzPM.d.ts → switch-anatomy-V7-avrsf.d.ts} +0 -0
- /package/dist/{tabs-anatomy-DU5e5PwZ.js → tabs-anatomy-CSIjHllD.js} +0 -0
- /package/dist/{tabs-anatomy-Cx19UTVm.d.ts → tabs-anatomy-Sf4easVm.d.ts} +0 -0
- /package/dist/{tags-input-anatomy-BhGRRfIw.js → tags-input-anatomy-BVSVhUIY.js} +0 -0
- /package/dist/{tags-input-anatomy-Bwspep5o.d.ts → tags-input-anatomy-klR6M57D.d.ts} +0 -0
- /package/dist/{timer-anatomy-GlYZryvG.js → timer-anatomy-Bi9rZW6m.js} +0 -0
- /package/dist/{timer-anatomy-EHPlHptt.d.ts → timer-anatomy-DiFPa7w2.d.ts} +0 -0
- /package/dist/{toast-anatomy-DiPVPI_x.js → toast-anatomy-T5C60YOF.js} +0 -0
- /package/dist/{toast-anatomy-DtLjq13p.d.ts → toast-anatomy-TiT_rATb.d.ts} +0 -0
- /package/dist/{toggle-anatomy-Bh7LJ9JI.d.ts → toggle-anatomy-BEf2ev_N.d.ts} +0 -0
- /package/dist/{toggle-anatomy-DLOZu83X.js → toggle-anatomy-Cvb2YZ0Z.js} +0 -0
- /package/dist/{toggle-group-anatomy-lQ9EYEIt.js → toggle-group-anatomy-CY3buWoP.js} +0 -0
- /package/dist/{toggle-group-anatomy-DEo8iu_3.d.ts → toggle-group-anatomy-DPihvPM-.d.ts} +0 -0
- /package/dist/{tooltip-anatomy-CamCIpK3.d.ts → tooltip-anatomy-fBuzAg1k.d.ts} +0 -0
- /package/dist/{tooltip-anatomy-Py7dhRtQ.js → tooltip-anatomy-tX33r13s.js} +0 -0
- /package/dist/{tour-anatomy-VBbJhmJa.js → tour-anatomy-CmrXDTeQ.js} +0 -0
- /package/dist/{tree-view-nwQzRTs2.jsx → tree-view-Dj3OcF2q.jsx} +0 -0
- /package/dist/{tree-view-anatomy-DFap3OjP.d.ts → tree-view-anatomy-BqdaCO-D.d.ts} +0 -0
- /package/dist/{tree-view-anatomy-BK8OR6TX.js → tree-view-anatomy-Dmaz5yOz.js} +0 -0
- /package/dist/{types-BiaKY56E.d.ts → types-B4c9Wnje.d.ts} +0 -0
- /package/dist/{types-C0L5xDeS.d.ts → types-CgX1JJNs.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as separatorAnatomy } from "../../separator-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as separatorAnatomy } from "../../separator-anatomy-DcmKkhH4.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as separator from "@sprawlify/primitives/machines/separator";
|
|
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
|
5
5
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import { t as separatorAnatomy } from "../../separator-anatomy-DNo6fxgH.js";
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
9
|
import { createMemo, createUniqueId } from "solid-js";
|
|
10
10
|
import { createComponent } from "solid-js/web";
|
|
11
11
|
import * as separator from "@sprawlify/primitives/machines/separator";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as signaturePadAnatomy } from "../../signature-pad-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as signaturePadAnatomy } from "../../signature-pad-anatomy-CE3VaGlN.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
|
|
@@ -7,10 +7,10 @@ import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
|
7
7
|
import "../../field-anatomy-BloFzq7T.js";
|
|
8
8
|
import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
9
9
|
import { t as signaturePadAnatomy } from "../../signature-pad-anatomy--FrLBUvh.js";
|
|
10
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
11
|
-
import "../../compose-refs-
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
10
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
11
|
+
import "../../compose-refs-CErSWGrI.js";
|
|
12
|
+
import "../../fieldset-BtF74SAd.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-C70Ji8uk.js";
|
|
14
14
|
import { For, Show, createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1, spread, template } from "solid-js/web";
|
|
16
16
|
import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
|
|
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
7
7
|
import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
|
|
8
8
|
import "../../compose-refs-Jq47jedK.jsx";
|
|
9
|
-
import "../../fieldset-
|
|
10
|
-
import { m as useFieldContext } from "../../field-
|
|
9
|
+
import "../../fieldset-DGggJ3qa.jsx";
|
|
10
|
+
import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
|
|
11
11
|
import { For, Show, createMemo, createUniqueId } from "solid-js";
|
|
12
12
|
import * as signaturePad from "@sprawlify/primitives/machines/signature-pad";
|
|
13
13
|
import { anatomy as signaturePadAnatomy } from "@sprawlify/primitives/machines/signature-pad";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as sliderAnatomy } from "../../slider-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as sliderAnatomy } from "../../slider-anatomy-Bcn8infz.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as slider from "@sprawlify/primitives/machines/slider";
|
|
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
|
5
5
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import { t as sliderAnatomy } from "../../slider-anatomy-B4hwb17i.js";
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
9
|
import { createMemo, createUniqueId } from "solid-js";
|
|
10
10
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
11
11
|
import * as slider from "@sprawlify/primitives/machines/slider";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as splitterAnatomy } from "../../splitter-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as splitterAnatomy } from "../../splitter-anatomy-CcU7r6nC.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as splitter from "@sprawlify/primitives/machines/splitter";
|
|
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
|
5
5
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import { t as splitterAnatomy } from "../../splitter-anatomy-C3pN_mFn.js";
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
9
|
import { createMemo, createUniqueId } from "solid-js";
|
|
10
10
|
import { createComponent } from "solid-js/web";
|
|
11
11
|
import * as splitter from "@sprawlify/primitives/machines/splitter";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as stepsAnatomy } from "../../steps-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as stepsAnatomy } from "../../steps-anatomy-BFfGItPO.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as steps from "@sprawlify/primitives/machines/steps";
|
|
@@ -5,7 +5,7 @@ import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
|
5
5
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import { t as stepsAnatomy } from "../../steps-anatomy-CbPJUew1.js";
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
9
|
import { createMemo, createUniqueId } from "solid-js";
|
|
10
10
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
11
11
|
import * as steps from "@sprawlify/primitives/machines/steps";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
2
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
3
|
+
import { t as RenderStrategyProps } from "../../render-strategy-VFaN_ls2.js";
|
|
4
|
+
import { n as UsePresenceReturn } from "../../use-presence-BLO11KjZ.js";
|
|
5
|
+
import { t as swapAnatomy } from "../../swap-anatomy-CCWSAMZh.js";
|
|
6
|
+
import * as solid_js0 from "solid-js";
|
|
7
|
+
import { Accessor } from "solid-js";
|
|
8
|
+
|
|
9
|
+
//#region src/components/swap/swap-indicator.d.ts
|
|
10
|
+
interface SwapIndicatorBaseProps extends PolymorphicProps<"span"> {
|
|
11
|
+
type: "on" | "off";
|
|
12
|
+
}
|
|
13
|
+
interface SwapIndicatorProps extends HTMLProps<"span">, SwapIndicatorBaseProps {}
|
|
14
|
+
declare const SwapIndicator: (props: SwapIndicatorProps) => solid_js0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/swap/use-swap.d.ts
|
|
17
|
+
interface UseSwapProps extends RenderStrategyProps {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the swap is in the "on" state.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
swap?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface IndicatorProps {
|
|
25
|
+
type: "on" | "off";
|
|
26
|
+
}
|
|
27
|
+
interface UseSwapReturn {
|
|
28
|
+
/**
|
|
29
|
+
* Whether the swap is in the "on" state.
|
|
30
|
+
*/
|
|
31
|
+
swap: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The presence instance for the "on" indicator.
|
|
34
|
+
*/
|
|
35
|
+
onPresence: UsePresenceReturn;
|
|
36
|
+
/**
|
|
37
|
+
* The presence instance for the "off" indicator.
|
|
38
|
+
*/
|
|
39
|
+
offPresence: UsePresenceReturn;
|
|
40
|
+
/**
|
|
41
|
+
* Props for the root element.
|
|
42
|
+
*/
|
|
43
|
+
getRootProps: () => HTMLProps<"span">;
|
|
44
|
+
/**
|
|
45
|
+
* Props for the indicator element.
|
|
46
|
+
*/
|
|
47
|
+
getIndicatorProps: (props: IndicatorProps) => HTMLProps<"span">;
|
|
48
|
+
}
|
|
49
|
+
declare const useSwap: (props?: MaybeAccessor<UseSwapProps>) => Accessor<UseSwapReturn>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/swap/swap-root.d.ts
|
|
52
|
+
interface SwapRootBaseProps extends UseSwapProps, PolymorphicProps<"span"> {}
|
|
53
|
+
interface SwapRootProps extends HTMLProps<"span">, SwapRootBaseProps {}
|
|
54
|
+
declare const SwapRoot: (props: SwapRootProps) => solid_js0.JSX.Element;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/swap/swap-root-provider.d.ts
|
|
57
|
+
interface SwapRootProviderBaseProps extends PolymorphicProps<"span"> {
|
|
58
|
+
value: Accessor<UseSwapReturn>;
|
|
59
|
+
}
|
|
60
|
+
interface SwapRootProviderProps extends HTMLProps<"span">, SwapRootProviderBaseProps {}
|
|
61
|
+
declare const SwapRootProvider: (props: SwapRootProviderProps) => solid_js0.JSX.Element;
|
|
62
|
+
declare namespace swap_d_exports {
|
|
63
|
+
export { SwapIndicator as Indicator, SwapIndicatorBaseProps as IndicatorBaseProps, SwapIndicatorProps as IndicatorProps, SwapRoot as Root, SwapRootBaseProps as RootBaseProps, SwapRootProps as RootProps, SwapRootProvider as RootProvider, SwapRootProviderBaseProps as RootProviderBaseProps, SwapRootProviderProps as RootProviderProps, swapAnatomy };
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/swap/use-swap-context.d.ts
|
|
67
|
+
interface UseSwapContext extends Accessor<UseSwapReturn> {}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { swap_d_exports as Swap, SwapIndicator, type SwapIndicatorBaseProps, type SwapIndicatorProps, SwapRoot, type SwapRootBaseProps, type SwapRootProps, SwapRootProvider, type SwapRootProviderBaseProps, type SwapRootProviderProps, type UseSwapContext, type UseSwapProps, type UseSwapReturn, swapAnatomy, useSwap, useSwapContext };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-pbuEa-1d.js";
|
|
2
|
+
import { r as mergeProps$2 } from "../../core-BHfpfUk-.js";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-BV7F-Eeb.js";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
5
|
+
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
6
|
+
import { n as swapAnatomy, t as parts } from "../../swap-anatomy-DoDvoWlX.js";
|
|
7
|
+
import "../../create-split-props-48F6HUEZ.js";
|
|
8
|
+
import "../../render-strategy-Cq9ZZosp.js";
|
|
9
|
+
import { t as composeRefs } from "../../compose-refs-CErSWGrI.js";
|
|
10
|
+
import { t as usePresence } from "../../use-presence-BWP_tdWv.js";
|
|
11
|
+
import { Show, createMemo, splitProps } from "solid-js";
|
|
12
|
+
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
13
|
+
//#region src/components/swap/use-swap-context.ts
|
|
14
|
+
const [SwapProvider, useSwapContext] = createContext$1({
|
|
15
|
+
hookName: "useSwapContext",
|
|
16
|
+
providerName: "<SwapProvider />"
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/swap/swap-indicator.tsx
|
|
20
|
+
const SwapIndicator = (props) => {
|
|
21
|
+
const [localProps, restProps] = splitProps(props, ["type", "ref"]);
|
|
22
|
+
const swap = useSwapContext();
|
|
23
|
+
const presence = () => {
|
|
24
|
+
return (localProps.type === "on" ? swap().onPresence : swap().offPresence)();
|
|
25
|
+
};
|
|
26
|
+
const mergedProps = mergeProps$2(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
|
|
27
|
+
return createComponent(Show, {
|
|
28
|
+
get when() {
|
|
29
|
+
return !presence().unmounted;
|
|
30
|
+
},
|
|
31
|
+
get children() {
|
|
32
|
+
return createComponent(sprawlify.span, mergeProps$1(mergedProps, { ref(r$) {
|
|
33
|
+
var _ref$ = composeRefs(presence().ref, localProps.ref);
|
|
34
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
35
|
+
} }));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/swap/use-swap.ts
|
|
41
|
+
const useSwap = (props = {}) => {
|
|
42
|
+
const resolved = createMemo(() => runIfFn(props));
|
|
43
|
+
const onPresence = usePresence(mergeProps$2(() => ({
|
|
44
|
+
present: resolved().swap ?? false,
|
|
45
|
+
lazyMount: resolved().lazyMount,
|
|
46
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
47
|
+
skipAnimationOnMount: true
|
|
48
|
+
})));
|
|
49
|
+
const offPresence = usePresence(mergeProps$2(() => ({
|
|
50
|
+
present: !(resolved().swap ?? false),
|
|
51
|
+
lazyMount: resolved().lazyMount,
|
|
52
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
53
|
+
skipAnimationOnMount: true
|
|
54
|
+
})));
|
|
55
|
+
return createMemo(() => {
|
|
56
|
+
const swap = resolved().swap ?? false;
|
|
57
|
+
return {
|
|
58
|
+
swap,
|
|
59
|
+
onPresence,
|
|
60
|
+
offPresence,
|
|
61
|
+
getRootProps() {
|
|
62
|
+
return {
|
|
63
|
+
...parts.root.attrs,
|
|
64
|
+
"data-swap": swap ? "on" : "off",
|
|
65
|
+
style: { display: "inline-grid" }
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
getIndicatorProps({ type }) {
|
|
69
|
+
const presence = type === "on" ? onPresence() : offPresence();
|
|
70
|
+
return {
|
|
71
|
+
...parts.indicator.attrs,
|
|
72
|
+
...presence.presenceProps,
|
|
73
|
+
"data-type": type,
|
|
74
|
+
style: {
|
|
75
|
+
"grid-area": "1 / 1",
|
|
76
|
+
display: "inline-flex"
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/swap/swap-root.tsx
|
|
85
|
+
const SwapRoot = (props) => {
|
|
86
|
+
const [swapProps, localProps] = splitProps(props, [
|
|
87
|
+
"swap",
|
|
88
|
+
"lazyMount",
|
|
89
|
+
"unmountOnExit"
|
|
90
|
+
]);
|
|
91
|
+
const swap = useSwap(() => swapProps);
|
|
92
|
+
const mergedProps = mergeProps$2(() => swap().getRootProps(), localProps);
|
|
93
|
+
return createComponent(SwapProvider, {
|
|
94
|
+
value: swap,
|
|
95
|
+
get children() {
|
|
96
|
+
return createComponent(sprawlify.span, mergedProps);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/swap/swap-root-provider.tsx
|
|
102
|
+
const SwapRootProvider = (props) => {
|
|
103
|
+
const [providerProps, localProps] = splitProps(props, ["value"]);
|
|
104
|
+
const mergedProps = mergeProps$2(() => providerProps.value().getRootProps(), localProps);
|
|
105
|
+
return createComponent(SwapProvider, {
|
|
106
|
+
get value() {
|
|
107
|
+
return providerProps.value;
|
|
108
|
+
},
|
|
109
|
+
get children() {
|
|
110
|
+
return createComponent(sprawlify.span, mergedProps);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/swap/swap.ts
|
|
116
|
+
var swap_exports = /* @__PURE__ */ __exportAll({
|
|
117
|
+
Indicator: () => SwapIndicator,
|
|
118
|
+
Root: () => SwapRoot,
|
|
119
|
+
RootProvider: () => SwapRootProvider,
|
|
120
|
+
swapAnatomy: () => swapAnatomy
|
|
121
|
+
});
|
|
122
|
+
//#endregion
|
|
123
|
+
export { swap_exports as Swap, SwapIndicator, SwapRoot, SwapRootProvider, swapAnatomy, useSwap, useSwapContext };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-pQxUBDkX.jsx";
|
|
2
|
+
import { r as mergeProps$1 } from "../../core-DUR6M1Mz.jsx";
|
|
3
|
+
import { t as runIfFn } from "../../run-if-fn-qkd0iQPO.jsx";
|
|
4
|
+
import { t as createContext$1 } from "../../create-context-iBxaUhvx.jsx";
|
|
5
|
+
import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
6
|
+
import "../../create-split-props-B2Gc7D9P.jsx";
|
|
7
|
+
import "../../render-strategy-6LT04Ztx.jsx";
|
|
8
|
+
import { t as composeRefs } from "../../compose-refs-Jq47jedK.jsx";
|
|
9
|
+
import { t as usePresence } from "../../use-presence-1Kxv6PoO.jsx";
|
|
10
|
+
import { Show, createMemo, splitProps } from "solid-js";
|
|
11
|
+
import { createAnatomy } from "@sprawlify/primitives/anatomy";
|
|
12
|
+
//#region src/components/swap/use-swap-context.ts
|
|
13
|
+
const [SwapProvider, useSwapContext] = createContext$1({
|
|
14
|
+
hookName: "useSwapContext",
|
|
15
|
+
providerName: "<SwapProvider />"
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/swap/swap-indicator.tsx
|
|
19
|
+
const SwapIndicator = (props) => {
|
|
20
|
+
const [localProps, restProps] = splitProps(props, ["type", "ref"]);
|
|
21
|
+
const swap = useSwapContext();
|
|
22
|
+
const presence = () => {
|
|
23
|
+
return (localProps.type === "on" ? swap().onPresence : swap().offPresence)();
|
|
24
|
+
};
|
|
25
|
+
const mergedProps = mergeProps$1(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
|
|
26
|
+
return <Show when={!presence().unmounted}>
|
|
27
|
+
<sprawlify.span {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
|
|
28
|
+
</Show>;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/swap/swap-anatomy.ts
|
|
32
|
+
const swapAnatomy = createAnatomy("swap", ["root", "indicator"]);
|
|
33
|
+
const parts = swapAnatomy.build();
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/swap/use-swap.ts
|
|
36
|
+
const useSwap = (props = {}) => {
|
|
37
|
+
const resolved = createMemo(() => runIfFn(props));
|
|
38
|
+
const onPresence = usePresence(mergeProps$1(() => ({
|
|
39
|
+
present: resolved().swap ?? false,
|
|
40
|
+
lazyMount: resolved().lazyMount,
|
|
41
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
42
|
+
skipAnimationOnMount: true
|
|
43
|
+
})));
|
|
44
|
+
const offPresence = usePresence(mergeProps$1(() => ({
|
|
45
|
+
present: !(resolved().swap ?? false),
|
|
46
|
+
lazyMount: resolved().lazyMount,
|
|
47
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
48
|
+
skipAnimationOnMount: true
|
|
49
|
+
})));
|
|
50
|
+
return createMemo(() => {
|
|
51
|
+
const swap = resolved().swap ?? false;
|
|
52
|
+
return {
|
|
53
|
+
swap,
|
|
54
|
+
onPresence,
|
|
55
|
+
offPresence,
|
|
56
|
+
getRootProps() {
|
|
57
|
+
return {
|
|
58
|
+
...parts.root.attrs,
|
|
59
|
+
"data-swap": swap ? "on" : "off",
|
|
60
|
+
style: { display: "inline-grid" }
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
getIndicatorProps({ type }) {
|
|
64
|
+
const presence = type === "on" ? onPresence() : offPresence();
|
|
65
|
+
return {
|
|
66
|
+
...parts.indicator.attrs,
|
|
67
|
+
...presence.presenceProps,
|
|
68
|
+
"data-type": type,
|
|
69
|
+
style: {
|
|
70
|
+
"grid-area": "1 / 1",
|
|
71
|
+
display: "inline-flex"
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/swap/swap-root.tsx
|
|
80
|
+
const SwapRoot = (props) => {
|
|
81
|
+
const [swapProps, localProps] = splitProps(props, [
|
|
82
|
+
"swap",
|
|
83
|
+
"lazyMount",
|
|
84
|
+
"unmountOnExit"
|
|
85
|
+
]);
|
|
86
|
+
const swap = useSwap(() => swapProps);
|
|
87
|
+
const mergedProps = mergeProps$1(() => swap().getRootProps(), localProps);
|
|
88
|
+
return <SwapProvider value={swap}>
|
|
89
|
+
<sprawlify.span {...mergedProps} />
|
|
90
|
+
</SwapProvider>;
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/swap/swap-root-provider.tsx
|
|
94
|
+
const SwapRootProvider = (props) => {
|
|
95
|
+
const [providerProps, localProps] = splitProps(props, ["value"]);
|
|
96
|
+
const mergedProps = mergeProps$1(() => providerProps.value().getRootProps(), localProps);
|
|
97
|
+
return <SwapProvider value={providerProps.value}>
|
|
98
|
+
<sprawlify.span {...mergedProps} />
|
|
99
|
+
</SwapProvider>;
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/swap/swap.ts
|
|
103
|
+
var swap_exports = /* @__PURE__ */ __exportAll({
|
|
104
|
+
Indicator: () => SwapIndicator,
|
|
105
|
+
Root: () => SwapRoot,
|
|
106
|
+
RootProvider: () => SwapRootProvider,
|
|
107
|
+
swapAnatomy: () => swapAnatomy
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
export { swap_exports as Swap, SwapIndicator, SwapRoot, SwapRootProvider, swapAnatomy, useSwap, useSwapContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as switchAnatomy } from "../../switch-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as switchAnatomy } from "../../switch-anatomy-V7-avrsf.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
|
|
@@ -6,11 +6,11 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import "../../field-anatomy-BloFzq7T.js";
|
|
8
8
|
import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
9
|
-
import { t as switchAnatomy } from "../../switch-anatomy-
|
|
10
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
11
|
-
import "../../compose-refs-
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
9
|
+
import { t as switchAnatomy } from "../../switch-anatomy-BBKGer2O.js";
|
|
10
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
11
|
+
import "../../compose-refs-CErSWGrI.js";
|
|
12
|
+
import "../../fieldset-BtF74SAd.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-C70Ji8uk.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
|
|
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
7
7
|
import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
|
|
8
8
|
import "../../compose-refs-Jq47jedK.jsx";
|
|
9
|
-
import "../../fieldset-
|
|
10
|
-
import { m as useFieldContext } from "../../field-
|
|
9
|
+
import "../../fieldset-DGggJ3qa.jsx";
|
|
10
|
+
import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
|
|
11
11
|
import { createMemo, createUniqueId } from "solid-js";
|
|
12
12
|
import * as sprawlifySwitch from "@sprawlify/primitives/machines/switch";
|
|
13
13
|
import { anatomy as switchAnatomy } from "@sprawlify/primitives/machines/switch";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as RenderStrategyProps } from "../../render-strategy-
|
|
5
|
-
import { t as tabsAnatomy } from "../../tabs-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor, t as Assign } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as RenderStrategyProps } from "../../render-strategy-VFaN_ls2.js";
|
|
5
|
+
import { t as tabsAnatomy } from "../../tabs-anatomy-Sf4easVm.js";
|
|
6
6
|
import * as solid_js0 from "solid-js";
|
|
7
7
|
import { Accessor, JSX } from "solid-js";
|
|
8
8
|
import * as tabs from "@sprawlify/primitives/machines/tabs";
|
|
@@ -4,11 +4,12 @@ import { t as runIfFn } from "../../run-if-fn-BV7F-Eeb.js";
|
|
|
4
4
|
import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
5
5
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
|
-
import { t as tabsAnatomy } from "../../tabs-anatomy-
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
9
|
-
import { n as splitRenderStrategyProps, r as useRenderStrategyContext, t as RenderStrategyProvider } from "../../render-strategy-
|
|
10
|
-
import { t as composeRefs } from "../../compose-refs-
|
|
11
|
-
import {
|
|
7
|
+
import { t as tabsAnatomy } from "../../tabs-anatomy-CSIjHllD.js";
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
|
+
import { n as splitRenderStrategyProps, r as useRenderStrategyContext, t as RenderStrategyProvider } from "../../render-strategy-Cq9ZZosp.js";
|
|
10
|
+
import { t as composeRefs } from "../../compose-refs-CErSWGrI.js";
|
|
11
|
+
import { t as PresenceProvider } from "../../presence-DKT1oc5F.js";
|
|
12
|
+
import { t as usePresence } from "../../use-presence-BWP_tdWv.js";
|
|
12
13
|
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
13
14
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
14
15
|
import * as tabs from "@sprawlify/primitives/machines/tabs";
|
|
@@ -7,7 +7,8 @@ import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
|
7
7
|
import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
|
|
8
8
|
import { n as splitRenderStrategyProps, r as useRenderStrategyContext, t as RenderStrategyProvider } from "../../render-strategy-6LT04Ztx.jsx";
|
|
9
9
|
import { t as composeRefs } from "../../compose-refs-Jq47jedK.jsx";
|
|
10
|
-
import {
|
|
10
|
+
import { t as PresenceProvider } from "../../presence-DRsmHLrP.jsx";
|
|
11
|
+
import { t as usePresence } from "../../use-presence-1Kxv6PoO.jsx";
|
|
11
12
|
import { Show, createMemo, createUniqueId } from "solid-js";
|
|
12
13
|
import * as tabs from "@sprawlify/primitives/machines/tabs";
|
|
13
14
|
import { anatomy as tabsAnatomy } from "@sprawlify/primitives/machines/tabs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as tagsInputAnatomy } from "../../tags-input-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as tagsInputAnatomy } from "../../tags-input-anatomy-klR6M57D.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as tagsInput from "@sprawlify/primitives/machines/tags-input";
|
|
@@ -6,11 +6,11 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
7
|
import "../../field-anatomy-BloFzq7T.js";
|
|
8
8
|
import "../../fieldset-anatomy-DBAg0hLg.js";
|
|
9
|
-
import { t as tagsInputAnatomy } from "../../tags-input-anatomy-
|
|
10
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
11
|
-
import "../../compose-refs-
|
|
12
|
-
import "../../fieldset-
|
|
13
|
-
import { p as useFieldContext } from "../../field-
|
|
9
|
+
import { t as tagsInputAnatomy } from "../../tags-input-anatomy-BVSVhUIY.js";
|
|
10
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
11
|
+
import "../../compose-refs-CErSWGrI.js";
|
|
12
|
+
import "../../fieldset-BtF74SAd.js";
|
|
13
|
+
import { p as useFieldContext } from "../../field-C70Ji8uk.js";
|
|
14
14
|
import { createMemo, createUniqueId } from "solid-js";
|
|
15
15
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
16
16
|
import * as tagsInput from "@sprawlify/primitives/machines/tags-input";
|
|
@@ -6,8 +6,8 @@ import { a as useLocaleContext, s as useEnvironmentContext } from "../../provide
|
|
|
6
6
|
import { t as sprawlify } from "../../factory-B95XvEzz.jsx";
|
|
7
7
|
import { t as createSplitProps } from "../../create-split-props-B2Gc7D9P.jsx";
|
|
8
8
|
import "../../compose-refs-Jq47jedK.jsx";
|
|
9
|
-
import "../../fieldset-
|
|
10
|
-
import { m as useFieldContext } from "../../field-
|
|
9
|
+
import "../../fieldset-DGggJ3qa.jsx";
|
|
10
|
+
import { m as useFieldContext } from "../../field-DXEYzw2T.jsx";
|
|
11
11
|
import { createMemo, createUniqueId } from "solid-js";
|
|
12
12
|
import * as tagsInput from "@sprawlify/primitives/machines/tags-input";
|
|
13
13
|
import { anatomy as tagsInputAnatomy } from "@sprawlify/primitives/machines/tags-input";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { i as Optional, n as MaybeAccessor } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as timerAnatomy } from "../../timer-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { i as Optional, n as MaybeAccessor } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as timerAnatomy } from "../../timer-anatomy-DiFPa7w2.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as timer from "@sprawlify/primitives/machines/timer";
|
|
@@ -4,8 +4,8 @@ import { t as runIfFn } from "../../run-if-fn-BV7F-Eeb.js";
|
|
|
4
4
|
import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
5
5
|
import { s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
6
6
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
7
|
-
import { t as timerAnatomy } from "../../timer-anatomy-
|
|
8
|
-
import { t as createSplitProps } from "../../create-split-props-
|
|
7
|
+
import { t as timerAnatomy } from "../../timer-anatomy-Bi9rZW6m.js";
|
|
8
|
+
import { t as createSplitProps } from "../../create-split-props-48F6HUEZ.js";
|
|
9
9
|
import { createMemo, createUniqueId } from "solid-js";
|
|
10
10
|
import { createComponent, mergeProps as mergeProps$1 } from "solid-js/web";
|
|
11
11
|
import * as timer from "@sprawlify/primitives/machines/timer";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PropTypes } from "../../index-
|
|
2
|
-
import { t as Assign } from "../../types-
|
|
3
|
-
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-
|
|
4
|
-
import { t as toastAnatomy } from "../../toast-anatomy-
|
|
1
|
+
import { n as PropTypes } from "../../index-BNNwG8TW.js";
|
|
2
|
+
import { t as Assign } from "../../types-B4c9Wnje.js";
|
|
3
|
+
import { r as PolymorphicProps, t as HTMLProps } from "../../factory-BWHPCsSi.js";
|
|
4
|
+
import { t as toastAnatomy } from "../../toast-anatomy-TiT_rATb.js";
|
|
5
5
|
import * as solid_js0 from "solid-js";
|
|
6
6
|
import { Accessor, JSX } from "solid-js";
|
|
7
7
|
import * as toast from "@sprawlify/primitives/machines/toast";
|
|
@@ -3,7 +3,7 @@ import { i as useMachine, n as normalizeProps, r as mergeProps$2, t as Key } fro
|
|
|
3
3
|
import { t as createContext$1 } from "../../create-context-BEnzb67H.js";
|
|
4
4
|
import { a as useLocaleContext, s as useEnvironmentContext } from "../../providers-vv33Jo9Q.js";
|
|
5
5
|
import { t as sprawlify } from "../../factory-DORgzART.js";
|
|
6
|
-
import { t as toastAnatomy } from "../../toast-anatomy-
|
|
6
|
+
import { t as toastAnatomy } from "../../toast-anatomy-T5C60YOF.js";
|
|
7
7
|
import { createMemo, createUniqueId, splitProps } from "solid-js";
|
|
8
8
|
import { createComponent, insert, mergeProps as mergeProps$1, spread, template } from "solid-js/web";
|
|
9
9
|
import * as toast from "@sprawlify/primitives/machines/toast";
|