@ark-ui/react 5.3.0 → 5.3.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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
6
  const jsxRuntime = require('react/jsx-runtime');
7
7
  const fileUtils = require('@zag-js/file-utils');
8
- const index = require('../../node_modules/@zag-js/utils/dist/index.cjs');
8
+ const utils = require('@zag-js/utils');
9
9
  const react = require('react');
10
10
  const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
11
11
  const factory = require('../factory.cjs');
@@ -19,7 +19,7 @@ const DownloadTrigger = react.forwardRef((props, ref) => {
19
19
  const onClick = (e) => {
20
20
  props.onClick?.(e);
21
21
  if (e.defaultPrevented) return;
22
- if (index.isFunction(data)) {
22
+ if (utils.isFunction(data)) {
23
23
  const maybePromise = data();
24
24
  if (maybePromise instanceof Promise) {
25
25
  maybePromise.then((data2) => download(data2));
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { downloadFile } from '@zag-js/file-utils';
4
- import { isFunction } from '../../node_modules/@zag-js/utils/dist/index.js';
4
+ import { isFunction } from '@zag-js/utils';
5
5
  import { forwardRef } from 'react';
6
6
  import { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';
7
7
  import { ark } from '../factory.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
3
  "type": "module",
4
- "version": "5.3.0",
4
+ "version": "5.3.1",
5
5
  "description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",
@@ -199,37 +199,38 @@
199
199
  "@zag-js/tooltip": "1.6.0",
200
200
  "@zag-js/tour": "1.6.0",
201
201
  "@zag-js/tree-view": "1.6.0",
202
- "@zag-js/types": "1.6.0"
202
+ "@zag-js/types": "1.6.0",
203
+ "@zag-js/utils": "1.6.0"
203
204
  },
204
205
  "devDependencies": {
205
206
  "@biomejs/biome": "1.9.4",
206
207
  "@release-it/keep-a-changelog": "6.0.0",
207
- "@storybook/addon-a11y": "8.6.7",
208
- "@storybook/addon-essentials": "8.6.7",
209
- "@storybook/react": "8.6.7",
210
- "@storybook/react-vite": "8.6.7",
208
+ "@storybook/addon-a11y": "8.6.9",
209
+ "@storybook/addon-essentials": "8.6.9",
210
+ "@storybook/react": "8.6.9",
211
+ "@storybook/react-vite": "8.6.9",
211
212
  "@testing-library/dom": "10.4.0",
212
213
  "@testing-library/jest-dom": "6.6.3",
213
214
  "@testing-library/react": "16.2.0",
214
215
  "@testing-library/user-event": "14.6.1",
215
216
  "@types/jsdom": "21.1.7",
216
- "@types/react": "19.0.10",
217
+ "@types/react": "19.0.12",
217
218
  "@types/react-dom": "19.0.4",
218
219
  "@vitejs/plugin-react": "4.3.4",
219
220
  "@zag-js/stringify-state": "1.6.0",
220
221
  "clean-package": "2.2.0",
221
222
  "globby": "14.1.0",
222
223
  "happy-dom": "17.4.4",
223
- "lucide-react": "0.482.0",
224
+ "lucide-react": "0.483.0",
224
225
  "react": "19.0.0",
225
226
  "react-dom": "19.0.0",
226
227
  "react-frame-component": "5.2.7",
227
228
  "react-hook-form": "7.54.2",
228
229
  "release-it": "18.1.2",
229
230
  "resize-observer-polyfill": "1.5.1",
230
- "storybook": "8.6.7",
231
+ "storybook": "8.6.9",
231
232
  "typescript": "5.8.2",
232
- "vite": "6.2.2",
233
+ "vite": "6.2.3",
233
234
  "vite-plugin-dts": "4.5.3",
234
235
  "vitest": "3.0.9",
235
236
  "@vitest/coverage-v8": "3.0.9",
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- // src/array.ts
6
- var isFunction = (v) => typeof v === "function";
7
- var fnToString = Function.prototype.toString;
8
- fnToString.call(Object);
9
-
10
- exports.isFunction = isFunction;
@@ -1,6 +0,0 @@
1
- // src/array.ts
2
- var isFunction = (v) => typeof v === "function";
3
- var fnToString = Function.prototype.toString;
4
- fnToString.call(Object);
5
-
6
- export { isFunction };