@ark-ui/solid 4.10.1 → 5.0.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/README.md +6 -9
- package/dist/chunk/{E72NMPSK.jsx → 2FYSIKNK.jsx} +5 -13
- package/dist/chunk/{2ILK4IFM.jsx → 2TEQVFZN.jsx} +16 -28
- package/dist/chunk/{2H4WHODR.js → 3CUJRNYI.js} +7 -10
- package/dist/chunk/{MRQ2UYM4.jsx → 3VB4UGEY.jsx} +8 -10
- package/dist/chunk/{ATMUKDFF.js → 44YJVOL2.js} +8 -10
- package/dist/chunk/{RVUYRERH.jsx → 4D76BVTD.jsx} +35 -17
- package/dist/chunk/{VARNCRUN.js → 4E5OPUFZ.js} +16 -18
- package/dist/chunk/{5JS7LFUQ.js → 4GOBFWQB.js} +9 -8
- package/dist/chunk/{RAEDLHD3.js → 55NHLACH.js} +11 -14
- package/dist/chunk/{2HTNQLGP.jsx → 676ULDTZ.jsx} +9 -13
- package/dist/chunk/{U7SPBSDD.jsx → 6AKFQH4M.jsx} +8 -13
- package/dist/chunk/{QODB3C3M.js → 6MQ6S5JP.js} +8 -5
- package/dist/chunk/{CIPYIXIW.js → 6NMPU3T3.js} +8 -10
- package/dist/chunk/{FNEB2RAF.js → 6VITT55B.js} +9 -10
- package/dist/chunk/{SBPY26HV.jsx → 7AJYNPOZ.jsx} +8 -11
- package/dist/chunk/{EHJDQTTW.jsx → 7IAJIOJR.jsx} +3 -16
- package/dist/chunk/{UGKLUHKU.js → A4HLKXDW.js} +8 -11
- package/dist/chunk/{3LRXHWW2.js → A6LAAZDX.js} +32 -27
- package/dist/chunk/{LVPQ6GR4.js → AIQ2GVFX.js} +6 -7
- package/dist/chunk/{JVXNYKNA.js → ANDTZLCB.js} +8 -10
- package/dist/chunk/{5O4RWSWO.jsx → BPYAMTER.jsx} +6 -4
- package/dist/chunk/{AIQFNVCU.jsx → BTPWLTJU.jsx} +9 -18
- package/dist/chunk/{22UQ4DZC.js → C4WAO4VB.js} +9 -10
- package/dist/chunk/{2W32Z6JZ.js → DBAO7VQW.js} +9 -10
- package/dist/chunk/{5SRZ3YYC.js → DEA5DIWS.js} +7 -8
- package/dist/chunk/{SUVE6C6L.jsx → DH5DKFFF.jsx} +17 -35
- package/dist/chunk/{TMUQ6SLE.jsx → DS2MX7YY.jsx} +8 -11
- package/dist/chunk/{34OZO53S.js → DVI7TRLG.js} +9 -12
- package/dist/chunk/{AWO62YTJ.js → E2TLJMGI.js} +15 -17
- package/dist/chunk/{H4RSHLA7.jsx → EH5LPBSV.jsx} +9 -13
- package/dist/chunk/{F3QPTRGW.jsx → EIGYBOW2.jsx} +27 -34
- package/dist/chunk/{HU7FZMJI.jsx → ENXUS2WG.jsx} +9 -14
- package/dist/chunk/{NDY7YFV2.js → EUXWRO3A.js} +16 -17
- package/dist/chunk/{K54W24N6.jsx → FHWNUAQM.jsx} +10 -15
- package/dist/chunk/{MJNR43Q5.js → FX6TOMB3.js} +14 -25
- package/dist/chunk/{DUYGPLFV.js → GUQTNAZU.js} +9 -10
- package/dist/chunk/{B7LE23PE.jsx → H5QZC4VW.jsx} +9 -13
- package/dist/chunk/{NK4T7LIZ.jsx → H7SWP54F.jsx} +7 -11
- package/dist/chunk/{M2FICVVI.js → HQEG6EKY.js} +9 -11
- package/dist/chunk/{U3XJZI3X.jsx → I4VF53LH.jsx} +15 -25
- package/dist/chunk/{FDN5MSFM.js → JOWPVE6E.js} +8 -9
- package/dist/chunk/{SN5TXTB6.jsx → JZ7ZQZT4.jsx} +17 -54
- package/dist/chunk/{632HFNZF.js → KMFRZGLF.js} +36 -15
- package/dist/chunk/{GZVCPLKK.jsx → KQ4BIFPS.jsx} +9 -10
- package/dist/chunk/{XCNALQF7.js → LFWIA7VB.js} +11 -14
- package/dist/chunk/{7BGOIKYK.jsx → LKOJO4VB.jsx} +17 -31
- package/dist/chunk/{5XD5ZSBX.js → M2C67TPA.js} +13 -17
- package/dist/chunk/{2GATVLPK.js → M63JXHU4.js} +7 -8
- package/dist/chunk/MOG4V2NQ.jsx +15 -0
- package/dist/chunk/{XUVXUPEH.js → MZD7ZKWI.js} +2 -7
- package/dist/chunk/{YCYZZGN2.jsx → NCURFCYQ.jsx} +9 -8
- package/dist/chunk/{5ONYCKM3.jsx → NEBB7COJ.jsx} +1 -1
- package/dist/chunk/{Q7NPTAJI.js → NNZQ2FQW.js} +8 -9
- package/dist/chunk/{FS3LMJ37.jsx → O5AHG7DQ.jsx} +16 -19
- package/dist/chunk/{6YQ3EF2J.js → O62NKGT4.js} +9 -11
- package/dist/chunk/{2J42A7KM.js → OA5UZFKE.js} +2 -2
- package/dist/chunk/{CPMYIT5J.jsx → OAH52ZNM.jsx} +11 -12
- package/dist/chunk/OAPCRIL5.js +8 -0
- package/dist/chunk/{T4NRAKVA.jsx → OEZAIQU2.jsx} +9 -10
- package/dist/chunk/{YV5BACLX.js → OIGKROX4.js} +9 -9
- package/dist/chunk/{IQJBNZOX.jsx → PES3MXH3.jsx} +8 -6
- package/dist/chunk/{3V3HI6QW.js → PJNGX4UT.js} +9 -8
- package/dist/chunk/{3HMZSTYX.js → PL4PGQFF.js} +8 -10
- package/dist/chunk/{RH2PDRKN.jsx → POFK2TVP.jsx} +8 -9
- package/dist/chunk/{HWL7X2QR.jsx → PVOFTEOB.jsx} +21 -40
- package/dist/chunk/{HPDOBQ3V.js → QEMQBM6W.js} +1 -1
- package/dist/chunk/{L7OSYHVR.js → QFAL6GWC.js} +1 -1
- package/dist/chunk/{QA6ZMN5Y.js → QKFZ3XTM.js} +14 -28
- package/dist/chunk/{IZC6PKGT.jsx → QZQUUXCF.jsx} +10 -14
- package/dist/chunk/{DUDD2T7G.js → R6Q7TUSQ.js} +8 -11
- package/dist/chunk/{3QQZKR3F.jsx → RCXMZN3G.jsx} +1 -1
- package/dist/chunk/{N73ADPX5.jsx → RG3IJESS.jsx} +46 -78
- package/dist/chunk/{SWUA2VFC.js → SAI3RCJY.js} +7 -10
- package/dist/chunk/{ZC6KWJ4T.jsx → SBKJA5N2.jsx} +7 -12
- package/dist/chunk/{RZBYC7DR.jsx → SBLZHOW2.jsx} +3 -12
- package/dist/chunk/SDD2HKR3.js +71 -0
- package/dist/chunk/{WIVXL7HJ.jsx → SL2ZPLSH.jsx} +9 -13
- package/dist/chunk/{XTV6ZFAA.js → SRPSYZUL.js} +7 -8
- package/dist/chunk/{DOPROT6M.jsx → SWZSXMPJ.jsx} +10 -8
- package/dist/chunk/{BY62F4IV.jsx → TEZHN26Z.jsx} +8 -11
- package/dist/chunk/{5EVN6V64.js → TMTD3AUG.js} +12 -15
- package/dist/chunk/{I5UG2QUO.js → TROPIN4C.js} +1 -7
- package/dist/chunk/{NMGUCD2L.jsx → TVCIHLER.jsx} +2 -11
- package/dist/chunk/{5CYHETDY.js → UIAQFG6P.js} +7 -7
- package/dist/chunk/{2NEVBQW4.jsx → USV2CYTP.jsx} +9 -9
- package/dist/chunk/{GXWVYON6.js → V2YBSJKS.js} +8 -10
- package/dist/chunk/{WQQVH7YG.jsx → VLUE7XIS.jsx} +34 -19
- package/dist/chunk/{TC2QHQ47.jsx → WPEIDU6T.jsx} +17 -42
- package/dist/chunk/{LCESUDZB.js → WRLQ7Y6E.js} +5 -13
- package/dist/chunk/{7KPVYYFT.js → WT3OTYHP.js} +27 -11
- package/dist/chunk/{IOTZAUDA.jsx → WUTUKX4C.jsx} +1 -1
- package/dist/chunk/{34JAVC2R.jsx → WZ7FNJXM.jsx} +11 -15
- package/dist/chunk/X34KVQNW.js +1 -1
- package/dist/chunk/{MSHQY44G.jsx → XHA6B6L2.jsx} +23 -23
- package/dist/chunk/{CQN5S4C3.jsx → XNZ7GOP4.jsx} +15 -24
- package/dist/chunk/{MYMGOYXH.js → XR4WJDUT.js} +2 -2
- package/dist/chunk/{SJSLQDBZ.jsx → YE6V66JY.jsx} +10 -18
- package/dist/chunk/{W43X4SNE.js → YS6KIHEB.js} +6 -6
- package/dist/chunk/{FVMQXW27.jsx → ZOMTU4P2.jsx} +12 -22
- package/dist/components/accordion/index.d.ts +2 -7
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +7 -8
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +5 -6
- package/dist/components/carousel/index.d.ts +3 -8
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -6
- package/dist/components/checkbox/index.d.ts +3 -8
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +8 -9
- package/dist/components/clipboard/index.d.ts +2 -2
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +5 -6
- package/dist/components/collapsible/index.d.ts +2 -7
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +6 -7
- package/dist/components/collection.d.ts +3 -3
- package/dist/components/collection.js +1 -1
- package/dist/components/collection.jsx +1 -1
- package/dist/components/color-picker/index.d.ts +4 -14
- 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 +3 -13
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/index.jsx +12 -12
- package/dist/components/date-picker/index.d.ts +8 -20
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +7 -8
- package/dist/components/dialog/index.d.ts +3 -8
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -8
- package/dist/components/editable/index.d.ts +2 -12
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +8 -8
- package/dist/components/field/index.d.ts +3 -2
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +4 -3
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +2 -2
- package/dist/components/file-upload/index.d.ts +6 -6
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +8 -8
- package/dist/components/focus-trap/index.d.ts +1 -1
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +4 -5
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -5
- package/dist/components/hover-card/index.d.ts +3 -8
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -8
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +45 -45
- package/dist/components/index.jsx +325 -327
- package/dist/components/menu/index.d.ts +4 -9
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -8
- package/dist/components/number-input/index.d.ts +2 -7
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +8 -8
- package/dist/components/pagination/index.d.ts +2 -7
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +5 -6
- package/dist/components/pin-input/index.d.ts +2 -7
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +8 -8
- package/dist/components/popover/index.d.ts +3 -8
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -8
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +3 -3
- package/dist/components/progress/index.d.ts +2 -7
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +5 -6
- package/dist/components/qr-code/index.d.ts +2 -7
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +5 -6
- package/dist/components/radio-group/index.d.ts +2 -7
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +5 -6
- package/dist/components/rating-group/index.d.ts +5 -10
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +8 -8
- package/dist/components/segment-group/index.d.ts +3 -8
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +5 -6
- package/dist/components/select/index.d.ts +3 -13
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/index.jsx +12 -12
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +8 -8
- package/dist/components/slider/index.d.ts +3 -8
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +5 -6
- package/dist/components/splitter/index.d.ts +3 -8
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +5 -6
- package/dist/components/steps/index.d.ts +6 -10
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +5 -6
- package/dist/components/switch/index.d.ts +2 -7
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +8 -8
- package/dist/components/tabs/index.d.ts +2 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -8
- package/dist/components/tags-input/index.d.ts +2 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +8 -8
- package/dist/components/time-picker/index.d.ts +3 -13
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +7 -8
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +5 -6
- package/dist/components/toast/index.d.ts +6 -7
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +5 -2
- package/dist/components/toggle/index.d.ts +5 -34
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +2 -4
- package/dist/components/toggle-group/index.d.ts +3 -8
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +5 -6
- package/dist/components/tooltip/index.d.ts +3 -8
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -8
- package/dist/components/tour/index.d.ts +6 -6
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +7 -8
- package/dist/components/tree-view/index.d.ts +6 -16
- package/dist/components/tree-view/index.js +2 -2
- package/dist/components/tree-view/index.jsx +9 -10
- package/dist/index.d.ts +2 -1
- package/dist/index.js +47 -47
- package/dist/index.jsx +325 -327
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -3
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.jsx +3 -4
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +2 -2
- package/dist/{use-presence-Ct1onT3-.d.ts → use-presence-C07V_WCb.d.ts} +1 -1
- package/package.json +76 -83
- package/dist/chunk/52WUF3CY.jsx +0 -26
- package/dist/chunk/BSPFGETO.js +0 -21
- package/dist/chunk/CTTG4GSG.js +0 -30
- package/dist/chunk/DT73WLR4.js +0 -5
- package/dist/chunk/JHG4EID2.jsx +0 -233
- package/dist/chunk/KGOB2IMX.jsx +0 -7
- package/dist/chunk/MV3KTL7M.js +0 -107
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EnvironmentProvider, useEnvironmentContext } from '../../chunk/
|
|
1
|
+
export { EnvironmentProvider, useEnvironmentContext } from '../../chunk/6MQ6S5JP.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EnvironmentProvider,
|
|
3
3
|
useEnvironmentContext
|
|
4
|
-
} from "../../chunk/
|
|
5
|
-
import "../../chunk/
|
|
6
|
-
import "../../chunk/NMGUCD2L.jsx";
|
|
4
|
+
} from "../../chunk/BPYAMTER.jsx";
|
|
5
|
+
import "../../chunk/TVCIHLER.jsx";
|
|
7
6
|
import "../../chunk/7IUG3E2V.jsx";
|
|
8
7
|
export {
|
|
9
8
|
EnvironmentProvider,
|
package/dist/providers/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EnvironmentProvider, useEnvironmentContext } from '../chunk/
|
|
2
|
-
export { LocaleProvider, useLocaleContext } from '../chunk/
|
|
1
|
+
export { EnvironmentProvider, useEnvironmentContext } from '../chunk/6MQ6S5JP.js';
|
|
2
|
+
export { LocaleProvider, useLocaleContext } from '../chunk/QEMQBM6W.js';
|
package/dist/providers/index.jsx
CHANGED
|
@@ -2,13 +2,12 @@ import "../chunk/ODQYYKL5.jsx";
|
|
|
2
2
|
import {
|
|
3
3
|
EnvironmentProvider,
|
|
4
4
|
useEnvironmentContext
|
|
5
|
-
} from "../chunk/
|
|
6
|
-
import "../chunk/KGOB2IMX.jsx";
|
|
5
|
+
} from "../chunk/BPYAMTER.jsx";
|
|
7
6
|
import {
|
|
8
7
|
LocaleProvider,
|
|
9
8
|
useLocaleContext
|
|
10
|
-
} from "../chunk/
|
|
11
|
-
import "../chunk/
|
|
9
|
+
} from "../chunk/RCXMZN3G.jsx";
|
|
10
|
+
import "../chunk/TVCIHLER.jsx";
|
|
12
11
|
import "../chunk/7IUG3E2V.jsx";
|
|
13
12
|
export {
|
|
14
13
|
EnvironmentProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LocaleProvider, useLocaleContext } from '../../chunk/
|
|
1
|
+
export { LocaleProvider, useLocaleContext } from '../../chunk/QEMQBM6W.js';
|
|
@@ -3,7 +3,7 @@ import * as presence from '@zag-js/presence';
|
|
|
3
3
|
import { O as Optional } from './types-B277wCdv.js';
|
|
4
4
|
import { R as RenderStrategyProps } from './render-strategy-B5MqQP3X.js';
|
|
5
5
|
|
|
6
|
-
interface UsePresenceProps extends Optional<presence.
|
|
6
|
+
interface UsePresenceProps extends Optional<presence.Props, 'present'>, RenderStrategyProps {
|
|
7
7
|
}
|
|
8
8
|
interface UsePresenceReturn extends ReturnType<typeof usePresence> {
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "5.0.0",
|
|
4
5
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"accordion",
|
|
@@ -52,10 +53,6 @@
|
|
|
52
53
|
"bugs": {
|
|
53
54
|
"url": "https://github.com/chakra-ui/ark/issues"
|
|
54
55
|
},
|
|
55
|
-
"type": "module",
|
|
56
|
-
"main": "dist/index.js",
|
|
57
|
-
"module": "dist/index.js",
|
|
58
|
-
"types": "dist/index.d.ts",
|
|
59
56
|
"files": [
|
|
60
57
|
"dist"
|
|
61
58
|
],
|
|
@@ -108,103 +105,99 @@
|
|
|
108
105
|
"prepack": "clean-package",
|
|
109
106
|
"postpack": "clean-package restore"
|
|
110
107
|
},
|
|
111
|
-
"clean-package": {
|
|
112
|
-
"remove": [
|
|
113
|
-
"exports.\\..source",
|
|
114
|
-
"exports.\\./anatomy.source",
|
|
115
|
-
"exports.\\./collection.source",
|
|
116
|
-
"exports.\\./factory.source",
|
|
117
|
-
"exports.\\./environment.source",
|
|
118
|
-
"exports.\\./locale.source",
|
|
119
|
-
"exports.\\./*.source"
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
108
|
"publishConfig": {
|
|
123
109
|
"access": "public"
|
|
124
110
|
},
|
|
125
111
|
"sideEffects": false,
|
|
126
112
|
"dependencies": {
|
|
127
113
|
"@internationalized/date": "3.7.0",
|
|
128
|
-
"@zag-js/accordion": "
|
|
129
|
-
"@zag-js/anatomy": "
|
|
130
|
-
"@zag-js/auto-resize": "
|
|
131
|
-
"@zag-js/avatar": "
|
|
132
|
-
"@zag-js/carousel": "
|
|
133
|
-
"@zag-js/checkbox": "
|
|
134
|
-
"@zag-js/clipboard": "
|
|
135
|
-
"@zag-js/collapsible": "
|
|
136
|
-
"@zag-js/collection": "
|
|
137
|
-
"@zag-js/color-picker": "
|
|
138
|
-
"@zag-js/combobox": "
|
|
139
|
-
"@zag-js/date-picker": "
|
|
140
|
-
"@zag-js/dialog": "
|
|
141
|
-
"@zag-js/dom-query": "
|
|
142
|
-
"@zag-js/editable": "
|
|
143
|
-
"@zag-js/file-upload": "
|
|
144
|
-
"@zag-js/file-utils": "
|
|
145
|
-
"@zag-js/focus-trap": "
|
|
146
|
-
"@zag-js/highlight-word": "
|
|
147
|
-
"@zag-js/hover-card": "
|
|
148
|
-
"@zag-js/i18n-utils": "
|
|
149
|
-
"@zag-js/menu": "
|
|
150
|
-
"@zag-js/number-input": "
|
|
151
|
-
"@zag-js/pagination": "
|
|
152
|
-
"@zag-js/pin-input": "
|
|
153
|
-
"@zag-js/popover": "
|
|
154
|
-
"@zag-js/presence": "
|
|
155
|
-
"@zag-js/progress": "
|
|
156
|
-
"@zag-js/qr-code": "
|
|
157
|
-
"@zag-js/radio-group": "
|
|
158
|
-
"@zag-js/rating-group": "
|
|
159
|
-
"@zag-js/select": "
|
|
160
|
-
"@zag-js/signature-pad": "
|
|
161
|
-
"@zag-js/slider": "
|
|
162
|
-
"@zag-js/solid": "
|
|
163
|
-
"@zag-js/splitter": "
|
|
164
|
-
"@zag-js/steps": "
|
|
165
|
-
"@zag-js/switch": "
|
|
166
|
-
"@zag-js/tabs": "
|
|
167
|
-
"@zag-js/tags-input": "
|
|
168
|
-
"@zag-js/time-picker": "
|
|
169
|
-
"@zag-js/timer": "
|
|
170
|
-
"@zag-js/toast": "
|
|
171
|
-
"@zag-js/toggle
|
|
172
|
-
"@zag-js/
|
|
173
|
-
"@zag-js/
|
|
174
|
-
"@zag-js/
|
|
175
|
-
"@zag-js/
|
|
114
|
+
"@zag-js/accordion": "1.3.1",
|
|
115
|
+
"@zag-js/anatomy": "1.3.1",
|
|
116
|
+
"@zag-js/auto-resize": "1.3.1",
|
|
117
|
+
"@zag-js/avatar": "1.3.1",
|
|
118
|
+
"@zag-js/carousel": "1.3.1",
|
|
119
|
+
"@zag-js/checkbox": "1.3.1",
|
|
120
|
+
"@zag-js/clipboard": "1.3.1",
|
|
121
|
+
"@zag-js/collapsible": "1.3.1",
|
|
122
|
+
"@zag-js/collection": "1.3.1",
|
|
123
|
+
"@zag-js/color-picker": "1.3.1",
|
|
124
|
+
"@zag-js/combobox": "1.3.1",
|
|
125
|
+
"@zag-js/date-picker": "1.3.1",
|
|
126
|
+
"@zag-js/dialog": "1.3.1",
|
|
127
|
+
"@zag-js/dom-query": "1.3.1",
|
|
128
|
+
"@zag-js/editable": "1.3.1",
|
|
129
|
+
"@zag-js/file-upload": "1.3.1",
|
|
130
|
+
"@zag-js/file-utils": "1.3.1",
|
|
131
|
+
"@zag-js/focus-trap": "1.3.1",
|
|
132
|
+
"@zag-js/highlight-word": "1.3.1",
|
|
133
|
+
"@zag-js/hover-card": "1.3.1",
|
|
134
|
+
"@zag-js/i18n-utils": "1.3.1",
|
|
135
|
+
"@zag-js/menu": "1.3.1",
|
|
136
|
+
"@zag-js/number-input": "1.3.1",
|
|
137
|
+
"@zag-js/pagination": "1.3.1",
|
|
138
|
+
"@zag-js/pin-input": "1.3.1",
|
|
139
|
+
"@zag-js/popover": "1.3.1",
|
|
140
|
+
"@zag-js/presence": "1.3.1",
|
|
141
|
+
"@zag-js/progress": "1.3.1",
|
|
142
|
+
"@zag-js/qr-code": "1.3.1",
|
|
143
|
+
"@zag-js/radio-group": "1.3.1",
|
|
144
|
+
"@zag-js/rating-group": "1.3.1",
|
|
145
|
+
"@zag-js/select": "1.3.1",
|
|
146
|
+
"@zag-js/signature-pad": "1.3.1",
|
|
147
|
+
"@zag-js/slider": "1.3.1",
|
|
148
|
+
"@zag-js/solid": "1.3.1",
|
|
149
|
+
"@zag-js/splitter": "1.3.1",
|
|
150
|
+
"@zag-js/steps": "1.3.1",
|
|
151
|
+
"@zag-js/switch": "1.3.1",
|
|
152
|
+
"@zag-js/tabs": "1.3.1",
|
|
153
|
+
"@zag-js/tags-input": "1.3.1",
|
|
154
|
+
"@zag-js/time-picker": "1.3.1",
|
|
155
|
+
"@zag-js/timer": "1.3.1",
|
|
156
|
+
"@zag-js/toast": "1.3.1",
|
|
157
|
+
"@zag-js/toggle": "1.3.1",
|
|
158
|
+
"@zag-js/toggle-group": "1.3.1",
|
|
159
|
+
"@zag-js/tooltip": "1.3.1",
|
|
160
|
+
"@zag-js/tour": "1.3.1",
|
|
161
|
+
"@zag-js/tree-view": "1.3.1",
|
|
162
|
+
"@zag-js/types": "1.3.1"
|
|
176
163
|
},
|
|
177
164
|
"devDependencies": {
|
|
178
165
|
"@biomejs/biome": "1.9.4",
|
|
179
|
-
"@modular-forms/solid": "0.25.
|
|
180
|
-
"@release-it/keep-a-changelog": "
|
|
166
|
+
"@modular-forms/solid": "0.25.1",
|
|
167
|
+
"@release-it/keep-a-changelog": "6.0.0",
|
|
181
168
|
"@solidjs/testing-library": "0.8.10",
|
|
182
|
-
"@storybook/addon-a11y": "8.
|
|
183
|
-
"@storybook/addon-essentials": "8.
|
|
184
|
-
"@storybook/
|
|
169
|
+
"@storybook/addon-a11y": "8.6.4",
|
|
170
|
+
"@storybook/addon-essentials": "8.6.4",
|
|
171
|
+
"@storybook/addon-interactions": "8.6.4",
|
|
172
|
+
"@storybook/addon-links": "8.6.4",
|
|
173
|
+
"@storybook/docs-tools": "8.6.4",
|
|
185
174
|
"@testing-library/dom": "10.4.0",
|
|
186
175
|
"@testing-library/jest-dom": "6.6.3",
|
|
187
|
-
"@testing-library/user-event": "14.
|
|
176
|
+
"@testing-library/user-event": "14.6.1",
|
|
188
177
|
"@types/jsdom": "21.1.7",
|
|
189
|
-
"@zag-js/stringify-state": "
|
|
178
|
+
"@zag-js/stringify-state": "1.3.1",
|
|
190
179
|
"clean-package": "2.2.0",
|
|
191
180
|
"esbuild-plugin-solid": "0.6.0",
|
|
192
|
-
"globby": "14.0
|
|
193
|
-
"jsdom": "
|
|
194
|
-
"lucide-solid": "0.
|
|
195
|
-
"release-it": "
|
|
181
|
+
"globby": "14.1.0",
|
|
182
|
+
"jsdom": "26.0.0",
|
|
183
|
+
"lucide-solid": "0.477.0",
|
|
184
|
+
"release-it": "18.1.2",
|
|
196
185
|
"resize-observer-polyfill": "1.5.1",
|
|
197
|
-
"solid-js": "1.9.
|
|
198
|
-
"storybook": "8.
|
|
186
|
+
"solid-js": "1.9.5",
|
|
187
|
+
"storybook": "8.6.4",
|
|
199
188
|
"storybook-solidjs": "1.0.0-beta.6",
|
|
200
189
|
"storybook-solidjs-vite": "1.0.0-beta.6",
|
|
201
|
-
"tsup": "8.
|
|
202
|
-
"typescript": "5.
|
|
203
|
-
"vite": "
|
|
204
|
-
"vite-plugin-solid": "2.11.
|
|
205
|
-
"vitest": "
|
|
190
|
+
"tsup": "8.4.0",
|
|
191
|
+
"typescript": "5.8.2",
|
|
192
|
+
"vite": "6.2.0",
|
|
193
|
+
"vite-plugin-solid": "2.11.6",
|
|
194
|
+
"vitest": "3.0.7",
|
|
195
|
+
"vitest-axe": "1.0.0-pre.5"
|
|
206
196
|
},
|
|
207
197
|
"peerDependencies": {
|
|
208
198
|
"solid-js": ">=1.6.0"
|
|
209
|
-
}
|
|
199
|
+
},
|
|
200
|
+
"main": "dist/index.js",
|
|
201
|
+
"module": "dist/index.js",
|
|
202
|
+
"types": "dist/index.d.ts"
|
|
210
203
|
}
|
package/dist/chunk/52WUF3CY.jsx
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
runIfFn
|
|
3
|
-
} from "./KGOB2IMX.jsx";
|
|
4
|
-
|
|
5
|
-
// src/utils/use-controllable-state.ts
|
|
6
|
-
import { createMemo, createSignal, untrack } from "solid-js";
|
|
7
|
-
function useControllableState(props) {
|
|
8
|
-
const [uncontrolledValue, setUncontrolledValue] = createSignal(runIfFn(props.defaultValue));
|
|
9
|
-
const controlled = createMemo(() => props.value?.() !== void 0);
|
|
10
|
-
const currentValue = createMemo(() => controlled() ? props.value?.() : uncontrolledValue());
|
|
11
|
-
const setValue = (next) => {
|
|
12
|
-
untrack(() => {
|
|
13
|
-
const nextValue = runIfFn(next, currentValue());
|
|
14
|
-
if (controlled()) {
|
|
15
|
-
return props.onChange?.(nextValue);
|
|
16
|
-
}
|
|
17
|
-
setUncontrolledValue(nextValue);
|
|
18
|
-
return props.onChange?.(nextValue);
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
return [currentValue, setValue];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
useControllableState
|
|
26
|
-
};
|
package/dist/chunk/BSPFGETO.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { runIfFn } from './DT73WLR4.js';
|
|
2
|
-
import { createSignal, createMemo, untrack } from 'solid-js';
|
|
3
|
-
|
|
4
|
-
function useControllableState(props) {
|
|
5
|
-
const [uncontrolledValue, setUncontrolledValue] = createSignal(runIfFn(props.defaultValue));
|
|
6
|
-
const controlled = createMemo(() => props.value?.() !== void 0);
|
|
7
|
-
const currentValue = createMemo(() => controlled() ? props.value?.() : uncontrolledValue());
|
|
8
|
-
const setValue = (next) => {
|
|
9
|
-
untrack(() => {
|
|
10
|
-
const nextValue = runIfFn(next, currentValue());
|
|
11
|
-
if (controlled()) {
|
|
12
|
-
return props.onChange?.(nextValue);
|
|
13
|
-
}
|
|
14
|
-
setUncontrolledValue(nextValue);
|
|
15
|
-
return props.onChange?.(nextValue);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
return [currentValue, setValue];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { useControllableState };
|
package/dist/chunk/CTTG4GSG.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ListCollection, TreeCollection, filePathToTree } from '@zag-js/collection';
|
|
2
|
-
|
|
3
|
-
// src/components/collection.ts
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/@zag-js/store/dist/index.mjs
|
|
6
|
-
function glob() {
|
|
7
|
-
if (typeof globalThis !== "undefined") return globalThis;
|
|
8
|
-
if (typeof self !== "undefined") return self;
|
|
9
|
-
if (typeof window !== "undefined") return window;
|
|
10
|
-
if (typeof global !== "undefined") return global;
|
|
11
|
-
}
|
|
12
|
-
function globalRef(key, value) {
|
|
13
|
-
const g = glob();
|
|
14
|
-
if (!g) return value();
|
|
15
|
-
g[key] || (g[key] = value());
|
|
16
|
-
return g[key];
|
|
17
|
-
}
|
|
18
|
-
var refSet = globalRef("__zag__refSet", () => /* @__PURE__ */ new WeakSet());
|
|
19
|
-
globalRef("__zag__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
|
|
20
|
-
function ref(obj) {
|
|
21
|
-
refSet.add(obj);
|
|
22
|
-
return obj;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// src/components/collection.ts
|
|
26
|
-
var createListCollection = (options) => ref(new ListCollection(options));
|
|
27
|
-
var createTreeCollection = (options) => ref(new TreeCollection(options));
|
|
28
|
-
var createFileTreeCollection = (paths) => ref(filePathToTree(paths));
|
|
29
|
-
|
|
30
|
-
export { createFileTreeCollection, createListCollection, createTreeCollection };
|
package/dist/chunk/DT73WLR4.js
DELETED
package/dist/chunk/JHG4EID2.jsx
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
// src/components/collection.ts
|
|
2
|
-
import {
|
|
3
|
-
ListCollection,
|
|
4
|
-
TreeCollection,
|
|
5
|
-
filePathToTree
|
|
6
|
-
} from "@zag-js/collection";
|
|
7
|
-
|
|
8
|
-
// ../../node_modules/proxy-compare/dist/index.js
|
|
9
|
-
var TRACK_MEMO_SYMBOL = Symbol();
|
|
10
|
-
var GET_ORIGINAL_SYMBOL = Symbol();
|
|
11
|
-
var getProto = Object.getPrototypeOf;
|
|
12
|
-
var objectsToTrack = /* @__PURE__ */ new WeakMap();
|
|
13
|
-
var isObjectToTrack = (obj) => obj && (objectsToTrack.has(obj) ? objectsToTrack.get(obj) : getProto(obj) === Object.prototype || getProto(obj) === Array.prototype);
|
|
14
|
-
var getUntracked = (obj) => {
|
|
15
|
-
if (isObjectToTrack(obj)) {
|
|
16
|
-
return obj[GET_ORIGINAL_SYMBOL] || null;
|
|
17
|
-
}
|
|
18
|
-
return null;
|
|
19
|
-
};
|
|
20
|
-
var markToTrack = (obj, mark = true) => {
|
|
21
|
-
objectsToTrack.set(obj, mark);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// ../../node_modules/@zag-js/store/dist/index.mjs
|
|
25
|
-
function glob() {
|
|
26
|
-
if (typeof globalThis !== "undefined") return globalThis;
|
|
27
|
-
if (typeof self !== "undefined") return self;
|
|
28
|
-
if (typeof window !== "undefined") return window;
|
|
29
|
-
if (typeof global !== "undefined") return global;
|
|
30
|
-
}
|
|
31
|
-
function globalRef(key, value) {
|
|
32
|
-
const g = glob();
|
|
33
|
-
if (!g) return value();
|
|
34
|
-
g[key] || (g[key] = value());
|
|
35
|
-
return g[key];
|
|
36
|
-
}
|
|
37
|
-
var refSet = globalRef("__zag__refSet", () => /* @__PURE__ */ new WeakSet());
|
|
38
|
-
var isReactElement = (x) => typeof x === "object" && x !== null && "$$typeof" in x && "props" in x;
|
|
39
|
-
var isVueElement = (x) => typeof x === "object" && x !== null && "__v_isVNode" in x;
|
|
40
|
-
var isDOMElement = (x) => typeof x === "object" && x !== null && "nodeType" in x && typeof x.nodeName === "string";
|
|
41
|
-
var isElement = (x) => isReactElement(x) || isVueElement(x) || isDOMElement(x);
|
|
42
|
-
var isObject = (x) => x !== null && typeof x === "object";
|
|
43
|
-
var canProxy = (x) => isObject(x) && !refSet.has(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !isElement(x) && !(x instanceof WeakMap) && !(x instanceof WeakSet) && !(x instanceof Error) && !(x instanceof Number) && !(x instanceof Date) && !(x instanceof String) && !(x instanceof RegExp) && !(x instanceof ArrayBuffer) && !(x instanceof Promise);
|
|
44
|
-
var isDev = () => true;
|
|
45
|
-
var proxyStateMap = globalRef("__zag__proxyStateMap", () => /* @__PURE__ */ new WeakMap());
|
|
46
|
-
var buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) => new Proxy(target, handler), snapCache = /* @__PURE__ */ new WeakMap(), createSnapshot = (target, version) => {
|
|
47
|
-
const cache = snapCache.get(target);
|
|
48
|
-
if (cache?.[0] === version) {
|
|
49
|
-
return cache[1];
|
|
50
|
-
}
|
|
51
|
-
const snap = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
|
|
52
|
-
markToTrack(snap, true);
|
|
53
|
-
snapCache.set(target, [version, snap]);
|
|
54
|
-
Reflect.ownKeys(target).forEach((key) => {
|
|
55
|
-
const value = Reflect.get(target, key);
|
|
56
|
-
if (refSet.has(value)) {
|
|
57
|
-
markToTrack(value, false);
|
|
58
|
-
snap[key] = value;
|
|
59
|
-
} else if (proxyStateMap.has(value)) {
|
|
60
|
-
snap[key] = snapshot(value);
|
|
61
|
-
} else {
|
|
62
|
-
snap[key] = value;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
return Object.freeze(snap);
|
|
66
|
-
}, proxyCache = /* @__PURE__ */ new WeakMap(), versionHolder = [1, 1], proxyFunction2 = (initialObject) => {
|
|
67
|
-
if (!isObject(initialObject)) {
|
|
68
|
-
throw new Error("object required");
|
|
69
|
-
}
|
|
70
|
-
const found = proxyCache.get(initialObject);
|
|
71
|
-
if (found) {
|
|
72
|
-
return found;
|
|
73
|
-
}
|
|
74
|
-
let version = versionHolder[0];
|
|
75
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
76
|
-
const notifyUpdate = (op, nextVersion = ++versionHolder[0]) => {
|
|
77
|
-
if (version !== nextVersion) {
|
|
78
|
-
version = nextVersion;
|
|
79
|
-
listeners.forEach((listener) => listener(op, nextVersion));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
let checkVersion = versionHolder[1];
|
|
83
|
-
const ensureVersion = (nextCheckVersion = ++versionHolder[1]) => {
|
|
84
|
-
if (checkVersion !== nextCheckVersion && !listeners.size) {
|
|
85
|
-
checkVersion = nextCheckVersion;
|
|
86
|
-
propProxyStates.forEach(([propProxyState]) => {
|
|
87
|
-
const propVersion = propProxyState[1](nextCheckVersion);
|
|
88
|
-
if (propVersion > version) {
|
|
89
|
-
version = propVersion;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
return version;
|
|
94
|
-
};
|
|
95
|
-
const createPropListener = (prop) => (op, nextVersion) => {
|
|
96
|
-
const newOp = [...op];
|
|
97
|
-
newOp[1] = [prop, ...newOp[1]];
|
|
98
|
-
notifyUpdate(newOp, nextVersion);
|
|
99
|
-
};
|
|
100
|
-
const propProxyStates = /* @__PURE__ */ new Map();
|
|
101
|
-
const addPropListener = (prop, propProxyState) => {
|
|
102
|
-
if (isDev() && propProxyStates.has(prop)) {
|
|
103
|
-
throw new Error("prop listener already exists");
|
|
104
|
-
}
|
|
105
|
-
if (listeners.size) {
|
|
106
|
-
const remove = propProxyState[3](createPropListener(prop));
|
|
107
|
-
propProxyStates.set(prop, [propProxyState, remove]);
|
|
108
|
-
} else {
|
|
109
|
-
propProxyStates.set(prop, [propProxyState]);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const removePropListener = (prop) => {
|
|
113
|
-
const entry = propProxyStates.get(prop);
|
|
114
|
-
if (entry) {
|
|
115
|
-
propProxyStates.delete(prop);
|
|
116
|
-
entry[1]?.();
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const addListener = (listener) => {
|
|
120
|
-
listeners.add(listener);
|
|
121
|
-
if (listeners.size === 1) {
|
|
122
|
-
propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
|
|
123
|
-
if (isDev() && prevRemove) {
|
|
124
|
-
throw new Error("remove already exists");
|
|
125
|
-
}
|
|
126
|
-
const remove = propProxyState[3](createPropListener(prop));
|
|
127
|
-
propProxyStates.set(prop, [propProxyState, remove]);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
const removeListener = () => {
|
|
131
|
-
listeners.delete(listener);
|
|
132
|
-
if (listeners.size === 0) {
|
|
133
|
-
propProxyStates.forEach(([propProxyState, remove], prop) => {
|
|
134
|
-
if (remove) {
|
|
135
|
-
remove();
|
|
136
|
-
propProxyStates.set(prop, [propProxyState]);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
return removeListener;
|
|
142
|
-
};
|
|
143
|
-
const baseObject = Array.isArray(initialObject) ? [] : Object.create(Object.getPrototypeOf(initialObject));
|
|
144
|
-
const handler = {
|
|
145
|
-
deleteProperty(target, prop) {
|
|
146
|
-
const prevValue = Reflect.get(target, prop);
|
|
147
|
-
removePropListener(prop);
|
|
148
|
-
const deleted = Reflect.deleteProperty(target, prop);
|
|
149
|
-
if (deleted) {
|
|
150
|
-
notifyUpdate(["delete", [prop], prevValue]);
|
|
151
|
-
}
|
|
152
|
-
return deleted;
|
|
153
|
-
},
|
|
154
|
-
set(target, prop, value, receiver) {
|
|
155
|
-
const hasPrevValue = Reflect.has(target, prop);
|
|
156
|
-
const prevValue = Reflect.get(target, prop, receiver);
|
|
157
|
-
if (hasPrevValue && (objectIs(prevValue, value) || proxyCache.has(value) && objectIs(prevValue, proxyCache.get(value)))) {
|
|
158
|
-
return true;
|
|
159
|
-
}
|
|
160
|
-
removePropListener(prop);
|
|
161
|
-
if (isObject(value)) {
|
|
162
|
-
value = getUntracked(value) || value;
|
|
163
|
-
}
|
|
164
|
-
let nextValue = value;
|
|
165
|
-
if (Object.getOwnPropertyDescriptor(target, prop)?.set) ;
|
|
166
|
-
else {
|
|
167
|
-
if (!proxyStateMap.has(value) && canProxy(value)) {
|
|
168
|
-
nextValue = proxy(value);
|
|
169
|
-
}
|
|
170
|
-
const childProxyState = !refSet.has(nextValue) && proxyStateMap.get(nextValue);
|
|
171
|
-
if (childProxyState) {
|
|
172
|
-
addPropListener(prop, childProxyState);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
Reflect.set(target, prop, nextValue, receiver);
|
|
176
|
-
notifyUpdate(["set", [prop], value, prevValue]);
|
|
177
|
-
return true;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
const proxyObject = newProxy(baseObject, handler);
|
|
181
|
-
proxyCache.set(initialObject, proxyObject);
|
|
182
|
-
const proxyState = [baseObject, ensureVersion, createSnapshot, addListener];
|
|
183
|
-
proxyStateMap.set(proxyObject, proxyState);
|
|
184
|
-
Reflect.ownKeys(initialObject).forEach((key) => {
|
|
185
|
-
const desc = Object.getOwnPropertyDescriptor(initialObject, key);
|
|
186
|
-
if (desc.get || desc.set) {
|
|
187
|
-
Object.defineProperty(baseObject, key, desc);
|
|
188
|
-
} else {
|
|
189
|
-
proxyObject[key] = initialObject[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
return proxyObject;
|
|
193
|
-
}) => [
|
|
194
|
-
// public functions
|
|
195
|
-
proxyFunction2,
|
|
196
|
-
// shared state
|
|
197
|
-
proxyStateMap,
|
|
198
|
-
refSet,
|
|
199
|
-
// internal things
|
|
200
|
-
objectIs,
|
|
201
|
-
newProxy,
|
|
202
|
-
canProxy,
|
|
203
|
-
snapCache,
|
|
204
|
-
createSnapshot,
|
|
205
|
-
proxyCache,
|
|
206
|
-
versionHolder
|
|
207
|
-
];
|
|
208
|
-
var [proxyFunction] = buildProxyFunction();
|
|
209
|
-
function proxy(initialObject = {}) {
|
|
210
|
-
return proxyFunction(initialObject);
|
|
211
|
-
}
|
|
212
|
-
function snapshot(proxyObject) {
|
|
213
|
-
const proxyState = proxyStateMap.get(proxyObject);
|
|
214
|
-
if (isDev() && !proxyState) {
|
|
215
|
-
}
|
|
216
|
-
const [target, ensureVersion, createSnapshot] = proxyState;
|
|
217
|
-
return createSnapshot(target, ensureVersion());
|
|
218
|
-
}
|
|
219
|
-
function ref(obj) {
|
|
220
|
-
refSet.add(obj);
|
|
221
|
-
return obj;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// src/components/collection.ts
|
|
225
|
-
var createListCollection = (options) => ref(new ListCollection(options));
|
|
226
|
-
var createTreeCollection = (options) => ref(new TreeCollection(options));
|
|
227
|
-
var createFileTreeCollection = (paths) => ref(filePathToTree(paths));
|
|
228
|
-
|
|
229
|
-
export {
|
|
230
|
-
createListCollection,
|
|
231
|
-
createTreeCollection,
|
|
232
|
-
createFileTreeCollection
|
|
233
|
-
};
|