@ark-ui/solid 5.30.0 → 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/{Z5L7ULFZ.js → 2SGHC324.js} +2 -2
- package/dist/chunk/{KEZ2WH2A.jsx → 2TPQPUX6.jsx} +6 -6
- package/dist/chunk/{Z5ZRFFPU.js → 37BRFTCN.js} +2 -2
- package/dist/chunk/{S7F5ETXJ.js → 3JI3LEL3.js} +3 -3
- package/dist/chunk/{5QLLQM7E.js → 3P5T77QU.js} +6 -5
- package/dist/chunk/{HWHAUHQ5.jsx → 4GELDCEE.jsx} +7 -7
- package/dist/chunk/{3BRVNFB3.js → 4GOETTVP.js} +29 -32
- package/dist/chunk/{W7YDKZGP.js → 4UQ4BNTC.js} +3 -3
- package/dist/chunk/{M3S2UEA7.js → 52P3DPTR.js} +3 -3
- package/dist/chunk/{SH4J3NPA.jsx → 5LDIC54T.jsx} +6 -6
- package/dist/chunk/{WUBTAV2O.js → 5LGVYTH5.js} +4 -4
- package/dist/chunk/{XXP27BHC.jsx → 5O3D32XK.jsx} +8 -8
- package/dist/chunk/{K32NALIW.js → 5QVNY35H.js} +2 -2
- package/dist/chunk/{76KFR2EJ.jsx → 5SEYLBQQ.jsx} +7 -7
- package/dist/chunk/{372PVMNT.js → 5WXM756C.js} +3 -3
- package/dist/chunk/{UHWLTCQZ.jsx → 65QK7XXR.jsx} +6 -3
- package/dist/chunk/{J5ODILBT.jsx → 6N44QPMY.jsx} +13 -13
- package/dist/chunk/{XH4Y4U2G.jsx → 76UE3KN4.jsx} +8 -8
- package/dist/chunk/{B434DN6B.js → 7LBRKLXW.js} +2 -2
- package/dist/chunk/{G2THT6E6.js → 7LG5FPBU.js} +19 -15
- package/dist/chunk/{NZQO4OJP.jsx → A7ULUG37.jsx} +17 -14
- package/dist/chunk/{RSWPJEWK.js → AFGSUR6R.js} +3 -3
- package/dist/chunk/{XNAQLSZW.jsx → AOAGDS53.jsx} +3 -3
- package/dist/chunk/{HCQSZULR.js → BHJYCERG.js} +4 -4
- package/dist/chunk/{HI7OENS5.js → BV6RNXMH.js} +27 -5
- package/dist/chunk/{7HLG62OR.jsx → C56T2HRV.jsx} +7 -7
- package/dist/chunk/{FDE3GI6Q.js → CCBSY5FU.js} +4 -4
- package/dist/chunk/{LQGHLGPW.jsx → CG273YBB.jsx} +4 -4
- package/dist/chunk/{7B5HD3HF.js → CKMDA3R6.js} +2 -2
- package/dist/chunk/{RRFWSRAD.jsx → CMGVBYH6.jsx} +47 -12
- package/dist/chunk/{W33NQFXF.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/{BX734ZD7.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/{P2OA7NSB.js → EOQC4OFF.js} +2 -2
- package/dist/chunk/{6UXNGS66.jsx → EQKTJ63X.jsx} +1 -1
- package/dist/chunk/{NPSTVZUG.jsx → EV7COIUN.jsx} +8 -7
- package/dist/chunk/{JNBFQ7ZP.jsx → FQY342YD.jsx} +13 -13
- package/dist/chunk/{B7OY6YTK.js → G2UMJWTM.js} +2 -2
- package/dist/chunk/{IGSOSLB3.jsx → GOJHNXPD.jsx} +7 -7
- package/dist/chunk/{O5M2FPMH.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/{OVPRCDDL.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/{ZYFWVVTC.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/{52VYWTHF.js → LYCTCPBV.js} +4 -4
- package/dist/chunk/{GCQCOMQH.js → MDSG7I6V.js} +2 -2
- package/dist/chunk/{SZNFUIJQ.jsx → MMBOU3ZC.jsx} +7 -7
- package/dist/chunk/{F7OI3RZ3.js → NHSNBGCC.js} +46 -19
- package/dist/chunk/{UMVZZL45.js → NMYA3JZ5.js} +1 -1
- package/dist/chunk/{LNZGGTI5.js → NT6ZYH25.js} +3 -3
- package/dist/chunk/{K3TLO6S6.js → NYBDSWDH.js} +2 -2
- package/dist/chunk/{UDBRICA6.js → O6CMUPUG.js} +2 -2
- package/dist/chunk/{DBNXBHAT.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/{WT5KEZUJ.js → Q67V4SSK.js} +8 -12
- package/dist/chunk/{TP32AKQX.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/{GBGTOFYC.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/{UTULIPW7.js → SLOK7RQU.js} +3 -3
- package/dist/chunk/{2MDYHAEL.js → SU6SNXFK.js} +7 -6
- package/dist/chunk/{4A6UNZ4T.jsx → T4C4OLH5.jsx} +8 -8
- package/dist/chunk/{AH5KB6LR.js → TAEJBOHF.js} +3 -3
- package/dist/chunk/{NHEM6XZR.jsx → TEKM4RER.jsx} +6 -6
- package/dist/chunk/{SYNEPEHD.js → TJ7E237D.js} +2 -2
- package/dist/chunk/{GCEYGQPA.jsx → TQCLH765.jsx} +13 -13
- package/dist/chunk/{5RT2MFUK.jsx → TYHUUGLH.jsx} +3 -3
- package/dist/chunk/{ORJXW4SC.jsx → TZA2XQYK.jsx} +38 -18
- package/dist/chunk/{OF7DNWIQ.jsx → UGCFDJSO.jsx} +6 -6
- package/dist/chunk/{HVXJLFJY.jsx → UGSFGPFW.jsx} +7 -7
- package/dist/chunk/{AQ27SOWE.jsx → V6TUJPSE.jsx} +6 -6
- package/dist/chunk/{2BFJIRAK.js → VPKUVVDM.js} +3 -3
- package/dist/chunk/{YENHTIT6.js → VQAY7ALM.js} +3 -3
- package/dist/chunk/{TWZUCWKG.js → VUOC2LCL.js} +2 -2
- package/dist/chunk/{UXUJ2LD6.js → VUSRNP23.js} +3 -3
- package/dist/chunk/{QGXWXVZ5.js → VVSGL3B5.js} +3 -3
- package/dist/chunk/{Z4EBWHQF.js → WJ3SED2J.js} +3 -3
- package/dist/chunk/{VH6MDPEX.jsx → WMMVKZHK.jsx} +7 -7
- package/dist/chunk/{QARPXWDS.js → WYVADPK7.js} +2 -2
- package/dist/chunk/{JRY66LXS.jsx → XMIVUAEB.jsx} +7 -7
- package/dist/chunk/{HYQNCIWP.js → XTL34GZH.js} +2 -2
- package/dist/chunk/{6HVSV6OM.js → YA3LD5QR.js} +1 -1
- package/dist/chunk/{JLPPHEZV.js → YJZT56R5.js} +2 -2
- package/dist/chunk/{VDRVAOKQ.js → YQOHTJFL.js} +3 -3
- package/dist/chunk/{2JSSDQEE.jsx → YRAJJHEJ.jsx} +7 -7
- package/dist/chunk/{HNIBOZUS.jsx → YTEBGEQ4.jsx} +39 -11
- package/dist/chunk/{2V2P2JZV.js → Z326BLVT.js} +5 -5
- package/dist/chunk/{VIKFXGE5.jsx → ZOKZFKHJ.jsx} +7 -7
- package/dist/chunk/{3ZDGZCBV.jsx → ZQJU3MNB.jsx} +11 -11
- 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 +7 -7
- package/dist/components/anatomy.d.ts +7 -7
- package/dist/components/anatomy.js +18 -18
- package/dist/components/anatomy.jsx +52 -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 +6 -6
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +8 -8
- 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 +6 -6
- 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 +10 -10
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +10 -10
- 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 +8 -8
- 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 +8 -8
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +7 -7
- package/dist/components/fieldset/index.d.ts +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +6 -6
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +8 -8
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +8 -8
- 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 +8 -8
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +5 -5
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +71 -71
- package/dist/components/index.jsx +434 -424
- 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 +8 -8
- package/dist/components/navigation-menu/index.d.ts +1 -1
- package/dist/components/navigation-menu/index.js +24 -19
- package/dist/components/navigation-menu/index.jsx +27 -16
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +8 -8
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +5 -5
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +8 -8
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +8 -8
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +8 -8
- 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 +7 -7
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +8 -8
- 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 +10 -10
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +8 -8
- 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 +8 -8
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +8 -8
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +8 -8
- 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 +8 -8
- package/dist/components/tour/index.d.ts +9 -3
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +18 -10
- 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 +10 -10
- package/dist/index.js +73 -73
- package/dist/index.jsx +439 -429
- 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 +75 -74
- 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 { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
5
3
|
import { useLocaleContext } from './RVOPDSQY.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 { parts } from './JHQYEBNS.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
5
3
|
import { useLocaleContext } from './RVOPDSQY.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,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
4
2
|
import { useLocaleContext } from './RVOPDSQY.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';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
4
2
|
import { useLocaleContext } from './RVOPDSQY.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';
|
|
@@ -84,7 +84,7 @@ var useSlider = (props) => {
|
|
|
84
84
|
|
|
85
85
|
// src/components/slider/slider-root.tsx
|
|
86
86
|
var SliderRoot = (props) => {
|
|
87
|
-
const [useSliderProps, localProps] = createSplitProps()(props, ["aria-label", "aria-labelledby", "defaultValue", "disabled", "form", "getAriaValueText", "id", "ids", "invalid", "max", "min", "minStepsBetweenThumbs", "name", "onFocusChange", "onValueChange", "onValueChangeEnd", "orientation", "origin", "readOnly", "step", "thumbAlignment", "
|
|
87
|
+
const [useSliderProps, localProps] = createSplitProps()(props, ["aria-label", "aria-labelledby", "defaultValue", "disabled", "form", "getAriaValueText", "id", "ids", "invalid", "max", "min", "minStepsBetweenThumbs", "name", "onFocusChange", "onValueChange", "onValueChangeEnd", "orientation", "origin", "readOnly", "step", "thumbAlignment", "thumbCollisionBehavior", "thumbSize", "value"]);
|
|
88
88
|
const api = useSlider(useSliderProps);
|
|
89
89
|
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
90
90
|
return createComponent(SliderProvider, {
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
runIfFn
|
|
6
6
|
} from "./KGOB2IMX.jsx";
|
|
7
|
+
import {
|
|
8
|
+
ark
|
|
9
|
+
} from "./UFYZ7HLU.jsx";
|
|
7
10
|
|
|
8
11
|
// src/components/highlight/highlight.tsx
|
|
9
12
|
import { For, Show } from "solid-js";
|
|
@@ -30,7 +33,7 @@ var Highlight = (props) => {
|
|
|
30
33
|
const chunks = useHighlight(highlightProps);
|
|
31
34
|
return <For each={chunks()}>
|
|
32
35
|
{(chunk) => <Show when={chunk.match} fallback={chunk.text}>
|
|
33
|
-
<mark {...localProps}>{chunk.text}</mark>
|
|
36
|
+
<ark.mark {...localProps}>{chunk.text}</ark.mark>
|
|
34
37
|
</Show>}
|
|
35
38
|
</For>;
|
|
36
39
|
};
|
|
@@ -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";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./VTTFCXVC.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./HDGILMRT.jsx";
|
|
13
|
+
import {
|
|
14
|
+
runIfFn
|
|
15
|
+
} from "./KGOB2IMX.jsx";
|
|
10
16
|
import {
|
|
11
17
|
ark
|
|
12
18
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useEnvironmentContext
|
|
15
|
-
} from "./CGW54HAQ.jsx";
|
|
16
19
|
import {
|
|
17
20
|
useLocaleContext
|
|
18
21
|
} from "./JFOWNFC7.jsx";
|
|
19
|
-
import {
|
|
20
|
-
runIfFn
|
|
21
|
-
} from "./KGOB2IMX.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ark } from './EPLBB4QN.js';
|
|
2
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
3
1
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
2
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
3
|
+
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { createContext } from './THN5C4U6.js';
|
|
5
5
|
import { __export } from './ESLJRKWD.js';
|
|
6
6
|
import * as toast2 from '@zag-js/toast';
|
|
7
|
-
import { createComponent,
|
|
7
|
+
import { createComponent, mergeProps as mergeProps$1, memo } from 'solid-js/web';
|
|
8
8
|
import { mergeProps, useMachine, normalizeProps, Key } from '@zag-js/solid';
|
|
9
9
|
import { splitProps, createUniqueId, createMemo } from 'solid-js';
|
|
10
10
|
|
|
@@ -37,18 +37,14 @@ var ToastDescription = (props) => {
|
|
|
37
37
|
const mergedProps = mergeProps(() => toast3().getDescriptionProps(), props);
|
|
38
38
|
return createComponent(ark.div, mergedProps);
|
|
39
39
|
};
|
|
40
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div><div></div><div>`);
|
|
41
40
|
var ToastRoot = (props) => {
|
|
42
41
|
const toast3 = useToastContext();
|
|
43
42
|
const mergedProps = mergeProps(() => toast3().getRootProps(), props);
|
|
44
|
-
return ((
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
spread(_el$3, mergeProps$1(() => toast3().getGhostAfterProps()), false, false);
|
|
50
|
-
return _el$;
|
|
51
|
-
})();
|
|
43
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
44
|
+
get children() {
|
|
45
|
+
return [createComponent(ark.div, mergeProps$1(() => toast3().getGhostBeforeProps())), memo(() => props.children), createComponent(ark.div, mergeProps$1(() => toast3().getGhostAfterProps()))];
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
52
48
|
};
|
|
53
49
|
var ToastTitle = (props) => {
|
|
54
50
|
const toast3 = useToastContext();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
5
3
|
import { useLocaleContext } from './RVOPDSQY.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';
|
|
@@ -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
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,9 +1,9 @@
|
|
|
1
|
-
import { useFieldsetContext } from './
|
|
1
|
+
import { useFieldsetContext } from './37BRFTCN.js';
|
|
2
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
3
|
import { parts } from './DAGJUXUK.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
6
|
import { ark } from './EPLBB4QN.js';
|
|
6
|
-
import { useEnvironmentContext } from './5QLLQM7E.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';
|
|
@@ -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
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,9 +1,9 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
5
3
|
import { useLocaleContext } from './RVOPDSQY.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,6 +1,7 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { runIfFn } from './DT73WLR4.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ark } from './EPLBB4QN.js';
|
|
4
|
+
import { createComponent, mergeProps } from 'solid-js/web';
|
|
4
5
|
import { createMemo, For, Show } from 'solid-js';
|
|
5
6
|
import { highlightWord } from '@zag-js/highlight-word';
|
|
6
7
|
|
|
@@ -9,7 +10,6 @@ var useHighlight = (props) => {
|
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
// src/components/highlight/highlight.tsx
|
|
12
|
-
var _tmpl$ = /* @__PURE__ */ template(`<mark>`);
|
|
13
13
|
var Highlight = (props) => {
|
|
14
14
|
if (typeof props.text !== "string") {
|
|
15
15
|
throw new Error("[ark-ui/highlight] text must be a string");
|
|
@@ -28,10 +28,11 @@ var Highlight = (props) => {
|
|
|
28
28
|
return chunk.text;
|
|
29
29
|
},
|
|
30
30
|
get children() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
return createComponent(ark.mark, mergeProps(localProps, {
|
|
32
|
+
get children() {
|
|
33
|
+
return chunk.text;
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
35
36
|
}
|
|
36
37
|
})
|
|
37
38
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSplitProps
|
|
3
|
+
} from "./6WEDGJKQ.jsx";
|
|
1
4
|
import {
|
|
2
5
|
parts
|
|
3
6
|
} from "./D7R75XPX.jsx";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
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,10 +1,10 @@
|
|
|
1
|
-
import { collapsible_exports } from './
|
|
1
|
+
import { collapsible_exports } from './VUOC2LCL.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
6
4
|
import { useLocaleContext } from './RVOPDSQY.js';
|
|
5
|
+
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
7
6
|
import { runIfFn } from './DT73WLR4.js';
|
|
7
|
+
import { ark } from './EPLBB4QN.js';
|
|
8
8
|
import { createContext } from './THN5C4U6.js';
|
|
9
9
|
import { __export } from './ESLJRKWD.js';
|
|
10
10
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parts
|
|
3
|
-
} from "./4YNGVMW2.jsx";
|
|
4
1
|
import {
|
|
5
2
|
composeRefs
|
|
6
3
|
} from "./PT2CJE3O.jsx";
|
|
@@ -8,14 +5,17 @@ import {
|
|
|
8
5
|
createSplitProps
|
|
9
6
|
} from "./6WEDGJKQ.jsx";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
8
|
+
parts
|
|
9
|
+
} from "./4YNGVMW2.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./HDGILMRT.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './5QLLQM7E.js';
|
|
4
2
|
import { useLocaleContext } from './RVOPDSQY.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';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useFieldContext
|
|
3
|
-
} from "./7HLG62OR.jsx";
|
|
4
1
|
import {
|
|
5
2
|
PresenceProvider,
|
|
6
3
|
splitPresenceProps,
|
|
7
4
|
usePresence,
|
|
8
5
|
usePresenceContext
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./VTTFCXVC.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useFieldContext
|
|
9
|
+
} from "./C56T2HRV.jsx";
|
|
10
10
|
import {
|
|
11
11
|
composeRefs
|
|
12
12
|
} from "./PT2CJE3O.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createSplitProps
|
|
15
15
|
} from "./6WEDGJKQ.jsx";
|
|
16
|
+
import {
|
|
17
|
+
useEnvironmentContext
|
|
18
|
+
} from "./HDGILMRT.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
16
22
|
import {
|
|
17
23
|
ark
|
|
18
24
|
} from "./UFYZ7HLU.jsx";
|
|
19
|
-
import {
|
|
20
|
-
useEnvironmentContext
|
|
21
|
-
} from "./CGW54HAQ.jsx";
|
|
22
25
|
import {
|
|
23
26
|
useLocaleContext
|
|
24
27
|
} from "./JFOWNFC7.jsx";
|
|
25
|
-
import {
|
|
26
|
-
runIfFn
|
|
27
|
-
} from "./KGOB2IMX.jsx";
|
|
28
28
|
import {
|
|
29
29
|
createContext
|
|
30
30
|
} from "./UZJJWJQM.jsx";
|
|
@@ -85,15 +85,15 @@ var SelectHiddenSelect = (props) => {
|
|
|
85
85
|
const field = useFieldContext();
|
|
86
86
|
return <ark.select aria-describedby={field?.().ariaDescribedby} {...mergedProps}>
|
|
87
87
|
<Show2 when={isValueEmpty()}>
|
|
88
|
-
<option value="" />
|
|
88
|
+
<ark.option value="" />
|
|
89
89
|
</Show2>
|
|
90
90
|
<Index each={select2().collection.items}>
|
|
91
|
-
{(item) => <option
|
|
91
|
+
{(item) => <ark.option
|
|
92
92
|
value={select2().collection.getItemValue(item()) ?? ""}
|
|
93
93
|
disabled={select2().collection.getItemDisabled(item())}
|
|
94
94
|
>
|
|
95
95
|
{select2().collection.stringifyItem(item())}
|
|
96
|
-
</option>}
|
|
96
|
+
</ark.option>}
|
|
97
97
|
</Index>
|
|
98
98
|
</ark.select>;
|
|
99
99
|
};
|
|
@@ -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
|
|
|
8
8
|
// src/components/download-trigger/download-trigger.tsx
|
|
9
9
|
import { downloadFile } from "@zag-js/file-utils";
|
|
@@ -2,13 +2,16 @@ import {
|
|
|
2
2
|
tree_view_exports,
|
|
3
3
|
useTreeView,
|
|
4
4
|
useTreeViewContext
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./4GELDCEE.jsx";
|
|
6
6
|
import {
|
|
7
7
|
createTreeCollection
|
|
8
8
|
} from "./EFII6TXL.jsx";
|
|
9
9
|
import {
|
|
10
10
|
createSplitProps
|
|
11
11
|
} from "./6WEDGJKQ.jsx";
|
|
12
|
+
import {
|
|
13
|
+
ark
|
|
14
|
+
} from "./UFYZ7HLU.jsx";
|
|
12
15
|
import {
|
|
13
16
|
createContext
|
|
14
17
|
} from "./UZJJWJQM.jsx";
|
|
@@ -74,8 +77,16 @@ var JsonTreeViewRoot = (props) => {
|
|
|
74
77
|
};
|
|
75
78
|
|
|
76
79
|
// src/components/json-tree-view/json-tree-view-root-provider.tsx
|
|
80
|
+
import { createMemo as createMemo2, splitProps as splitProps2 } from "solid-js";
|
|
77
81
|
var JsonTreeViewRootProvider = (props) => {
|
|
78
|
-
|
|
82
|
+
const [localProps, restProps] = splitProps2(props, ["value"]);
|
|
83
|
+
const treeView = createMemo2(() => {
|
|
84
|
+
const { options: _, ...rest } = localProps.value();
|
|
85
|
+
return rest;
|
|
86
|
+
});
|
|
87
|
+
return <JsonTreeViewPropsProvider value={localProps.value().options}>
|
|
88
|
+
<tree_view_exports.RootProvider data-scope="json-tree-view" value={treeView} {...restProps} />
|
|
89
|
+
</JsonTreeViewPropsProvider>;
|
|
79
90
|
};
|
|
80
91
|
|
|
81
92
|
// src/components/json-tree-view/json-tree-view-tree.tsx
|
|
@@ -87,19 +98,19 @@ import {
|
|
|
87
98
|
jsonNodeToElement,
|
|
88
99
|
keyPathToKey as keyPathToKey2
|
|
89
100
|
} from "@zag-js/json-tree-utils";
|
|
90
|
-
import { createMemo as
|
|
101
|
+
import { createMemo as createMemo4 } from "solid-js";
|
|
91
102
|
import { Index, Show } from "solid-js/web";
|
|
92
103
|
|
|
93
104
|
// src/components/json-tree-view/json-tree-view-key-node.tsx
|
|
94
105
|
import { keyPathToKey } from "@zag-js/json-tree-utils";
|
|
95
|
-
import { createMemo as
|
|
106
|
+
import { createMemo as createMemo3 } from "solid-js";
|
|
96
107
|
var JsonTreeViewKeyNode = (props) => {
|
|
97
|
-
const key =
|
|
108
|
+
const key = createMemo3(() => keyPathToKey(props.node.keyPath));
|
|
98
109
|
return <>
|
|
99
|
-
<span data-kind="key" data-non-enumerable={props.node.isNonEnumerable ? "" : void 0}>
|
|
110
|
+
<ark.span data-kind="key" data-non-enumerable={props.node.isNonEnumerable ? "" : void 0}>
|
|
100
111
|
{props.showQuotes ? `"${key()}"` : key()}
|
|
101
|
-
</span>
|
|
102
|
-
<span data-kind="colon">: </span>
|
|
112
|
+
</ark.span>
|
|
113
|
+
<ark.span data-kind="colon">: </ark.span>
|
|
103
114
|
</>;
|
|
104
115
|
};
|
|
105
116
|
|
|
@@ -128,11 +139,11 @@ var scopeProps = {
|
|
|
128
139
|
};
|
|
129
140
|
function JsonTreeViewNode(props) {
|
|
130
141
|
const tree = useTreeViewContext();
|
|
131
|
-
const nodeState =
|
|
142
|
+
const nodeState = createMemo4(() => tree().getNodeState({ node: props.node, indexPath: props.indexPath }));
|
|
132
143
|
const options = useJsonTreeViewPropsContext();
|
|
133
|
-
const key =
|
|
134
|
-
const valueNode =
|
|
135
|
-
const nodeProps =
|
|
144
|
+
const key = createMemo4(() => keyPathToKey2(props.node.keyPath, { excludeRoot: true }));
|
|
145
|
+
const valueNode = createMemo4(() => jsonNodeToElement(props.node, options));
|
|
146
|
+
const nodeProps = createMemo4(() => {
|
|
136
147
|
const desc = getAccessibleDescription(props.node);
|
|
137
148
|
const line = props.indexPath.reduce((acc, curr) => acc + curr, 1);
|
|
138
149
|
const lineLength = props.indexPath.length - 1;
|
|
@@ -195,21 +206,29 @@ var JsonTreeViewTree = (props) => {
|
|
|
195
206
|
|
|
196
207
|
// src/components/json-tree-view/use-json-tree-view.ts
|
|
197
208
|
import { getRootNode as getRootNode2, nodeToString as nodeToString2, nodeToValue as nodeToValue2 } from "@zag-js/json-tree-utils";
|
|
198
|
-
import { createMemo as
|
|
209
|
+
import { createMemo as createMemo5, splitProps as splitProps3 } from "solid-js";
|
|
199
210
|
import { untrack } from "solid-js/web";
|
|
211
|
+
var splitJsonTreeViewProps2 = createSplitProps();
|
|
200
212
|
var useJsonTreeView = (props) => {
|
|
201
|
-
const [
|
|
202
|
-
|
|
213
|
+
const [jsonTreeProps, localProps] = splitJsonTreeViewProps2(props, [
|
|
214
|
+
"maxPreviewItems",
|
|
215
|
+
"collapseStringsAfterLength",
|
|
216
|
+
"quotesOnKeys",
|
|
217
|
+
"groupArraysAfterLength",
|
|
218
|
+
"showNonenumerable"
|
|
219
|
+
]);
|
|
220
|
+
const [jsonProps, restProps] = splitProps3(localProps, ["data", "defaultExpandedDepth"]);
|
|
221
|
+
const collection = createMemo5(() => {
|
|
203
222
|
return createTreeCollection({
|
|
204
223
|
nodeToValue: nodeToValue2,
|
|
205
224
|
nodeToString: nodeToString2,
|
|
206
225
|
rootNode: getRootNode2(jsonProps.data)
|
|
207
226
|
});
|
|
208
227
|
});
|
|
209
|
-
const defaultExpandedValue =
|
|
228
|
+
const defaultExpandedValue = createMemo5(() => {
|
|
210
229
|
return jsonProps.defaultExpandedDepth != null ? getBranchValues(collection(), jsonProps.defaultExpandedDepth) : void 0;
|
|
211
230
|
});
|
|
212
|
-
const machineProps =
|
|
231
|
+
const machineProps = createMemo5(() => {
|
|
213
232
|
return {
|
|
214
233
|
defaultExpandedValue: untrack(defaultExpandedValue),
|
|
215
234
|
...restProps,
|
|
@@ -217,7 +236,8 @@ var useJsonTreeView = (props) => {
|
|
|
217
236
|
typeahead: false
|
|
218
237
|
};
|
|
219
238
|
});
|
|
220
|
-
|
|
239
|
+
const treeView = useTreeView(machineProps);
|
|
240
|
+
return createMemo5(() => ({ ...treeView(), options: jsonTreeProps }));
|
|
221
241
|
};
|
|
222
242
|
|
|
223
243
|
// src/components/json-tree-view/json-tree-view.tsx
|