@ark-ui/react 3.6.0 → 3.6.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.
@@ -1,2 +1,2 @@
1
1
  export { Highlight, type HighlightProps } from './highlight';
2
- export { useHighlight, type UseHighlightProps } from './use-highlight';
2
+ export { useHighlight, type UseHighlightProps, type HighlightChunk } from './use-highlight';
@@ -1,2 +1,2 @@
1
1
  export { Highlight, type HighlightProps } from './highlight';
2
- export { useHighlight, type UseHighlightProps } from './use-highlight';
2
+ export { useHighlight, type UseHighlightProps, type HighlightChunk } from './use-highlight';
@@ -18,7 +18,14 @@ const SelectHiddenSelect = react.forwardRef(
18
18
  const field = useFieldContext.useFieldContext();
19
19
  return /* @__PURE__ */ jsxRuntime.jsxs(factory.ark.select, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref, children: [
20
20
  isValueEmpty && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "" }),
21
- select.collection.items.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value))
21
+ select.collection.items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
22
+ "option",
23
+ {
24
+ value: select.collection.getItemValue(item) ?? "",
25
+ disabled: select.collection.getItemDisabled(item)
26
+ },
27
+ index
28
+ ))
22
29
  ] });
23
30
  }
24
31
  );
@@ -14,7 +14,14 @@ const SelectHiddenSelect = forwardRef(
14
14
  const field = useFieldContext();
15
15
  return /* @__PURE__ */ jsxs(ark.select, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref, children: [
16
16
  isValueEmpty && /* @__PURE__ */ jsx("option", { value: "" }),
17
- select.collection.items.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
17
+ select.collection.items.map((item, index) => /* @__PURE__ */ jsx(
18
+ "option",
19
+ {
20
+ value: select.collection.getItemValue(item) ?? "",
21
+ disabled: select.collection.getItemDisabled(item)
22
+ },
23
+ index
24
+ ))
18
25
  ] });
19
26
  }
20
27
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
- "version": "3.6.0",
3
+ "version": "3.6.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",
@@ -246,6 +246,17 @@
246
246
  "default": "./dist/components/format/index.cjs"
247
247
  }
248
248
  },
249
+ "./highlight": {
250
+ "source": "./src/components/highlight/index.ts",
251
+ "import": {
252
+ "types": "./dist/components/highlight/index.d.ts",
253
+ "default": "./dist/components/highlight/index.js"
254
+ },
255
+ "require": {
256
+ "types": "./dist/components/highlight/index.d.cts",
257
+ "default": "./dist/components/highlight/index.cjs"
258
+ }
259
+ },
249
260
  "./hover-card": {
250
261
  "source": "./src/components/hover-card/index.ts",
251
262
  "import": {