@zag-js/slider 2.0.0-next.2 → 2.0.0-next.4

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.mts CHANGED
@@ -1,8 +1,6 @@
1
- export { anatomy } from './slider.anatomy.mjs';
2
- export { connect } from './slider.connect.mjs';
3
- export { machine } from './slider.machine.mjs';
4
- export { markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps } from './slider.props.mjs';
5
- export { SliderApi as Api, DraggingIndicatorProps, ElementIds, FocusChangeDetails, SliderMachine as Machine, MarkerProps, MarkerState, SliderProps as Props, RootState, SliderService as Service, SliderOrigin, ThumbAlignment, ThumbCollisionBehavior, ThumbProps, ThumbState, ValueChangeDetails, ValueTextDetails } from './slider.types.mjs';
6
- import '@zag-js/anatomy';
7
- import '@zag-js/types';
8
- import '@zag-js/core';
1
+ import { anatomy } from "./slider.anatomy.mjs";
2
+ import { connect } from "./slider.connect.mjs";
3
+ import { machine } from "./slider.machine.mjs";
4
+ import { markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps } from "./slider.props.mjs";
5
+ import { DraggingIndicatorProps, ElementIds, FocusChangeDetails, MarkerProps, MarkerState, RootState, SliderApi, SliderMachine, SliderOrigin, SliderProps, SliderService, ThumbAlignment, ThumbCollisionBehavior, ThumbLabelDetails, ThumbProps, ThumbState, ValueChangeDetails, ValueChangeReason, ValueTextDetails } from "./slider.types.mjs";
6
+ export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type SliderMachine as Machine, type MarkerProps, type MarkerState, type SliderProps as Props, type RootState, type SliderService as Service, type SliderOrigin, type ThumbAlignment, type ThumbCollisionBehavior, type ThumbLabelDetails, type ThumbProps, type ThumbState, type ValueChangeDetails, type ValueChangeReason, type ValueTextDetails, anatomy, connect, machine, markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- export { anatomy } from './slider.anatomy.js';
2
- export { connect } from './slider.connect.js';
3
- export { machine } from './slider.machine.js';
4
- export { markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps } from './slider.props.js';
5
- export { SliderApi as Api, DraggingIndicatorProps, ElementIds, FocusChangeDetails, SliderMachine as Machine, MarkerProps, MarkerState, SliderProps as Props, RootState, SliderService as Service, SliderOrigin, ThumbAlignment, ThumbCollisionBehavior, ThumbProps, ThumbState, ValueChangeDetails, ValueTextDetails } from './slider.types.js';
6
- import '@zag-js/anatomy';
7
- import '@zag-js/types';
8
- import '@zag-js/core';
1
+ import { anatomy } from "./slider.anatomy.js";
2
+ import { connect } from "./slider.connect.js";
3
+ import { machine } from "./slider.machine.js";
4
+ import { markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps } from "./slider.props.js";
5
+ import { DraggingIndicatorProps, ElementIds, FocusChangeDetails, MarkerProps, MarkerState, RootState, SliderApi, SliderMachine, SliderOrigin, SliderProps, SliderService, ThumbAlignment, ThumbCollisionBehavior, ThumbLabelDetails, ThumbProps, ThumbState, ValueChangeDetails, ValueChangeReason, ValueTextDetails } from "./slider.types.js";
6
+ export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type SliderMachine as Machine, type MarkerProps, type MarkerState, type SliderProps as Props, type RootState, type SliderService as Service, type SliderOrigin, type ThumbAlignment, type ThumbCollisionBehavior, type ThumbLabelDetails, type ThumbProps, type ThumbState, type ValueChangeDetails, type ValueChangeReason, type ValueTextDetails, anatomy, connect, machine, markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps };
package/dist/index.js CHANGED
@@ -1,39 +1,17 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- anatomy: () => import_slider.anatomy,
25
- connect: () => import_slider2.connect,
26
- machine: () => import_slider3.machine
27
- });
28
- module.exports = __toCommonJS(index_exports);
29
- var import_slider = require("./slider.anatomy.js");
30
- var import_slider2 = require("./slider.connect.js");
31
- var import_slider3 = require("./slider.machine.js");
32
- __reExport(index_exports, require("./slider.props.js"), module.exports);
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- anatomy,
36
- connect,
37
- machine,
38
- ...require("./slider.props.js")
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
39
4
  });
