@ark-ui/solid 5.29.1 → 5.31.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/{checkbox.anatomy-CuzDSmDj.d.ts → checkbox.anatomy-YlC7nNXs.d.ts} +1 -1
- package/dist/chunk/{2S7Z6JX4.jsx → 2KCVIKG7.jsx} +7 -7
- package/dist/chunk/{2ZJJQCRC.js → 2SGHC324.js} +2 -2
- package/dist/chunk/{KEZ2WH2A.jsx → 2TPQPUX6.jsx} +6 -6
- package/dist/chunk/{FZWU5W76.js → 37BRFTCN.js} +7 -2
- package/dist/chunk/{5JS2MHQE.js → 3JI3LEL3.js} +3 -3
- package/dist/chunk/{5QLLQM7E.js → 3P5T77QU.js} +6 -5
- package/dist/chunk/{GG7F5STH.jsx → 4GELDCEE.jsx} +9 -8
- package/dist/chunk/{4HLADW3E.js → 4GOETTVP.js} +29 -32
- package/dist/chunk/{IT7ZIH75.js → 4UQ4BNTC.js} +3 -3
- package/dist/chunk/{4QVZJ5ML.js → 52P3DPTR.js} +3 -3
- package/dist/chunk/{4GEAI2WA.jsx → 5LDIC54T.jsx} +37 -16
- package/dist/chunk/{TDHE3VYT.js → 5LGVYTH5.js} +4 -4
- package/dist/chunk/{XXP27BHC.jsx → 5O3D32XK.jsx} +8 -8
- package/dist/chunk/{AQBFQJ3Q.js → 5QVNY35H.js} +2 -2
- package/dist/chunk/{JTXFPGYY.jsx → 5SEYLBQQ.jsx} +8 -7
- package/dist/chunk/{7U5HG766.js → 5WXM756C.js} +3 -3
- package/dist/chunk/{XNP7QM5Q.jsx → 65QK7XXR.jsx} +6 -6
- package/dist/chunk/{BIFBSKYL.jsx → 6N44QPMY.jsx} +10 -10
- package/dist/chunk/{XH4Y4U2G.jsx → 76UE3KN4.jsx} +8 -8
- package/dist/chunk/{KTDBBD3I.js → 7LBRKLXW.js} +16 -4
- package/dist/chunk/{4R3DUS36.js → 7LG5FPBU.js} +19 -15
- package/dist/chunk/{MMSH3XOE.jsx → A7ULUG37.jsx} +17 -14
- package/dist/chunk/{VHH5V6SW.js → AFGSUR6R.js} +3 -3
- package/dist/chunk/{XNAQLSZW.jsx → AOAGDS53.jsx} +3 -3
- package/dist/chunk/{KPDPHOBC.js → BHJYCERG.js} +4 -4
- package/dist/chunk/{CGNUC23H.js → BV6RNXMH.js} +27 -5
- package/dist/chunk/{CCVDHSBF.jsx → C56T2HRV.jsx} +6 -6
- package/dist/chunk/{PTXD6FJD.js → CCBSY5FU.js} +4 -4
- package/dist/chunk/{LQGHLGPW.jsx → CG273YBB.jsx} +4 -4
- package/dist/chunk/{YKTNXZQT.js → CKMDA3R6.js} +2 -2
- package/dist/chunk/{F3HHU2RK.jsx → CMGVBYH6.jsx} +52 -15
- package/dist/chunk/{ITAE33UN.js → CTYC3XVM.js} +3 -3
- package/dist/chunk/{IYZ6XUM5.js → CXS7DDU2.js} +2 -2
- package/dist/chunk/{IEJ4RWIV.jsx → D4GWWUQY.jsx} +7 -7
- package/dist/chunk/{LQZTXA2V.js → DFHJBZM6.js} +3 -3
- package/dist/chunk/{UOTT3RUB.jsx → DLQR7VNM.jsx} +7 -7
- package/dist/chunk/{MNZUELWU.jsx → DM5NMT5Y.jsx} +7 -7
- package/dist/chunk/{QTWOIUHU.jsx → DNRJCAR4.jsx} +7 -7
- package/dist/chunk/{DR7CHNBO.jsx → DON7WJR6.jsx} +6 -6
- package/dist/chunk/{FDGWBBJ3.jsx → DYFALYJE.jsx} +4 -4
- package/dist/chunk/{J6B3R7PY.jsx → EMHNANVE.jsx} +6 -6
- package/dist/chunk/{YWUMEZK2.js → EOQC4OFF.js} +2 -2
- package/dist/chunk/{6UXNGS66.jsx → EQKTJ63X.jsx} +1 -1
- package/dist/chunk/{GNYPPI32.jsx → EV7COIUN.jsx} +8 -7
- package/dist/chunk/{MO66WHZP.jsx → FQY342YD.jsx} +10 -10
- package/dist/chunk/{WGZNF7D4.js → G2UMJWTM.js} +2 -2
- package/dist/chunk/{SEOZ3YW4.jsx → GOJHNXPD.jsx} +7 -7
- package/dist/chunk/{3YPP6L6Q.js → GXLS3QZ4.js} +3 -3
- package/dist/chunk/{CGW54HAQ.jsx → HDGILMRT.jsx} +4 -1
- package/dist/chunk/{P7BXFWK5.js → HMG7R2BF.js} +40 -38
- package/dist/chunk/{6W3X5JZW.jsx → IHT5Q6Q3.jsx} +8 -7
- package/dist/chunk/{VRCOVKZM.jsx → IM2L53FZ.jsx} +7 -7
- package/dist/chunk/{23JPD2DE.js → J6D7JUCJ.js} +2 -5
- package/dist/chunk/{CCK5XI24.jsx → KH2XV4KM.jsx} +7 -7
- package/dist/chunk/{33WPGMEN.js → KMYFS63G.js} +66 -22
- package/dist/chunk/{FXYVJXLF.jsx → KQGHYOLW.jsx} +6 -6
- package/dist/chunk/{4EK6Z2KK.js → KXKOMCVA.js} +2 -2
- package/dist/chunk/{BWCRBIWY.js → LYCTCPBV.js} +4 -4
- package/dist/chunk/{VKXIXTM7.js → MDSG7I6V.js} +2 -2
- package/dist/chunk/{SZNFUIJQ.jsx → MMBOU3ZC.jsx} +7 -7
- package/dist/chunk/{QOPSKJ3A.js → NHSNBGCC.js} +46 -19
- package/dist/chunk/{UMVZZL45.js → NMYA3JZ5.js} +1 -1
- package/dist/chunk/{2RLPNMQC.js → NT6ZYH25.js} +3 -3
- package/dist/chunk/{UZ7SFAVT.js → NYBDSWDH.js} +3 -3
- package/dist/chunk/{3YM53Z6T.js → O6CMUPUG.js} +2 -2
- package/dist/chunk/{WNAARMIE.js → OSFE5N7D.js} +3 -3
- package/dist/chunk/{VVD4LKC6.jsx → OWH3LOUE.jsx} +4 -1
- package/dist/chunk/{3WOFDSWV.jsx → PSH3YKBU.jsx} +4 -4
- package/dist/chunk/{CNHYYRWI.jsx → Q2EC4X24.jsx} +7 -7
- package/dist/chunk/{536HCWLL.js → Q67V4SSK.js} +8 -12
- package/dist/chunk/{HJW3RUPH.js → RBYLWQEE.js} +3 -3
- package/dist/chunk/{FKF6FOYL.jsx → RLUEXDAM.jsx} +7 -7
- package/dist/chunk/{RYD4Z3LT.jsx → RY7KBPRA.jsx} +6 -6
- package/dist/chunk/{B37HJ43Y.js → S3VN2YFH.js} +2 -2
- package/dist/chunk/{6QF5SDIE.jsx → S7ILHA7C.jsx} +7 -7
- package/dist/chunk/{JEKNEIFC.jsx → SCMBWJVC.jsx} +6 -6
- package/dist/chunk/{WDRQQ36P.js → SLOK7RQU.js} +3 -3
- package/dist/chunk/{2MDYHAEL.js → SU6SNXFK.js} +7 -6
- package/dist/chunk/{ZGPHPTSF.jsx → T4C4OLH5.jsx} +10 -8
- package/dist/chunk/{YBQYQBZP.js → TAEJBOHF.js} +4 -4
- package/dist/chunk/{XV2QYX2I.jsx → TEKM4RER.jsx} +11 -6
- package/dist/chunk/TILTTA4A.js +1 -0
- package/dist/chunk/{JLEHJHHW.js → TJ7E237D.js} +2 -2
- package/dist/chunk/{NERR3PSK.jsx → TQCLH765.jsx} +11 -11
- package/dist/chunk/{5RT2MFUK.jsx → TYHUUGLH.jsx} +3 -3
- package/dist/chunk/{BVY3M35Y.jsx → TZA2XQYK.jsx} +38 -18
- package/dist/chunk/{OF7DNWIQ.jsx → UGCFDJSO.jsx} +6 -6
- package/dist/chunk/{7EJEMGDG.jsx → UGSFGPFW.jsx} +7 -7
- package/dist/chunk/{AQ27SOWE.jsx → V6TUJPSE.jsx} +6 -6
- package/dist/chunk/{2PUG56L6.js → VPKUVVDM.js} +3 -3
- package/dist/chunk/{2G3XSL5X.js → VQAY7ALM.js} +3 -3
- package/dist/chunk/{CR7T4TQD.js → VUOC2LCL.js} +2 -2
- package/dist/chunk/{F4DBA2W2.js → VUSRNP23.js} +3 -3
- package/dist/chunk/{UFUCDO7B.js → VVSGL3B5.js} +19 -9
- package/dist/chunk/WCB4ISVQ.jsx +6 -0
- package/dist/chunk/{CLO7VA44.js → WJ3SED2J.js} +4 -4
- package/dist/chunk/{PO54HM6N.jsx → WMMVKZHK.jsx} +7 -7
- package/dist/chunk/{ZZZCGUS6.js → WYVADPK7.js} +2 -2
- package/dist/chunk/{XBXF34UK.jsx → XMIVUAEB.jsx} +7 -7
- package/dist/chunk/{Q5A3MS3U.js → XTL34GZH.js} +2 -2
- package/dist/chunk/{6HVSV6OM.js → YA3LD5QR.js} +1 -1
- package/dist/chunk/{EMVS6NWP.js → YJZT56R5.js} +2 -2
- package/dist/chunk/{M3PQVDTA.js → YQOHTJFL.js} +3 -3
- package/dist/chunk/{YIPYNXJY.jsx → YRAJJHEJ.jsx} +26 -12
- package/dist/chunk/{TW456WML.jsx → YTEBGEQ4.jsx} +39 -11
- package/dist/chunk/{4E5O3DFC.js → Z326BLVT.js} +13 -9
- package/dist/chunk/{PXFOGFRN.jsx → ZOKZFKHJ.jsx} +7 -7
- package/dist/chunk/{WKT2SQRV.jsx → ZQJU3MNB.jsx} +21 -15
- package/dist/chunk/{DH3KPRGA.jsx → ZSFOKQ3Z.jsx} +10 -7
- package/dist/chunk/{UOOMXEJO.jsx → ZYS6A6GV.jsx} +6 -6
- package/dist/{color-picker.anatomy-CMDtAoEh.d.ts → color-picker.anatomy-Dxw1DJ2S.d.ts} +1 -1
- package/dist/{combobox.anatomy-DBsVyPqM.d.ts → combobox.anatomy-CW3VXK4N.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +6 -6
- package/dist/components/anatomy.d.ts +8 -7
- package/dist/components/anatomy.js +18 -17
- package/dist/components/anatomy.jsx +56 -52
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +5 -5
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +5 -5
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/bottom-sheet/index.jsx +7 -7
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +5 -5
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +7 -7
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +5 -5
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +5 -5
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +9 -9
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +9 -9
- package/dist/components/date-picker/index.d.ts +30 -4
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-picker/index.jsx +10 -8
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -7
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/download-trigger/index.jsx +4 -4
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +7 -7
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +6 -6
- package/dist/components/fieldset/index.d.ts +6 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +5 -5
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +7 -7
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +7 -7
- package/dist/components/format/index.jsx +3 -2
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -3
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/highlight/index.jsx +2 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -7
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +5 -5
- package/dist/components/index.d.ts +11 -11
- package/dist/components/index.js +70 -70
- package/dist/components/index.jsx +443 -429
- package/dist/components/json-tree-view/index.d.ts +16 -13
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +8 -8
- package/dist/components/listbox/index.d.ts +1 -1
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +5 -5
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/marquee/index.jsx +5 -5
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -7
- package/dist/components/navigation-menu/index.d.ts +106 -0
- package/dist/components/navigation-menu/index.js +279 -0
- package/dist/components/navigation-menu/index.jsx +315 -0
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +7 -7
- package/dist/components/pagination/index.d.ts +14 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +9 -5
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +7 -7
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +7 -7
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -7
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +5 -5
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +5 -5
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +8 -5
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +7 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/index.jsx +5 -5
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +5 -5
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +9 -9
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +7 -7
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +5 -5
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +5 -5
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +5 -5
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +7 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +7 -7
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +5 -5
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +4 -4
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +5 -5
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -7
- package/dist/components/tour/index.d.ts +9 -3
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +17 -9
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +7 -7
- package/dist/date-picker.anatomy-DPHKzZh7.d.ts +5 -0
- package/dist/field.anatomy-BA_rbPae.d.ts +5 -0
- package/dist/{fieldset.anatomy-BHBXaVuM.d.ts → fieldset.anatomy-ByHwSFid.d.ts} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +72 -72
- package/dist/index.jsx +449 -435
- package/dist/{listbox.anatomy-CuSvGz29.d.ts → listbox.anatomy-ogRrsXMY.d.ts} +1 -1
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +3 -2
- package/package.json +77 -75
- package/dist/date-picker.anatomy-C7QaSOwg.d.ts +0 -5
- package/dist/field.anatomy-BkeW0gbI.d.ts +0 -5
- package/dist/chunk/{FW6EZLZL.js → 2WRCIBVP.js} +1 -1
- package/dist/chunk/{2P5Y3YCK.jsx → VTTFCXVC.jsx} +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useEnvironmentContext
|
|
3
|
+
} from "./HDGILMRT.jsx";
|
|
1
4
|
import {
|
|
2
5
|
ark
|
|
3
6
|
} from "./UFYZ7HLU.jsx";
|
|
4
|
-
import {
|
|
5
|
-
useEnvironmentContext
|
|
6
|
-
} from "./CGW54HAQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useLocaleContext
|
|
9
9
|
} from "./JFOWNFC7.jsx";
|
|
@@ -60,11 +60,11 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
60
60
|
var ToastRoot = (props) => {
|
|
61
61
|
const toast3 = useToastContext();
|
|
62
62
|
const mergedProps = mergeProps4(() => toast3().getRootProps(), props);
|
|
63
|
-
return <div {...mergedProps}>
|
|
64
|
-
<div {...toast3().getGhostBeforeProps()} />
|
|
63
|
+
return <ark.div {...mergedProps}>
|
|
64
|
+
<ark.div {...toast3().getGhostBeforeProps()} />
|
|
65
65
|
{props.children}
|
|
66
|
-
<div {...toast3().getGhostAfterProps()} />
|
|
67
|
-
</div>;
|
|
66
|
+
<ark.div {...toast3().getGhostAfterProps()} />
|
|
67
|
+
</ark.div>;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
// src/components/toast/toast-title.tsx
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitProps
|
|
3
3
|
} from "./6WEDGJKQ.jsx";
|
|
4
|
+
import {
|
|
5
|
+
useEnvironmentContext
|
|
6
|
+
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
runIfFn
|
|
9
|
+
} from "./KGOB2IMX.jsx";
|
|
4
10
|
import {
|
|
5
11
|
ark
|
|
6
12
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./CGW54HAQ.jsx";
|
|
10
13
|
import {
|
|
11
14
|
useLocaleContext
|
|
12
15
|
} from "./JFOWNFC7.jsx";
|
|
13
|
-
import {
|
|
14
|
-
runIfFn
|
|
15
|
-
} from "./KGOB2IMX.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitProps
|
|
3
3
|
} from "./6WEDGJKQ.jsx";
|
|
4
|
-
import {
|
|
5
|
-
ark
|
|
6
|
-
} from "./UFYZ7HLU.jsx";
|
|
7
4
|
import {
|
|
8
5
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./HDGILMRT.jsx";
|
|
10
7
|
import {
|
|
11
8
|
runIfFn
|
|
12
9
|
} from "./KGOB2IMX.jsx";
|
|
10
|
+
import {
|
|
11
|
+
ark
|
|
12
|
+
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitProps
|
|
3
3
|
} from "./6WEDGJKQ.jsx";
|
|
4
|
+
import {
|
|
5
|
+
useEnvironmentContext
|
|
6
|
+
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
runIfFn
|
|
9
|
+
} from "./KGOB2IMX.jsx";
|
|
4
10
|
import {
|
|
5
11
|
ark
|
|
6
12
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./CGW54HAQ.jsx";
|
|
10
13
|
import {
|
|
11
14
|
useLocaleContext
|
|
12
15
|
} from "./JFOWNFC7.jsx";
|
|
13
|
-
import {
|
|
14
|
-
runIfFn
|
|
15
|
-
} from "./KGOB2IMX.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
2
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
|
+
import { ark } from './EPLBB4QN.js';
|
|
6
6
|
import { createContext } from './THN5C4U6.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
8
8
|
import { createComponent } from 'solid-js/web';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./C56T2HRV.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useEnvironmentContext
|
|
9
|
+
} from "./HDGILMRT.jsx";
|
|
10
|
+
import {
|
|
11
|
+
runIfFn
|
|
12
|
+
} from "./KGOB2IMX.jsx";
|
|
7
13
|
import {
|
|
8
14
|
ark
|
|
9
15
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./CGW54HAQ.jsx";
|
|
13
16
|
import {
|
|
14
17
|
useLocaleContext
|
|
15
18
|
} from "./JFOWNFC7.jsx";
|
|
16
|
-
import {
|
|
17
|
-
runIfFn
|
|
18
|
-
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -200,6 +200,7 @@ var TagsInputRoot = (props) => {
|
|
|
200
200
|
"onPointerDownOutside",
|
|
201
201
|
"onValueChange",
|
|
202
202
|
"onValueInvalid",
|
|
203
|
+
"placeholder",
|
|
203
204
|
"readOnly",
|
|
204
205
|
"required",
|
|
205
206
|
"translations",
|
|
@@ -3,31 +3,31 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./VTTFCXVC.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useFieldContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./C56T2HRV.jsx";
|
|
10
10
|
import {
|
|
11
11
|
composeRefs
|
|
12
12
|
} from "./PT2CJE3O.jsx";
|
|
13
|
+
import {
|
|
14
|
+
createSplitProps
|
|
15
|
+
} from "./6WEDGJKQ.jsx";
|
|
13
16
|
import {
|
|
14
17
|
colorPickerAnatomy
|
|
15
18
|
} from "./4ZHXHGFF.jsx";
|
|
16
19
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./HDGILMRT.jsx";
|
|
22
|
+
import {
|
|
23
|
+
runIfFn
|
|
24
|
+
} from "./KGOB2IMX.jsx";
|
|
19
25
|
import {
|
|
20
26
|
ark
|
|
21
27
|
} from "./UFYZ7HLU.jsx";
|
|
22
|
-
import {
|
|
23
|
-
useEnvironmentContext
|
|
24
|
-
} from "./CGW54HAQ.jsx";
|
|
25
28
|
import {
|
|
26
29
|
useLocaleContext
|
|
27
30
|
} from "./JFOWNFC7.jsx";
|
|
28
|
-
import {
|
|
29
|
-
runIfFn
|
|
30
|
-
} from "./KGOB2IMX.jsx";
|
|
31
31
|
import {
|
|
32
32
|
createContext
|
|
33
33
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
2
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
|
+
import { ark } from './EPLBB4QN.js';
|
|
6
6
|
import { createContext } from './THN5C4U6.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
8
8
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./C56T2HRV.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useEnvironmentContext
|
|
9
|
+
} from "./HDGILMRT.jsx";
|
|
10
|
+
import {
|
|
11
|
+
runIfFn
|
|
12
|
+
} from "./KGOB2IMX.jsx";
|
|
7
13
|
import {
|
|
8
14
|
ark
|
|
9
15
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./CGW54HAQ.jsx";
|
|
13
16
|
import {
|
|
14
17
|
useLocaleContext
|
|
15
18
|
} from "./JFOWNFC7.jsx";
|
|
16
|
-
import {
|
|
17
|
-
runIfFn
|
|
18
|
-
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresence, PresenceProvider } from './2WRCIBVP.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { ark } from './EPLBB4QN.js';
|
|
6
5
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
7
|
-
import { useEnvironmentContext } from './
|
|
6
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
7
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
|
+
import { ark } from './EPLBB4QN.js';
|
|
9
9
|
import { createContext } from './THN5C4U6.js';
|
|
10
10
|
import { __export } from './ESLJRKWD.js';
|
|
11
11
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runIfFn
|
|
3
3
|
} from "./KGOB2IMX.jsx";
|
|
4
|
+
import {
|
|
5
|
+
ark
|
|
6
|
+
} from "./UFYZ7HLU.jsx";
|
|
4
7
|
import {
|
|
5
8
|
createContext
|
|
6
9
|
} from "./UZJJWJQM.jsx";
|
|
@@ -33,7 +36,7 @@ var EnvironmentProvider = (props) => {
|
|
|
33
36
|
return <EnvironmentContextProvider value={environment}>
|
|
34
37
|
{props.children}
|
|
35
38
|
<Show when={!props.value}>
|
|
36
|
-
<span hidden ref={setSpanRef} />
|
|
39
|
+
<ark.span hidden ref={setSpanRef} />
|
|
37
40
|
</Show>
|
|
38
41
|
</EnvironmentContextProvider>;
|
|
39
42
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
2
|
-
import { EnvironmentProvider } from './
|
|
3
|
-
import {
|
|
2
|
+
import { EnvironmentProvider } from './3P5T77QU.js';
|
|
3
|
+
import { ark } from './EPLBB4QN.js';
|
|
4
|
+
import { createComponent, mergeProps, Portal } from 'solid-js/web';
|
|
4
5
|
import { splitProps, createMemo, createSignal, createEffect, onCleanup, Show } from 'solid-js';
|
|
5
6
|
|
|
6
7
|
var FrameContent = (props) => {
|
|
@@ -19,7 +20,6 @@ var FrameContent = (props) => {
|
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
// src/components/frame/frame.tsx
|
|
22
|
-
var _tmpl$ = /* @__PURE__ */ template(`<iframe>`);
|
|
23
23
|
var resetStyle = "<style>*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }</style>";
|
|
24
24
|
var initialSrcDoc = `<html><head>${resetStyle}</head><body><div class="frame-root"></div></body></html>`;
|
|
25
25
|
function getMountNode(frame) {
|
|
@@ -69,49 +69,51 @@ var Frame = (props) => {
|
|
|
69
69
|
return createComponent(EnvironmentProvider, {
|
|
70
70
|
value: () => frameRef()?.contentDocument ?? document,
|
|
71
71
|
get children() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
insert(_el$, createComponent(Show, {
|
|
77
|
-
get when() {
|
|
78
|
-
return mountNode();
|
|
72
|
+
return createComponent(ark.iframe, mergeProps(localProps, {
|
|
73
|
+
ref(r$) {
|
|
74
|
+
var _ref$ = composeRefs(setFrameRef, localProps.ref);
|
|
75
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
79
76
|
},
|
|
80
|
-
children
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
get
|
|
87
|
-
return
|
|
88
|
-
},
|
|
89
|
-
get onUnmount() {
|
|
90
|
-
return frameProps.onUnmount;
|
|
77
|
+
get children() {
|
|
78
|
+
return [createComponent(Show, {
|
|
79
|
+
get when() {
|
|
80
|
+
return mountNode();
|
|
81
|
+
},
|
|
82
|
+
children: (node) => createComponent(Portal, {
|
|
83
|
+
get mount() {
|
|
84
|
+
return node();
|
|
91
85
|
},
|
|
92
86
|
get children() {
|
|
93
|
-
return
|
|
87
|
+
return createComponent(FrameContent, {
|
|
88
|
+
get onMount() {
|
|
89
|
+
return frameProps.onMount;
|
|
90
|
+
},
|
|
91
|
+
get onUnmount() {
|
|
92
|
+
return frameProps.onUnmount;
|
|
93
|
+
},
|
|
94
|
+
get children() {
|
|
95
|
+
return frameProps.children;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
94
98
|
}
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
insert(_el$, createComponent(Show, {
|
|
100
|
-
get when() {
|
|
101
|
-
return mountNode();
|
|
102
|
-
},
|
|
103
|
-
get children() {
|
|
104
|
-
return createComponent(Portal, {
|
|
105
|
-
get mount() {
|
|
106
|
-
return frameRef().contentDocument.head;
|
|
99
|
+
})
|
|
100
|
+
}), createComponent(Show, {
|
|
101
|
+
get when() {
|
|
102
|
+
return mountNode();
|
|
107
103
|
},
|
|
108
104
|
get children() {
|
|
109
|
-
return
|
|
105
|
+
return createComponent(Portal, {
|
|
106
|
+
get mount() {
|
|
107
|
+
return frameRef().contentDocument.head;
|
|
108
|
+
},
|
|
109
|
+
get children() {
|
|
110
|
+
return frameProps.head;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
110
113
|
}
|
|
111
|
-
});
|
|
114
|
+
})];
|
|
112
115
|
}
|
|
113
|
-
})
|
|
114
|
-
return _el$;
|
|
116
|
+
}));
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
119
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./C56T2HRV.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useEnvironmentContext
|
|
9
|
+
} from "./HDGILMRT.jsx";
|
|
10
|
+
import {
|
|
11
|
+
runIfFn
|
|
12
|
+
} from "./KGOB2IMX.jsx";
|
|
7
13
|
import {
|
|
8
14
|
ark
|
|
9
15
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./CGW54HAQ.jsx";
|
|
13
16
|
import {
|
|
14
17
|
useLocaleContext
|
|
15
18
|
} from "./JFOWNFC7.jsx";
|
|
16
|
-
import {
|
|
17
|
-
runIfFn
|
|
18
|
-
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -213,6 +213,7 @@ var FileUploadRoot = (props) => {
|
|
|
213
213
|
"onFileChange",
|
|
214
214
|
"onFileReject",
|
|
215
215
|
"preventDocumentDrop",
|
|
216
|
+
"readOnly",
|
|
216
217
|
"required",
|
|
217
218
|
"translations",
|
|
218
219
|
"transformFiles",
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./VTTFCXVC.jsx";
|
|
7
7
|
import {
|
|
8
8
|
composeRefs
|
|
9
9
|
} from "./PT2CJE3O.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createSplitProps
|
|
12
12
|
} from "./6WEDGJKQ.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./HDGILMRT.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
13
19
|
import {
|
|
14
20
|
ark
|
|
15
21
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./CGW54HAQ.jsx";
|
|
19
22
|
import {
|
|
20
23
|
useLocaleContext
|
|
21
24
|
} from "./JFOWNFC7.jsx";
|
|
22
|
-
import {
|
|
23
|
-
runIfFn
|
|
24
|
-
} from "./KGOB2IMX.jsx";
|
|
25
25
|
import {
|
|
26
26
|
createContext
|
|
27
27
|
} from "./UZJJWJQM.jsx";
|
|
@@ -3,7 +3,7 @@ import { createSplitProps } from './ZMHI4GDJ.js';
|
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { createContext } from './THN5C4U6.js';
|
|
5
5
|
import { __export } from './ESLJRKWD.js';
|
|
6
|
-
import { createComponent, mergeProps as mergeProps$1
|
|
6
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
7
7
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
8
8
|
import { splitProps, Show, createMemo } from 'solid-js';
|
|
9
9
|
import * as toggle from '@zag-js/toggle';
|
|
@@ -51,7 +51,6 @@ function useToggle(props) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// src/components/toggle/toggle-root.tsx
|
|
54
|
-
var _tmpl$ = /* @__PURE__ */ template(`<button>`);
|
|
55
54
|
var ToggleRoot = (props) => {
|
|
56
55
|
const [useToggleProps, localProps] = createSplitProps()(props, ["pressed", "defaultPressed", "disabled", "onPressedChange"]);
|
|
57
56
|
const toggle2 = useToggle(useToggleProps);
|
|
@@ -59,9 +58,7 @@ var ToggleRoot = (props) => {
|
|
|
59
58
|
return createComponent(ToggleProvider, {
|
|
60
59
|
value: toggle2,
|
|
61
60
|
get children() {
|
|
62
|
-
|
|
63
|
-
spread(_el$, mergedProps, false, false);
|
|
64
|
-
return _el$;
|
|
61
|
+
return createComponent(ark.button, mergedProps);
|
|
65
62
|
}
|
|
66
63
|
});
|
|
67
64
|
};
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./VTTFCXVC.jsx";
|
|
7
7
|
import {
|
|
8
8
|
composeRefs
|
|
9
9
|
} from "./PT2CJE3O.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createSplitProps
|
|
12
12
|
} from "./6WEDGJKQ.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./HDGILMRT.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
13
19
|
import {
|
|
14
20
|
ark
|
|
15
21
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./CGW54HAQ.jsx";
|
|
19
22
|
import {
|
|
20
23
|
useLocaleContext
|
|
21
24
|
} from "./JFOWNFC7.jsx";
|
|
22
|
-
import {
|
|
23
|
-
runIfFn
|
|
24
|
-
} from "./KGOB2IMX.jsx";
|
|
25
25
|
import {
|
|
26
26
|
createContext
|
|
27
27
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './
|
|
1
|
+
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './2WRCIBVP.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
-
import { datePickerAnatomy } from './
|
|
3
|
+
import { datePickerAnatomy } from './YA3LD5QR.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { ark } from './EPLBB4QN.js';
|
|
6
5
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
7
|
-
import { useEnvironmentContext } from './
|
|
6
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
7
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
|
+
import { ark } from './EPLBB4QN.js';
|
|
9
9
|
import { createContext } from './THN5C4U6.js';
|
|
10
10
|
import { __export } from './ESLJRKWD.js';
|
|
11
11
|
import * as datePicker from '@zag-js/date-picker';
|
|
12
12
|
export { parse } from '@zag-js/date-picker';
|
|
13
|
-
import { createComponent, mergeProps as mergeProps$1,
|
|
13
|
+
import { createComponent, mergeProps as mergeProps$1, memo } from 'solid-js/web';
|
|
14
14
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
15
|
-
import { Index, createMemo, createUniqueId
|
|
15
|
+
import { Index, Show, For, createMemo, createUniqueId } from 'solid-js';
|
|
16
16
|
import { uniq } from '@zag-js/utils';
|
|
17
17
|
|
|
18
18
|
// src/components/date-picker/use-date-picker-context.ts
|
|
@@ -64,7 +64,6 @@ var DatePickerLabel = (props) => {
|
|
|
64
64
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
65
65
|
return createComponent(ark.label, mergedProps);
|
|
66
66
|
};
|
|
67
|
-
var _tmpl$ = /* @__PURE__ */ template(`<option>`);
|
|
68
67
|
var DatePickerMonthSelect = (props) => {
|
|
69
68
|
const datePicker2 = useDatePickerContext();
|
|
70
69
|
const mergedProps = mergeProps(() => datePicker2().getMonthSelectProps(), props);
|
|
@@ -74,12 +73,14 @@ var DatePickerMonthSelect = (props) => {
|
|
|
74
73
|
get each() {
|
|
75
74
|
return datePicker2().getMonths();
|
|
76
75
|
},
|
|
77
|
-
children: (month) => (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
children: (month) => createComponent(ark.option, {
|
|
77
|
+
get value() {
|
|
78
|
+
return month().value;
|
|
79
|
+
},
|
|
80
|
+
get children() {
|
|
81
|
+
return month().label;
|
|
82
|
+
}
|
|
83
|
+
})
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
}));
|
|
@@ -141,6 +142,47 @@ var DatePickerRangeText = (props) => {
|
|
|
141
142
|
}
|
|
142
143
|
}));
|
|
143
144
|
};
|
|
145
|
+
var DatePickerValueText = (props) => {
|
|
146
|
+
const api = useDatePickerContext();
|
|
147
|
+
const hasValue = () => api().value.length > 0;
|
|
148
|
+
return createComponent(Show, {
|
|
149
|
+
get when() {
|
|
150
|
+
return typeof props.children === "function";
|
|
151
|
+
},
|
|
152
|
+
get fallback() {
|
|
153
|
+
return createComponent(ark.span, mergeProps$1(() => datePickerAnatomy.build().valueText.attrs, props, {
|
|
154
|
+
get children() {
|
|
155
|
+
return memo(() => !!hasValue())() ? api().valueAsString.join(props.separator ?? ", ") : props.placeholder;
|
|
156
|
+
}
|
|
157
|
+
}));
|
|
158
|
+
},
|
|
159
|
+
get children() {
|
|
160
|
+
return createComponent(Show, {
|
|
161
|
+
get when() {
|
|
162
|
+
return hasValue();
|
|
163
|
+
},
|
|
164
|
+
get fallback() {
|
|
165
|
+
return props.placeholder;
|
|
166
|
+
},
|
|
167
|
+
get children() {
|
|
168
|
+
return createComponent(For, {
|
|
169
|
+
get each() {
|
|
170
|
+
return api().value;
|
|
171
|
+
},
|
|
172
|
+
children: (value, index) => memo(() => props.children({
|
|
173
|
+
value,
|
|
174
|
+
index: index(),
|
|
175
|
+
valueAsString: api().valueAsString[index()],
|
|
176
|
+
remove: () => {
|
|
177
|
+
api().setValue(api().value.filter((_, i) => i !== index()));
|
|
178
|
+
}
|
|
179
|
+
}))
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
};
|
|
144
186
|
var useDatePicker = (props) => {
|
|
145
187
|
const id = createUniqueId();
|
|
146
188
|
const locale = useLocaleContext();
|
|
@@ -159,7 +201,7 @@ var useDatePicker = (props) => {
|
|
|
159
201
|
// src/components/date-picker/date-picker-root.tsx
|
|
160
202
|
var DatePickerRoot = (props) => {
|
|
161
203
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
162
|
-
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "isDateUnavailable", "locale", "max", "maxView", "min", "minView", "name", "numOfMonths", "
|
|
204
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
163
205
|
const api = useDatePicker(useDatePickerProps);
|
|
164
206
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
165
207
|
present: api().open
|
|
@@ -324,7 +366,6 @@ var DatePickerViewTrigger = (props) => {
|
|
|
324
366
|
const mergedProps = mergeProps(() => api().getViewTriggerProps(viewProps), props);
|
|
325
367
|
return createComponent(ark.button, mergedProps);
|
|
326
368
|
};
|
|
327
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<option>`);
|
|
328
369
|
var DatePickerYearSelect = (props) => {
|
|
329
370
|
const datePicker2 = useDatePickerContext();
|
|
330
371
|
const mergedProps = mergeProps(() => datePicker2().getYearSelectProps(), props);
|
|
@@ -334,12 +375,14 @@ var DatePickerYearSelect = (props) => {
|
|
|
334
375
|
get each() {
|
|
335
376
|
return datePicker2().getYears();
|
|
336
377
|
},
|
|
337
|
-
children: (year) => (
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
378
|
+
children: (year) => createComponent(ark.option, {
|
|
379
|
+
get value() {
|
|
380
|
+
return year().value;
|
|
381
|
+
},
|
|
382
|
+
get children() {
|
|
383
|
+
return year().label;
|
|
384
|
+
}
|
|
385
|
+
})
|
|
343
386
|
});
|
|
344
387
|
}
|
|
345
388
|
}));
|
|
@@ -370,10 +413,11 @@ __export(date_picker_exports, {
|
|
|
370
413
|
TableHeader: () => DatePickerTableHeader,
|
|
371
414
|
TableRow: () => DatePickerTableRow,
|
|
372
415
|
Trigger: () => DatePickerTrigger,
|
|
416
|
+
ValueText: () => DatePickerValueText,
|
|
373
417
|
View: () => DatePickerView,
|
|
374
418
|
ViewControl: () => DatePickerViewControl,
|
|
375
419
|
ViewTrigger: () => DatePickerViewTrigger,
|
|
376
420
|
YearSelect: () => DatePickerYearSelect
|
|
377
421
|
});
|
|
378
422
|
|
|
379
|
-
export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
|
|
423
|
+
export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerValueText, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
|