@ark-ui/react 1.0.0-beta.0 → 1.0.0-beta.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/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.0.0-beta.1] - 2023-10-20
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Parsed `focusedValue` in `DatePicker`
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Resolved an issue with `@ark-ui/anatomy`
|
|
18
|
+
|
|
9
19
|
## [1.0.0-beta.0] - 2023-10-20
|
|
10
20
|
|
|
11
21
|
### Changed
|
|
@@ -34,6 +34,7 @@ const useDatePicker = (props = {}) => {
|
|
|
34
34
|
id: react.useId(),
|
|
35
35
|
getRootNode: environmentContext.useEnvironmentContext(),
|
|
36
36
|
...props,
|
|
37
|
+
focusedValue: props.focusedValue ? datePicker__namespace.parse(props.focusedValue) : void 0,
|
|
37
38
|
value: props.defaultValue ? datePicker__namespace.parse(props.defaultValue) : void 0
|
|
38
39
|
};
|
|
39
40
|
const context = {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as datePicker from '@zag-js/date-picker';
|
|
2
2
|
import { type PropTypes } from '@zag-js/react';
|
|
3
3
|
import type { Optional } from '../types';
|
|
4
|
-
export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'value'>, 'id'> {
|
|
4
|
+
export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'value' | 'focusedValue'>, 'id'> {
|
|
5
5
|
/**
|
|
6
6
|
* The initial value of the date picker
|
|
7
7
|
*/
|
|
8
8
|
defaultValue?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* The focused date.
|
|
11
|
+
*/
|
|
12
|
+
focusedValue?: string;
|
|
9
13
|
/**
|
|
10
14
|
* The value of the date picker
|
|
11
15
|
*/
|
|
@@ -11,6 +11,7 @@ const useDatePicker = (props = {}) => {
|
|
|
11
11
|
id: useId(),
|
|
12
12
|
getRootNode: useEnvironmentContext(),
|
|
13
13
|
...props,
|
|
14
|
+
focusedValue: props.focusedValue ? datePicker.parse(props.focusedValue) : void 0,
|
|
14
15
|
value: props.defaultValue ? datePicker.parse(props.defaultValue) : void 0
|
|
15
16
|
};
|
|
16
17
|
const context = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"release-it": "release-it --config ../../../release-it.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@ark-ui/anatomy": "
|
|
62
|
+
"@ark-ui/anatomy": "1.0.0-beta.0",
|
|
63
63
|
"@zag-js/accordion": "0.26.0",
|
|
64
64
|
"@zag-js/anatomy": "0.26.0",
|
|
65
65
|
"@zag-js/avatar": "0.26.0",
|