@ark-ui/solid 5.31.0 → 5.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk/{7LG5FPBU.js → 25QG5G6C.js} +4 -3
- package/dist/chunk/{VUOC2LCL.js → 3EUGCOMV.js} +1 -1
- package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
- package/dist/chunk/{YQOHTJFL.js → 5ATP7B75.js} +1 -1
- package/dist/chunk/5BSMJBO7.jsx +136 -0
- package/dist/chunk/{TQCLH765.jsx → 5GO6NUQR.jsx} +9 -6
- package/dist/chunk/{KMYFS63G.js → 5IIB2LYP.js} +20 -4
- package/dist/chunk/{DFHJBZM6.js → 5V7JAJ5W.js} +3 -2
- package/dist/chunk/{5SEYLBQQ.jsx → 5ZAKDNMV.jsx} +4 -4
- package/dist/chunk/{O6CMUPUG.js → 6C2FCXTS.js} +1 -1
- package/dist/chunk/{UGSFGPFW.jsx → 6FX4SECK.jsx} +4 -4
- package/dist/chunk/{OSFE5N7D.js → 6QV6SS6W.js} +1 -1
- package/dist/chunk/{ZSFOKQ3Z.jsx → 77IURBLR.jsx} +3 -3
- package/dist/chunk/{UGCFDJSO.jsx → 7YVDASKP.jsx} +3 -3
- package/dist/chunk/{6N44QPMY.jsx → 7Z6YKSMY.jsx} +11 -9
- package/dist/chunk/{S7ILHA7C.jsx → 7ZEKGJLZ.jsx} +7 -5
- package/dist/chunk/{TAEJBOHF.js → A5BBGDPW.js} +2 -2
- package/dist/chunk/{RY7KBPRA.jsx → ABFLCPUB.jsx} +3 -3
- package/dist/chunk/{MMBOU3ZC.jsx → ACLCLMIV.jsx} +4 -4
- package/dist/chunk/{EOQC4OFF.js → BGKLKY77.js} +1 -1
- package/dist/chunk/BTUFV5YJ.jsx +306 -0
- package/dist/chunk/{IM2L53FZ.jsx → BUMQJLFN.jsx} +7 -5
- package/dist/chunk/{4GOETTVP.js → BVQ6NO6X.js} +1 -1
- package/dist/chunk/{5QVNY35H.js → CBYVQ7YD.js} +1 -1
- package/dist/chunk/{YRAJJHEJ.jsx → CC4VXMN5.jsx} +4 -4
- package/dist/chunk/{4GELDCEE.jsx → DGI75TEJ.jsx} +4 -4
- package/dist/chunk/{CMGVBYH6.jsx → E54U43LI.jsx} +38 -10
- package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
- package/dist/chunk/{IHT5Q6Q3.jsx → ESQ2KC4M.jsx} +4 -4
- package/dist/chunk/{GOJHNXPD.jsx → G7XBXLRA.jsx} +4 -4
- package/dist/chunk/{76UE3KN4.jsx → GSOOONDM.jsx} +6 -6
- package/dist/chunk/{ZYS6A6GV.jsx → GYKEGNPI.jsx} +3 -3
- package/dist/chunk/{5LGVYTH5.js → HFIUYKXK.js} +1 -1
- package/dist/chunk/{NYBDSWDH.js → HJJ6M6JE.js} +1 -1
- package/dist/chunk/{4UQ4BNTC.js → HKJ2U4GE.js} +1 -1
- package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
- package/dist/chunk/{A7ULUG37.jsx → HSKAUH3N.jsx} +4 -4
- package/dist/chunk/{YJZT56R5.js → HUB2Z2WJ.js} +1 -1
- package/dist/chunk/{G2UMJWTM.js → IKIPTYFY.js} +1 -1
- package/dist/chunk/{5O3D32XK.jsx → IPJK2PWY.jsx} +6 -6
- package/dist/chunk/{GXLS3QZ4.js → IRBAVIVZ.js} +3 -2
- package/dist/chunk/{2WRCIBVP.js → JBLHW7IM.js} +4 -29
- package/dist/chunk/{BV6RNXMH.js → JLP6NZTO.js} +3 -2
- package/dist/chunk/{RBYLWQEE.js → JR3CTJ4R.js} +1 -1
- package/dist/chunk/KWLZPDF4.jsx +6 -0
- package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
- package/dist/chunk/LRDE5RNI.js +239 -0
- package/dist/chunk/{AOAGDS53.jsx → M2R7NELL.jsx} +3 -3
- package/dist/chunk/{DON7WJR6.jsx → MLPK6MO2.jsx} +3 -3
- package/dist/chunk/{2TPQPUX6.jsx → MU5CM6ZP.jsx} +3 -3
- package/dist/chunk/{XTL34GZH.js → N2ACHFKW.js} +1 -1
- package/dist/chunk/NEU4F4NG.jsx +52 -0
- package/dist/chunk/NJVZNV63.js +121 -0
- package/dist/chunk/{CTYC3XVM.js → NMS6DWX3.js} +3 -2
- package/dist/chunk/{3JI3LEL3.js → NTHXB7S3.js} +3 -2
- package/dist/chunk/{VTTFCXVC.jsx → OEGORBLT.jsx} +1 -47
- package/dist/chunk/{VVSGL3B5.js → ONLLL7WZ.js} +1 -1
- package/dist/chunk/{T4C4OLH5.jsx → ONZ5KPSW.jsx} +6 -6
- package/dist/chunk/ORFQCCEF.js +7 -0
- package/dist/chunk/{V6TUJPSE.jsx → ORZMPJPC.jsx} +3 -3
- package/dist/chunk/{DM5NMT5Y.jsx → P466TCYN.jsx} +7 -5
- package/dist/chunk/{EV7COIUN.jsx → P7K6CA55.jsx} +4 -4
- package/dist/chunk/{VQAY7ALM.js → PDHNW6SC.js} +3 -2
- package/dist/chunk/{WJ3SED2J.js → PEIMGDXM.js} +1 -1
- package/dist/chunk/{XMIVUAEB.jsx → PKRIUPWN.jsx} +4 -4
- package/dist/chunk/{C56T2HRV.jsx → PPH4D7AF.jsx} +4 -4
- package/dist/chunk/{VUSRNP23.js → PSO6FY3T.js} +3 -2
- package/dist/chunk/{KQGHYOLW.jsx → PWV2MRRH.jsx} +3 -3
- package/dist/chunk/{Z326BLVT.js → QC2RXUV4.js} +7 -4
- package/dist/chunk/{5WXM756C.js → QUQ6VBQO.js} +2 -2
- package/dist/chunk/{SLOK7RQU.js → RDZRRODO.js} +1 -1
- package/dist/chunk/{VPKUVVDM.js → RJPVNWZG.js} +3 -2
- package/dist/chunk/{TJ7E237D.js → RL5TZPAG.js} +1 -1
- package/dist/chunk/{WMMVKZHK.jsx → RNGP6PKE.jsx} +4 -4
- package/dist/chunk/{NHSNBGCC.js → RSDHPGPT.js} +1 -1
- package/dist/chunk/RT4GKNE7.js +1 -0
- package/dist/chunk/{TZA2XQYK.jsx → RVP446XN.jsx} +1 -1
- package/dist/chunk/{7LBRKLXW.js → SCCZRXWX.js} +1 -1
- package/dist/chunk/{KH2XV4KM.jsx → SCJBXRUZ.jsx} +7 -5
- package/dist/chunk/{5LDIC54T.jsx → TD72MSSI.jsx} +3 -3
- package/dist/chunk/{DNRJCAR4.jsx → TG3BV4FJ.jsx} +3 -3
- package/dist/chunk/{D4GWWUQY.jsx → TPTP4FRI.jsx} +7 -5
- package/dist/chunk/{Q67V4SSK.js → UJ4FU6HV.js} +1 -1
- package/dist/chunk/{ZOKZFKHJ.jsx → V62PHVT3.jsx} +4 -4
- package/dist/chunk/{NT6ZYH25.js → VIERJSCF.js} +1 -1
- package/dist/chunk/{BHJYCERG.js → WGHZEJIT.js} +3 -2
- package/dist/chunk/{CCBSY5FU.js → WLWKI62C.js} +3 -2
- package/dist/chunk/{AFGSUR6R.js → WTS7KK6L.js} +1 -1
- package/dist/chunk/{MDSG7I6V.js → WX3PPB36.js} +1 -1
- package/dist/chunk/X22PRPOR.js +31 -0
- package/dist/chunk/{FQY342YD.jsx → X63FZDID.jsx} +11 -9
- package/dist/chunk/{RLUEXDAM.jsx → XLKDWQZ2.jsx} +7 -5
- package/dist/chunk/{WYVADPK7.js → XNIXPFXJ.js} +1 -1
- package/dist/chunk/{YTEBGEQ4.jsx → XRBGB3XP.jsx} +10 -8
- package/dist/chunk/XVU3GCCX.jsx +9 -0
- package/dist/chunk/{Q2EC4X24.jsx → YLT3EBQZ.jsx} +7 -5
- package/dist/chunk/{CKMDA3R6.js → YVERN3NM.js} +1 -1
- package/dist/chunk/{2KCVIKG7.jsx → YW4KS3S5.jsx} +3 -3
- package/dist/chunk/{LYCTCPBV.js → YXEZ562D.js} +1 -1
- package/dist/chunk/{SCMBWJVC.jsx → Z253N6GA.jsx} +3 -3
- package/dist/chunk/{2SGHC324.js → ZJOFPTIM.js} +1 -1
- package/dist/chunk/{ZQJU3MNB.jsx → ZLSYUPYN.jsx} +15 -11
- package/dist/chunk/{EMHNANVE.jsx → ZOCG4ZHL.jsx} +3 -3
- package/dist/{combobox.anatomy-CW3VXK4N.d.ts → combobox.anatomy-5H6l0CJs.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +5 -5
- package/dist/components/anatomy.d.ts +5 -4
- package/dist/components/anatomy.js +19 -18
- package/dist/components/anatomy.jsx +68 -64
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +4 -4
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +4 -4
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +6 -6
- package/dist/components/clipboard/index.jsx +3 -3
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +4 -4
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +9 -8
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +9 -8
- package/dist/components/date-picker/index.d.ts +24 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +11 -6
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -6
- package/dist/components/download-trigger/index.jsx +1 -1
- package/dist/components/drawer/index.d.ts +121 -0
- package/dist/components/drawer/index.js +2 -0
- package/dist/components/drawer/index.jsx +56 -0
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +6 -6
- package/dist/components/field/index.jsx +5 -5
- package/dist/components/fieldset/index.jsx +4 -4
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +6 -6
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +7 -6
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +2 -2
- package/dist/components/frame/index.jsx +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -6
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +4 -4
- package/dist/components/index.d.ts +9 -7
- package/dist/components/index.js +71 -68
- package/dist/components/index.jsx +619 -585
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +6 -6
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +4 -4
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/marquee/index.jsx +4 -4
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -6
- package/dist/components/navigation-menu/index.js +3 -2
- package/dist/components/navigation-menu/index.jsx +7 -5
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +6 -6
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +4 -4
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +6 -6
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -6
- package/dist/components/presence/index.js +2 -1
- package/dist/components/presence/index.jsx +4 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +4 -4
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +4 -4
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +5 -5
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +6 -6
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/index.jsx +4 -4
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +4 -4
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +9 -8
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +6 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +4 -4
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +4 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +4 -4
- package/dist/components/swap/index.d.ts +74 -0
- package/dist/components/swap/index.js +2 -0
- package/dist/components/swap/index.jsx +28 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +6 -6
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -6
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +6 -6
- package/dist/components/timer/index.jsx +3 -3
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +3 -3
- package/dist/components/toggle/index.jsx +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +4 -4
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -6
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +7 -6
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +6 -6
- package/dist/{date-picker.anatomy-DPHKzZh7.d.ts → date-picker.anatomy-DMDOrz3v.d.ts} +1 -1
- package/dist/index.d.ts +11 -8
- package/dist/index.js +72 -69
- package/dist/index.jsx +622 -586
- package/dist/providers/index.d.ts +3 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +5 -3
- package/dist/providers/locale/index.d.ts +10 -1
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +4 -1
- package/dist/swap.anatomy-BTCTOTbL.d.ts +5 -0
- package/dist/{tour.anatomy-BwE3XSIU.d.ts → tour.anatomy-B2Ub0NWQ.d.ts} +1 -1
- package/package.json +75 -74
- package/dist/chunk/2R6SK2X3.js +0 -1
- package/dist/chunk/52P3DPTR.js +0 -178
- package/dist/chunk/DLQR7VNM.jsx +0 -231
- package/dist/chunk/WMZBRARY.jsx +0 -6
- package/dist/components/bottom-sheet/index.d.ts +0 -92
- package/dist/components/bottom-sheet/index.js +0 -2
- package/dist/components/bottom-sheet/index.jsx +0 -45
- package/dist/chunk/{TEKM4RER.jsx → AIK4SKXT.jsx} +3 -3
- package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
- package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
- package/dist/chunk/{CG273YBB.jsx → WZBYH43M.jsx} +3 -3
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runIfFn
|
|
3
|
+
} from "./KGOB2IMX.jsx";
|
|
1
4
|
import {
|
|
2
5
|
createContext
|
|
3
6
|
} from "./UZJJWJQM.jsx";
|
|
@@ -37,18 +40,32 @@ function useCollator(props = {}) {
|
|
|
37
40
|
});
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
// src/providers/locale/use-date-formatter.ts
|
|
44
|
+
import { DateFormatter } from "@internationalized/date";
|
|
45
|
+
import { createMemo as createMemo3 } from "solid-js";
|
|
46
|
+
function useDateFormatter(props = {}) {
|
|
47
|
+
const env = useLocaleContext();
|
|
48
|
+
return createMemo3(() => {
|
|
49
|
+
const resolvedProps = runIfFn(props);
|
|
50
|
+
const locale = resolvedProps.locale ?? env().locale;
|
|
51
|
+
const { locale: _, ...options } = resolvedProps;
|
|
52
|
+
return new DateFormatter(locale, options);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
// src/providers/locale/use-filter.ts
|
|
41
57
|
import { createFilter } from "@zag-js/i18n-utils";
|
|
42
|
-
import { createMemo as
|
|
58
|
+
import { createMemo as createMemo4 } from "solid-js";
|
|
43
59
|
function useFilter(props) {
|
|
44
60
|
const env = useLocaleContext();
|
|
45
|
-
const locale =
|
|
46
|
-
return
|
|
61
|
+
const locale = createMemo4(() => props.locale ?? env().locale);
|
|
62
|
+
return createMemo4(() => createFilter({ ...props, locale: locale() }));
|
|
47
63
|
}
|
|
48
64
|
|
|
49
65
|
export {
|
|
50
66
|
useLocaleContext,
|
|
51
67
|
LocaleProvider,
|
|
52
68
|
useCollator,
|
|
69
|
+
useDateFormatter,
|
|
53
70
|
useFilter
|
|
54
71
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./PPH4D7AF.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
9
|
} from "./HDGILMRT.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useLocaleContext
|
|
12
|
+
} from "./HOPBYFHD.jsx";
|
|
10
13
|
import {
|
|
11
14
|
runIfFn
|
|
12
15
|
} from "./KGOB2IMX.jsx";
|
|
13
16
|
import {
|
|
14
17
|
ark
|
|
15
18
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useLocaleContext
|
|
18
|
-
} from "./JFOWNFC7.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './
|
|
2
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
3
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
5
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './
|
|
2
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
3
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
5
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createSplitProps
|
|
3
|
-
} from "./6WEDGJKQ.jsx";
|
|
4
1
|
import {
|
|
5
2
|
listboxAnatomy
|
|
6
3
|
} from "./4WBPEARW.jsx";
|
|
4
|
+
import {
|
|
5
|
+
createSplitProps
|
|
6
|
+
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
9
|
} from "./HDGILMRT.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useLocaleContext
|
|
12
|
+
} from "./HOPBYFHD.jsx";
|
|
10
13
|
import {
|
|
11
14
|
runIfFn
|
|
12
15
|
} from "./KGOB2IMX.jsx";
|
|
13
16
|
import {
|
|
14
17
|
ark
|
|
15
18
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useLocaleContext
|
|
18
|
-
} from "./JFOWNFC7.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresenceProvider } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
4
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
4
5
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { useLocaleContext } from './
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
6
7
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
7
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { usePresence } from './X22PRPOR.js';
|
|
1
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
2
|
-
import { splitRenderStrategyProps } from './GUFIKGZ6.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { runIfFn } from './DT73WLR4.js';
|
|
5
4
|
import { ark } from './EPLBB4QN.js';
|
|
6
5
|
import { createContext } from './THN5C4U6.js';
|
|
7
6
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import * as presence from '@zag-js/presence';
|
|
7
|
+
import { mergeProps } from '@zag-js/solid';
|
|
8
|
+
import { Show } from 'solid-js';
|
|
11
9
|
|
|
12
10
|
// src/components/presence/split-presence-props.ts
|
|
13
11
|
var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
@@ -18,29 +16,6 @@ var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
|
18
16
|
"skipAnimationOnMount",
|
|
19
17
|
"unmountOnExit"
|
|
20
18
|
]);
|
|
21
|
-
var usePresence = (props) => {
|
|
22
|
-
const [renderStrategyProps, localProps] = splitRenderStrategyProps(runIfFn(props));
|
|
23
|
-
const [wasEverPresent, setWasEverPresent] = createSignal(false);
|
|
24
|
-
const service = useMachine(presence.machine, props);
|
|
25
|
-
const api = createMemo(() => presence.connect(service, normalizeProps));
|
|
26
|
-
createEffect(() => {
|
|
27
|
-
const present = api().present;
|
|
28
|
-
if (present) setWasEverPresent(true);
|
|
29
|
-
});
|
|
30
|
-
const setNode = (node) => {
|
|
31
|
-
if (!node) return;
|
|
32
|
-
service.send({ type: "NODE.SET", node });
|
|
33
|
-
};
|
|
34
|
-
return createMemo(() => ({
|
|
35
|
-
unmounted: !api().present && !wasEverPresent() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().present && wasEverPresent(),
|
|
36
|
-
present: api().present,
|
|
37
|
-
ref: setNode,
|
|
38
|
-
presenceProps: {
|
|
39
|
-
hidden: !api().present,
|
|
40
|
-
"data-state": api().skip && localProps.skipAnimationOnMount ? void 0 : localProps.present ? "open" : "closed"
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
43
|
-
};
|
|
44
19
|
|
|
45
20
|
// src/components/presence/presence.tsx
|
|
46
21
|
var Presence = (props) => {
|
|
@@ -70,4 +45,4 @@ var [PresenceProvider, usePresenceContext] = createContext({
|
|
|
70
45
|
providerName: "<PresenceProvider />"
|
|
71
46
|
});
|
|
72
47
|
|
|
73
|
-
export { Presence, PresenceProvider, splitPresenceProps,
|
|
48
|
+
export { Presence, PresenceProvider, splitPresenceProps, usePresenceContext };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
4
|
import { tourAnatomy } from './NYBIYPS4.js';
|
|
4
5
|
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './GUFIKGZ6.js';
|
|
5
6
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
6
|
-
import { useLocaleContext } from './
|
|
7
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
8
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
9
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
10
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, PresenceProvider } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
3
|
+
import { composeRefs } from './ROP6QZQ7.js';
|
|
4
|
+
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
5
|
+
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
+
import { ark } from './EPLBB4QN.js';
|
|
10
|
+
import { createContext } from './THN5C4U6.js';
|
|
11
|
+
import { __export } from './ESLJRKWD.js';
|
|
12
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
13
|
+
import { mergeProps, normalizeProps, useMachine } from '@zag-js/solid';
|
|
14
|
+
import { createContext as createContext$1, createMemo, Show, createUniqueId, useContext } from 'solid-js';
|
|
15
|
+
import * as drawer from '@zag-js/drawer';
|
|
16
|
+
import { createStore, reconcile } from 'solid-js/store';
|
|
17
|
+
|
|
18
|
+
// src/components/drawer/use-drawer-context.ts
|
|
19
|
+
var [DrawerProvider, useDrawerContext] = createContext({
|
|
20
|
+
hookName: "useDrawerContext",
|
|
21
|
+
providerName: "<DrawerProvider />"
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/components/drawer/drawer-backdrop.tsx
|
|
25
|
+
var DrawerBackdrop = (props) => {
|
|
26
|
+
const drawer3 = useDrawerContext();
|
|
27
|
+
const renderStrategyProps = useRenderStrategyContext();
|
|
28
|
+
const presence = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
29
|
+
present: drawer3().open
|
|
30
|
+
})));
|
|
31
|
+
const mergedProps = mergeProps(() => drawer3().getBackdropProps(), () => presence().presenceProps, props);
|
|
32
|
+
return createComponent(Show, {
|
|
33
|
+
get when() {
|
|
34
|
+
return !presence().unmounted;
|
|
35
|
+
},
|
|
36
|
+
get children() {
|
|
37
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
38
|
+
ref(r$) {
|
|
39
|
+
var _ref$ = composeRefs(presence().ref, props.ref);
|
|
40
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var DrawerCloseTrigger = (props) => {
|
|
47
|
+
const context = useDrawerContext();
|
|
48
|
+
const mergedProps = mergeProps(() => context().getCloseTriggerProps(), props);
|
|
49
|
+
return createComponent(ark.button, mergedProps);
|
|
50
|
+
};
|
|
51
|
+
var DrawerContent = (props) => {
|
|
52
|
+
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
53
|
+
const drawer3 = useDrawerContext();
|
|
54
|
+
const presence = usePresenceContext();
|
|
55
|
+
const mergedProps = mergeProps(() => drawer3().getContentProps({
|
|
56
|
+
draggable: true,
|
|
57
|
+
...contentProps
|
|
58
|
+
}), () => presence().presenceProps, localProps);
|
|
59
|
+
return createComponent(Show, {
|
|
60
|
+
get when() {
|
|
61
|
+
return !presence().unmounted;
|
|
62
|
+
},
|
|
63
|
+
get children() {
|
|
64
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
65
|
+
ref(r$) {
|
|
66
|
+
var _ref$ = composeRefs(presence().ref, localProps.ref);
|
|
67
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// src/components/drawer/drawer-context.tsx
|
|
75
|
+
var DrawerContext = (props) => props.children(useDrawerContext());
|
|
76
|
+
var DrawerPositioner = (props) => {
|
|
77
|
+
const drawer3 = useDrawerContext();
|
|
78
|
+
const presence = usePresenceContext();
|
|
79
|
+
const mergedProps = mergeProps(() => drawer3().getPositionerProps(), props);
|
|
80
|
+
return createComponent(Show, {
|
|
81
|
+
get when() {
|
|
82
|
+
return !presence().unmounted;
|
|
83
|
+
},
|
|
84
|
+
get children() {
|
|
85
|
+
return createComponent(ark.div, mergedProps);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
var DrawerGrabber = (props) => {
|
|
90
|
+
const drawer3 = useDrawerContext();
|
|
91
|
+
const mergedProps = mergeProps(() => drawer3().getGrabberProps(), props);
|
|
92
|
+
return createComponent(ark.div, mergedProps);
|
|
93
|
+
};
|
|
94
|
+
var DrawerGrabberIndicator = (props) => {
|
|
95
|
+
const drawer3 = useDrawerContext();
|
|
96
|
+
const mergedProps = mergeProps(() => drawer3().getGrabberIndicatorProps(), props);
|
|
97
|
+
return createComponent(ark.div, mergedProps);
|
|
98
|
+
};
|
|
99
|
+
var DrawerStackStoreContext = createContext$1();
|
|
100
|
+
var DrawerStackStoreProvider = DrawerStackStoreContext.Provider;
|
|
101
|
+
var useDrawerStackStore = () => useContext(DrawerStackStoreContext);
|
|
102
|
+
|
|
103
|
+
// src/components/drawer/use-drawer.ts
|
|
104
|
+
var useDrawer = (props) => {
|
|
105
|
+
const locale = useLocaleContext();
|
|
106
|
+
const environment = useEnvironmentContext();
|
|
107
|
+
const id = createUniqueId();
|
|
108
|
+
const stack = useDrawerStackStore();
|
|
109
|
+
const machineProps = createMemo(() => ({
|
|
110
|
+
id,
|
|
111
|
+
dir: locale().dir,
|
|
112
|
+
getRootNode: environment().getRootNode,
|
|
113
|
+
stack,
|
|
114
|
+
...runIfFn(props)
|
|
115
|
+
}));
|
|
116
|
+
const service = useMachine(drawer.machine, machineProps);
|
|
117
|
+
return createMemo(() => drawer.connect(service, normalizeProps));
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/components/drawer/drawer-root.tsx
|
|
121
|
+
var DrawerRoot = (props) => {
|
|
122
|
+
const [presenceProps, drawerProps] = splitPresenceProps(props);
|
|
123
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
124
|
+
const [useDrawerProps, localProps] = createSplitProps()(drawerProps, ["id", "ids", "open", "defaultOpen", "onOpenChange", "closeOnInteractOutside", "closeOnEscape", "snapPoints", "swipeDirection", "snapToSequentialPoints", "swipeVelocityThreshold", "closeThreshold", "preventDragOnScroll", "stack", "snapPoint", "defaultSnapPoint", "onSnapPointChange", "modal", "trapFocus", "restoreFocus", "preventScroll", "initialFocusEl", "finalFocusEl", "role", "onInteractOutside", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onRequestDismiss"]);
|
|
125
|
+
const drawer3 = useDrawer(useDrawerProps);
|
|
126
|
+
const presence = usePresence(mergeProps(presenceProps, () => ({
|
|
127
|
+
present: drawer3().open
|
|
128
|
+
})));
|
|
129
|
+
return createComponent(DrawerProvider, {
|
|
130
|
+
value: drawer3,
|
|
131
|
+
get children() {
|
|
132
|
+
return createComponent(RenderStrategyProvider, {
|
|
133
|
+
value: renderStrategyProps,
|
|
134
|
+
get children() {
|
|
135
|
+
return createComponent(PresenceProvider, {
|
|
136
|
+
value: presence,
|
|
137
|
+
get children() {
|
|
138
|
+
return localProps.children;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
var DrawerRootProvider = (props) => {
|
|
147
|
+
const [presenceProps, drawerProps] = splitPresenceProps(props);
|
|
148
|
+
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
149
|
+
const presence = usePresence(mergeProps(() => ({
|
|
150
|
+
present: drawerProps.value().open
|
|
151
|
+
}), presenceProps));
|
|
152
|
+
return createComponent(DrawerProvider, {
|
|
153
|
+
get value() {
|
|
154
|
+
return drawerProps.value;
|
|
155
|
+
},
|
|
156
|
+
get children() {
|
|
157
|
+
return createComponent(RenderStrategyProvider, {
|
|
158
|
+
value: renderStrategyProps,
|
|
159
|
+
get children() {
|
|
160
|
+
return createComponent(PresenceProvider, {
|
|
161
|
+
value: presence,
|
|
162
|
+
get children() {
|
|
163
|
+
return drawerProps.children;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
var DrawerTitle = (props) => {
|
|
172
|
+
const drawer3 = useDrawerContext();
|
|
173
|
+
const mergedProps = mergeProps(() => drawer3().getTitleProps(), props);
|
|
174
|
+
return createComponent(ark.h2, mergedProps);
|
|
175
|
+
};
|
|
176
|
+
var DrawerTrigger = (props) => {
|
|
177
|
+
const drawer3 = useDrawerContext();
|
|
178
|
+
const presence = usePresenceContext();
|
|
179
|
+
const mergedProps = mergeProps(() => drawer3().getTriggerProps(), () => ({
|
|
180
|
+
"aria-controls": presence().unmounted && null
|
|
181
|
+
}), props);
|
|
182
|
+
return createComponent(ark.button, mergedProps);
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
// src/components/drawer/use-drawer-stack-context.ts
|
|
186
|
+
var [DrawerStackProvider, useDrawerStackContext] = createContext({
|
|
187
|
+
hookName: "useDrawerStackContext",
|
|
188
|
+
providerName: "<DrawerStackProvider />"
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// src/components/drawer/drawer-indent.tsx
|
|
192
|
+
var DrawerIndent = (props) => {
|
|
193
|
+
const stackApi = useDrawerStackContext();
|
|
194
|
+
const mergedProps = mergeProps(() => stackApi().getIndentProps(), props);
|
|
195
|
+
return createComponent(ark.div, mergedProps);
|
|
196
|
+
};
|
|
197
|
+
var DrawerIndentBackground = (props) => {
|
|
198
|
+
const stackApi = useDrawerStackContext();
|
|
199
|
+
const mergedProps = mergeProps(() => stackApi().getIndentBackgroundProps(), props);
|
|
200
|
+
return createComponent(ark.div, mergedProps);
|
|
201
|
+
};
|
|
202
|
+
var DrawerStack = (props) => {
|
|
203
|
+
const stack = drawer.createStack();
|
|
204
|
+
const [snapshot, setSnapshot] = createStore(stack.getSnapshot());
|
|
205
|
+
stack.subscribe(() => setSnapshot(reconcile(stack.getSnapshot())));
|
|
206
|
+
const stackApi = createMemo(() => drawer.connectStack(snapshot, normalizeProps));
|
|
207
|
+
return createComponent(DrawerStackStoreProvider, {
|
|
208
|
+
value: stack,
|
|
209
|
+
get children() {
|
|
210
|
+
return createComponent(DrawerStackProvider, {
|
|
211
|
+
value: stackApi,
|
|
212
|
+
get children() {
|
|
213
|
+
return props.children;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// src/components/drawer/drawer.ts
|
|
221
|
+
var drawer_exports = {};
|
|
222
|
+
__export(drawer_exports, {
|
|
223
|
+
Backdrop: () => DrawerBackdrop,
|
|
224
|
+
CloseTrigger: () => DrawerCloseTrigger,
|
|
225
|
+
Content: () => DrawerContent,
|
|
226
|
+
Context: () => DrawerContext,
|
|
227
|
+
Grabber: () => DrawerGrabber,
|
|
228
|
+
GrabberIndicator: () => DrawerGrabberIndicator,
|
|
229
|
+
Indent: () => DrawerIndent,
|
|
230
|
+
IndentBackground: () => DrawerIndentBackground,
|
|
231
|
+
Positioner: () => DrawerPositioner,
|
|
232
|
+
Root: () => DrawerRoot,
|
|
233
|
+
RootProvider: () => DrawerRootProvider,
|
|
234
|
+
Stack: () => DrawerStack,
|
|
235
|
+
Title: () => DrawerTitle,
|
|
236
|
+
Trigger: () => DrawerTrigger
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
export { DrawerBackdrop, DrawerCloseTrigger, DrawerContent, DrawerContext, DrawerGrabber, DrawerGrabberIndicator, DrawerIndent, DrawerIndentBackground, DrawerPositioner, DrawerRoot, DrawerRootProvider, DrawerStack, DrawerTitle, DrawerTrigger, drawer_exports, useDrawer, useDrawerContext, useDrawerStackContext };
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
useEnvironmentContext
|
|
6
6
|
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useLocaleContext
|
|
9
|
+
} from "./HOPBYFHD.jsx";
|
|
7
10
|
import {
|
|
8
11
|
ark
|
|
9
12
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useLocaleContext
|
|
12
|
-
} from "./JFOWNFC7.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./UZJJWJQM.jsx";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
useEnvironmentContext
|
|
6
6
|
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useLocaleContext
|
|
9
|
+
} from "./HOPBYFHD.jsx";
|
|
7
10
|
import {
|
|
8
11
|
runIfFn
|
|
9
12
|
} from "./KGOB2IMX.jsx";
|
|
10
13
|
import {
|
|
11
14
|
ark
|
|
12
15
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useLocaleContext
|
|
15
|
-
} from "./JFOWNFC7.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
useEnvironmentContext
|
|
6
6
|
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useLocaleContext
|
|
9
|
+
} from "./HOPBYFHD.jsx";
|
|
7
10
|
import {
|
|
8
11
|
runIfFn
|
|
9
12
|
} from "./KGOB2IMX.jsx";
|
|
10
13
|
import {
|
|
11
14
|
ark
|
|
12
15
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useLocaleContext
|
|
15
|
-
} from "./JFOWNFC7.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { carouselAnatomy } from './OENRIKKR.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePresence
|
|
3
|
+
} from "./OEGORBLT.jsx";
|
|
4
|
+
import {
|
|
5
|
+
composeRefs
|
|
6
|
+
} from "./PT2CJE3O.jsx";
|
|
7
|
+
import {
|
|
8
|
+
createSplitProps
|
|
9
|
+
} from "./6WEDGJKQ.jsx";
|
|
10
|
+
import {
|
|
11
|
+
ark
|
|
12
|
+
} from "./UFYZ7HLU.jsx";
|
|
13
|
+
import {
|
|
14
|
+
createContext
|
|
15
|
+
} from "./UZJJWJQM.jsx";
|
|
16
|
+
|
|
17
|
+
// src/components/presence/presence.tsx
|
|
18
|
+
import { mergeProps } from "@zag-js/solid";
|
|
19
|
+
import { Show } from "solid-js";
|
|
20
|
+
|
|
21
|
+
// src/components/presence/split-presence-props.ts
|
|
22
|
+
var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
23
|
+
"immediate",
|
|
24
|
+
"lazyMount",
|
|
25
|
+
"onExitComplete",
|
|
26
|
+
"present",
|
|
27
|
+
"skipAnimationOnMount",
|
|
28
|
+
"unmountOnExit"
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
// src/components/presence/presence.tsx
|
|
32
|
+
var Presence = (props) => {
|
|
33
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
34
|
+
const api = usePresence(presenceProps);
|
|
35
|
+
const mergedProps = mergeProps(() => api().presenceProps, localProps);
|
|
36
|
+
return <Show when={!api().unmounted}>
|
|
37
|
+
<ark.div {...mergedProps} ref={composeRefs(api().ref, props.ref)} data-scope="presence" data-part="root" />
|
|
38
|
+
</Show>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/components/presence/use-presence-context.ts
|
|
42
|
+
var [PresenceProvider, usePresenceContext] = createContext({
|
|
43
|
+
hookName: "usePresenceContext",
|
|
44
|
+
providerName: "<PresenceProvider />"
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
splitPresenceProps,
|
|
49
|
+
Presence,
|
|
50
|
+
PresenceProvider,
|
|
51
|
+
usePresenceContext
|
|
52
|
+
};
|