@ark-ui/solid 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
|
### Added
|
|
@@ -28,11 +28,12 @@ function _interopNamespaceDefault(e) {
|
|
|
28
28
|
const datePicker__namespace = /*#__PURE__*/_interopNamespaceDefault(datePicker);
|
|
29
29
|
|
|
30
30
|
const useDatePicker = props => {
|
|
31
|
-
const [local, rest] = solidJs.splitProps(props, ['value']);
|
|
31
|
+
const [local, rest] = solidJs.splitProps(props, ['value', 'focusedValue']);
|
|
32
32
|
const getRootNode = environmentContext.useEnvironmentContext();
|
|
33
33
|
const context = solid.mergeProps(() => ({
|
|
34
34
|
id: solidJs.createUniqueId(),
|
|
35
35
|
getRootNode,
|
|
36
|
+
focusedValue: local.focusedValue ? datePicker__namespace.parse(local.focusedValue) : undefined,
|
|
36
37
|
value: local.value ? datePicker__namespace.parse(local.value) : undefined
|
|
37
38
|
}), rest);
|
|
38
39
|
const [state, send] = solid.useMachine(datePicker__namespace.machine(context), {
|
|
@@ -2,7 +2,14 @@ import * as datePicker from '@zag-js/date-picker';
|
|
|
2
2
|
import { type PropTypes } from '@zag-js/solid';
|
|
3
3
|
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
|
-
export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'value'>, 'id'> {
|
|
5
|
+
export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'value' | 'focusedValue'>, 'id'> {
|
|
6
|
+
/**
|
|
7
|
+
* The focused date.
|
|
8
|
+
*/
|
|
9
|
+
focusedValue?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The value of the date picker
|
|
12
|
+
*/
|
|
6
13
|
value?: string[];
|
|
7
14
|
}
|
|
8
15
|
export interface UseDatePickerReturn extends Accessor<datePicker.Api<PropTypes>> {
|
|
@@ -5,11 +5,12 @@ import '../environment/index.mjs';
|
|
|
5
5
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
6
6
|
|
|
7
7
|
const useDatePicker = props => {
|
|
8
|
-
const [local, rest] = splitProps(props, ['value']);
|
|
8
|
+
const [local, rest] = splitProps(props, ['value', 'focusedValue']);
|
|
9
9
|
const getRootNode = useEnvironmentContext();
|
|
10
10
|
const context = mergeProps(() => ({
|
|
11
11
|
id: createUniqueId(),
|
|
12
12
|
getRootNode,
|
|
13
|
+
focusedValue: local.focusedValue ? datePicker.parse(local.focusedValue) : undefined,
|
|
13
14
|
value: local.value ? datePicker.parse(local.value) : undefined
|
|
14
15
|
}), rest);
|
|
15
16
|
const [state, send] = useMachine(datePicker.machine(context), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, 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",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"typescript": "5.2.2",
|
|
121
121
|
"vite": "4.4.11",
|
|
122
122
|
"vite-plugin-dts": "3.6.0",
|
|
123
|
-
"vite-plugin-solid": "2.7.
|
|
123
|
+
"vite-plugin-solid": "2.7.2",
|
|
124
124
|
"vitest": "0.34.2"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|