@ark-ui/react 4.9.0 → 4.9.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.
@@ -11,20 +11,20 @@ const useLocaleContext = require('../../providers/locale/use-locale-context.cjs'
11
11
  const useEvent = require('../../utils/use-event.cjs');
12
12
 
13
13
  function _interopNamespaceDefault(e) {
14
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
15
- if (e) {
16
- for (const k in e) {
17
- if (k !== 'default') {
18
- const d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: () => e[k]
22
- });
23
- }
24
- }
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
14
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
15
+ if (e) {
16
+ for (const k in e) {
17
+ if (k !== 'default') {
18
+ const d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: () => e[k]
22
+ });
23
+ }
24
+ }
25
+ }
26
+ n.default = e;
27
+ return Object.freeze(n);
28
28
  }
29
29
 
30
30
  const datePicker__namespace = /*#__PURE__*/_interopNamespaceDefault(datePicker);
@@ -45,6 +45,7 @@ const useDatePicker = (props = {}) => {
45
45
  const context = {
46
46
  ...initialContext,
47
47
  value: props.value,
48
+ view: props.view,
48
49
  onValueChange: useEvent.useEvent(props.onValueChange, { sync: true }),
49
50
  onFocusChange: useEvent.useEvent(props.onFocusChange),
50
51
  onViewChange: useEvent.useEvent(props.onViewChange),
@@ -1,19 +1,19 @@
1
1
  import { PropTypes } from '@zag-js/react';
2
2
  import { Optional } from '../../types';
3
- import * as datePicker from "@zag-js/date-picker";
4
- export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, "dir" | "getRootNode" | "open.controlled">, "id"> {
3
+ import * as datePicker from '@zag-js/date-picker';
4
+ export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
5
5
  /**
6
6
  * The initial open state of the date picker when it is first rendered.
7
7
  */
8
- defaultOpen?: datePicker.Context["open"];
8
+ defaultOpen?: datePicker.Context['open'];
9
9
  /**
10
10
  * The initial value of the date picker when it is first rendered.
11
11
  */
12
- defaultValue?: datePicker.Context["value"];
12
+ defaultValue?: datePicker.Context['value'];
13
13
  /**
14
14
  * The initial view of the date picker when it is first rendered.
15
15
  */
16
- defaultView?: datePicker.Context["view"];
16
+ defaultView?: datePicker.Context['view'];
17
17
  }
18
18
  export interface UseDatePickerReturn extends datePicker.Api<PropTypes> {
19
19
  }
@@ -1,19 +1,19 @@
1
1
  import { PropTypes } from '@zag-js/react';
2
2
  import { Optional } from '../../types';
3
- import * as datePicker from "@zag-js/date-picker";
4
- export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, "dir" | "getRootNode" | "open.controlled">, "id"> {
3
+ import * as datePicker from '@zag-js/date-picker';
4
+ export interface UseDatePickerProps extends Optional<Omit<datePicker.Context, 'dir' | 'getRootNode' | 'open.controlled'>, 'id'> {
5
5
  /**
6
6
  * The initial open state of the date picker when it is first rendered.
7
7
  */
8
- defaultOpen?: datePicker.Context["open"];
8
+ defaultOpen?: datePicker.Context['open'];
9
9
  /**
10
10
  * The initial value of the date picker when it is first rendered.
11
11
  */
12
- defaultValue?: datePicker.Context["value"];
12
+ defaultValue?: datePicker.Context['value'];
13
13
  /**
14
14
  * The initial view of the date picker when it is first rendered.
15
15
  */
16
- defaultView?: datePicker.Context["view"];
16
+ defaultView?: datePicker.Context['view'];
17
17
  }
18
18
  export interface UseDatePickerReturn extends datePicker.Api<PropTypes> {
19
19
  }
@@ -22,6 +22,7 @@ const useDatePicker = (props = {}) => {
22
22
  const context = {
23
23
  ...initialContext,
24
24
  value: props.value,
25
+ view: props.view,
25
26
  onValueChange: useEvent(props.onValueChange, { sync: true }),
26
27
  onFocusChange: useEvent(props.onFocusChange),
27
28
  onViewChange: useEvent(props.onViewChange),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
- "version": "4.9.0",
3
+ "version": "4.9.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",
@@ -161,57 +161,57 @@
161
161
  "sideEffects": false,
162
162
  "dependencies": {
163
163
  "@internationalized/date": "3.7.0",
164
- "@zag-js/accordion": "0.82.0",
165
- "@zag-js/anatomy": "0.82.0",
166
- "@zag-js/auto-resize": "0.82.0",
167
- "@zag-js/avatar": "0.82.0",
168
- "@zag-js/carousel": "0.82.0",
169
- "@zag-js/checkbox": "0.82.0",
170
- "@zag-js/clipboard": "0.82.0",
171
- "@zag-js/collapsible": "0.82.0",
172
- "@zag-js/collection": "0.82.0",
173
- "@zag-js/color-picker": "0.82.0",
174
- "@zag-js/color-utils": "0.82.0",
175
- "@zag-js/combobox": "0.82.0",
176
- "@zag-js/core": "0.82.0",
177
- "@zag-js/date-picker": "0.82.0",
178
- "@zag-js/date-utils": "0.82.0",
179
- "@zag-js/dialog": "0.82.0",
180
- "@zag-js/dom-query": "0.82.0",
181
- "@zag-js/editable": "0.82.0",
182
- "@zag-js/file-upload": "0.82.0",
183
- "@zag-js/file-utils": "0.82.0",
184
- "@zag-js/focus-trap": "0.82.0",
185
- "@zag-js/highlight-word": "0.82.0",
186
- "@zag-js/hover-card": "0.82.0",
187
- "@zag-js/i18n-utils": "0.82.0",
188
- "@zag-js/menu": "0.82.0",
189
- "@zag-js/number-input": "0.82.0",
190
- "@zag-js/pagination": "0.82.0",
191
- "@zag-js/pin-input": "0.82.0",
192
- "@zag-js/popover": "0.82.0",
193
- "@zag-js/presence": "0.82.0",
194
- "@zag-js/progress": "0.82.0",
195
- "@zag-js/qr-code": "0.82.0",
196
- "@zag-js/radio-group": "0.82.0",
197
- "@zag-js/rating-group": "0.82.0",
198
- "@zag-js/react": "0.82.0",
199
- "@zag-js/select": "0.82.0",
200
- "@zag-js/signature-pad": "0.82.0",
201
- "@zag-js/slider": "0.82.0",
202
- "@zag-js/splitter": "0.82.0",
203
- "@zag-js/steps": "0.82.0",
204
- "@zag-js/switch": "0.82.0",
205
- "@zag-js/tabs": "0.82.0",
206
- "@zag-js/tags-input": "0.82.0",
207
- "@zag-js/time-picker": "0.82.0",
208
- "@zag-js/timer": "0.82.0",
209
- "@zag-js/toast": "0.82.0",
210
- "@zag-js/toggle-group": "0.82.0",
211
- "@zag-js/tooltip": "0.82.0",
212
- "@zag-js/tour": "0.82.0",
213
- "@zag-js/tree-view": "0.82.0",
214
- "@zag-js/types": "0.82.0"
164
+ "@zag-js/accordion": "0.82.1",
165
+ "@zag-js/anatomy": "0.82.1",
166
+ "@zag-js/auto-resize": "0.82.1",
167
+ "@zag-js/avatar": "0.82.1",
168
+ "@zag-js/carousel": "0.82.1",
169
+ "@zag-js/checkbox": "0.82.1",
170
+ "@zag-js/clipboard": "0.82.1",
171
+ "@zag-js/collapsible": "0.82.1",
172
+ "@zag-js/collection": "0.82.1",
173
+ "@zag-js/color-picker": "0.82.1",
174
+ "@zag-js/color-utils": "0.82.1",
175
+ "@zag-js/combobox": "0.82.1",
176
+ "@zag-js/core": "0.82.1",
177
+ "@zag-js/date-picker": "0.82.1",
178
+ "@zag-js/date-utils": "0.82.1",
179
+ "@zag-js/dialog": "0.82.1",
180
+ "@zag-js/dom-query": "0.82.1",
181
+ "@zag-js/editable": "0.82.1",
182
+ "@zag-js/file-upload": "0.82.1",
183
+ "@zag-js/file-utils": "0.82.1",
184
+ "@zag-js/focus-trap": "0.82.1",
185
+ "@zag-js/highlight-word": "0.82.1",
186
+ "@zag-js/hover-card": "0.82.1",
187
+ "@zag-js/i18n-utils": "0.82.1",
188
+ "@zag-js/menu": "0.82.1",
189
+ "@zag-js/number-input": "0.82.1",
190
+ "@zag-js/pagination": "0.82.1",
191
+ "@zag-js/pin-input": "0.82.1",
192
+ "@zag-js/popover": "0.82.1",
193
+ "@zag-js/presence": "0.82.1",
194
+ "@zag-js/progress": "0.82.1",
195
+ "@zag-js/qr-code": "0.82.1",
196
+ "@zag-js/radio-group": "0.82.1",
197
+ "@zag-js/rating-group": "0.82.1",
198
+ "@zag-js/react": "0.82.1",
199
+ "@zag-js/select": "0.82.1",
200
+ "@zag-js/signature-pad": "0.82.1",
201
+ "@zag-js/slider": "0.82.1",
202
+ "@zag-js/splitter": "0.82.1",
203
+ "@zag-js/steps": "0.82.1",
204
+ "@zag-js/switch": "0.82.1",
205
+ "@zag-js/tabs": "0.82.1",
206
+ "@zag-js/tags-input": "0.82.1",
207
+ "@zag-js/time-picker": "0.82.1",
208
+ "@zag-js/timer": "0.82.1",
209
+ "@zag-js/toast": "0.82.1",
210
+ "@zag-js/toggle-group": "0.82.1",
211
+ "@zag-js/tooltip": "0.82.1",
212
+ "@zag-js/tour": "0.82.1",
213
+ "@zag-js/tree-view": "0.82.1",
214
+ "@zag-js/types": "0.82.1"
215
215
  },
216
216
  "devDependencies": {
217
217
  "@biomejs/biome": "1.9.4",
@@ -228,7 +228,7 @@
228
228
  "@types/react": "19.0.7",
229
229
  "@types/react-dom": "19.0.3",
230
230
  "@vitejs/plugin-react": "4.3.4",
231
- "@zag-js/stringify-state": "0.82.0",
231
+ "@zag-js/stringify-state": "0.82.1",
232
232
  "clean-package": "2.2.0",
233
233
  "globby": "14.0.2",
234
234
  "jsdom": "25.0.1",