@zag-js/tooltip 0.0.0-dev-20221208123200 → 0.0.0-dev-20221208125258

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.d.ts CHANGED
@@ -796,57 +796,57 @@ declare const anatomy: Omit<{
796
796
  }>;
797
797
  }, "parts">;
798
798
  extend: <V_20 extends string>(...parts: V_20[]) => Omit<any, "parts">;
799
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18 | V_19, {
799
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18 | V_19, {
800
800
  selector: string;
801
801
  attrs: Record<"data-scope" | "data-part", string>;
802
802
  }>;
803
803
  }, "parts">;
804
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18, {
804
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18, {
805
805
  selector: string;
806
806
  attrs: Record<"data-scope" | "data-part", string>;
807
807
  }>;
808
808
  }, "parts">;
809
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17, {
809
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17, {
810
810
  selector: string;
811
811
  attrs: Record<"data-scope" | "data-part", string>;
812
812
  }>;
813
813
  }, "parts">;
814
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16, {
814
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16, {
815
815
  selector: string;
816
816
  attrs: Record<"data-scope" | "data-part", string>;
817
817
  }>;
818
818
  }, "parts">;
819
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15, {
819
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15, {
820
820
  selector: string;
821
821
  attrs: Record<"data-scope" | "data-part", string>;
822
822
  }>;
823
823
  }, "parts">;
824
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14, {
824
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14, {
825
825
  selector: string;
826
826
  attrs: Record<"data-scope" | "data-part", string>;
827
827
  }>;
828
828
  }, "parts">;
829
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13, {
829
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13, {
830
830
  selector: string;
831
831
  attrs: Record<"data-scope" | "data-part", string>;
832
832
  }>;
833
833
  }, "parts">;
834
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11 | V_12, {
834
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12, {
835
835
  selector: string;
836
836
  attrs: Record<"data-scope" | "data-part", string>;
837
837
  }>;
838
838
  }, "parts">;
839
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10 | V_11, {
839
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11, {
840
840
  selector: string;
841
841
  attrs: Record<"data-scope" | "data-part", string>;
842
842
  }>;
843
843
  }, "parts">;
844
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label" | V_10, {
844
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10, {
845
845
  selector: string;
846
846
  attrs: Record<"data-scope" | "data-part", string>;
847
847
  }>;
848
848
  }, "parts">;
849
- build: () => Record<"trigger" | "arrow" | "arrowInner" | "positioner" | "content" | "label", {
849
+ build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label", {
850
850
  selector: string;
851
851
  attrs: Record<"data-scope" | "data-part", string>;
852
852
  }>;
@@ -934,7 +934,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
934
934
  };
935
935
  triggerProps: T["button"];
936
936
  arrowProps: T["element"];
937
- innerArrowProps: T["element"];
937
+ arrowTipProps: T["element"];
938
938
  positionerProps: T["element"];
939
939
  contentProps: T["element"];
940
940
  labelProps: T["element"];
package/dist/index.js CHANGED
@@ -28,14 +28,7 @@ module.exports = __toCommonJS(src_exports);
28
28
 
29
29
  // src/tooltip.anatomy.ts
30
30
  var import_anatomy = require("@zag-js/anatomy");
31
- var anatomy = (0, import_anatomy.createAnatomy)("tooltip").parts(
32
- "trigger",
33
- "arrow",
34
- "arrowInner",
35
- "positioner",
36
- "content",
37
- "label"
38
- );
31
+ var anatomy = (0, import_anatomy.createAnatomy)("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content", "label");
39
32
  var parts = anatomy.build();
40
33
 
41
34
  // ../../utilities/dom/dist/index.mjs
@@ -368,9 +361,9 @@ function connect(state, send, normalize) {
368
361
  ...parts.arrow.attrs,
369
362
  style: popperStyles.arrow
370
363
  }),
371
- innerArrowProps: normalize.element({
372
- ...parts.arrowInner.attrs,
373
- style: popperStyles.innerArrow
364
+ arrowTipProps: normalize.element({
365
+ ...parts.arrowTip.attrs,
366
+ style: popperStyles.arrowTip
374
367
  }),
375
368
  positionerProps: normalize.element({
376
369
  id: dom.getPositionerId(state.context),
package/dist/index.mjs CHANGED
@@ -1,13 +1,6 @@
1
1
  // src/tooltip.anatomy.ts
2
2
  import { createAnatomy } from "@zag-js/anatomy";
3
- var anatomy = createAnatomy("tooltip").parts(
4
- "trigger",
5
- "arrow",
6
- "arrowInner",
7
- "positioner",
8
- "content",
9
- "label"
10
- );
3
+ var anatomy = createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content", "label");
11
4
  var parts = anatomy.build();
12
5
 
13
6
  // ../../utilities/dom/dist/index.mjs
@@ -340,9 +333,9 @@ function connect(state, send, normalize) {
340
333
  ...parts.arrow.attrs,
341
334
  style: popperStyles.arrow
342
335
  }),
343
- innerArrowProps: normalize.element({
344
- ...parts.arrowInner.attrs,
345
- style: popperStyles.innerArrow
336
+ arrowTipProps: normalize.element({
337
+ ...parts.arrowTip.attrs,
338
+ style: popperStyles.arrowTip
346
339
  }),
347
340
  positionerProps: normalize.element({
348
341
  id: dom.getPositionerId(state.context),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "0.0.0-dev-20221208123200",
3
+ "version": "0.0.0-dev-20221208125258",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",