5
+ const require_slider_anatomy = require("./slider.anatomy.js");
6
+ const require_slider_connect = require("./slider.connect.js");
7
+ const require_slider_machine = require("./slider.machine.js");
8
+ const require_slider_props = require("./slider.props.js");
9
+ exports.anatomy = require_slider_anatomy.anatomy;
10
+ exports.connect = require_slider_connect.connect;
11
+ exports.machine = require_slider_machine.machine;
12
+ exports.markerProps = require_slider_props.markerProps;
13
+ exports.props = require_slider_props.props;
14
+ exports.splitMarkerProps = require_slider_props.splitMarkerProps;
15
+ exports.splitProps = require_slider_props.splitProps;
16
+ exports.splitThumbProps = require_slider_props.splitThumbProps;
17
+ exports.thumbProps = require_slider_props.thumbProps;
package/dist/index.mjs CHANGED
@@ -1,10 +1,5 @@
1
- // src/index.ts
2
1
  import { anatomy } from "./slider.anatomy.mjs";
3
2
  import { connect } from "./slider.connect.mjs";
4
3
  import { machine } from "./slider.machine.mjs";
5
- export * from "./slider.props.mjs";
6
- export {
7
- anatomy,
8
- connect,
9
- machine
10
- };
4
+ import { markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps } from "./slider.props.mjs";
5
+ export { anatomy, connect, machine, markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps };
@@ -1,6 +1,2 @@
1
- import * as _zag_js_anatomy from '@zag-js/anatomy';
2
-
3
- declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
4
- declare const parts: Record<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"control" | "draggingIndicator" | "label" | "marker" | "markerGroup" | "range" | "root" | "thumb" | "track" | "valueText">;
2
+ export declare const parts: Record<"control" | "draggingIndicator" | "label" | "marker" | "markerGroup" | "range" | "root" | "thumb" | "track" | "valueText", import("@zag-js/anatomy").AnatomyPart>;
@@ -1,6 +1,2 @@
1
- import * as _zag_js_anatomy from '@zag-js/anatomy';
2
-
3
- declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
4
- declare const parts: Record<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator", _zag_js_anatomy.AnatomyPart>;
5
-
6
- export { anatomy, parts };
1
+ export declare const anatomy: import("@zag-js/anatomy").AnatomyInstance<"control" | "draggingIndicator" | "label" | "marker" | "markerGroup" | "range" | "root" | "thumb" | "track" | "valueText">;
2
+ export declare const parts: Record<"control" | "draggingIndicator" | "label" | "marker" | "markerGroup" | "range" | "root" | "thumb" | "track" | "valueText", import("@zag-js/anatomy").AnatomyPart>;
@@ -1,45 +1,9 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/slider.anatomy.ts
21
- var slider_anatomy_exports = {};
22
- __export(slider_anatomy_exports, {
23
- anatomy: () => anatomy,
24
- parts: () => parts
25
- });
26
- module.exports = __toCommonJS(slider_anatomy_exports);
27
- var import_anatomy = require("@zag-js/anatomy");
28
- var anatomy = (0, import_anatomy.createAnatomy)("slider").parts(
29
- "root",
30
- "label",
31
- "thumb",
32
- "valueText",
33
- "track",
34
- "range",
35
- "control",
36
- "markerGroup",
37
- "marker",
38
- "draggingIndicator"
39
- );
40
- var parts = anatomy.build();
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- anatomy,
44
- parts
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
45
4
  });
5
+ // src/slider.anatomy.ts
6
+ const anatomy = (0, require("@zag-js/anatomy").createAnatomy)("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator");
7
+ const parts = anatomy.build();
8
+ exports.anatomy = anatomy;
9
+ exports.parts = parts;
@@ -1,19 +1,5 @@
1
- // src/slider.anatomy.ts
2
1
  import { createAnatomy } from "@zag-js/anatomy";
3
- var anatomy = createAnatomy("slider").parts(
4
- "root",
5
- "label",
6
- "thumb",
7
- "valueText",
8
- "track",
9
- "range",
10
- "control",
11
- "markerGroup",
12
- "marker",
13
- "draggingIndicator"
14
- );
15
- var parts = anatomy.build();
16
- export {
17
- anatomy,
18
- parts
19
- };
2
+ // src/slider.anatomy.ts
3
+ const anatomy = createAnatomy("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator");
4
+ const parts = anatomy.build();
5
+ export { anatomy, parts };
@@ -1,7 +1,3 @@
1
- import { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { SliderService, SliderApi } from './slider.types.mjs';
3
- import '@zag-js/core';
4
-
5
- declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;
6
-
7
- export { connect };
1
+ import { SliderApi, SliderService } from "./slider.types.mjs";
2
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
3
+ export declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;
@@ -1,7 +1,3 @@
1
- import { PropTypes, NormalizeProps } from '@zag-js/types';
2
- import { SliderService, SliderApi } from './slider.types.js';
3
- import '@zag-js/core';
4
-
5
- declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;
6
-
7
- export { connect };
1
+ import { SliderApi, SliderService } from "./slider.types.js";
2
+ import { NormalizeProps, PropTypes } from "@zag-js/types";
3
+ export declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;