@zag-js/splitter 0.0.0-dev-20220627213436 → 0.0.0-dev-20220628115342

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/index.js CHANGED
@@ -281,16 +281,6 @@ function trackPointerMove(opts) {
281
281
  return pipe(addPointerEvent(doc, "pointermove", handlePointerMove, false), addPointerEvent(doc, "pointerup", onPointerUp, false), addPointerEvent(doc, "pointercancel", onPointerUp, false), addPointerEvent(doc, "contextmenu", onPointerUp, false), disableTextSelection({ doc }));
282
282
  }
283
283
 
284
- // ../../types/dist/index.mjs
285
- function createNormalizer(fn) {
286
- return new Proxy({}, {
287
- get() {
288
- return fn;
289
- }
290
- });
291
- }
292
- var normalizeProp = createNormalizer((v) => v);
293
-
294
284
  // src/splitter.dom.ts
295
285
  var dom = {
296
286
  getDoc: (ctx) => {
@@ -341,7 +331,7 @@ var dom = {
341
331
  };
342
332
 
343
333
  // src/splitter.connect.ts
344
- function connect(state2, send, normalize = normalizeProp) {
334
+ function connect(state2, send, normalize) {
345
335
  const isHorizontal = state2.context.isHorizontal;
346
336
  const isDisabled = state2.context.disabled;
347
337
  const isFocused = state2.hasTag("focus");
package/dist/index.mjs CHANGED
@@ -258,16 +258,6 @@ function trackPointerMove(opts) {
258
258
  return pipe(addPointerEvent(doc, "pointermove", handlePointerMove, false), addPointerEvent(doc, "pointerup", onPointerUp, false), addPointerEvent(doc, "pointercancel", onPointerUp, false), addPointerEvent(doc, "contextmenu", onPointerUp, false), disableTextSelection({ doc }));
259
259
  }
260
260
 
261
- // ../../types/dist/index.mjs
262
- function createNormalizer(fn) {
263
- return new Proxy({}, {
264
- get() {
265
- return fn;
266
- }
267
- });
268
- }
269
- var normalizeProp = createNormalizer((v) => v);
270
-
271
261
  // src/splitter.dom.ts
272
262
  var dom = {
273
263
  getDoc: (ctx) => {
@@ -318,7 +308,7 @@ var dom = {
318
308
  };
319
309
 
320
310
  // src/splitter.connect.ts
321
- function connect(state2, send, normalize = normalizeProp) {
311
+ function connect(state2, send, normalize) {
322
312
  const isHorizontal = state2.context.isHorizontal;
323
313
  const isDisabled = state2.context.disabled;
324
314
  const isFocused = state2.hasTag("focus");
@@ -1,6 +1,6 @@
1
- import { PropTypes, ReactPropTypes } from "@zag-js/types";
1
+ import type { NormalizeProps, PropTypes } from "@zag-js/types";
2
2
  import { Send, State } from "./splitter.types";
3
- export declare function connect<T extends PropTypes = ReactPropTypes>(state: State, send: Send, normalize?: import("@zag-js/types").NormalizeProps): {
3
+ export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
4
4
  isCollapsed: boolean;
5
5
  isExpanded: boolean;
6
6
  isFocused: boolean;
@@ -10,5 +10,5 @@ export declare const dom: {
10
10
  getSecondaryPaneId: (ctx: Ctx) => string;
11
11
  getSplitterEl: (ctx: Ctx) => HTMLElement;
12
12
  getPrimaryPaneEl: (ctx: Ctx) => HTMLElement;
13
- getCursor(ctx: Ctx): "default" | (string & {}) | "col-resize" | "e-resize" | "n-resize" | "row-resize" | "s-resize" | "w-resize";
13
+ getCursor(ctx: Ctx): any;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/splitter",
3
- "version": "0.0.0-dev-20220627213436",
3
+ "version": "0.0.0-dev-20220628115342",
4
4
  "description": "Core logic for the splitter widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -30,10 +30,10 @@
30
30
  "url": "https://github.com/chakra-ui/zag/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@zag-js/core": "0.0.0-dev-20220627213436",
34
- "@zag-js/dom-utils": "0.0.0-dev-20220627213436",
33
+ "@zag-js/core": "0.0.0-dev-20220628115342",
34
+ "@zag-js/dom-utils": "0.0.0-dev-20220628115342",
35
35
  "@zag-js/number-utils": "0.1.2",
36
- "@zag-js/types": "0.2.0"
36
+ "@zag-js/types": "0.0.0-dev-20220628115342"
37
37
  },
38
38
  "scripts": {
39
39
  "build:fast": "zag build",