@ark-ui/solid 5.6.0 → 5.8.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/chunk/{YGOJI6HV.js → 6VPRFZA4.js} +2 -2
- package/dist/chunk/{Y3WE2S3D.jsx → 7LQ4EWHB.jsx} +4 -4
- package/dist/chunk/{SSZEXBY3.js → BBUDIIYT.js} +79 -45
- package/dist/chunk/{VDDVCRFC.jsx → BXAUWHBZ.jsx} +6 -4
- package/dist/chunk/{N4O7ZKCJ.jsx → BZLIWOGC.jsx} +4 -4
- package/dist/chunk/{EEG3DZXG.jsx → CRWRK56B.jsx} +4 -3
- package/dist/chunk/ETB2BIQZ.jsx +30 -0
- package/dist/chunk/{U67NSVQP.js → FPYZVUFW.js} +2 -2
- package/dist/chunk/{ABSJMCRQ.js → HUQXLQRU.js} +2 -2
- package/dist/chunk/{G2DDCQSJ.jsx → MJEKBIW2.jsx} +83 -50
- package/dist/chunk/N3VQSC2A.js +1057 -0
- package/dist/chunk/{4UD3WT4B.js → PHBHYNUH.js} +2 -2
- package/dist/chunk/PKUUD527.js +25 -0
- package/dist/chunk/{OF3ALDDY.js → QCEB2LAT.js} +4 -2
- package/dist/chunk/RU4LLCFH.jsx +1128 -0
- package/dist/chunk/{MM2I4S7S.jsx → SPPHU23S.jsx} +4 -4
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +3 -3
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +2 -2
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +2 -2
- package/dist/components/clipboard/index.jsx +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +2 -2
- package/dist/components/collection.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +3 -3
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +3 -3
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +2 -2
- package/dist/components/download-trigger/index.jsx +1 -1
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +2 -2
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +2 -2
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +3 -2
- package/dist/components/format/index.jsx +1 -1
- package/dist/components/frame/index.jsx +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +2 -2
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +42 -41
- package/dist/components/index.jsx +405 -370
- package/dist/components/listbox/index.d.ts +113 -0
- package/dist/components/listbox/index.js +2 -0
- package/dist/components/listbox/index.jsx +49 -0
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +2 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +2 -2
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +2 -2
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +2 -2
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +2 -2
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +3 -3
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +2 -2
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +2 -2
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +2 -2
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +2 -2
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +2 -2
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +2 -2
- package/dist/components/timer/index.jsx +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +2 -2
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +2 -2
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +2 -2
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +43 -42
- package/dist/index.jsx +402 -367
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +4 -4
- package/package.json +63 -62
- package/dist/chunk/{Z254KIAA.jsx → 2ZIPSG6O.jsx} +3 -3
- package/dist/chunk/{MA35L6TV.jsx → 3GZBI3C7.jsx} +3 -3
- package/dist/chunk/{AD2EIGNX.jsx → 3RSBQIQ3.jsx} +3 -3
- package/dist/chunk/{ROXCI3ZP.js → 4ALLEGBR.js} +1 -1
- package/dist/chunk/{KOWWX76D.js → 4FHVXCRW.js} +2 -2
- package/dist/chunk/{CGUVAYKV.js → 5FWNSCWP.js} +1 -1
- package/dist/chunk/{E7EIHMW2.js → 5I3KMKOJ.js} +0 -0
- package/dist/chunk/{DPTBH7NV.js → 5JGPNGFH.js} +1 -1
- package/dist/chunk/{C5HFE3OV.js → 5X7KNFCM.js} +1 -1
- package/dist/chunk/{O6XGGFFV.jsx → 64OEA2DF.jsx} +3 -3
- package/dist/chunk/{2HLGNCOQ.js → 6NYYJAMS.js} +1 -1
- package/dist/chunk/{JWXGONCE.js → ACHQ3WMT.js} +1 -1
- package/dist/chunk/{7LCINU3A.jsx → ASFHFF7Y.jsx} +3 -3
- package/dist/chunk/{QBFJVUX3.js → ATMLAY2Z.js} +1 -1
- package/dist/chunk/{74VQO5NB.js → BOAJIMOM.js} +2 -2
- package/dist/chunk/{MSINFF7E.jsx → BWOFNO5N.jsx} +3 -3
- package/dist/chunk/{TM5I6GID.jsx → CLX4TELO.jsx} +3 -3
- package/dist/chunk/{QN2KHWAW.jsx → CMXNP72H.jsx} +3 -3
- package/dist/chunk/{YPH7FBUN.jsx → D4UVDNW5.jsx} +3 -3
- package/dist/chunk/{46YZVE6D.js → DBIUMOLI.js} +1 -1
- package/dist/chunk/{IKA3JJFV.jsx → ENH3JQLY.jsx} +3 -3
- package/dist/chunk/{AMEMCPNB.jsx → EX2VGSCG.jsx} +3 -3
- package/dist/chunk/{CHLRHJV2.jsx → FHEJON2W.jsx} +3 -3
- package/dist/chunk/{AYESR2LP.jsx → FUGFSIYK.jsx} +3 -3
- package/dist/chunk/{DUMB6XV5.js → FVIF7LDE.js} +1 -1
- package/dist/chunk/{ROFVSOHA.jsx → HNF2QPQ2.jsx} +3 -3
- package/dist/chunk/{24OEHSBA.js → HQJBHHB6.js} +1 -1
- package/dist/chunk/{4VSNWWYK.js → HS2AKVM3.js} +2 -2
- package/dist/chunk/{XH6HBC54.jsx → IEGQ2BAU.jsx} +0 -0
- package/dist/chunk/{CRYRP5LM.jsx → IK5AQC3K.jsx} +6 -6
- package/dist/chunk/{SUOC3NNA.js → IMKHRMUF.js} +1 -1
- package/dist/chunk/{RY6GW37O.jsx → ISCBIWKW.jsx} +3 -3
- package/dist/chunk/{TKGOCHK5.js → JCVIA4KI.js} +1 -1
- package/dist/chunk/{Z2TDX72A.js → K2GRJC27.js} +1 -1
- package/dist/chunk/{F4L2MTJA.jsx → KRJNIKO2.jsx} +3 -3
- package/dist/chunk/{ZDKSAOA5.jsx → KWT5RGLQ.jsx} +3 -3
- package/dist/chunk/{JTNTC6FF.jsx → L3SIBBML.jsx} +3 -3
- package/dist/chunk/{ZOGAU3AQ.js → L7KH34DE.js} +1 -1
- package/dist/chunk/{DJIEVIL4.jsx → LI7J6F7D.jsx} +3 -3
- package/dist/chunk/{K5AG7O7B.jsx → LKX2UAMN.jsx} +3 -3
- package/dist/chunk/{2WVEDTEK.js → LPWKZJG2.js} +1 -1
- package/dist/chunk/{XZZ6TULR.jsx → MD7PHDJK.jsx} +3 -3
- package/dist/chunk/{E2CL7JEV.js → MPNDTPUK.js} +1 -1
- package/dist/chunk/{JN5MJP56.jsx → MTVAX7XO.jsx} +3 -3
- package/dist/chunk/{BVKIR2P4.js → MXJSLVKN.js} +1 -1
- package/dist/chunk/{WR7AKRSO.jsx → N26ZXGSY.jsx} +3 -3
- package/dist/chunk/{BT2NIRPC.js → OBLSSYMA.js} +1 -1
- package/dist/chunk/{DW4NU34Z.js → OE7Y5R5I.js} +1 -1
- package/dist/chunk/{GNQB7IOU.js → OMTG2F6B.js} +1 -1
- package/dist/chunk/{WXJYBPWI.js → PDYWOA6Y.js} +1 -1
- package/dist/chunk/{N3FF6O2Y.js → POK6DGO4.js} +1 -1
- package/dist/chunk/{WW35AWP2.js → QRODT7WM.js} +1 -1
- package/dist/chunk/{YIVTZ7BP.jsx → QXPKPCGG.jsx} +3 -3
- package/dist/chunk/{4QD4ZSJK.jsx → ROA4DJEO.jsx} +3 -3
- package/dist/chunk/{IXXDQXSI.js → RXOSUP6U.js} +1 -1
- package/dist/chunk/{T3IKIVSG.jsx → TKQSSFZN.jsx} +3 -3
- package/dist/chunk/{7TPJ7KWF.jsx → UH2ERZB4.jsx} +6 -6
- package/dist/chunk/{Z3MPOJ5X.js → UIEL6LO3.js} +1 -1
- package/dist/chunk/{DXWAFMGQ.jsx → VWUOL2OR.jsx} +3 -3
- package/dist/chunk/{KLURGV6W.jsx → WKJMOIA7.jsx} +3 -3
- package/dist/chunk/{C4PG7WMU.js → XME7TKM2.js} +1 -1
- package/dist/chunk/{UGS5HMDP.jsx → XOHR2G2L.jsx} +6 -6
- package/dist/chunk/{S42D66WQ.js → YECHEPH3.js} +1 -1
- package/dist/chunk/{2H2BP2D4.jsx → YIOS67AB.jsx} +3 -3
- package/dist/chunk/{MSLAT5GQ.js → YIY75WWN.js} +1 -1
- package/dist/chunk/{WOSTAOH5.js → ZKM4DTGM.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
3
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { createContext } from './TROPIN4C.js';
|
|
6
6
|
import { runIfFn } from './DT73WLR4.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
@@ -41,7 +41,7 @@ var useToggleGroup = (props) => {
|
|
|
41
41
|
|
|
42
42
|
// src/components/toggle-group/toggle-group-root.tsx
|
|
43
43
|
var ToggleGroupRoot = (props) => {
|
|
44
|
-
const [useToggleGroupProps, restProps] = createSplitProps()(props, ["defaultValue", "disabled", "id", "ids", "loopFocus", "multiple", "onValueChange", "orientation", "rovingFocus", "value"]);
|
|
44
|
+
const [useToggleGroupProps, restProps] = createSplitProps()(props, ["defaultValue", "deselectable", "disabled", "id", "ids", "loopFocus", "multiple", "onValueChange", "orientation", "rovingFocus", "value"]);
|
|
45
45
|
const api = useToggleGroup(useToggleGroupProps);
|
|
46
46
|
const mergedProps = mergeProps(() => api().getRootProps(), restProps);
|
|
47
47
|
return createComponent(ToggleGroupProvider, {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ../../node_modules/@zag-js/core/dist/index.mjs
|
|
2
|
+
function createGuards() {
|
|
3
|
+
return {
|
|
4
|
+
and: (...guards) => {
|
|
5
|
+
return function andGuard(params) {
|
|
6
|
+
return guards.every((str) => params.guard(str));
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
or: (...guards) => {
|
|
10
|
+
return function orGuard(params) {
|
|
11
|
+
return guards.some((str) => params.guard(str));
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
not: (guard) => {
|
|
15
|
+
return function notGuard(params) {
|
|
16
|
+
return !params.guard(guard);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function createMachine(config) {
|
|
22
|
+
return config;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { createGuards, createMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ark } from './EPLBB4QN.js';
|
|
2
|
-
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
3
2
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
4
|
import { createContext } from './TROPIN4C.js';
|
|
5
5
|
import { __export } from './ESLJRKWD.js';
|
|
6
6
|
import * as toast2 from '@zag-js/toast';
|
|
@@ -87,10 +87,12 @@ var Toaster = (props) => {
|
|
|
87
87
|
}));
|
|
88
88
|
};
|
|
89
89
|
var ToastActor = (props) => {
|
|
90
|
+
const env = useEnvironmentContext();
|
|
90
91
|
const localProps = createMemo(() => ({
|
|
91
92
|
...props.value(),
|
|
92
93
|
parent: props.parent,
|
|
93
|
-
index: props.index()
|
|
94
|
+
index: props.index(),
|
|
95
|
+
getRootNode: env().getRootNode
|
|
94
96
|
}));
|
|
95
97
|
const service = useMachine(toast2.machine, localProps);
|
|
96
98
|
const api = createMemo(() => toast2.connect(service, normalizeProps));
|