@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 listboxAnatomy: _zag_js_anatomy.AnatomyInstance<"
|
|
3
|
+
declare const listboxAnatomy: _zag_js_anatomy.AnatomyInstance<"input" | "label" | "content" | "root" | "item" | "valueText" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
4
4
|
|
|
5
5
|
export { listboxAnatomy as l };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EnvironmentProvider, useEnvironmentContext } from '../../chunk/
|
|
1
|
+
export { EnvironmentProvider, useEnvironmentContext } from '../../chunk/3P5T77QU.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EnvironmentProvider,
|
|
3
3
|
useEnvironmentContext
|
|
4
|
-
} from "../../chunk/
|
|
4
|
+
} from "../../chunk/HDGILMRT.jsx";
|
|
5
5
|
import "../../chunk/KGOB2IMX.jsx";
|
|
6
|
+
import "../../chunk/UFYZ7HLU.jsx";
|
|
6
7
|
import "../../chunk/UZJJWJQM.jsx";
|
|
7
8
|
import "../../chunk/7IUG3E2V.jsx";
|
|
8
9
|
export {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { EnvironmentContext, EnvironmentProvider, EnvironmentProviderProps, RootNode, EnvironmentContext as UseEnvironmentContext, useEnvironmentContext } from './environment/index.js';
|
|
2
|
-
export { LocaleProvider, LocaleProviderProps, UseCollatorProps, UseFilterProps, UseFilterReturn, UseLocaleContext, useCollator, useFilter, useLocaleContext } from './locale/index.js';
|
|
2
|
+
export { LocaleProvider, LocaleProviderProps, UseCollatorProps, UseDateFormatterProps, UseDateFormatterReturn, UseFilterProps, UseFilterReturn, UseLocaleContext, useCollator, useDateFormatter, useFilter, useLocaleContext } from './locale/index.js';
|
|
3
3
|
import 'solid-js';
|
|
4
|
+
import '@internationalized/date';
|
|
5
|
+
import '../types-Sr_80hg9.js';
|
|
4
6
|
import '@zag-js/i18n-utils';
|
package/dist/providers/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { LocaleProvider, useCollator, useDateFormatter, useFilter, useLocaleContext } from '../chunk/EM5SH6A3.js';
|
|
2
|
+
export { EnvironmentProvider, useEnvironmentContext } from '../chunk/3P5T77QU.js';
|
package/dist/providers/index.jsx
CHANGED
|
@@ -2,20 +2,23 @@ import "../chunk/ODQYYKL5.jsx";
|
|
|
2
2
|
import {
|
|
3
3
|
EnvironmentProvider,
|
|
4
4
|
useEnvironmentContext
|
|
5
|
-
} from "../chunk/
|
|
5
|
+
} from "../chunk/HDGILMRT.jsx";
|
|
6
6
|
import {
|
|
7
7
|
LocaleProvider,
|
|
8
8
|
useCollator,
|
|
9
|
+
useDateFormatter,
|
|
9
10
|
useFilter,
|
|
10
11
|
useLocaleContext
|
|
11
|
-
} from "../chunk/
|
|
12
|
+
} from "../chunk/HOPBYFHD.jsx";
|
|
12
13
|
import "../chunk/KGOB2IMX.jsx";
|
|
14
|
+
import "../chunk/UFYZ7HLU.jsx";
|
|
13
15
|
import "../chunk/UZJJWJQM.jsx";
|
|
14
16
|
import "../chunk/7IUG3E2V.jsx";
|
|
15
17
|
export {
|
|
16
18
|
EnvironmentProvider,
|
|
17
19
|
LocaleProvider,
|
|
18
20
|
useCollator,
|
|
21
|
+
useDateFormatter,
|
|
19
22
|
useEnvironmentContext,
|
|
20
23
|
useFilter,
|
|
21
24
|
useLocaleContext
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { ParentProps, Accessor } from 'solid-js';
|
|
3
|
+
import { DateFormatter } from '@internationalized/date';
|
|
4
|
+
import { M as MaybeAccessor } from '../../types-Sr_80hg9.js';
|
|
3
5
|
import { FilterOptions, FilterReturn, Locale } from '@zag-js/i18n-utils';
|
|
4
6
|
|
|
5
7
|
interface LocaleProviderProps extends ParentProps {
|
|
@@ -18,6 +20,13 @@ interface UseCollatorReturn extends Accessor<Intl.Collator> {
|
|
|
18
20
|
}
|
|
19
21
|
declare function useCollator(props?: UseCollatorProps): UseCollatorReturn;
|
|
20
22
|
|
|
23
|
+
interface UseDateFormatterProps extends Intl.DateTimeFormatOptions {
|
|
24
|
+
locale?: string;
|
|
25
|
+
}
|
|
26
|
+
interface UseDateFormatterReturn extends Accessor<DateFormatter> {
|
|
27
|
+
}
|
|
28
|
+
declare function useDateFormatter(props?: MaybeAccessor<UseDateFormatterProps>): UseDateFormatterReturn;
|
|
29
|
+
|
|
21
30
|
interface UseFilterProps extends FilterOptions {
|
|
22
31
|
}
|
|
23
32
|
declare function useFilter(props: UseFilterProps): UseFilterReturn;
|
|
@@ -28,4 +37,4 @@ interface UseLocaleContext extends Accessor<Locale> {
|
|
|
28
37
|
}
|
|
29
38
|
declare const useLocaleContext: () => UseLocaleContext;
|
|
30
39
|
|
|
31
|
-
export { LocaleProvider, type LocaleProviderProps, type UseCollatorProps, type UseFilterProps, type UseFilterReturn, type UseLocaleContext, useCollator, useFilter, useLocaleContext };
|
|
40
|
+
export { LocaleProvider, type LocaleProviderProps, type UseCollatorProps, type UseDateFormatterProps, type UseDateFormatterReturn, type UseFilterProps, type UseFilterReturn, type UseLocaleContext, useCollator, useDateFormatter, useFilter, useLocaleContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LocaleProvider, useCollator, useFilter, useLocaleContext } from '../../chunk/
|
|
1
|
+
export { LocaleProvider, useCollator, useDateFormatter, useFilter, useLocaleContext } from '../../chunk/EM5SH6A3.js';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocaleProvider,
|
|
3
3
|
useCollator,
|
|
4
|
+
useDateFormatter,
|
|
4
5
|
useFilter,
|
|
5
6
|
useLocaleContext
|
|
6
|
-
} from "../../chunk/
|
|
7
|
+
} from "../../chunk/HOPBYFHD.jsx";
|
|
8
|
+
import "../../chunk/KGOB2IMX.jsx";
|
|
7
9
|
import "../../chunk/UZJJWJQM.jsx";
|
|
8
10
|
import "../../chunk/7IUG3E2V.jsx";
|
|
9
11
|
export {
|
|
10
12
|
LocaleProvider,
|
|
11
13
|
useCollator,
|
|
14
|
+
useDateFormatter,
|
|
12
15
|
useFilter,
|
|
13
16
|
useLocaleContext
|
|
14
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
|
|
3
|
-
declare const tourAnatomy: _zag_js_anatomy.AnatomyInstance<"title" | "content" | "control" | "backdrop" | "
|
|
3
|
+
declare const tourAnatomy: _zag_js_anatomy.AnatomyInstance<"title" | "content" | "control" | "backdrop" | "positioner" | "closeTrigger" | "progressText" | "description" | "arrow" | "actionTrigger" | "arrowTip" | "spotlight">;
|
|
4
4
|
|
|
5
5
|
export { tourAnatomy as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.32.0",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -113,106 +113,108 @@
|
|
|
113
113
|
},
|
|
114
114
|
"sideEffects": false,
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@internationalized/date": "3.
|
|
117
|
-
"@zag-js/accordion": "1.
|
|
118
|
-
"@zag-js/anatomy": "1.
|
|
119
|
-
"@zag-js/angle-slider": "1.
|
|
120
|
-
"@zag-js/async-list": "1.
|
|
121
|
-
"@zag-js/auto-resize": "1.
|
|
122
|
-
"@zag-js/avatar": "1.
|
|
123
|
-
"@zag-js/
|
|
124
|
-
"@zag-js/
|
|
125
|
-
"@zag-js/checkbox": "1.
|
|
126
|
-
"@zag-js/clipboard": "1.
|
|
127
|
-
"@zag-js/collapsible": "1.
|
|
128
|
-
"@zag-js/collection": "1.
|
|
129
|
-
"@zag-js/color-picker": "1.
|
|
130
|
-
"@zag-js/color-utils": "1.
|
|
131
|
-
"@zag-js/combobox": "1.
|
|
132
|
-
"@zag-js/core": "1.
|
|
133
|
-
"@zag-js/date-picker": "1.
|
|
134
|
-
"@zag-js/date-utils": "1.
|
|
135
|
-
"@zag-js/dialog": "1.
|
|
136
|
-
"@zag-js/dom-query": "1.
|
|
137
|
-
"@zag-js/
|
|
138
|
-
"@zag-js/
|
|
139
|
-
"@zag-js/file-
|
|
140
|
-
"@zag-js/
|
|
141
|
-
"@zag-js/
|
|
142
|
-
"@zag-js/
|
|
143
|
-
"@zag-js/
|
|
144
|
-
"@zag-js/
|
|
145
|
-
"@zag-js/i18n-utils": "1.
|
|
146
|
-
"@zag-js/
|
|
147
|
-
"@zag-js/
|
|
148
|
-
"@zag-js/
|
|
149
|
-
"@zag-js/
|
|
150
|
-
"@zag-js/
|
|
151
|
-
"@zag-js/
|
|
152
|
-
"@zag-js/
|
|
153
|
-
"@zag-js/
|
|
154
|
-
"@zag-js/
|
|
155
|
-
"@zag-js/
|
|
156
|
-
"@zag-js/
|
|
157
|
-
"@zag-js/
|
|
158
|
-
"@zag-js/
|
|
159
|
-
"@zag-js/
|
|
160
|
-
"@zag-js/
|
|
161
|
-
"@zag-js/
|
|
162
|
-
"@zag-js/
|
|
163
|
-
"@zag-js/
|
|
164
|
-
"@zag-js/
|
|
165
|
-
"@zag-js/
|
|
166
|
-
"@zag-js/
|
|
167
|
-
"@zag-js/
|
|
168
|
-
"@zag-js/
|
|
169
|
-
"@zag-js/
|
|
170
|
-
"@zag-js/
|
|
171
|
-
"@zag-js/
|
|
172
|
-
"@zag-js/
|
|
173
|
-
"@zag-js/
|
|
174
|
-
"@zag-js/toggle
|
|
175
|
-
"@zag-js/
|
|
176
|
-
"@zag-js/
|
|
177
|
-
"@zag-js/
|
|
178
|
-
"@zag-js/
|
|
179
|
-
"@zag-js/
|
|
116
|
+
"@internationalized/date": "3.11.0",
|
|
117
|
+
"@zag-js/accordion": "1.34.1",
|
|
118
|
+
"@zag-js/anatomy": "1.34.1",
|
|
119
|
+
"@zag-js/angle-slider": "1.34.1",
|
|
120
|
+
"@zag-js/async-list": "1.34.1",
|
|
121
|
+
"@zag-js/auto-resize": "1.34.1",
|
|
122
|
+
"@zag-js/avatar": "1.34.1",
|
|
123
|
+
"@zag-js/carousel": "1.34.1",
|
|
124
|
+
"@zag-js/cascade-select": "1.34.1",
|
|
125
|
+
"@zag-js/checkbox": "1.34.1",
|
|
126
|
+
"@zag-js/clipboard": "1.34.1",
|
|
127
|
+
"@zag-js/collapsible": "1.34.1",
|
|
128
|
+
"@zag-js/collection": "1.34.1",
|
|
129
|
+
"@zag-js/color-picker": "1.34.1",
|
|
130
|
+
"@zag-js/color-utils": "1.34.1",
|
|
131
|
+
"@zag-js/combobox": "1.34.1",
|
|
132
|
+
"@zag-js/core": "1.34.1",
|
|
133
|
+
"@zag-js/date-picker": "1.34.1",
|
|
134
|
+
"@zag-js/date-utils": "1.34.1",
|
|
135
|
+
"@zag-js/dialog": "1.34.1",
|
|
136
|
+
"@zag-js/dom-query": "1.34.1",
|
|
137
|
+
"@zag-js/drawer": "1.34.1",
|
|
138
|
+
"@zag-js/editable": "1.34.1",
|
|
139
|
+
"@zag-js/file-upload": "1.34.1",
|
|
140
|
+
"@zag-js/file-utils": "1.34.1",
|
|
141
|
+
"@zag-js/floating-panel": "1.34.1",
|
|
142
|
+
"@zag-js/focus-trap": "1.34.1",
|
|
143
|
+
"@zag-js/highlight-word": "1.34.1",
|
|
144
|
+
"@zag-js/hover-card": "1.34.1",
|
|
145
|
+
"@zag-js/i18n-utils": "1.34.1",
|
|
146
|
+
"@zag-js/image-cropper": "1.34.1",
|
|
147
|
+
"@zag-js/json-tree-utils": "1.34.1",
|
|
148
|
+
"@zag-js/listbox": "1.34.1",
|
|
149
|
+
"@zag-js/marquee": "1.34.1",
|
|
150
|
+
"@zag-js/menu": "1.34.1",
|
|
151
|
+
"@zag-js/navigation-menu": "1.34.1",
|
|
152
|
+
"@zag-js/number-input": "1.34.1",
|
|
153
|
+
"@zag-js/pagination": "1.34.1",
|
|
154
|
+
"@zag-js/password-input": "1.34.1",
|
|
155
|
+
"@zag-js/pin-input": "1.34.1",
|
|
156
|
+
"@zag-js/popover": "1.34.1",
|
|
157
|
+
"@zag-js/presence": "1.34.1",
|
|
158
|
+
"@zag-js/progress": "1.34.1",
|
|
159
|
+
"@zag-js/qr-code": "1.34.1",
|
|
160
|
+
"@zag-js/radio-group": "1.34.1",
|
|
161
|
+
"@zag-js/rating-group": "1.34.1",
|
|
162
|
+
"@zag-js/scroll-area": "1.34.1",
|
|
163
|
+
"@zag-js/select": "1.34.1",
|
|
164
|
+
"@zag-js/signature-pad": "1.34.1",
|
|
165
|
+
"@zag-js/slider": "1.34.1",
|
|
166
|
+
"@zag-js/solid": "1.34.1",
|
|
167
|
+
"@zag-js/splitter": "1.34.1",
|
|
168
|
+
"@zag-js/steps": "1.34.1",
|
|
169
|
+
"@zag-js/switch": "1.34.1",
|
|
170
|
+
"@zag-js/tabs": "1.34.1",
|
|
171
|
+
"@zag-js/tags-input": "1.34.1",
|
|
172
|
+
"@zag-js/timer": "1.34.1",
|
|
173
|
+
"@zag-js/toast": "1.34.1",
|
|
174
|
+
"@zag-js/toggle": "1.34.1",
|
|
175
|
+
"@zag-js/toggle-group": "1.34.1",
|
|
176
|
+
"@zag-js/tooltip": "1.34.1",
|
|
177
|
+
"@zag-js/tour": "1.34.1",
|
|
178
|
+
"@zag-js/tree-view": "1.34.1",
|
|
179
|
+
"@zag-js/types": "1.34.1",
|
|
180
|
+
"@zag-js/utils": "1.34.1"
|
|
180
181
|
},
|
|
181
182
|
"devDependencies": {
|
|
182
|
-
"
|
|
183
|
-
"@biomejs/biome": "2.3.8",
|
|
183
|
+
"@biomejs/biome": "2.4.4",
|
|
184
184
|
"@modular-forms/solid": "0.25.1",
|
|
185
185
|
"@solidjs/testing-library": "0.8.10",
|
|
186
|
-
"@storybook/addon-a11y": "
|
|
187
|
-
"@storybook/addon-links": "
|
|
188
|
-
"@storybook/addon-vitest": "
|
|
186
|
+
"@storybook/addon-a11y": "10.2.10",
|
|
187
|
+
"@storybook/addon-links": "10.2.10",
|
|
188
|
+
"@storybook/addon-vitest": "10.2.10",
|
|
189
|
+
"@tanstack/solid-virtual": "3.13.18",
|
|
189
190
|
"@testing-library/dom": "10.4.1",
|
|
190
191
|
"@testing-library/jest-dom": "6.9.1",
|
|
191
192
|
"@testing-library/user-event": "14.6.1",
|
|
192
193
|
"@types/jsdom": "21.1.7",
|
|
194
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
195
|
+
"check-password-strength": "3.0.0",
|
|
193
196
|
"clean-package": "2.2.0",
|
|
194
|
-
"image-conversion": "2.1.1",
|
|
195
197
|
"esbuild-plugin-solid": "0.6.0",
|
|
196
|
-
"globby": "
|
|
198
|
+
"globby": "16.1.1",
|
|
199
|
+
"image-conversion": "2.1.1",
|
|
197
200
|
"jsdom": "26.1.0",
|
|
198
|
-
"lucide-solid": "0.
|
|
201
|
+
"lucide-solid": "0.575.0",
|
|
199
202
|
"resize-observer-polyfill": "1.5.1",
|
|
200
|
-
"solid-js": "1.9.
|
|
201
|
-
"storybook": "
|
|
202
|
-
"storybook-solidjs-vite": "
|
|
203
|
+
"solid-js": "1.9.11",
|
|
204
|
+
"storybook": "10.2.10",
|
|
205
|
+
"storybook-solidjs-vite": "10.0.9",
|
|
203
206
|
"tsup": "8.5.1",
|
|
204
207
|
"typescript": "5.9.3",
|
|
205
|
-
"vite": "7.
|
|
208
|
+
"vite": "7.3.0",
|
|
206
209
|
"vite-plugin-solid": "2.11.10",
|
|
207
210
|
"vitest": "^4.0.0",
|
|
208
|
-
"@vitest/coverage-v8": "^4.0.0",
|
|
209
211
|
"vitest-axe": "1.0.0-pre.5"
|
|
210
212
|
},
|
|
211
213
|
"peerDependencies": {
|
|
212
214
|
"solid-js": ">=1.6.0"
|
|
213
215
|
},
|
|
214
216
|
"overrides": {
|
|
215
|
-
"solid-js": "1.9.
|
|
217
|
+
"solid-js": "1.9.11"
|
|
216
218
|
},
|
|
217
219
|
"main": "dist/index.js",
|
|
218
220
|
"module": "dist/index.js",
|
package/dist/chunk/2R6SK2X3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { anatomy } from '@zag-js/bottom-sheet';
|
package/dist/chunk/M3S2UEA7.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './FW6EZLZL.js';
|
|
2
|
-
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
-
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
4
|
-
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { ark } from './EPLBB4QN.js';
|
|
6
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
7
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
8
|
-
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
-
import { createContext } from './THN5C4U6.js';
|
|
10
|
-
import { __export } from './ESLJRKWD.js';
|
|
11
|
-
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
12
|
-
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
13
|
-
import { Show, createUniqueId, createMemo } from 'solid-js';
|
|
14
|
-
import * as bottomSheet from '@zag-js/bottom-sheet';
|
|
15
|
-
|
|
16
|
-
// src/components/bottom-sheet/use-bottom-sheet-context.ts
|
|
17
|
-
var [BottomSheetProvider, useBottomSheetContext] = createContext({
|
|
18
|
-
hookName: "useBottomSheetContext",
|
|
19
|
-
providerName: "<BottomSheetProvider />"
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// src/components/bottom-sheet/bottom-sheet-backdrop.tsx
|
|
23
|
-
var BottomSheetBackdrop = (props) => {
|
|
24
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
25
|
-
const renderStrategyProps = useRenderStrategyContext();
|
|
26
|
-
const presence = usePresence(mergeProps(renderStrategyProps, () => ({
|
|
27
|
-
present: bottomSheet2().open
|
|
28
|
-
})));
|
|
29
|
-
const mergedProps = mergeProps(() => bottomSheet2().getBackdropProps(), () => presence().presenceProps, props);
|
|
30
|
-
return createComponent(Show, {
|
|
31
|
-
get when() {
|
|
32
|
-
return !presence().unmounted;
|
|
33
|
-
},
|
|
34
|
-
get children() {
|
|
35
|
-
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
36
|
-
ref(r$) {
|
|
37
|
-
var _ref$ = composeRefs(presence().ref, props.ref);
|
|
38
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
var BottomSheetCloseTrigger = (props) => {
|
|
45
|
-
const context = useBottomSheetContext();
|
|
46
|
-
const mergedProps = mergeProps(() => context().getCloseTriggerProps(), props);
|
|
47
|
-
return createComponent(ark.button, mergedProps);
|
|
48
|
-
};
|
|
49
|
-
var BottomSheetContent = (props) => {
|
|
50
|
-
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
51
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
52
|
-
const presence = usePresenceContext();
|
|
53
|
-
const mergedProps = mergeProps(() => bottomSheet2().getContentProps({
|
|
54
|
-
draggable: true,
|
|
55
|
-
...contentProps
|
|
56
|
-
}), () => presence().presenceProps, localProps);
|
|
57
|
-
return createComponent(Show, {
|
|
58
|
-
get when() {
|
|
59
|
-
return !presence().unmounted;
|
|
60
|
-
},
|
|
61
|
-
get children() {
|
|
62
|
-
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
63
|
-
ref(r$) {
|
|
64
|
-
var _ref$ = composeRefs(presence().ref, localProps.ref);
|
|
65
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
66
|
-
}
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// src/components/bottom-sheet/bottom-sheet-context.tsx
|
|
73
|
-
var BottomSheetContext = (props) => props.children(useBottomSheetContext());
|
|
74
|
-
var BottomSheetGrabber = (props) => {
|
|
75
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
76
|
-
const mergedProps = mergeProps(() => bottomSheet2().getGrabberProps(), props);
|
|
77
|
-
return createComponent(ark.div, mergedProps);
|
|
78
|
-
};
|
|
79
|
-
var BottomSheetGrabberIndicator = (props) => {
|
|
80
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
81
|
-
const mergedProps = mergeProps(() => bottomSheet2().getGrabberIndicatorProps(), props);
|
|
82
|
-
return createComponent(ark.div, mergedProps);
|
|
83
|
-
};
|
|
84
|
-
var useBottomSheet = (props) => {
|
|
85
|
-
const locale = useLocaleContext();
|
|
86
|
-
const environment = useEnvironmentContext();
|
|
87
|
-
const id = createUniqueId();
|
|
88
|
-
const machineProps = createMemo(() => ({
|
|
89
|
-
id,
|
|
90
|
-
dir: locale().dir,
|
|
91
|
-
getRootNode: environment().getRootNode,
|
|
92
|
-
...runIfFn(props)
|
|
93
|
-
}));
|
|
94
|
-
const service = useMachine(bottomSheet.machine, machineProps);
|
|
95
|
-
return createMemo(() => bottomSheet.connect(service, normalizeProps));
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// src/components/bottom-sheet/bottom-sheet-root.tsx
|
|
99
|
-
var BottomSheetRoot = (props) => {
|
|
100
|
-
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
101
|
-
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
102
|
-
const [useBottomSheetProps, localProps] = createSplitProps()(bottomSheetProps, ["id", "ids", "open", "defaultOpen", "onOpenChange", "closeOnInteractOutside", "closeOnEscape", "snapPoints", "swipeVelocityThreshold", "closeThreshold", "preventDragOnScroll", "activeSnapPoint", "defaultActiveSnapPoint", "onActiveSnapPointChange", "modal", "trapFocus", "restoreFocus", "preventScroll", "initialFocusEl", "finalFocusEl", "role", "onInteractOutside", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onRequestDismiss"]);
|
|
103
|
-
const bottomSheet2 = useBottomSheet(useBottomSheetProps);
|
|
104
|
-
const presence = usePresence(mergeProps(presenceProps, () => ({
|
|
105
|
-
present: bottomSheet2().open
|
|
106
|
-
})));
|
|
107
|
-
return createComponent(BottomSheetProvider, {
|
|
108
|
-
value: bottomSheet2,
|
|
109
|
-
get children() {
|
|
110
|
-
return createComponent(RenderStrategyProvider, {
|
|
111
|
-
value: renderStrategyProps,
|
|
112
|
-
get children() {
|
|
113
|
-
return createComponent(PresenceProvider, {
|
|
114
|
-
value: presence,
|
|
115
|
-
get children() {
|
|
116
|
-
return localProps.children;
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
var BottomSheetRootProvider = (props) => {
|
|
125
|
-
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
126
|
-
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
127
|
-
const presence = usePresence(mergeProps(() => ({
|
|
128
|
-
present: bottomSheetProps.value().open
|
|
129
|
-
}), presenceProps));
|
|
130
|
-
return createComponent(BottomSheetProvider, {
|
|
131
|
-
get value() {
|
|
132
|
-
return bottomSheetProps.value;
|
|
133
|
-
},
|
|
134
|
-
get children() {
|
|
135
|
-
return createComponent(RenderStrategyProvider, {
|
|
136
|
-
value: renderStrategyProps,
|
|
137
|
-
get children() {
|
|
138
|
-
return createComponent(PresenceProvider, {
|
|
139
|
-
value: presence,
|
|
140
|
-
get children() {
|
|
141
|
-
return bottomSheetProps.children;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
var BottomSheetTitle = (props) => {
|
|
150
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
151
|
-
const mergedProps = mergeProps(() => bottomSheet2().getTitleProps(), props);
|
|
152
|
-
return createComponent(ark.h2, mergedProps);
|
|
153
|
-
};
|
|
154
|
-
var BottomSheetTrigger = (props) => {
|
|
155
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
156
|
-
const presence = usePresenceContext();
|
|
157
|
-
const mergedProps = mergeProps(() => bottomSheet2().getTriggerProps(), () => ({
|
|
158
|
-
"aria-controls": presence().unmounted && null
|
|
159
|
-
}), props);
|
|
160
|
-
return createComponent(ark.button, mergedProps);
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// src/components/bottom-sheet/bottom-sheet.ts
|
|
164
|
-
var bottom_sheet_exports = {};
|
|
165
|
-
__export(bottom_sheet_exports, {
|
|
166
|
-
Backdrop: () => BottomSheetBackdrop,
|
|
167
|
-
CloseTrigger: () => BottomSheetCloseTrigger,
|
|
168
|
-
Content: () => BottomSheetContent,
|
|
169
|
-
Context: () => BottomSheetContext,
|
|
170
|
-
Grabber: () => BottomSheetGrabber,
|
|
171
|
-
GrabberIndicator: () => BottomSheetGrabberIndicator,
|
|
172
|
-
Root: () => BottomSheetRoot,
|
|
173
|
-
RootProvider: () => BottomSheetRootProvider,
|
|
174
|
-
Title: () => BottomSheetTitle,
|
|
175
|
-
Trigger: () => BottomSheetTrigger
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
export { BottomSheetBackdrop, BottomSheetCloseTrigger, BottomSheetContent, BottomSheetContext, BottomSheetGrabber, BottomSheetGrabberIndicator, BottomSheetRoot, BottomSheetRootProvider, BottomSheetTitle, BottomSheetTrigger, bottom_sheet_exports, useBottomSheet, useBottomSheetContext };
|