@zag-js/slider 0.0.0-dev-20220605192656 → 0.0.0-dev-20220609054635
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 +120 -100
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +120 -100
- package/dist/index.mjs.map +3 -3
- package/dist/slider.connect.d.ts.map +1 -1
- package/dist/slider.dom.d.ts +10 -10
- package/dist/slider.dom.d.ts.map +1 -1
- package/dist/slider.style.d.ts +24 -0
- package/dist/slider.style.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.connect.d.ts","sourceRoot":"","sources":["../src/slider.connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGxE,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEjD,wBAAgB,OAAO,CAAC,CAAC,SAAS,SAAS,GAAG,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,yCAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"slider.connect.d.ts","sourceRoot":"","sources":["../src/slider.connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGxE,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEjD,wBAAgB,OAAO,CAAC,CAAC,SAAS,SAAS,GAAG,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,yCAAgB;;;;;oBAgB7F,MAAM;6BAGG,MAAM;;;;;;;;;;;;;;eAkLI,MAAM;;EAiB5C"}
|
package/dist/slider.dom.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { Point } from "@zag-js/rect-utils";
|
|
2
|
-
import type {
|
|
3
|
-
import type { MachineContext as Ctx, SharedContext } from "./slider.types";
|
|
4
|
-
declare function getThumbStyle(ctx: SharedContext): Style;
|
|
5
|
-
declare function getRangeStyle(ctx: Ctx): Style;
|
|
6
|
-
declare function getControlStyle(ctx: Pick<Ctx, "isVertical">): Style;
|
|
2
|
+
import type { MachineContext as Ctx } from "./slider.types";
|
|
7
3
|
export declare const dom: {
|
|
8
4
|
getDoc: (ctx: Ctx) => Document;
|
|
9
5
|
getRootNode: (ctx: Ctx) => Document | ShadowRoot;
|
|
@@ -20,12 +16,16 @@ export declare const dom: {
|
|
|
20
16
|
getThumbEl: (ctx: Ctx) => HTMLElement;
|
|
21
17
|
getControlEl: (ctx: Ctx) => HTMLElement;
|
|
22
18
|
getInputEl: (ctx: Ctx) => HTMLInputElement;
|
|
23
|
-
getControlStyle: typeof getControlStyle;
|
|
24
|
-
getThumbStyle: typeof getThumbStyle;
|
|
25
|
-
getRangeStyle: typeof getRangeStyle;
|
|
26
19
|
getValueFromPoint(ctx: Ctx, point: Point): number | undefined;
|
|
27
20
|
dispatchChangeEvent(ctx: Ctx): void;
|
|
28
|
-
|
|
21
|
+
getThumbOffset: (ctx: import("./slider.types").SharedContext) => string;
|
|
22
|
+
getControlStyle: () => import("@zag-js/types").Style;
|
|
23
|
+
getThumbStyle: (ctx: import("./slider.types").SharedContext) => import("@zag-js/types").Style;
|
|
24
|
+
getRangeStyle: (ctx: Pick<import("./slider.types").SharedContext, "isVertical" | "isRtl">) => import("@zag-js/types").Style;
|
|
25
|
+
getRootStyle: (ctx: Ctx) => import("@zag-js/types").Style;
|
|
26
|
+
getMarkerStyle: (ctx: Pick<import("./slider.types").SharedContext, "isHorizontal" | "isRtl">, percent: number) => import("@zag-js/types").Style;
|
|
27
|
+
getLabelStyle: () => import("@zag-js/types").Style;
|
|
28
|
+
getTrackStyle: () => import("@zag-js/types").Style;
|
|
29
|
+
getMarkerGroupStyle: () => import("@zag-js/types").Style;
|
|
29
30
|
};
|
|
30
|
-
export {};
|
|
31
31
|
//# sourceMappingURL=slider.dom.d.ts.map
|
package/dist/slider.dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.dom.d.ts","sourceRoot":"","sources":["../src/slider.dom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.dom.d.ts","sourceRoot":"","sources":["../src/slider.dom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG/C,OAAO,KAAK,EAAE,cAAc,IAAI,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAG3D,eAAO,MAAM,GAAG;kBAEA,GAAG;uBACE,GAAG;qBAEL,GAAG;sBACF,GAAG;wBACD,GAAG;sBACL,GAAG;uBACF,GAAG;sBACJ,GAAG;sBACH,GAAG;sBACH,GAAG;uBACF,GAAG,SAAS,MAAM;qBAEpB,GAAG;sBACF,GAAG;wBACD,GAAG;sBACL,GAAG;2BAEE,GAAG,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS;6BAoBpC,GAAG;;;;;;;;;;CAK7B,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Style } from "@zag-js/types";
|
|
2
|
+
import type { MachineContext as Ctx, SharedContext } from "./slider.types";
|
|
3
|
+
declare function getThumbOffset(ctx: SharedContext): string;
|
|
4
|
+
declare function getThumbStyle(ctx: SharedContext): Style;
|
|
5
|
+
declare function getRangeStyle(ctx: Pick<SharedContext, "isVertical" | "isRtl">): Style;
|
|
6
|
+
declare function getControlStyle(): Style;
|
|
7
|
+
declare function getRootStyle(ctx: Ctx): Style;
|
|
8
|
+
declare function getMarkerStyle(ctx: Pick<SharedContext, "isHorizontal" | "isRtl">, percent: number): Style;
|
|
9
|
+
declare function getLabelStyle(): Style;
|
|
10
|
+
declare function getTrackStyle(): Style;
|
|
11
|
+
declare function getMarkerGroupStyle(): Style;
|
|
12
|
+
export declare const styles: {
|
|
13
|
+
getThumbOffset: typeof getThumbOffset;
|
|
14
|
+
getControlStyle: typeof getControlStyle;
|
|
15
|
+
getThumbStyle: typeof getThumbStyle;
|
|
16
|
+
getRangeStyle: typeof getRangeStyle;
|
|
17
|
+
getRootStyle: typeof getRootStyle;
|
|
18
|
+
getMarkerStyle: typeof getMarkerStyle;
|
|
19
|
+
getLabelStyle: typeof getLabelStyle;
|
|
20
|
+
getTrackStyle: typeof getTrackStyle;
|
|
21
|
+
getMarkerGroupStyle: typeof getMarkerGroupStyle;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=slider.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.style.d.ts","sourceRoot":"","sources":["../src/slider.style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,IAAI,GAAG,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAwB1E,iBAAS,cAAc,CAAC,GAAG,EAAE,aAAa,UAIzC;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,KAAK,CAQhD;AAqBD,iBAAS,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,KAAK,CAc9E;AAMD,iBAAS,eAAe,IAAI,KAAK,CAMhC;AAMD,iBAAS,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAQrC;AAMD,iBAAS,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAMlG;AAMD,iBAAS,aAAa,IAAI,KAAK,CAE9B;AAMD,iBAAS,aAAa,IAAI,KAAK,CAE9B;AAMD,iBAAS,mBAAmB,IAAI,KAAK,CAMpC;AAED,eAAO,MAAM,MAAM;;;;;;;;;;CAUlB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/slider",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20220609054635",
|
|
4
4
|
"description": "Core logic for the slider widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.
|
|
33
|
-
"@zag-js/dom-utils": "0.
|
|
32
|
+
"@zag-js/core": "0.1.6",
|
|
33
|
+
"@zag-js/dom-utils": "0.1.4",
|
|
34
34
|
"@zag-js/number-utils": "0.1.2",
|
|
35
|
-
"@zag-js/rect-utils": "0.
|
|
35
|
+
"@zag-js/rect-utils": "0.1.2",
|
|
36
36
|
"@zag-js/types": "0.1.2",
|
|
37
|
-
"@zag-js/utils": "0.
|
|
37
|
+
"@zag-js/utils": "0.1.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build:fast": "zag build",
|