@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,10 +1,10 @@
|
|
|
1
|
-
import { usePresence, PresenceProvider } from './
|
|
2
|
-
import {
|
|
1
|
+
import { usePresence, PresenceProvider } from './WRLQ7Y6E.js';
|
|
2
|
+
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
6
|
-
import { useLocaleContext } from './
|
|
7
|
-
import { createContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './6MQ6S5JP.js';
|
|
6
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
|
+
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { __export } from './ESLJRKWD.js';
|
|
9
9
|
import { createComponent } from 'solid-js/web';
|
|
10
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -62,18 +62,17 @@ var TabTrigger = (props) => {
|
|
|
62
62
|
// src/components/tabs/tabs-context.tsx
|
|
63
63
|
var TabsContext = (props) => props.children(useTabsContext());
|
|
64
64
|
var useTabs = (props = {}) => {
|
|
65
|
+
const id = createUniqueId();
|
|
65
66
|
const locale = useLocaleContext();
|
|
66
67
|
const environment = useEnvironmentContext();
|
|
67
|
-
const
|
|
68
|
-
const context = createMemo(() => ({
|
|
68
|
+
const machineProps = createMemo(() => ({
|
|
69
69
|
id,
|
|
70
70
|
dir: locale().dir,
|
|
71
71
|
getRootNode: environment().getRootNode,
|
|
72
|
-
value: props.defaultValue,
|
|
73
72
|
...props
|
|
74
73
|
}));
|
|
75
|
-
const
|
|
76
|
-
return createMemo(() => tabs.connect(
|
|
74
|
+
const service = useMachine(tabs.machine, machineProps);
|
|
75
|
+
return createMemo(() => tabs.connect(service, normalizeProps));
|
|
77
76
|
};
|
|
78
77
|
|
|
79
78
|
// src/components/tabs/tabs-root.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
4
|
-
import { useLocaleContext } from './
|
|
5
|
-
import { createContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './6MQ6S5JP.js';
|
|
4
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
|
+
import { createContext } from './TROPIN4C.js';
|
|
6
6
|
import { __export } from './ESLJRKWD.js';
|
|
7
7
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
8
8
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -69,18 +69,17 @@ var SliderRange = (props) => {
|
|
|
69
69
|
return createComponent(ark.div, mergedProps);
|
|
70
70
|
};
|
|
71
71
|
var useSlider = (props = {}) => {
|
|
72
|
+
const id = createUniqueId();
|
|
72
73
|
const locale = useLocaleContext();
|
|
73
74
|
const environment = useEnvironmentContext();
|
|
74
|
-
const
|
|
75
|
-
const context = createMemo(() => ({
|
|
75
|
+
const machineProps = createMemo(() => ({
|
|
76
76
|
id,
|
|
77
77
|
dir: locale().dir,
|
|
78
78
|
getRootNode: environment().getRootNode,
|
|
79
|
-
value: props.defaultValue,
|
|
80
79
|
...props
|
|
81
80
|
}));
|
|
82
|
-
const
|
|
83
|
-
return createMemo(() => slider.connect(
|
|
81
|
+
const service = useMachine(slider.machine, machineProps);
|
|
82
|
+
return createMemo(() => slider.connect(service, normalizeProps));
|
|
84
83
|
};
|
|
85
84
|
|
|
86
85
|
// src/components/slider/slider-root.tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./XHA6B6L2.jsx";
|
|
4
4
|
import {
|
|
5
5
|
PresenceProvider,
|
|
6
6
|
splitPresenceProps,
|
|
7
7
|
usePresence,
|
|
8
8
|
usePresenceContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./2FYSIKNK.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createSplitProps
|
|
12
12
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useEnvironmentContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./BPYAMTER.jsx";
|
|
19
19
|
import {
|
|
20
20
|
useLocaleContext
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./RCXMZN3G.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./TVCIHLER.jsx";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
27
|
} from "./7IUG3E2V.jsx";
|
|
@@ -83,12 +83,10 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
83
83
|
import { createMemo } from "solid-js";
|
|
84
84
|
|
|
85
85
|
// src/components/combobox/use-combobox-item-context.ts
|
|
86
|
-
var [ComboboxItemProvider, useComboboxItemContext] = createContext(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
);
|
|
86
|
+
var [ComboboxItemProvider, useComboboxItemContext] = createContext({
|
|
87
|
+
hookName: "useComboboxItemContext",
|
|
88
|
+
providerName: "<ComboboxItemProvider />"
|
|
89
|
+
});
|
|
92
90
|
|
|
93
91
|
// src/components/combobox/use-combobox-item-props-context.ts
|
|
94
92
|
var [ComboboxItemPropsProvider, useComboboxItemPropsContext] = createContext({
|
|
@@ -138,10 +136,7 @@ import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
|
138
136
|
var ComboboxItemGroupLabel = (props) => {
|
|
139
137
|
const combobox2 = useComboboxContext();
|
|
140
138
|
const itemGroupProps = useComboboxItemGroupPropsContext();
|
|
141
|
-
const mergedProps = mergeProps7(
|
|
142
|
-
() => combobox2().getItemGroupLabelProps({ htmlFor: itemGroupProps.id }),
|
|
143
|
-
props
|
|
144
|
-
);
|
|
139
|
+
const mergedProps = mergeProps7(() => combobox2().getItemGroupLabelProps({ htmlFor: itemGroupProps.id }), props);
|
|
145
140
|
return <ark.div {...mergedProps} />;
|
|
146
141
|
};
|
|
147
142
|
|
|
@@ -197,13 +192,13 @@ import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
|
197
192
|
// src/components/combobox/use-combobox.ts
|
|
198
193
|
import * as combobox from "@zag-js/combobox";
|
|
199
194
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
200
|
-
import {
|
|
195
|
+
import { createMemo as createMemo2, createUniqueId as createUniqueId2 } from "solid-js";
|
|
201
196
|
var useCombobox = (props) => {
|
|
202
197
|
const locale = useLocaleContext();
|
|
203
198
|
const environment = useEnvironmentContext();
|
|
204
199
|
const id = createUniqueId2();
|
|
205
200
|
const field = useFieldContext();
|
|
206
|
-
const
|
|
201
|
+
const machineProps = createMemo2(() => ({
|
|
207
202
|
id,
|
|
208
203
|
ids: {
|
|
209
204
|
label: field?.().ids.label,
|
|
@@ -215,22 +210,10 @@ var useCombobox = (props) => {
|
|
|
215
210
|
invalid: field?.().invalid,
|
|
216
211
|
dir: locale().dir,
|
|
217
212
|
getRootNode: environment().getRootNode,
|
|
218
|
-
open: props.defaultOpen,
|
|
219
|
-
value: props.defaultValue,
|
|
220
|
-
"open.controlled": props.open !== void 0,
|
|
221
213
|
...props
|
|
222
214
|
}));
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
return restProps;
|
|
226
|
-
});
|
|
227
|
-
const [state, send, service] = useMachine(combobox.machine(initialContext()), {
|
|
228
|
-
context
|
|
229
|
-
});
|
|
230
|
-
createEffect(() => {
|
|
231
|
-
service.setContext({ collection: props.collection });
|
|
232
|
-
});
|
|
233
|
-
return createMemo2(() => combobox.connect(state, send, normalizeProps));
|
|
215
|
+
const service = useMachine(combobox.machine, machineProps);
|
|
216
|
+
return createMemo2(() => combobox.connect(service, normalizeProps));
|
|
234
217
|
};
|
|
235
218
|
|
|
236
219
|
// src/components/combobox/combobox-root.tsx
|
|
@@ -242,6 +225,8 @@ var ComboboxRoot = (props) => {
|
|
|
242
225
|
"closeOnSelect",
|
|
243
226
|
"collection",
|
|
244
227
|
"composite",
|
|
228
|
+
"defaultHighlightedValue",
|
|
229
|
+
"defaultInputValue",
|
|
245
230
|
"defaultOpen",
|
|
246
231
|
"defaultValue",
|
|
247
232
|
"disabled",
|
|
@@ -292,10 +277,7 @@ var ComboboxRoot = (props) => {
|
|
|
292
277
|
import { mergeProps as mergeProps14 } from "@zag-js/solid";
|
|
293
278
|
var ComboboxRootProvider = (props) => {
|
|
294
279
|
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
295
|
-
const [{ value: combobox2 }, localProps] = createSplitProps()(
|
|
296
|
-
comboboxProps,
|
|
297
|
-
["value"]
|
|
298
|
-
);
|
|
280
|
+
const [{ value: combobox2 }, localProps] = createSplitProps()(comboboxProps, ["value"]);
|
|
299
281
|
const apiPresence = usePresence(mergeProps14(presenceProps, () => ({ present: combobox2().open })));
|
|
300
282
|
const mergedProps = mergeProps14(() => combobox2().getRootProps(), localProps);
|
|
301
283
|
return <ComboboxProvider value={combobox2}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./XHA6B6L2.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./BPYAMTER.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useLocaleContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./RCXMZN3G.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./TVCIHLER.jsx";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -82,7 +82,7 @@ var useNumberInput = (props = {}) => {
|
|
|
82
82
|
const locale = useLocaleContext();
|
|
83
83
|
const environment = useEnvironmentContext();
|
|
84
84
|
const field = useFieldContext();
|
|
85
|
-
const
|
|
85
|
+
const machineProps = createMemo(() => ({
|
|
86
86
|
id,
|
|
87
87
|
ids: {
|
|
88
88
|
label: field?.().ids.label,
|
|
@@ -95,11 +95,10 @@ var useNumberInput = (props = {}) => {
|
|
|
95
95
|
dir: locale().dir,
|
|
96
96
|
locale: locale().locale,
|
|
97
97
|
getRootNode: environment().getRootNode,
|
|
98
|
-
value: props.defaultValue,
|
|
99
98
|
...props
|
|
100
99
|
}));
|
|
101
|
-
const
|
|
102
|
-
return createMemo(() => numberInput.connect(
|
|
100
|
+
const service = useMachine(numberInput.machine, machineProps);
|
|
101
|
+
return createMemo(() => numberInput.connect(service, normalizeProps));
|
|
103
102
|
};
|
|
104
103
|
|
|
105
104
|
// src/components/number-input/number-input-root.tsx
|
|
@@ -142,9 +141,7 @@ var NumberInputRoot = (props) => {
|
|
|
142
141
|
// src/components/number-input/number-input-root-provider.tsx
|
|
143
142
|
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
144
143
|
var NumberInputRootProvider = (props) => {
|
|
145
|
-
const [{ value: numberInput2 }, localProps] = createSplitProps()(props, [
|
|
146
|
-
"value"
|
|
147
|
-
]);
|
|
144
|
+
const [{ value: numberInput2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
148
145
|
const mergedProps = mergeProps7(() => numberInput2().getRootProps(), localProps);
|
|
149
146
|
return <NumberInputProvider value={numberInput2}>
|
|
150
147
|
<ark.div {...mergedProps} />
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCollapsibleContext, collapsible_exports } from './PL4PGQFF.js';
|
|
2
|
+
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
6
|
-
import { useLocaleContext } from './
|
|
7
|
-
import { createContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './6MQ6S5JP.js';
|
|
6
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
|
+
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { __export } from './ESLJRKWD.js';
|
|
9
9
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
10
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
11
|
-
import {
|
|
11
|
+
import { splitProps, createMemo, createUniqueId } from 'solid-js';
|
|
12
12
|
import * as accordion from '@zag-js/accordion';
|
|
13
13
|
export { anatomy } from '@zag-js/accordion';
|
|
14
14
|
|
|
@@ -95,17 +95,14 @@ var useAccordion = (props = {}) => {
|
|
|
95
95
|
const id = createUniqueId();
|
|
96
96
|
const locale = useLocaleContext();
|
|
97
97
|
const environment = useEnvironmentContext();
|
|
98
|
-
const
|
|
98
|
+
const machineProps = createMemo(() => ({
|
|
99
99
|
id,
|
|
100
100
|
dir: locale().dir,
|
|
101
|
-
value: props.defaultValue,
|
|
102
101
|
getRootNode: environment().getRootNode,
|
|
103
102
|
...props
|
|
104
103
|
}));
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
});
|
|
108
|
-
return createMemo(() => accordion.connect(state, send, normalizeProps));
|
|
104
|
+
const service = useMachine(accordion.machine, machineProps);
|
|
105
|
+
return createMemo(() => accordion.connect(service, normalizeProps));
|
|
109
106
|
};
|
|
110
107
|
|
|
111
108
|
// src/components/accordion/accordion-root.tsx
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './KMFRZGLF.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
5
|
-
import { useLocaleContext } from './
|
|
6
|
-
import { createContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './6MQ6S5JP.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { createContext } from './TROPIN4C.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
8
|
-
import { createComponent, mergeProps as mergeProps$1,
|
|
8
|
+
import { createComponent, mergeProps as mergeProps$1, template, spread } from 'solid-js/web';
|
|
9
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
10
10
|
import * as signaturePad from '@zag-js/signature-pad';
|
|
11
11
|
export { anatomy } from '@zag-js/signature-pad';
|
|
12
|
-
import {
|
|
12
|
+
import { For, Show, createUniqueId, createMemo } from 'solid-js';
|
|
13
13
|
|
|
14
14
|
// src/components/signature-pad/use-signature-pad-context.ts
|
|
15
|
-
var [SignaturePadProvider, useSignaturePadContext] = createContext(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
);
|
|
15
|
+
var [SignaturePadProvider, useSignaturePadContext] = createContext({
|
|
16
|
+
hookName: "useSignaturePadContext",
|
|
17
|
+
providerName: "<SignaturePadProvider />"
|
|
18
|
+
});
|
|
21
19
|
|
|
22
20
|
// src/components/signature-pad/signature-pad-clear-trigger.tsx
|
|
23
21
|
var SignaturePadClearTrigger = (props) => {
|
|
@@ -55,11 +53,11 @@ var SignaturePadLabel = (props) => {
|
|
|
55
53
|
return createComponent(ark.label, mergedProps);
|
|
56
54
|
};
|
|
57
55
|
var useSignaturePad = (props = {}) => {
|
|
56
|
+
const id = createUniqueId();
|
|
58
57
|
const locale = useLocaleContext();
|
|
59
58
|
const environment = useEnvironmentContext();
|
|
60
|
-
const id = createUniqueId();
|
|
61
59
|
const field = useFieldContext();
|
|
62
|
-
const
|
|
60
|
+
const machineProps = createMemo(() => ({
|
|
63
61
|
id,
|
|
64
62
|
ids: {
|
|
65
63
|
label: field?.().ids.label,
|
|
@@ -72,8 +70,8 @@ var useSignaturePad = (props = {}) => {
|
|
|
72
70
|
getRootNode: environment().getRootNode,
|
|
73
71
|
...props
|
|
74
72
|
}));
|
|
75
|
-
const
|
|
76
|
-
return createMemo(() => signaturePad.connect(
|
|
73
|
+
const service = useMachine(signaturePad.machine, machineProps);
|
|
74
|
+
return createMemo(() => signaturePad.connect(service, normalizeProps));
|
|
77
75
|
};
|
|
78
76
|
|
|
79
77
|
// src/components/signature-pad/signature-pad-root.tsx
|
|
@@ -101,7 +99,7 @@ var SignaturePadRootProvider = (props) => {
|
|
|
101
99
|
});
|
|
102
100
|
};
|
|
103
101
|
var _tmpl$ = /* @__PURE__ */ template(`<title>Signature`);
|
|
104
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true);
|
|
102
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true, false);
|
|
105
103
|
var SignaturePadSegment = (props) => {
|
|
106
104
|
const signaturePad2 = useSignaturePadContext();
|
|
107
105
|
const mergedProps = mergeProps(() => signaturePad2().getSegmentProps(), props);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./2FYSIKNK.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./BPYAMTER.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useLocaleContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./RCXMZN3G.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./TVCIHLER.jsx";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -118,19 +118,17 @@ import * as popover from "@zag-js/popover";
|
|
|
118
118
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
119
119
|
import { createMemo, createUniqueId } from "solid-js";
|
|
120
120
|
var usePopover = (props = {}) => {
|
|
121
|
+
const id = createUniqueId();
|
|
121
122
|
const locale = useLocaleContext();
|
|
122
123
|
const environment = useEnvironmentContext();
|
|
123
|
-
const
|
|
124
|
-
const context = createMemo(() => ({
|
|
124
|
+
const machineProps = createMemo(() => ({
|
|
125
125
|
id,
|
|
126
126
|
dir: locale().dir,
|
|
127
127
|
getRootNode: environment().getRootNode,
|
|
128
|
-
open: props.defaultOpen,
|
|
129
|
-
"open.controlled": props.open !== void 0,
|
|
130
128
|
...props
|
|
131
129
|
}));
|
|
132
|
-
const
|
|
133
|
-
return createMemo(() => popover.connect(
|
|
130
|
+
const service = useMachine(popover.machine, machineProps);
|
|
131
|
+
return createMemo(() => popover.connect(service, normalizeProps));
|
|
134
132
|
};
|
|
135
133
|
|
|
136
134
|
// src/components/popover/popover-root.tsx
|
|
@@ -166,9 +164,7 @@ var PopoverRoot = (props) => {
|
|
|
166
164
|
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
167
165
|
var PopoverRootProvider = (props) => {
|
|
168
166
|
const [presenceProps, popoverProps] = splitPresenceProps(props);
|
|
169
|
-
const presence = usePresence(
|
|
170
|
-
mergeProps10(presenceProps, () => ({ present: popoverProps.value().open }))
|
|
171
|
-
);
|
|
167
|
+
const presence = usePresence(mergeProps10(presenceProps, () => ({ present: popoverProps.value().open })));
|
|
172
168
|
return <PopoverProvider value={popoverProps.value}>
|
|
173
169
|
<PresenceProvider value={presence}>{popoverProps.children}</PresenceProvider>
|
|
174
170
|
</PopoverProvider>;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./2FYSIKNK.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./BPYAMTER.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useLocaleContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./RCXMZN3G.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./TVCIHLER.jsx";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -155,9 +155,7 @@ var [MenuItemGroupProvider, useMenuItemGroupContext] = createContext({
|
|
|
155
155
|
|
|
156
156
|
// src/components/menu/menu-item-group.tsx
|
|
157
157
|
var MenuItemGroup = (props) => {
|
|
158
|
-
const [optionalItemGroupProps, localProps] = createSplitProps()(props, [
|
|
159
|
-
"id"
|
|
160
|
-
]);
|
|
158
|
+
const [optionalItemGroupProps, localProps] = createSplitProps()(props, ["id"]);
|
|
161
159
|
const itemGroupProps = mergeProps8({ id: createUniqueId() }, optionalItemGroupProps);
|
|
162
160
|
const menu2 = useMenuContext();
|
|
163
161
|
const mergedProps = mergeProps8(() => menu2().getItemGroupProps(itemGroupProps), localProps);
|
|
@@ -171,10 +169,7 @@ import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
|
171
169
|
var MenuItemGroupLabel = (props) => {
|
|
172
170
|
const context = useMenuContext();
|
|
173
171
|
const itemGroupContext = useMenuItemGroupContext();
|
|
174
|
-
const mergedProps = mergeProps9(
|
|
175
|
-
context().getItemGroupLabelProps({ htmlFor: itemGroupContext.id }),
|
|
176
|
-
props
|
|
177
|
-
);
|
|
172
|
+
const mergedProps = mergeProps9(context().getItemGroupLabelProps({ htmlFor: itemGroupContext.id }), props);
|
|
178
173
|
return <ark.div {...mergedProps} />;
|
|
179
174
|
};
|
|
180
175
|
|
|
@@ -238,10 +233,11 @@ var MenuRadioItem = (props) => {
|
|
|
238
233
|
import { mergeProps as mergeProps14 } from "@zag-js/solid";
|
|
239
234
|
import { createUniqueId as createUniqueId2 } from "solid-js";
|
|
240
235
|
var MenuRadioItemGroup = (props) => {
|
|
241
|
-
const [optionalItemGroupProps, localProps] = createSplitProps()(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
236
|
+
const [optionalItemGroupProps, localProps] = createSplitProps()(props, [
|
|
237
|
+
"id",
|
|
238
|
+
"onValueChange",
|
|
239
|
+
"value"
|
|
240
|
+
]);
|
|
245
241
|
const context = useMenuContext();
|
|
246
242
|
const itemGroupProps = mergeProps14({ id: createUniqueId2() }, optionalItemGroupProps);
|
|
247
243
|
const mergedProps = mergeProps14(() => context().getItemGroupProps(itemGroupProps), localProps);
|
|
@@ -252,29 +248,27 @@ var MenuRadioItemGroup = (props) => {
|
|
|
252
248
|
|
|
253
249
|
// src/components/menu/menu-root.tsx
|
|
254
250
|
import { mergeProps as mergeProps15 } from "@zag-js/solid";
|
|
255
|
-
import {
|
|
251
|
+
import { onMount } from "solid-js";
|
|
256
252
|
|
|
257
253
|
// src/components/menu/use-menu.ts
|
|
258
254
|
import * as menu from "@zag-js/menu";
|
|
259
255
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
260
256
|
import { createMemo as createMemo4, createUniqueId as createUniqueId3 } from "solid-js";
|
|
261
257
|
var useMenu = (props = {}) => {
|
|
258
|
+
const id = createUniqueId3();
|
|
262
259
|
const locale = useLocaleContext();
|
|
263
260
|
const environment = useEnvironmentContext();
|
|
264
|
-
const
|
|
265
|
-
const context = createMemo4(() => ({
|
|
261
|
+
const machineProps = createMemo4(() => ({
|
|
266
262
|
id,
|
|
267
263
|
dir: locale().dir,
|
|
268
264
|
getRootNode: environment().getRootNode,
|
|
269
|
-
open: props.defaultOpen,
|
|
270
|
-
"open.controlled": props.open !== void 0,
|
|
271
265
|
...props
|
|
272
266
|
}));
|
|
273
|
-
const
|
|
274
|
-
const api = createMemo4(() => menu.connect(
|
|
267
|
+
const service = useMachine(menu.machine, machineProps);
|
|
268
|
+
const api = createMemo4(() => menu.connect(service, normalizeProps));
|
|
275
269
|
return {
|
|
276
270
|
api,
|
|
277
|
-
|
|
271
|
+
service
|
|
278
272
|
};
|
|
279
273
|
};
|
|
280
274
|
|
|
@@ -300,11 +294,13 @@ var MenuRoot = (props) => {
|
|
|
300
294
|
"aria-label",
|
|
301
295
|
"closeOnSelect",
|
|
302
296
|
"composite",
|
|
297
|
+
"defaultHighlightedValue",
|
|
303
298
|
"defaultOpen",
|
|
304
299
|
"highlightedValue",
|
|
305
300
|
"id",
|
|
306
301
|
"ids",
|
|
307
302
|
"loopFocus",
|
|
303
|
+
"navigate",
|
|
308
304
|
"onEscapeKeyDown",
|
|
309
305
|
"onFocusOutside",
|
|
310
306
|
"onHighlightChange",
|
|
@@ -313,7 +309,6 @@ var MenuRoot = (props) => {
|
|
|
313
309
|
"onPointerDownOutside",
|
|
314
310
|
"onSelect",
|
|
315
311
|
"open",
|
|
316
|
-
"navigate",
|
|
317
312
|
"positioning",
|
|
318
313
|
"typeahead"
|
|
319
314
|
]);
|
|
@@ -321,14 +316,14 @@ var MenuRoot = (props) => {
|
|
|
321
316
|
const parentMachine = useMenuMachineContext();
|
|
322
317
|
const menu2 = useMenu(useMenuProps);
|
|
323
318
|
const presenceApi = usePresence(mergeProps15(presenceProps, () => ({ present: menu2.api().open })));
|
|
324
|
-
|
|
319
|
+
onMount(() => {
|
|
325
320
|
if (!parentMachine) return;
|
|
326
|
-
parentApi?.().setChild(menu2.
|
|
321
|
+
parentApi?.().setChild(menu2.service);
|
|
327
322
|
menu2.api().setParent(parentMachine);
|
|
328
323
|
});
|
|
329
324
|
const triggerItemContext = () => parentApi?.().getTriggerItemProps(menu2.api());
|
|
330
325
|
return <MenuTriggerItemProvider value={triggerItemContext}>
|
|
331
|
-
<MenuMachineProvider value={menu2.
|
|
326
|
+
<MenuMachineProvider value={menu2.service}>
|
|
332
327
|
<MenuProvider value={menu2.api}>
|
|
333
328
|
<PresenceProvider value={presenceApi}>{localProps.children}</PresenceProvider>
|
|
334
329
|
</MenuProvider>
|
|
@@ -338,22 +333,20 @@ var MenuRoot = (props) => {
|
|
|
338
333
|
|
|
339
334
|
// src/components/menu/menu-root-provider.tsx
|
|
340
335
|
import { mergeProps as mergeProps16 } from "@zag-js/solid";
|
|
341
|
-
import { createEffect
|
|
336
|
+
import { createEffect } from "solid-js";
|
|
342
337
|
var MenuRootProvider = (props) => {
|
|
343
338
|
const parentApi = useMenuContext();
|
|
344
339
|
const parentMachine = useMenuMachineContext();
|
|
345
340
|
const [presenceProps, menuProps] = splitPresenceProps(props);
|
|
346
|
-
const presenceApi = usePresence(
|
|
347
|
-
|
|
348
|
-
);
|
|
349
|
-
createEffect2(() => {
|
|
341
|
+
const presenceApi = usePresence(mergeProps16(presenceProps, () => ({ present: menuProps.value.api().open })));
|
|
342
|
+
createEffect(() => {
|
|
350
343
|
if (!parentMachine) return;
|
|
351
|
-
parentApi?.().setChild(menuProps.value.
|
|
344
|
+
parentApi?.().setChild(menuProps.value.service);
|
|
352
345
|
menuProps.value.api().setParent(parentMachine);
|
|
353
346
|
});
|
|
354
347
|
const triggerItemContext = () => parentApi?.().getTriggerItemProps(menuProps.value.api());
|
|
355
348
|
return <MenuTriggerItemProvider value={triggerItemContext}>
|
|
356
|
-
<MenuMachineProvider value={menuProps.value.
|
|
349
|
+
<MenuMachineProvider value={menuProps.value.service}>
|
|
357
350
|
<MenuProvider value={menuProps.value.api}>
|
|
358
351
|
<PresenceProvider value={presenceApi}>{menuProps.children}</PresenceProvider>
|
|
359
352
|
</MenuProvider>
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./BPYAMTER.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useLocaleContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./RCXMZN3G.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./TVCIHLER.jsx";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./7IUG3E2V.jsx";
|
|
@@ -35,10 +35,7 @@ var QrCodeDownloadTrigger = (props) => {
|
|
|
35
35
|
"quality"
|
|
36
36
|
]);
|
|
37
37
|
const qrCode2 = useQrCodeContext();
|
|
38
|
-
const mergedProps = mergeProps(
|
|
39
|
-
() => qrCode2().getDownloadTriggerProps(downloadTriggerProps),
|
|
40
|
-
localProps
|
|
41
|
-
);
|
|
38
|
+
const mergedProps = mergeProps(() => qrCode2().getDownloadTriggerProps(downloadTriggerProps), localProps);
|
|
42
39
|
return <ark.button {...mergedProps} />;
|
|
43
40
|
};
|
|
44
41
|
|
|
@@ -74,20 +71,17 @@ import * as qrCode from "@zag-js/qr-code";
|
|
|
74
71
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
75
72
|
import { createMemo, createUniqueId } from "solid-js";
|
|
76
73
|
var useQrCode = (props = {}) => {
|
|
74
|
+
const id = createUniqueId();
|
|
77
75
|
const locale = useLocaleContext();
|
|
78
76
|
const environment = useEnvironmentContext();
|
|
79
|
-
const
|
|
80
|
-
const context = createMemo(() => ({
|
|
77
|
+
const machineProps = createMemo(() => ({
|
|
81
78
|
id,
|
|
82
79
|
dir: locale().dir,
|
|
83
80
|
getRootNode: environment().getRootNode,
|
|
84
|
-
value: props.defaultValue,
|
|
85
81
|
...props
|
|
86
82
|
}));
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
});
|
|
90
|
-
return createMemo(() => qrCode.connect(state, send, normalizeProps));
|
|
83
|
+
const service = useMachine(qrCode.machine, machineProps);
|
|
84
|
+
return createMemo(() => qrCode.connect(service, normalizeProps));
|
|
91
85
|
};
|
|
92
86
|
|
|
93
87
|
// src/components/qr-code/qr-code-root.tsx
|
|
@@ -98,6 +92,7 @@ var QrCodeRoot = (props) => {
|
|
|
98
92
|
"id",
|
|
99
93
|
"ids",
|
|
100
94
|
"onValueChange",
|
|
95
|
+
"pixelSize",
|
|
101
96
|
"value"
|
|
102
97
|
]);
|
|
103
98
|
const api = useQrCode(useQrCodeProps);
|