@zag-js/slider 1.0.0 → 1.0.1
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
4
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
|
|
7
7
|
|
|
@@ -198,6 +198,7 @@ interface SliderSchema {
|
|
|
198
198
|
guard: string;
|
|
199
199
|
}
|
|
200
200
|
type SliderService = Service<SliderSchema>;
|
|
201
|
+
type SliderMachine = Machine<SliderSchema>;
|
|
201
202
|
interface Size {
|
|
202
203
|
width: number;
|
|
203
204
|
height: number;
|
|
@@ -288,11 +289,11 @@ interface SliderApi<T extends PropTypes = PropTypes> {
|
|
|
288
289
|
|
|
289
290
|
declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;
|
|
290
291
|
|
|
291
|
-
declare const machine: _zag_js_core.
|
|
292
|
+
declare const machine: _zag_js_core.Machine<SliderSchema>;
|
|
292
293
|
|
|
293
294
|
declare const props: (keyof SliderProps)[];
|
|
294
295
|
declare const splitProps: <Props extends Partial<SliderProps>>(props: Props) => [Partial<SliderProps>, Omit<Props, keyof SliderProps>];
|
|
295
296
|
declare const thumbProps: (keyof ThumbProps)[];
|
|
296
297
|
declare const splitThumbProps: <Props extends ThumbProps>(props: Props) => [ThumbProps, Omit<Props, keyof ThumbProps>];
|
|
297
298
|
|
|
298
|
-
export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type MarkerProps, type SliderProps as Props, type SliderService as Service, type ThumbProps, type ValueChangeDetails, type ValueTextDetails, anatomy, connect, machine, props, splitProps, splitThumbProps, thumbProps };
|
|
299
|
+
export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type SliderMachine as Machine, type MarkerProps, type SliderProps as Props, type SliderService as Service, type ThumbProps, type ValueChangeDetails, type ValueTextDetails, anatomy, connect, machine, props, splitProps, splitThumbProps, thumbProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
2
|
import { DirectionProperty, CommonProperties, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
4
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
5
5
|
|
|
6
6
|
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
|
|
7
7
|
|
|
@@ -198,6 +198,7 @@ interface SliderSchema {
|
|
|
198
198
|
guard: string;
|
|
199
199
|
}
|
|
200
200
|
type SliderService = Service<SliderSchema>;
|
|
201
|
+
type SliderMachine = Machine<SliderSchema>;
|
|
201
202
|
interface Size {
|
|
202
203
|
width: number;
|
|
203
204
|
height: number;
|
|
@@ -288,11 +289,11 @@ interface SliderApi<T extends PropTypes = PropTypes> {
|
|
|
288
289
|
|
|
289
290
|
declare function connect<T extends PropTypes>(service: SliderService, normalize: NormalizeProps<T>): SliderApi<T>;
|
|
290
291
|
|
|
291
|
-
declare const machine: _zag_js_core.
|
|
292
|
+
declare const machine: _zag_js_core.Machine<SliderSchema>;
|
|
292
293
|
|
|
293
294
|
declare const props: (keyof SliderProps)[];
|
|
294
295
|
declare const splitProps: <Props extends Partial<SliderProps>>(props: Props) => [Partial<SliderProps>, Omit<Props, keyof SliderProps>];
|
|
295
296
|
declare const thumbProps: (keyof ThumbProps)[];
|
|
296
297
|
declare const splitThumbProps: <Props extends ThumbProps>(props: Props) => [ThumbProps, Omit<Props, keyof ThumbProps>];
|
|
297
298
|
|
|
298
|
-
export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type MarkerProps, type SliderProps as Props, type SliderService as Service, type ThumbProps, type ValueChangeDetails, type ValueTextDetails, anatomy, connect, machine, props, splitProps, splitThumbProps, thumbProps };
|
|
299
|
+
export { type SliderApi as Api, type DraggingIndicatorProps, type ElementIds, type FocusChangeDetails, type SliderMachine as Machine, type MarkerProps, type SliderProps as Props, type SliderService as Service, type ThumbProps, type ValueChangeDetails, type ValueTextDetails, anatomy, connect, machine, props, splitProps, splitThumbProps, thumbProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/slider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Core logic for the slider widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/anatomy": "1.0.
|
|
31
|
-
"@zag-js/core": "1.0.
|
|
32
|
-
"@zag-js/dom-query": "1.0.
|
|
33
|
-
"@zag-js/utils": "1.0.
|
|
34
|
-
"@zag-js/element-size": "1.0.
|
|
35
|
-
"@zag-js/types": "1.0.
|
|
30
|
+
"@zag-js/anatomy": "1.0.1",
|
|
31
|
+
"@zag-js/core": "1.0.1",
|
|
32
|
+
"@zag-js/dom-query": "1.0.1",
|
|
33
|
+
"@zag-js/utils": "1.0.1",
|
|
34
|
+
"@zag-js/element-size": "1.0.1",
|
|
35
|
+
"@zag-js/types": "1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"clean-package": "2.2.0"
|