@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,9 +1,9 @@
|
|
|
1
|
-
import { collapsible_exports } from './
|
|
1
|
+
import { collapsible_exports } from './OE7Y5R5I.js';
|
|
2
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 './YMMMHJJS.js';
|
|
6
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
9
|
import { __export } from './ESLJRKWD.js';
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ark
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./D2Z5BEON.jsx";
|
|
19
16
|
import {
|
|
20
17
|
useLocaleContext
|
|
21
18
|
} from "./RCXMZN3G.jsx";
|
|
19
|
+
import {
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./D2Z5BEON.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./TVCIHLER.jsx";
|
|
@@ -198,7 +198,6 @@ var DatePickerRoot = (props) => {
|
|
|
198
198
|
"id",
|
|
199
199
|
"ids",
|
|
200
200
|
"isDateUnavailable",
|
|
201
|
-
"isDateUnavailable",
|
|
202
201
|
"locale",
|
|
203
202
|
"max",
|
|
204
203
|
"maxView",
|
|
@@ -206,6 +205,7 @@ var DatePickerRoot = (props) => {
|
|
|
206
205
|
"minView",
|
|
207
206
|
"name",
|
|
208
207
|
"numOfMonths",
|
|
208
|
+
"outsideDaySelectable",
|
|
209
209
|
"onFocusChange",
|
|
210
210
|
"onOpenChange",
|
|
211
211
|
"onValueChange",
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { createGuards, createMachine } from './PKUUD527.js';
|
|
1
2
|
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './7S3N5UQH.js';
|
|
2
3
|
import { createSplitProps as createSplitProps$1 } from './ZMHI4GDJ.js';
|
|
3
4
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
7
|
import { createContext } from './TROPIN4C.js';
|
|
7
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { __export } from './ESLJRKWD.js';
|
|
9
10
|
import { createComponent } from 'solid-js/web';
|
|
10
11
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
11
12
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
13
|
+
import { raf, isHTMLElement, addDomEvent, trackPointerMove, dataAttr, getEventTarget, isSelfTarget, getEventStep, getEventKey } from '@zag-js/dom-query';
|
|
14
|
+
import { invariant, match, pick, clampValue, ensureProps, createSplitProps, toPx } from '@zag-js/utils';
|
|
14
15
|
import { createProps } from '@zag-js/types';
|
|
15
16
|
import { createUniqueId, createMemo } from 'solid-js';
|
|
16
17
|
|
|
@@ -451,28 +452,6 @@ function transformRect(rect, transform, normalized = true) {
|
|
|
451
452
|
const p2 = transform.applyTo({ x: rect.maxX, y: rect.maxY });
|
|
452
453
|
return createRectFromPoints(p1, p2, normalized);
|
|
453
454
|
}
|
|
454
|
-
function createGuards() {
|
|
455
|
-
return {
|
|
456
|
-
and: (...guards) => {
|
|
457
|
-
return function andGuard(params) {
|
|
458
|
-
return guards.every((str) => params.guard(str));
|
|
459
|
-
};
|
|
460
|
-
},
|
|
461
|
-
or: (...guards) => {
|
|
462
|
-
return function orGuard(params) {
|
|
463
|
-
return guards.some((str) => params.guard(str));
|
|
464
|
-
};
|
|
465
|
-
},
|
|
466
|
-
not: (guard) => {
|
|
467
|
-
return function notGuard(params) {
|
|
468
|
-
return !params.guard(guard);
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
function createMachine(config) {
|
|
474
|
-
return config;
|
|
475
|
-
}
|
|
476
455
|
var GET_ORIGINAL_SYMBOL = Symbol();
|
|
477
456
|
var getProto = Object.getPrototypeOf;
|
|
478
457
|
var objectsToTrack = /* @__PURE__ */ new WeakMap();
|
|
@@ -861,7 +840,8 @@ function connect(service, normalize) {
|
|
|
861
840
|
onClick(event) {
|
|
862
841
|
if (event.defaultPrevented) return;
|
|
863
842
|
if (prop("disabled")) return;
|
|
864
|
-
|
|
843
|
+
const open2 = state.hasTag("open");
|
|
844
|
+
send({ type: open2 ? "CLOSE" : "OPEN", src: "trigger" });
|
|
865
845
|
}
|
|
866
846
|
});
|
|
867
847
|
},
|
|
@@ -1098,7 +1078,7 @@ var panelStack = proxy({
|
|
|
1098
1078
|
return this.stack.indexOf(id);
|
|
1099
1079
|
}
|
|
1100
1080
|
});
|
|
1101
|
-
var { not } = createGuards();
|
|
1081
|
+
var { not, and } = createGuards();
|
|
1102
1082
|
var defaultTranslations = {
|
|
1103
1083
|
minimize: "Minimize window",
|
|
1104
1084
|
maximize: "Maximize window",
|
|
@@ -1108,7 +1088,7 @@ var machine = createMachine({
|
|
|
1108
1088
|
props({ props: props2 }) {
|
|
1109
1089
|
ensureProps(props2, ["id"], "floating-panel");
|
|
1110
1090
|
return {
|
|
1111
|
-
strategy: "
|
|
1091
|
+
strategy: "fixed",
|
|
1112
1092
|
gridSize: 1,
|
|
1113
1093
|
defaultSize: { width: 320, height: 240 },
|
|
1114
1094
|
defaultPosition: { x: 300, y: 100 },
|
|
@@ -1207,10 +1187,20 @@ var machine = createMachine({
|
|
|
1207
1187
|
closed: {
|
|
1208
1188
|
tags: ["closed"],
|
|
1209
1189
|
on: {
|
|
1210
|
-
OPEN: {
|
|
1190
|
+
"CONTROLLED.OPEN": {
|
|
1211
1191
|
target: "open",
|
|
1212
|
-
actions: ["
|
|
1213
|
-
}
|
|
1192
|
+
actions: ["setAnchorPosition", "setPositionStyle", "setSizeStyle", "focusContentEl"]
|
|
1193
|
+
},
|
|
1194
|
+
OPEN: [
|
|
1195
|
+
{
|
|
1196
|
+
guard: "isOpenControlled",
|
|
1197
|
+
actions: ["invokeOnOpen"]
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
target: "open",
|
|
1201
|
+
actions: ["invokeOnOpen", "setAnchorPosition", "setPositionStyle", "setSizeStyle", "focusContentEl"]
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1214
1204
|
}
|
|
1215
1205
|
},
|
|
1216
1206
|
open: {
|
|
@@ -1228,15 +1218,32 @@ var machine = createMachine({
|
|
|
1228
1218
|
target: "open.resizing",
|
|
1229
1219
|
actions: ["setPrevSize"]
|
|
1230
1220
|
},
|
|
1231
|
-
CLOSE: {
|
|
1232
|
-
target: "closed",
|
|
1233
|
-
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1234
|
-
},
|
|
1235
|
-
ESCAPE: {
|
|
1236
|
-
guard: "closeOnEsc",
|
|
1221
|
+
"CONTROLLED.CLOSE": {
|
|
1237
1222
|
target: "closed",
|
|
1238
|
-
actions: ["
|
|
1223
|
+
actions: ["resetRect", "focusTriggerEl"]
|
|
1239
1224
|
},
|
|
1225
|
+
CLOSE: [
|
|
1226
|
+
{
|
|
1227
|
+
guard: "isOpenControlled",
|
|
1228
|
+
target: "closed",
|
|
1229
|
+
actions: ["invokeOnClose"]
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
target: "closed",
|
|
1233
|
+
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
ESCAPE: [
|
|
1237
|
+
{
|
|
1238
|
+
guard: and("isOpenControlled", "closeOnEsc"),
|
|
1239
|
+
actions: ["invokeOnClose"]
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
guard: "closeOnEsc",
|
|
1243
|
+
target: "closed",
|
|
1244
|
+
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1245
|
+
}
|
|
1246
|
+
],
|
|
1240
1247
|
MINIMIZE: {
|
|
1241
1248
|
actions: ["setMinimized"]
|
|
1242
1249
|
},
|
|
@@ -1263,10 +1270,21 @@ var machine = createMachine({
|
|
|
1263
1270
|
target: "open",
|
|
1264
1271
|
actions: ["invokeOnDragEnd"]
|
|
1265
1272
|
},
|
|
1266
|
-
CLOSE: {
|
|
1273
|
+
"CONTROLLED.CLOSE": {
|
|
1267
1274
|
target: "closed",
|
|
1268
|
-
actions: ["
|
|
1275
|
+
actions: ["resetRect"]
|
|
1269
1276
|
},
|
|
1277
|
+
CLOSE: [
|
|
1278
|
+
{
|
|
1279
|
+
guard: "isOpenControlled",
|
|
1280
|
+
target: "closed",
|
|
1281
|
+
actions: ["invokeOnClose"]
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
target: "closed",
|
|
1285
|
+
actions: ["invokeOnClose", "resetRect"]
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1270
1288
|
ESCAPE: {
|
|
1271
1289
|
target: "open"
|
|
1272
1290
|
}
|
|
@@ -1284,10 +1302,21 @@ var machine = createMachine({
|
|
|
1284
1302
|
target: "open",
|
|
1285
1303
|
actions: ["invokeOnResizeEnd"]
|
|
1286
1304
|
},
|
|
1287
|
-
CLOSE: {
|
|
1305
|
+
"CONTROLLED.CLOSE": {
|
|
1288
1306
|
target: "closed",
|
|
1289
|
-
actions: ["
|
|
1307
|
+
actions: ["resetRect"]
|
|
1290
1308
|
},
|
|
1309
|
+
CLOSE: [
|
|
1310
|
+
{
|
|
1311
|
+
guard: "isOpenControlled",
|
|
1312
|
+
target: "closed",
|
|
1313
|
+
actions: ["invokeOnClose"]
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
target: "closed",
|
|
1317
|
+
actions: ["invokeOnClose", "resetRect"]
|
|
1318
|
+
}
|
|
1319
|
+
],
|
|
1291
1320
|
ESCAPE: {
|
|
1292
1321
|
target: "open"
|
|
1293
1322
|
}
|
|
@@ -1298,15 +1327,20 @@ var machine = createMachine({
|
|
|
1298
1327
|
guards: {
|
|
1299
1328
|
closeOnEsc: ({ prop }) => !!prop("closeOnEscape"),
|
|
1300
1329
|
isMaximized: ({ context }) => context.get("stage") === "maximized",
|
|
1301
|
-
isMinimized: ({ context }) => context.get("stage") === "minimized"
|
|
1330
|
+
isMinimized: ({ context }) => context.get("stage") === "minimized",
|
|
1331
|
+
isOpenControlled: ({ prop }) => prop("open") != void 0
|
|
1302
1332
|
},
|
|
1303
1333
|
effects: {
|
|
1304
|
-
trackPointerMove({ scope, send, event: evt }) {
|
|
1334
|
+
trackPointerMove({ scope, send, event: evt, prop }) {
|
|
1305
1335
|
const doc = scope.getDoc();
|
|
1336
|
+
const boundaryEl = prop("getBoundaryEl")?.();
|
|
1337
|
+
const boundaryRect = getBoundaryRect(scope, boundaryEl, false);
|
|
1306
1338
|
return trackPointerMove(doc, {
|
|
1307
1339
|
onPointerMove({ point, event }) {
|
|
1308
1340
|
const { altKey, shiftKey } = event;
|
|
1309
|
-
|
|
1341
|
+
let x = clampValue(point.x, boundaryRect.x, boundaryRect.x + boundaryRect.width);
|
|
1342
|
+
let y = clampValue(point.y, boundaryRect.y, boundaryRect.y + boundaryRect.height);
|
|
1343
|
+
send({ type: "DRAG", position: { x, y }, axis: evt.axis, altKey, shiftKey });
|
|
1310
1344
|
},
|
|
1311
1345
|
onPointerUp() {
|
|
1312
1346
|
send({ type: "DRAG_END" });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ark
|
|
3
3
|
} from "./UFYZ7HLU.jsx";
|
|
4
|
-
import {
|
|
5
|
-
useEnvironmentContext
|
|
6
|
-
} from "./D2Z5BEON.jsx";
|
|
7
4
|
import {
|
|
8
5
|
useLocaleContext
|
|
9
6
|
} from "./RCXMZN3G.jsx";
|
|
7
|
+
import {
|
|
8
|
+
useEnvironmentContext
|
|
9
|
+
} from "./D2Z5BEON.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createContext
|
|
12
12
|
} from "./TVCIHLER.jsx";
|
|
@@ -104,10 +104,12 @@ var Toaster = (props) => {
|
|
|
104
104
|
</ark.div>;
|
|
105
105
|
};
|
|
106
106
|
var ToastActor = (props) => {
|
|
107
|
+
const env = useEnvironmentContext();
|
|
107
108
|
const localProps = createMemo(() => ({
|
|
108
109
|
...props.value(),
|
|
109
110
|
parent: props.parent,
|
|
110
|
-
index: props.index()
|
|
111
|
+
index: props.index(),
|
|
112
|
+
getRootNode: env().getRootNode
|
|
111
113
|
}));
|
|
112
114
|
const service = useMachine(toast2.machine, localProps);
|
|
113
115
|
const api = createMemo(() => toast2.connect(service, normalizeProps));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapsible_exports,
|
|
3
3
|
useCollapsibleContext
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./FUGFSIYK.jsx";
|
|
5
5
|
import {
|
|
6
6
|
RenderStrategyProvider,
|
|
7
7
|
splitRenderStrategyProps,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ark
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./D2Z5BEON.jsx";
|
|
19
16
|
import {
|
|
20
17
|
useLocaleContext
|
|
21
18
|
} from "./RCXMZN3G.jsx";
|
|
19
|
+
import {
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./D2Z5BEON.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./TVCIHLER.jsx";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./D2Z5BEON.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./RCXMZN3G.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./D2Z5BEON.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./TVCIHLER.jsx";
|
|
@@ -63,6 +63,7 @@ var useToggleGroup = (props) => {
|
|
|
63
63
|
var ToggleGroupRoot = (props) => {
|
|
64
64
|
const [useToggleGroupProps, restProps] = createSplitProps()(props, [
|
|
65
65
|
"defaultValue",
|
|
66
|
+
"deselectable",
|
|
66
67
|
"disabled",
|
|
67
68
|
"id",
|
|
68
69
|
"ids",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ../../node_modules/@zag-js/core/dist/index.mjs
|
|
2
|
+
import { callAll, isEqual, isString } from "@zag-js/utils";
|
|
3
|
+
import { getActiveElement, getDocument } from "@zag-js/dom-query";
|
|
4
|
+
function createGuards() {
|
|
5
|
+
return {
|
|
6
|
+
and: (...guards) => {
|
|
7
|
+
return function andGuard(params) {
|
|
8
|
+
return guards.every((str) => params.guard(str));
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
or: (...guards) => {
|
|
12
|
+
return function orGuard(params) {
|
|
13
|
+
return guards.some((str) => params.guard(str));
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
not: (guard) => {
|
|
17
|
+
return function notGuard(params) {
|
|
18
|
+
return !params.guard(guard);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createMachine(config) {
|
|
24
|
+
return config;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
createGuards,
|
|
29
|
+
createMachine
|
|
30
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useCollapsibleContext, collapsible_exports } from './
|
|
1
|
+
import { useCollapsibleContext, collapsible_exports } from './OE7Y5R5I.js';
|
|
2
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 './YMMMHJJS.js';
|
|
6
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
9
|
import { __export } from './ESLJRKWD.js';
|
|
@@ -2,8 +2,8 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
|
|
|
2
2
|
import { composeRefs } from './XN6EERRM.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
9
|
import { __export } from './ESLJRKWD.js';
|
|
@@ -151,7 +151,7 @@ var useDatePicker = (props) => {
|
|
|
151
151
|
// src/components/date-picker/date-picker-root.tsx
|
|
152
152
|
var DatePickerRoot = (props) => {
|
|
153
153
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
154
|
-
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "isDateUnavailable", "
|
|
154
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "isDateUnavailable", "locale", "max", "maxView", "min", "minView", "name", "numOfMonths", "outsideDaySelectable", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "open", "parse", "placeholder", "positioning", "readOnly", "selectionMode", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
155
155
|
const api = useDatePicker(useDatePickerProps);
|
|
156
156
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
157
157
|
present: api().open
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGuards,
|
|
3
|
+
createMachine
|
|
4
|
+
} from "./ETB2BIQZ.jsx";
|
|
1
5
|
import {
|
|
2
6
|
PresenceProvider,
|
|
3
7
|
splitPresenceProps,
|
|
@@ -10,12 +14,12 @@ import {
|
|
|
10
14
|
import {
|
|
11
15
|
ark
|
|
12
16
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useEnvironmentContext
|
|
15
|
-
} from "./D2Z5BEON.jsx";
|
|
16
17
|
import {
|
|
17
18
|
useLocaleContext
|
|
18
19
|
} from "./RCXMZN3G.jsx";
|
|
20
|
+
import {
|
|
21
|
+
useEnvironmentContext
|
|
22
|
+
} from "./D2Z5BEON.jsx";
|
|
19
23
|
import {
|
|
20
24
|
createContext
|
|
21
25
|
} from "./TVCIHLER.jsx";
|
|
@@ -501,33 +505,7 @@ function transformRect(rect, transform, normalized = true) {
|
|
|
501
505
|
}
|
|
502
506
|
|
|
503
507
|
// ../../node_modules/@zag-js/floating-panel/dist/index.mjs
|
|
504
|
-
import { invariant, match, pick, ensureProps, createSplitProps as createSplitProps2, toPx } from "@zag-js/utils";
|
|
505
|
-
|
|
506
|
-
// ../../node_modules/@zag-js/core/dist/index.mjs
|
|
507
|
-
import { callAll, isEqual, isString } from "@zag-js/utils";
|
|
508
|
-
import { getActiveElement, getDocument } from "@zag-js/dom-query";
|
|
509
|
-
function createGuards() {
|
|
510
|
-
return {
|
|
511
|
-
and: (...guards) => {
|
|
512
|
-
return function andGuard(params) {
|
|
513
|
-
return guards.every((str) => params.guard(str));
|
|
514
|
-
};
|
|
515
|
-
},
|
|
516
|
-
or: (...guards) => {
|
|
517
|
-
return function orGuard(params) {
|
|
518
|
-
return guards.some((str) => params.guard(str));
|
|
519
|
-
};
|
|
520
|
-
},
|
|
521
|
-
not: (guard) => {
|
|
522
|
-
return function notGuard(params) {
|
|
523
|
-
return !params.guard(guard);
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
function createMachine(config) {
|
|
529
|
-
return config;
|
|
530
|
-
}
|
|
508
|
+
import { invariant, match, pick, clampValue, ensureProps, createSplitProps as createSplitProps2, toPx } from "@zag-js/utils";
|
|
531
509
|
|
|
532
510
|
// ../../node_modules/proxy-compare/dist/index.js
|
|
533
511
|
var TRACK_MEMO_SYMBOL = Symbol();
|
|
@@ -931,7 +909,8 @@ function connect(service, normalize) {
|
|
|
931
909
|
onClick(event) {
|
|
932
910
|
if (event.defaultPrevented) return;
|
|
933
911
|
if (prop("disabled")) return;
|
|
934
|
-
|
|
912
|
+
const open2 = state.hasTag("open");
|
|
913
|
+
send({ type: open2 ? "CLOSE" : "OPEN", src: "trigger" });
|
|
935
914
|
}
|
|
936
915
|
});
|
|
937
916
|
},
|
|
@@ -1168,7 +1147,7 @@ var panelStack = proxy({
|
|
|
1168
1147
|
return this.stack.indexOf(id);
|
|
1169
1148
|
}
|
|
1170
1149
|
});
|
|
1171
|
-
var { not } = createGuards();
|
|
1150
|
+
var { not, and } = createGuards();
|
|
1172
1151
|
var defaultTranslations = {
|
|
1173
1152
|
minimize: "Minimize window",
|
|
1174
1153
|
maximize: "Maximize window",
|
|
@@ -1178,7 +1157,7 @@ var machine = createMachine({
|
|
|
1178
1157
|
props({ props: props2 }) {
|
|
1179
1158
|
ensureProps(props2, ["id"], "floating-panel");
|
|
1180
1159
|
return {
|
|
1181
|
-
strategy: "
|
|
1160
|
+
strategy: "fixed",
|
|
1182
1161
|
gridSize: 1,
|
|
1183
1162
|
defaultSize: { width: 320, height: 240 },
|
|
1184
1163
|
defaultPosition: { x: 300, y: 100 },
|
|
@@ -1277,10 +1256,20 @@ var machine = createMachine({
|
|
|
1277
1256
|
closed: {
|
|
1278
1257
|
tags: ["closed"],
|
|
1279
1258
|
on: {
|
|
1280
|
-
OPEN: {
|
|
1259
|
+
"CONTROLLED.OPEN": {
|
|
1281
1260
|
target: "open",
|
|
1282
|
-
actions: ["
|
|
1283
|
-
}
|
|
1261
|
+
actions: ["setAnchorPosition", "setPositionStyle", "setSizeStyle", "focusContentEl"]
|
|
1262
|
+
},
|
|
1263
|
+
OPEN: [
|
|
1264
|
+
{
|
|
1265
|
+
guard: "isOpenControlled",
|
|
1266
|
+
actions: ["invokeOnOpen"]
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
target: "open",
|
|
1270
|
+
actions: ["invokeOnOpen", "setAnchorPosition", "setPositionStyle", "setSizeStyle", "focusContentEl"]
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1284
1273
|
}
|
|
1285
1274
|
},
|
|
1286
1275
|
open: {
|
|
@@ -1298,15 +1287,32 @@ var machine = createMachine({
|
|
|
1298
1287
|
target: "open.resizing",
|
|
1299
1288
|
actions: ["setPrevSize"]
|
|
1300
1289
|
},
|
|
1301
|
-
CLOSE: {
|
|
1290
|
+
"CONTROLLED.CLOSE": {
|
|
1302
1291
|
target: "closed",
|
|
1303
|
-
actions: ["
|
|
1304
|
-
},
|
|
1305
|
-
ESCAPE: {
|
|
1306
|
-
guard: "closeOnEsc",
|
|
1307
|
-
target: "closed",
|
|
1308
|
-
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1292
|
+
actions: ["resetRect", "focusTriggerEl"]
|
|
1309
1293
|
},
|
|
1294
|
+
CLOSE: [
|
|
1295
|
+
{
|
|
1296
|
+
guard: "isOpenControlled",
|
|
1297
|
+
target: "closed",
|
|
1298
|
+
actions: ["invokeOnClose"]
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
target: "closed",
|
|
1302
|
+
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
ESCAPE: [
|
|
1306
|
+
{
|
|
1307
|
+
guard: and("isOpenControlled", "closeOnEsc"),
|
|
1308
|
+
actions: ["invokeOnClose"]
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
guard: "closeOnEsc",
|
|
1312
|
+
target: "closed",
|
|
1313
|
+
actions: ["invokeOnClose", "resetRect", "focusTriggerEl"]
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1310
1316
|
MINIMIZE: {
|
|
1311
1317
|
actions: ["setMinimized"]
|
|
1312
1318
|
},
|
|
@@ -1333,10 +1339,21 @@ var machine = createMachine({
|
|
|
1333
1339
|
target: "open",
|
|
1334
1340
|
actions: ["invokeOnDragEnd"]
|
|
1335
1341
|
},
|
|
1336
|
-
CLOSE: {
|
|
1342
|
+
"CONTROLLED.CLOSE": {
|
|
1337
1343
|
target: "closed",
|
|
1338
|
-
actions: ["
|
|
1344
|
+
actions: ["resetRect"]
|
|
1339
1345
|
},
|
|
1346
|
+
CLOSE: [
|
|
1347
|
+
{
|
|
1348
|
+
guard: "isOpenControlled",
|
|
1349
|
+
target: "closed",
|
|
1350
|
+
actions: ["invokeOnClose"]
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
target: "closed",
|
|
1354
|
+
actions: ["invokeOnClose", "resetRect"]
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1340
1357
|
ESCAPE: {
|
|
1341
1358
|
target: "open"
|
|
1342
1359
|
}
|
|
@@ -1354,10 +1371,21 @@ var machine = createMachine({
|
|
|
1354
1371
|
target: "open",
|
|
1355
1372
|
actions: ["invokeOnResizeEnd"]
|
|
1356
1373
|
},
|
|
1357
|
-
CLOSE: {
|
|
1374
|
+
"CONTROLLED.CLOSE": {
|
|
1358
1375
|
target: "closed",
|
|
1359
|
-
actions: ["
|
|
1376
|
+
actions: ["resetRect"]
|
|
1360
1377
|
},
|
|
1378
|
+
CLOSE: [
|
|
1379
|
+
{
|
|
1380
|
+
guard: "isOpenControlled",
|
|
1381
|
+
target: "closed",
|
|
1382
|
+
actions: ["invokeOnClose"]
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
target: "closed",
|
|
1386
|
+
actions: ["invokeOnClose", "resetRect"]
|
|
1387
|
+
}
|
|
1388
|
+
],
|
|
1361
1389
|
ESCAPE: {
|
|
1362
1390
|
target: "open"
|
|
1363
1391
|
}
|
|
@@ -1368,15 +1396,20 @@ var machine = createMachine({
|
|
|
1368
1396
|
guards: {
|
|
1369
1397
|
closeOnEsc: ({ prop }) => !!prop("closeOnEscape"),
|
|
1370
1398
|
isMaximized: ({ context }) => context.get("stage") === "maximized",
|
|
1371
|
-
isMinimized: ({ context }) => context.get("stage") === "minimized"
|
|
1399
|
+
isMinimized: ({ context }) => context.get("stage") === "minimized",
|
|
1400
|
+
isOpenControlled: ({ prop }) => prop("open") != void 0
|
|
1372
1401
|
},
|
|
1373
1402
|
effects: {
|
|
1374
|
-
trackPointerMove({ scope, send, event: evt }) {
|
|
1403
|
+
trackPointerMove({ scope, send, event: evt, prop }) {
|
|
1375
1404
|
const doc = scope.getDoc();
|
|
1405
|
+
const boundaryEl = prop("getBoundaryEl")?.();
|
|
1406
|
+
const boundaryRect = getBoundaryRect(scope, boundaryEl, false);
|
|
1376
1407
|
return trackPointerMove(doc, {
|
|
1377
1408
|
onPointerMove({ point, event }) {
|
|
1378
1409
|
const { altKey, shiftKey } = event;
|
|
1379
|
-
|
|
1410
|
+
let x = clampValue(point.x, boundaryRect.x, boundaryRect.x + boundaryRect.width);
|
|
1411
|
+
let y = clampValue(point.y, boundaryRect.y, boundaryRect.y + boundaryRect.height);
|
|
1412
|
+
send({ type: "DRAG", position: { x, y }, axis: evt.axis, altKey, shiftKey });
|
|
1380
1413
|
},
|
|
1381
1414
|
onPointerUp() {
|
|
1382
1415
|
send({ type: "DRAG_END" });
|