@ark-ui/solid 5.30.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/{checkbox.anatomy-CuzDSmDj.d.ts → checkbox.anatomy-YlC7nNXs.d.ts} +1 -1
- package/dist/chunk/{G2THT6E6.js → 25QG5G6C.js} +22 -17
- package/dist/chunk/{Z5ZRFFPU.js → 37BRFTCN.js} +2 -2
- package/dist/chunk/{TWZUCWKG.js → 3EUGCOMV.js} +3 -3
- package/dist/chunk/{5QLLQM7E.js → 3P5T77QU.js} +6 -5
- package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
- package/dist/chunk/{VDRVAOKQ.js → 5ATP7B75.js} +4 -4
- package/dist/chunk/5BSMJBO7.jsx +136 -0
- package/dist/chunk/{GCEYGQPA.jsx → 5GO6NUQR.jsx} +16 -13
- package/dist/chunk/{ZYFWVVTC.js → 5IIB2LYP.js} +83 -23
- package/dist/chunk/{BX734ZD7.js → 5V7JAJ5W.js} +5 -4
- package/dist/chunk/{76KFR2EJ.jsx → 5ZAKDNMV.jsx} +6 -6
- package/dist/chunk/{UHWLTCQZ.jsx → 65QK7XXR.jsx} +6 -3
- package/dist/chunk/{UDBRICA6.js → 6C2FCXTS.js} +3 -3
- package/dist/chunk/{HVXJLFJY.jsx → 6FX4SECK.jsx} +6 -6
- package/dist/chunk/{DBNXBHAT.js → 6QV6SS6W.js} +4 -4
- package/dist/chunk/{DH3KPRGA.jsx → 77IURBLR.jsx} +9 -6
- package/dist/chunk/{OF7DNWIQ.jsx → 7YVDASKP.jsx} +5 -5
- package/dist/chunk/{J5ODILBT.jsx → 7Z6YKSMY.jsx} +15 -13
- package/dist/chunk/{6QF5SDIE.jsx → 7ZEKGJLZ.jsx} +9 -7
- package/dist/chunk/{AH5KB6LR.js → A5BBGDPW.js} +4 -4
- package/dist/chunk/{RYD4Z3LT.jsx → ABFLCPUB.jsx} +5 -5
- package/dist/chunk/{SZNFUIJQ.jsx → ACLCLMIV.jsx} +6 -6
- package/dist/chunk/{NHEM6XZR.jsx → AIK4SKXT.jsx} +7 -7
- package/dist/chunk/{P2OA7NSB.js → BGKLKY77.js} +3 -3
- package/dist/chunk/BTUFV5YJ.jsx +306 -0
- package/dist/chunk/{VRCOVKZM.jsx → BUMQJLFN.jsx} +9 -7
- package/dist/chunk/{3BRVNFB3.js → BVQ6NO6X.js} +30 -33
- package/dist/chunk/{K32NALIW.js → CBYVQ7YD.js} +3 -3
- package/dist/chunk/{2JSSDQEE.jsx → CC4VXMN5.jsx} +6 -6
- package/dist/chunk/{IYZ6XUM5.js → CXS7DDU2.js} +2 -2
- package/dist/chunk/{HWHAUHQ5.jsx → DGI75TEJ.jsx} +6 -6
- package/dist/chunk/{FDGWBBJ3.jsx → DYFALYJE.jsx} +4 -4
- package/dist/chunk/{RRFWSRAD.jsx → E54U43LI.jsx} +77 -14
- package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
- package/dist/chunk/{6UXNGS66.jsx → EQKTJ63X.jsx} +1 -1
- package/dist/chunk/{OVPRCDDL.jsx → ESQ2KC4M.jsx} +7 -6
- package/dist/chunk/{IGSOSLB3.jsx → G7XBXLRA.jsx} +6 -6
- package/dist/chunk/{XH4Y4U2G.jsx → GSOOONDM.jsx} +5 -5
- package/dist/chunk/{UOOMXEJO.jsx → GYKEGNPI.jsx} +5 -5
- package/dist/chunk/{CGW54HAQ.jsx → HDGILMRT.jsx} +4 -1
- package/dist/chunk/{WUBTAV2O.js → HFIUYKXK.js} +5 -5
- package/dist/chunk/{K3TLO6S6.js → HJJ6M6JE.js} +3 -3
- package/dist/chunk/{W7YDKZGP.js → HKJ2U4GE.js} +4 -4
- package/dist/chunk/{P7BXFWK5.js → HMG7R2BF.js} +40 -38
- package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
- package/dist/chunk/{NZQO4OJP.jsx → HSKAUH3N.jsx} +16 -13
- package/dist/chunk/{JLPPHEZV.js → HUB2Z2WJ.js} +3 -3
- package/dist/chunk/{B7OY6YTK.js → IKIPTYFY.js} +3 -3
- package/dist/chunk/{XXP27BHC.jsx → IPJK2PWY.jsx} +5 -5
- package/dist/chunk/{O5M2FPMH.js → IRBAVIVZ.js} +5 -4
- package/dist/chunk/{23JPD2DE.js → J6D7JUCJ.js} +2 -5
- package/dist/chunk/{FW6EZLZL.js → JBLHW7IM.js} +4 -29
- package/dist/chunk/{HI7OENS5.js → JLP6NZTO.js} +29 -6
- package/dist/chunk/{TP32AKQX.js → JR3CTJ4R.js} +4 -4
- package/dist/chunk/KWLZPDF4.jsx +6 -0
- package/dist/chunk/{4EK6Z2KK.js → KXKOMCVA.js} +2 -2
- package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
- package/dist/chunk/LRDE5RNI.js +239 -0
- package/dist/chunk/{XNAQLSZW.jsx → M2R7NELL.jsx} +5 -5
- package/dist/chunk/{DR7CHNBO.jsx → MLPK6MO2.jsx} +5 -5
- package/dist/chunk/{KEZ2WH2A.jsx → MU5CM6ZP.jsx} +5 -5
- package/dist/chunk/{HYQNCIWP.js → N2ACHFKW.js} +3 -3
- package/dist/chunk/NEU4F4NG.jsx +52 -0
- package/dist/chunk/NJVZNV63.js +121 -0
- package/dist/chunk/{W33NQFXF.js → NMS6DWX3.js} +5 -4
- package/dist/chunk/{UMVZZL45.js → NMYA3JZ5.js} +1 -1
- package/dist/chunk/{S7F5ETXJ.js → NTHXB7S3.js} +5 -4
- package/dist/chunk/{2P5Y3YCK.jsx → OEGORBLT.jsx} +1 -47
- package/dist/chunk/{QGXWXVZ5.js → ONLLL7WZ.js} +4 -4
- package/dist/chunk/{4A6UNZ4T.jsx → ONZ5KPSW.jsx} +5 -5
- package/dist/chunk/ORFQCCEF.js +7 -0
- package/dist/chunk/{AQ27SOWE.jsx → ORZMPJPC.jsx} +5 -5
- package/dist/chunk/{VVD4LKC6.jsx → OWH3LOUE.jsx} +4 -1
- package/dist/chunk/{MNZUELWU.jsx → P466TCYN.jsx} +9 -7
- package/dist/chunk/{NPSTVZUG.jsx → P7K6CA55.jsx} +7 -6
- package/dist/chunk/{YENHTIT6.js → PDHNW6SC.js} +5 -4
- package/dist/chunk/{Z4EBWHQF.js → PEIMGDXM.js} +4 -4
- package/dist/chunk/{JRY66LXS.jsx → PKRIUPWN.jsx} +6 -6
- package/dist/chunk/{7HLG62OR.jsx → PPH4D7AF.jsx} +7 -7
- package/dist/chunk/{3WOFDSWV.jsx → PSH3YKBU.jsx} +4 -4
- package/dist/chunk/{UXUJ2LD6.js → PSO6FY3T.js} +5 -4
- package/dist/chunk/{FXYVJXLF.jsx → PWV2MRRH.jsx} +5 -5
- package/dist/chunk/{2V2P2JZV.js → QC2RXUV4.js} +12 -9
- package/dist/chunk/{372PVMNT.js → QUQ6VBQO.js} +4 -4
- package/dist/chunk/{UTULIPW7.js → RDZRRODO.js} +4 -4
- package/dist/chunk/{2BFJIRAK.js → RJPVNWZG.js} +5 -4
- package/dist/chunk/{SYNEPEHD.js → RL5TZPAG.js} +3 -3
- package/dist/chunk/{VH6MDPEX.jsx → RNGP6PKE.jsx} +6 -6
- package/dist/chunk/{F7OI3RZ3.js → RSDHPGPT.js} +46 -19
- package/dist/chunk/RT4GKNE7.js +1 -0
- package/dist/chunk/{ORJXW4SC.jsx → RVP446XN.jsx} +38 -18
- package/dist/chunk/{GBGTOFYC.js → S3VN2YFH.js} +2 -2
- package/dist/chunk/{B434DN6B.js → SCCZRXWX.js} +3 -3
- package/dist/chunk/{CCK5XI24.jsx → SCJBXRUZ.jsx} +9 -7
- package/dist/chunk/{2MDYHAEL.js → SU6SNXFK.js} +7 -6
- package/dist/chunk/{SH4J3NPA.jsx → TD72MSSI.jsx} +5 -5
- package/dist/chunk/{QTWOIUHU.jsx → TG3BV4FJ.jsx} +9 -9
- package/dist/chunk/{IEJ4RWIV.jsx → TPTP4FRI.jsx} +9 -7
- package/dist/chunk/{5RT2MFUK.jsx → TYHUUGLH.jsx} +3 -3
- package/dist/chunk/{WT5KEZUJ.js → UJ4FU6HV.js} +8 -12
- package/dist/chunk/{VIKFXGE5.jsx → V62PHVT3.jsx} +6 -6
- package/dist/chunk/{LNZGGTI5.js → VIERJSCF.js} +4 -4
- package/dist/chunk/{HCQSZULR.js → WGHZEJIT.js} +6 -5
- package/dist/chunk/{FDE3GI6Q.js → WLWKI62C.js} +6 -5
- package/dist/chunk/{RSWPJEWK.js → WTS7KK6L.js} +4 -4
- package/dist/chunk/{GCQCOMQH.js → WX3PPB36.js} +3 -3
- package/dist/chunk/{LQGHLGPW.jsx → WZBYH43M.jsx} +1 -1
- package/dist/chunk/X22PRPOR.js +31 -0
- package/dist/chunk/{JNBFQ7ZP.jsx → X63FZDID.jsx} +15 -13
- package/dist/chunk/{FKF6FOYL.jsx → XLKDWQZ2.jsx} +9 -7
- package/dist/chunk/{QARPXWDS.js → XNIXPFXJ.js} +2 -2
- package/dist/chunk/{HNIBOZUS.jsx → XRBGB3XP.jsx} +41 -11
- package/dist/chunk/XVU3GCCX.jsx +9 -0
- package/dist/chunk/{6HVSV6OM.js → YA3LD5QR.js} +1 -1
- package/dist/chunk/{CNHYYRWI.jsx → YLT3EBQZ.jsx} +9 -7
- package/dist/chunk/{7B5HD3HF.js → YVERN3NM.js} +3 -3
- package/dist/chunk/{2S7Z6JX4.jsx → YW4KS3S5.jsx} +6 -6
- package/dist/chunk/{52VYWTHF.js → YXEZ562D.js} +5 -5
- package/dist/chunk/{JEKNEIFC.jsx → Z253N6GA.jsx} +5 -5
- package/dist/chunk/{Z5L7ULFZ.js → ZJOFPTIM.js} +3 -3
- package/dist/chunk/{3ZDGZCBV.jsx → ZLSYUPYN.jsx} +15 -11
- package/dist/chunk/{J6B3R7PY.jsx → ZOCG4ZHL.jsx} +5 -5
- 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-5H6l0CJs.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 +10 -9
- package/dist/components/anatomy.js +20 -19
- package/dist/components/anatomy.jsx +58 -54
- 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 +5 -1
- 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 +4 -4
- 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 -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 +50 -5
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-picker/index.jsx +14 -7
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -6
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/download-trigger/index.jsx +4 -4
- 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 +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 +1 -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 -6
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +4 -3
- 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 -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 +16 -14
- package/dist/components/index.js +77 -74
- package/dist/components/index.jsx +582 -538
- 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 +7 -7
- package/dist/components/listbox/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/components/navigation-menu/index.js +26 -20
- package/dist/components/navigation-menu/index.jsx +28 -15
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +7 -7
- 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 +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 -6
- package/dist/components/presence/index.js +2 -1
- package/dist/components/presence/index.jsx +5 -3
- 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 +6 -6
- 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 +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 +7 -7
- 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 +7 -7
- 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 +7 -7
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +4 -4
- 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 +1 -1
- 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 +10 -4
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +17 -8
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +6 -6
- package/dist/date-picker.anatomy-DMDOrz3v.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 +18 -15
- package/dist/index.js +79 -76
- package/dist/index.jsx +586 -540
- 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.d.ts +3 -1
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.jsx +5 -2
- 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 +81 -79
- package/dist/chunk/2R6SK2X3.js +0 -1
- package/dist/chunk/M3S2UEA7.js +0 -178
- package/dist/chunk/UOTT3RUB.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/date-picker.anatomy-C7QaSOwg.d.ts +0 -5
- package/dist/field.anatomy-BkeW0gbI.d.ts +0 -5
- /package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
- /package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
|
|
3
|
-
declare const checkboxAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "
|
|
3
|
+
declare const checkboxAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "group" | "root" | "control" | "indicator">;
|
|
4
4
|
|
|
5
5
|
export { checkboxAnatomy as c };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
3
|
+
import { usePresence } from './X22PRPOR.js';
|
|
3
4
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
4
5
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import {
|
|
6
|
-
import { useEnvironmentContext } from './
|
|
7
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
+
import { ark } from './EPLBB4QN.js';
|
|
9
10
|
import { createContext } from './THN5C4U6.js';
|
|
10
11
|
import { __export } from './ESLJRKWD.js';
|
|
11
|
-
import { createComponent, mergeProps as mergeProps$1
|
|
12
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
12
13
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
13
14
|
import { Show, createUniqueId, createMemo, Index } from 'solid-js';
|
|
14
15
|
import * as select from '@zag-js/select';
|
|
@@ -51,8 +52,6 @@ var SelectControl = (props) => {
|
|
|
51
52
|
const mergedProps = mergeProps(() => select2().getControlProps(), props);
|
|
52
53
|
return createComponent(ark.div, mergedProps);
|
|
53
54
|
};
|
|
54
|
-
var _tmpl$ = /* @__PURE__ */ template(`<option value>`);
|
|
55
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<option>`);
|
|
56
55
|
var SelectHiddenSelect = (props) => {
|
|
57
56
|
const select2 = useSelectContext();
|
|
58
57
|
const mergedProps = mergeProps(() => select2().getHiddenSelectProps(), props);
|
|
@@ -69,19 +68,25 @@ var SelectHiddenSelect = (props) => {
|
|
|
69
68
|
return isValueEmpty();
|
|
70
69
|
},
|
|
71
70
|
get children() {
|
|
72
|
-
return
|
|
71
|
+
return createComponent(ark.option, {
|
|
72
|
+
value: ""
|
|
73
|
+
});
|
|
73
74
|
}
|
|
74
75
|
}), createComponent(Index, {
|
|
75
76
|
get each() {
|
|
76
77
|
return select2().collection.items;
|
|
77
78
|
},
|
|
78
|
-
children: (item) => (
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
children: (item) => createComponent(ark.option, {
|
|
80
|
+
get value() {
|
|
81
|
+
return select2().collection.getItemValue(item()) ?? "";
|
|
82
|
+
},
|
|
83
|
+
get disabled() {
|
|
84
|
+
return select2().collection.getItemDisabled(item());
|
|
85
|
+
},
|
|
86
|
+
get children() {
|
|
87
|
+
return select2().collection.stringifyItem(item());
|
|
88
|
+
}
|
|
89
|
+
})
|
|
85
90
|
})];
|
|
86
91
|
}
|
|
87
92
|
}));
|
|
@@ -216,7 +221,7 @@ var useSelect = (props) => {
|
|
|
216
221
|
// src/components/select/select-root.tsx
|
|
217
222
|
var SelectRoot = (props) => {
|
|
218
223
|
const [presenceProps, selectProps] = splitPresenceProps(props);
|
|
219
|
-
const [useSelectProps, localProps] = createSplitProps()(selectProps, ["closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
|
|
224
|
+
const [useSelectProps, localProps] = createSplitProps()(selectProps, ["autoComplete", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
|
|
220
225
|
const select2 = useSelect(useSelectProps);
|
|
221
226
|
const presenceApi = usePresence(mergeProps(() => ({
|
|
222
227
|
present: select2().open
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
2
2
|
import { parts } from './FCMJTSIR.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import {
|
|
5
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
4
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
6
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
|
+
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
8
8
|
import { __export } from './ESLJRKWD.js';
|
|
9
9
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { splitRenderStrategyProps } from './GUFIKGZ6.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import {
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
5
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
6
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
|
+
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
8
8
|
import { __export } from './ESLJRKWD.js';
|
|
9
9
|
import { createComponent } from 'solid-js/web';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { runIfFn } from './DT73WLR4.js';
|
|
2
|
+
import { ark } from './EPLBB4QN.js';
|
|
2
3
|
import { createContext } from './THN5C4U6.js';
|
|
3
|
-
import { createComponent, memo
|
|
4
|
+
import { createComponent, memo } from 'solid-js/web';
|
|
4
5
|
import { getWindow, getDocument } from '@zag-js/dom-query';
|
|
5
6
|
import { createSignal, createMemo, Show } from 'solid-js';
|
|
6
7
|
|
|
@@ -17,7 +18,6 @@ var [EnvironmentContextProvider, useEnvironmentContext] = createContext({
|
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
// src/providers/environment/environment-provider.tsx
|
|
20
|
-
var _tmpl$ = /* @__PURE__ */ template(`<span hidden>`);
|
|
21
21
|
var EnvironmentProvider = (props) => {
|
|
22
22
|
const [spanRef, setSpanRef] = createSignal();
|
|
23
23
|
const getRootNode = () => runIfFn(props.value) ?? spanRef()?.getRootNode() ?? document;
|
|
@@ -34,9 +34,10 @@ var EnvironmentProvider = (props) => {
|
|
|
34
34
|
return !props.value;
|
|
35
35
|
},
|
|
36
36
|
get children() {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
return createComponent(ark.span, {
|
|
38
|
+
hidden: true,
|
|
39
|
+
ref: setSpanRef
|
|
40
|
+
});
|
|
40
41
|
}
|
|
41
42
|
})];
|
|
42
43
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import {
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
4
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
2
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
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';
|
|
@@ -117,7 +117,7 @@ function useSteps(props) {
|
|
|
117
117
|
|
|
118
118
|
// src/components/steps/steps-root.tsx
|
|
119
119
|
var StepsRoot = (props) => {
|
|
120
|
-
const [useStepsProps, localProps] = createSplitProps()(props, ["defaultStep", "id", "ids", "
|
|
120
|
+
const [useStepsProps, localProps] = createSplitProps()(props, ["count", "defaultStep", "id", "ids", "isStepSkippable", "isStepValid", "linear", "onStepChange", "onStepComplete", "onStepInvalid", "orientation", "step"]);
|
|
121
121
|
const steps2 = useSteps(useStepsProps);
|
|
122
122
|
const mergedProps = mergeProps(() => steps2().getRootProps(), localProps);
|
|
123
123
|
return createComponent(StepsProvider, {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePresence
|
|
3
|
+
} from "./OEGORBLT.jsx";
|
|
4
|
+
import {
|
|
5
|
+
composeRefs
|
|
6
|
+
} from "./PT2CJE3O.jsx";
|
|
7
|
+
import {
|
|
8
|
+
parts,
|
|
9
|
+
swapAnatomy
|
|
10
|
+
} from "./XVU3GCCX.jsx";
|
|
11
|
+
import {
|
|
12
|
+
runIfFn
|
|
13
|
+
} from "./KGOB2IMX.jsx";
|
|
14
|
+
import {
|
|
15
|
+
ark
|
|
16
|
+
} from "./UFYZ7HLU.jsx";
|
|
17
|
+
import {
|
|
18
|
+
createContext
|
|
19
|
+
} from "./UZJJWJQM.jsx";
|
|
20
|
+
import {
|
|
21
|
+
__export
|
|
22
|
+
} from "./7IUG3E2V.jsx";
|
|
23
|
+
|
|
24
|
+
// src/components/swap/swap.ts
|
|
25
|
+
var swap_exports = {};
|
|
26
|
+
__export(swap_exports, {
|
|
27
|
+
Indicator: () => SwapIndicator,
|
|
28
|
+
Root: () => SwapRoot,
|
|
29
|
+
RootProvider: () => SwapRootProvider,
|
|
30
|
+
swapAnatomy: () => swapAnatomy
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// src/components/swap/swap-indicator.tsx
|
|
34
|
+
import { mergeProps } from "@zag-js/solid";
|
|
35
|
+
import { Show, splitProps } from "solid-js";
|
|
36
|
+
|
|
37
|
+
// src/components/swap/use-swap-context.ts
|
|
38
|
+
var [SwapProvider, useSwapContext] = createContext({
|
|
39
|
+
hookName: "useSwapContext",
|
|
40
|
+
providerName: "<SwapProvider />"
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// src/components/swap/swap-indicator.tsx
|
|
44
|
+
var SwapIndicator = (props) => {
|
|
45
|
+
const [localProps, restProps] = splitProps(props, ["type", "ref"]);
|
|
46
|
+
const swap = useSwapContext();
|
|
47
|
+
const presence = () => {
|
|
48
|
+
const p = localProps.type === "on" ? swap().onPresence : swap().offPresence;
|
|
49
|
+
return p();
|
|
50
|
+
};
|
|
51
|
+
const mergedProps = mergeProps(() => swap().getIndicatorProps({ type: localProps.type }), restProps);
|
|
52
|
+
return <Show when={!presence().unmounted}>
|
|
53
|
+
<ark.span {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
|
|
54
|
+
</Show>;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// src/components/swap/swap-root.tsx
|
|
58
|
+
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
59
|
+
import { splitProps as splitProps2 } from "solid-js";
|
|
60
|
+
|
|
61
|
+
// src/components/swap/use-swap.ts
|
|
62
|
+
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
63
|
+
import { createMemo } from "solid-js";
|
|
64
|
+
var useSwap = (props = {}) => {
|
|
65
|
+
const resolved = createMemo(() => runIfFn(props));
|
|
66
|
+
const onPresence = usePresence(
|
|
67
|
+
mergeProps2(() => ({
|
|
68
|
+
present: resolved().swap ?? false,
|
|
69
|
+
lazyMount: resolved().lazyMount,
|
|
70
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
71
|
+
skipAnimationOnMount: true
|
|
72
|
+
}))
|
|
73
|
+
);
|
|
74
|
+
const offPresence = usePresence(
|
|
75
|
+
mergeProps2(() => ({
|
|
76
|
+
present: !(resolved().swap ?? false),
|
|
77
|
+
lazyMount: resolved().lazyMount,
|
|
78
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
79
|
+
skipAnimationOnMount: true
|
|
80
|
+
}))
|
|
81
|
+
);
|
|
82
|
+
return createMemo(() => {
|
|
83
|
+
const swap = resolved().swap ?? false;
|
|
84
|
+
return {
|
|
85
|
+
swap,
|
|
86
|
+
onPresence,
|
|
87
|
+
offPresence,
|
|
88
|
+
getRootProps() {
|
|
89
|
+
return {
|
|
90
|
+
...parts.root.attrs,
|
|
91
|
+
"data-swap": swap ? "on" : "off",
|
|
92
|
+
style: { display: "inline-grid" }
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
getIndicatorProps({ type }) {
|
|
96
|
+
const presence = type === "on" ? onPresence() : offPresence();
|
|
97
|
+
return {
|
|
98
|
+
...parts.indicator.attrs,
|
|
99
|
+
...presence.presenceProps,
|
|
100
|
+
"data-type": type,
|
|
101
|
+
style: { "grid-area": "1 / 1", display: "inline-flex" }
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// src/components/swap/swap-root.tsx
|
|
109
|
+
var SwapRoot = (props) => {
|
|
110
|
+
const [swapProps, localProps] = splitProps2(props, ["swap", "lazyMount", "unmountOnExit"]);
|
|
111
|
+
const swap = useSwap(() => swapProps);
|
|
112
|
+
const mergedProps = mergeProps3(() => swap().getRootProps(), localProps);
|
|
113
|
+
return <SwapProvider value={swap}>
|
|
114
|
+
<ark.span {...mergedProps} />
|
|
115
|
+
</SwapProvider>;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// src/components/swap/swap-root-provider.tsx
|
|
119
|
+
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
120
|
+
import { splitProps as splitProps3 } from "solid-js";
|
|
121
|
+
var SwapRootProvider = (props) => {
|
|
122
|
+
const [providerProps, localProps] = splitProps3(props, ["value"]);
|
|
123
|
+
const mergedProps = mergeProps4(() => providerProps.value().getRootProps(), localProps);
|
|
124
|
+
return <SwapProvider value={providerProps.value}>
|
|
125
|
+
<ark.span {...mergedProps} />
|
|
126
|
+
</SwapProvider>;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
useSwapContext,
|
|
131
|
+
SwapIndicator,
|
|
132
|
+
useSwap,
|
|
133
|
+
SwapRoot,
|
|
134
|
+
SwapRootProvider,
|
|
135
|
+
swap_exports
|
|
136
|
+
};
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFieldContext
|
|
3
|
-
} from "./7HLG62OR.jsx";
|
|
4
1
|
import {
|
|
5
2
|
PresenceProvider,
|
|
6
3
|
splitPresenceProps,
|
|
7
|
-
usePresence,
|
|
8
4
|
usePresenceContext
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./NEU4F4NG.jsx";
|
|
6
|
+
import {
|
|
7
|
+
usePresence
|
|
8
|
+
} from "./OEGORBLT.jsx";
|
|
9
|
+
import {
|
|
10
|
+
useFieldContext
|
|
11
|
+
} from "./PPH4D7AF.jsx";
|
|
10
12
|
import {
|
|
11
13
|
composeRefs
|
|
12
14
|
} from "./PT2CJE3O.jsx";
|
|
13
15
|
import {
|
|
14
16
|
createSplitProps
|
|
15
17
|
} from "./6WEDGJKQ.jsx";
|
|
16
|
-
import {
|
|
17
|
-
ark
|
|
18
|
-
} from "./UFYZ7HLU.jsx";
|
|
19
18
|
import {
|
|
20
19
|
useEnvironmentContext
|
|
21
|
-
} from "./
|
|
20
|
+
} from "./HDGILMRT.jsx";
|
|
22
21
|
import {
|
|
23
22
|
useLocaleContext
|
|
24
|
-
} from "./
|
|
23
|
+
} from "./HOPBYFHD.jsx";
|
|
25
24
|
import {
|
|
26
25
|
runIfFn
|
|
27
26
|
} from "./KGOB2IMX.jsx";
|
|
27
|
+
import {
|
|
28
|
+
ark
|
|
29
|
+
} from "./UFYZ7HLU.jsx";
|
|
28
30
|
import {
|
|
29
31
|
createContext
|
|
30
32
|
} from "./UZJJWJQM.jsx";
|
|
@@ -85,15 +87,15 @@ var SelectHiddenSelect = (props) => {
|
|
|
85
87
|
const field = useFieldContext();
|
|
86
88
|
return <ark.select aria-describedby={field?.().ariaDescribedby} {...mergedProps}>
|
|
87
89
|
<Show2 when={isValueEmpty()}>
|
|
88
|
-
<option value="" />
|
|
90
|
+
<ark.option value="" />
|
|
89
91
|
</Show2>
|
|
90
92
|
<Index each={select2().collection.items}>
|
|
91
|
-
{(item) => <option
|
|
93
|
+
{(item) => <ark.option
|
|
92
94
|
value={select2().collection.getItemValue(item()) ?? ""}
|
|
93
95
|
disabled={select2().collection.getItemDisabled(item())}
|
|
94
96
|
>
|
|
95
97
|
{select2().collection.stringifyItem(item())}
|
|
96
|
-
</option>}
|
|
98
|
+
</ark.option>}
|
|
97
99
|
</Index>
|
|
98
100
|
</ark.select>;
|
|
99
101
|
};
|
|
@@ -248,6 +250,7 @@ var useSelect = (props) => {
|
|
|
248
250
|
var SelectRoot = (props) => {
|
|
249
251
|
const [presenceProps, selectProps] = splitPresenceProps(props);
|
|
250
252
|
const [useSelectProps, localProps] = createSplitProps()(selectProps, [
|
|
253
|
+
"autoComplete",
|
|
251
254
|
"closeOnSelect",
|
|
252
255
|
"collection",
|
|
253
256
|
"composite",
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { splitPresenceProps,
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
-
import { datePickerAnatomy } from './
|
|
4
|
+
import { datePickerAnatomy } from './YA3LD5QR.js';
|
|
4
5
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import {
|
|
6
|
-
import { useEnvironmentContext } from './
|
|
7
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
+
import { ark } from './EPLBB4QN.js';
|
|
9
10
|
import { createContext } from './THN5C4U6.js';
|
|
10
11
|
import { __export } from './ESLJRKWD.js';
|
|
11
12
|
import * as datePicker from '@zag-js/date-picker';
|
|
12
13
|
export { parse } from '@zag-js/date-picker';
|
|
13
|
-
import { createComponent, mergeProps as mergeProps$1,
|
|
14
|
+
import { createComponent, mergeProps as mergeProps$1, memo } from 'solid-js/web';
|
|
14
15
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
15
|
-
import { Index, createMemo, createUniqueId
|
|
16
|
+
import { Index, Show, For, createMemo, createUniqueId } from 'solid-js';
|
|
16
17
|
import { uniq } from '@zag-js/utils';
|
|
17
18
|
|
|
18
19
|
// src/components/date-picker/use-date-picker-context.ts
|
|
@@ -64,7 +65,6 @@ var DatePickerLabel = (props) => {
|
|
|
64
65
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
65
66
|
return createComponent(ark.label, mergedProps);
|
|
66
67
|
};
|
|
67
|
-
var _tmpl$ = /* @__PURE__ */ template(`<option>`);
|
|
68
68
|
var DatePickerMonthSelect = (props) => {
|
|
69
69
|
const datePicker2 = useDatePickerContext();
|
|
70
70
|
const mergedProps = mergeProps(() => datePicker2().getMonthSelectProps(), props);
|
|
@@ -74,12 +74,14 @@ var DatePickerMonthSelect = (props) => {
|
|
|
74
74
|
get each() {
|
|
75
75
|
return datePicker2().getMonths();
|
|
76
76
|
},
|
|
77
|
-
children: (month) => (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
children: (month) => createComponent(ark.option, {
|
|
78
|
+
get value() {
|
|
79
|
+
return month().value;
|
|
80
|
+
},
|
|
81
|
+
get children() {
|
|
82
|
+
return month().label;
|
|
83
|
+
}
|
|
84
|
+
})
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
}));
|
|
@@ -141,6 +143,47 @@ var DatePickerRangeText = (props) => {
|
|
|
141
143
|
}
|
|
142
144
|
}));
|
|
143
145
|
};
|
|
146
|
+
var DatePickerValueText = (props) => {
|
|
147
|
+
const api = useDatePickerContext();
|
|
148
|
+
const hasValue = () => api().value.length > 0;
|
|
149
|
+
return createComponent(Show, {
|
|
150
|
+
get when() {
|
|
151
|
+
return typeof props.children === "function";
|
|
152
|
+
},
|
|
153
|
+
get fallback() {
|
|
154
|
+
return createComponent(ark.span, mergeProps$1(() => datePickerAnatomy.build().valueText.attrs, props, {
|
|
155
|
+
get children() {
|
|
156
|
+
return memo(() => !!hasValue())() ? api().valueAsString.join(props.separator ?? ", ") : props.placeholder;
|
|
157
|
+
}
|
|
158
|
+
}));
|
|
159
|
+
},
|
|
160
|
+
get children() {
|
|
161
|
+
return createComponent(Show, {
|
|
162
|
+
get when() {
|
|
163
|
+
return hasValue();
|
|
164
|
+
},
|
|
165
|
+
get fallback() {
|
|
166
|
+
return props.placeholder;
|
|
167
|
+
},
|
|
168
|
+
get children() {
|
|
169
|
+
return createComponent(For, {
|
|
170
|
+
get each() {
|
|
171
|
+
return api().value;
|
|
172
|
+
},
|
|
173
|
+
children: (value, index) => memo(() => props.children({
|
|
174
|
+
value,
|
|
175
|
+
index: index(),
|
|
176
|
+
valueAsString: api().valueAsString[index()],
|
|
177
|
+
remove: () => {
|
|
178
|
+
api().setValue(api().value.filter((_, i) => i !== index()));
|
|
179
|
+
}
|
|
180
|
+
}))
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
};
|
|
144
187
|
var useDatePicker = (props) => {
|
|
145
188
|
const id = createUniqueId();
|
|
146
189
|
const locale = useLocaleContext();
|
|
@@ -159,7 +202,7 @@ var useDatePicker = (props) => {
|
|
|
159
202
|
// src/components/date-picker/date-picker-root.tsx
|
|
160
203
|
var DatePickerRoot = (props) => {
|
|
161
204
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
162
|
-
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", "open", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
205
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxSelectedDates", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "openOnClick", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "showWeekNumbers", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
163
206
|
const api = useDatePicker(useDatePickerProps);
|
|
164
207
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
165
208
|
present: api().open
|
|
@@ -324,7 +367,19 @@ var DatePickerViewTrigger = (props) => {
|
|
|
324
367
|
const mergedProps = mergeProps(() => api().getViewTriggerProps(viewProps), props);
|
|
325
368
|
return createComponent(ark.button, mergedProps);
|
|
326
369
|
};
|
|
327
|
-
var
|
|
370
|
+
var splitWeekNumberCellProps = createSplitProps();
|
|
371
|
+
var DatePickerWeekNumberCell = (props) => {
|
|
372
|
+
const [cellProps, localProps] = splitWeekNumberCellProps(props, ["weekIndex", "week"]);
|
|
373
|
+
const datePicker2 = useDatePickerContext();
|
|
374
|
+
const mergedProps = mergeProps(() => datePicker2().getWeekNumberCellProps(cellProps), localProps);
|
|
375
|
+
return createComponent(ark.td, mergedProps);
|
|
376
|
+
};
|
|
377
|
+
var DatePickerWeekNumberHeaderCell = (props) => {
|
|
378
|
+
const api = useDatePickerContext();
|
|
379
|
+
const tableProps = useDatePickerTableContext();
|
|
380
|
+
const mergedProps = mergeProps(() => api().getWeekNumberHeaderCellProps(tableProps), props);
|
|
381
|
+
return createComponent(ark.th, mergedProps);
|
|
382
|
+
};
|
|
328
383
|
var DatePickerYearSelect = (props) => {
|
|
329
384
|
const datePicker2 = useDatePickerContext();
|
|
330
385
|
const mergedProps = mergeProps(() => datePicker2().getYearSelectProps(), props);
|
|
@@ -334,12 +389,14 @@ var DatePickerYearSelect = (props) => {
|
|
|
334
389
|
get each() {
|
|
335
390
|
return datePicker2().getYears();
|
|
336
391
|
},
|
|
337
|
-
children: (year) => (
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
392
|
+
children: (year) => createComponent(ark.option, {
|
|
393
|
+
get value() {
|
|
394
|
+
return year().value;
|
|
395
|
+
},
|
|
396
|
+
get children() {
|
|
397
|
+
return year().label;
|
|
398
|
+
}
|
|
399
|
+
})
|
|
343
400
|
});
|
|
344
401
|
}
|
|
345
402
|
}));
|
|
@@ -370,10 +427,13 @@ __export(date_picker_exports, {
|
|
|
370
427
|
TableHeader: () => DatePickerTableHeader,
|
|
371
428
|
TableRow: () => DatePickerTableRow,
|
|
372
429
|
Trigger: () => DatePickerTrigger,
|
|
430
|
+
ValueText: () => DatePickerValueText,
|
|
373
431
|
View: () => DatePickerView,
|
|
374
432
|
ViewControl: () => DatePickerViewControl,
|
|
375
433
|
ViewTrigger: () => DatePickerViewTrigger,
|
|
434
|
+
WeekNumberCell: () => DatePickerWeekNumberCell,
|
|
435
|
+
WeekNumberHeaderCell: () => DatePickerWeekNumberHeaderCell,
|
|
376
436
|
YearSelect: () => DatePickerYearSelect
|
|
377
437
|
});
|
|
378
438
|
|
|
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 };
|
|
439
|
+
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, DatePickerWeekNumberCell, DatePickerWeekNumberHeaderCell, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps,
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, 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 {
|
|
6
|
-
import { useEnvironmentContext } from './
|
|
7
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
+
import { ark } from './EPLBB4QN.js';
|
|
9
10
|
import { createContext } from './THN5C4U6.js';
|
|
10
11
|
import { __export } from './ESLJRKWD.js';
|
|
11
12
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
@@ -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
|
-
import {
|
|
8
|
-
ark
|
|
9
|
-
} from "./UFYZ7HLU.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./HDGILMRT.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useLocaleContext
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./HOPBYFHD.jsx";
|
|
16
13
|
import {
|
|
17
14
|
runIfFn
|
|
18
15
|
} from "./KGOB2IMX.jsx";
|
|
16
|
+
import {
|
|
17
|
+
ark
|
|
18
|
+
} from "./UFYZ7HLU.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./UZJJWJQM.jsx";
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
} from "./PT2CJE3O.jsx";
|
|
4
4
|
import {
|
|
5
5
|
EnvironmentProvider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./HDGILMRT.jsx";
|
|
7
|
+
import {
|
|
8
|
+
ark
|
|
9
|
+
} from "./UFYZ7HLU.jsx";
|
|
7
10
|
|
|
8
11
|
// src/components/frame/frame.tsx
|
|
9
12
|
import { Show, createEffect as createEffect2, createMemo, createSignal, onCleanup as onCleanup2, splitProps } from "solid-js";
|
|
@@ -70,7 +73,7 @@ var Frame = (props) => {
|
|
|
70
73
|
});
|
|
71
74
|
});
|
|
72
75
|
return <EnvironmentProvider value={() => frameRef()?.contentDocument ?? document}>
|
|
73
|
-
<iframe {...localProps} ref={composeRefs(setFrameRef, localProps.ref)}>
|
|
76
|
+
<ark.iframe {...localProps} ref={composeRefs(setFrameRef, localProps.ref)}>
|
|
74
77
|
<Show when={mountNode()}>
|
|
75
78
|
{(node) => <Portal mount={node()}>
|
|
76
79
|
<FrameContent onMount={frameProps.onMount} onUnmount={frameProps.onUnmount}>
|
|
@@ -81,7 +84,7 @@ var Frame = (props) => {
|
|
|
81
84
|
<Show when={mountNode()}>
|
|
82
85
|
<Portal mount={frameRef().contentDocument.head}>{frameProps.head}</Portal>
|
|
83
86
|
</Show>
|
|
84
|
-
</iframe>
|
|
87
|
+
</ark.iframe>
|
|
85
88
|
</EnvironmentProvider>;
|
|
86
89
|
};
|
|
87
90
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import {
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
4
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
2
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
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';
|