@ark-ui/react 0.11.0-beta.1 → 0.11.0-beta.2
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 +10 -2
- package/index.cjs +3 -3
- package/index.mjs +2 -2
- package/number-input/index.cjs +2 -2
- package/number-input/index.d.ts +4 -4
- package/number-input/index.mjs +3 -3
- package/number-input/number-input-field.cjs +3 -3
- package/number-input/number-input-field.d.ts +2 -2
- package/number-input/number-input-field.mjs +3 -3
- package/number-input/number-input.stories.d.ts +1 -1
- package/package.json +1 -1
- package/pin-input/index.cjs +2 -2
- package/pin-input/index.d.ts +4 -4
- package/pin-input/index.mjs +3 -3
- package/pin-input/pin-input-field.cjs +3 -3
- package/pin-input/pin-input-field.d.ts +2 -2
- package/pin-input/pin-input-field.mjs +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.11.0-beta.2] - 2023-08-08
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- BREAKING: Renamed `NumberInputField` to `NumberInputInput` to match the naming convention of other input components.
|
|
14
|
+
- BREAKING: Renamed `PinInputField` to `PinInputInput` to match the naming convention of other input components.
|
|
15
|
+
|
|
9
16
|
## [0.11.0-beta.1] - 2023-08-08
|
|
10
17
|
|
|
11
18
|
- Add support for dot noation imports
|
|
@@ -160,7 +167,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
160
167
|
- Add `Toast`
|
|
161
168
|
- Add `Tooltip`
|
|
162
169
|
|
|
163
|
-
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.11.0-beta.
|
|
170
|
+
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/react@0.11.0-beta.2...HEAD
|
|
164
171
|
[0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.1.0
|
|
165
172
|
[0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.2.0
|
|
166
173
|
[0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.3.0
|
|
@@ -176,5 +183,6 @@ description: All notable changes to this project will be documented in this file
|
|
|
176
183
|
[0.9.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.9.0
|
|
177
184
|
[0.10.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.10.0
|
|
178
185
|
[0.11.0-beta.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.11.0-beta.0
|
|
179
|
-
|
|
180
186
|
[0.11.0-beta.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.11.0-beta.1
|
|
187
|
+
|
|
188
|
+
[0.11.0-beta.2]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/react@0.11.0-beta.2
|
package/index.cjs
CHANGED
|
@@ -155,8 +155,8 @@ const menu = require('@zag-js/menu');
|
|
|
155
155
|
const menuContext = require('./menu/menu-context.cjs');
|
|
156
156
|
const numberInputControl = require('./number-input/number-input-control.cjs');
|
|
157
157
|
const numberInputDecrementTrigger = require('./number-input/number-input-decrement-trigger.cjs');
|
|
158
|
-
const numberInputField = require('./number-input/number-input-field.cjs');
|
|
159
158
|
const numberInputIncrementTrigger = require('./number-input/number-input-increment-trigger.cjs');
|
|
159
|
+
const numberInputField = require('./number-input/number-input-field.cjs');
|
|
160
160
|
const numberInputLabel = require('./number-input/number-input-label.cjs');
|
|
161
161
|
const numberInputScrubber = require('./number-input/number-input-scrubber.cjs');
|
|
162
162
|
const numberInput = require('@zag-js/number-input');
|
|
@@ -466,8 +466,8 @@ Object.defineProperty(exports, 'menuAnatomy', {
|
|
|
466
466
|
exports.useMenuContext = menuContext.useMenuContext;
|
|
467
467
|
exports.NumberInputControl = numberInputControl.NumberInputControl;
|
|
468
468
|
exports.NumberInputDecrementTrigger = numberInputDecrementTrigger.NumberInputDecrementTrigger;
|
|
469
|
-
exports.NumberInputField = numberInputField.NumberInputField;
|
|
470
469
|
exports.NumberInputIncrementTrigger = numberInputIncrementTrigger.NumberInputIncrementTrigger;
|
|
470
|
+
exports.NumberInputInput = numberInputField.NumberInputInput;
|
|
471
471
|
exports.NumberInputLabel = numberInputLabel.NumberInputLabel;
|
|
472
472
|
exports.NumberInputScrubber = numberInputScrubber.NumberInputScrubber;
|
|
473
473
|
Object.defineProperty(exports, 'numberInputAnatomy', {
|
|
@@ -484,7 +484,7 @@ exports.PaginationPrevPageTrigger = paginationPrevPageTrigger.PaginationPrevPage
|
|
|
484
484
|
exports.paginationAnatomy = pagination_anatomy.paginationAnatomy;
|
|
485
485
|
exports.usePaginationContext = paginationContext.usePaginationContext;
|
|
486
486
|
exports.PinInputControl = pinInputControl.PinInputControl;
|
|
487
|
-
exports.
|
|
487
|
+
exports.PinInputInput = pinInputField.PinInputInput;
|
|
488
488
|
exports.PinInputLabel = pinInputLabel.PinInputLabel;
|
|
489
489
|
Object.defineProperty(exports, 'pinInputAnatomy', {
|
|
490
490
|
enumerable: true,
|
package/index.mjs
CHANGED
|
@@ -151,8 +151,8 @@ export { anatomy as menuAnatomy } from '@zag-js/menu';
|
|
|
151
151
|
export { useMenuContext } from './menu/menu-context.mjs';
|
|
152
152
|
export { NumberInputControl } from './number-input/number-input-control.mjs';
|
|
153
153
|
export { NumberInputDecrementTrigger } from './number-input/number-input-decrement-trigger.mjs';
|
|
154
|
-
export { NumberInputField } from './number-input/number-input-field.mjs';
|
|
155
154
|
export { NumberInputIncrementTrigger } from './number-input/number-input-increment-trigger.mjs';
|
|
155
|
+
export { NumberInputInput } from './number-input/number-input-field.mjs';
|
|
156
156
|
export { NumberInputLabel } from './number-input/number-input-label.mjs';
|
|
157
157
|
export { NumberInputScrubber } from './number-input/number-input-scrubber.mjs';
|
|
158
158
|
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
@@ -166,7 +166,7 @@ export { PaginationPrevPageTrigger } from './pagination/pagination-prev-page-tri
|
|
|
166
166
|
export { paginationAnatomy } from './pagination/pagination.anatomy.mjs';
|
|
167
167
|
export { usePaginationContext } from './pagination/pagination-context.mjs';
|
|
168
168
|
export { PinInputControl } from './pin-input/pin-input-control.mjs';
|
|
169
|
-
export {
|
|
169
|
+
export { PinInputInput } from './pin-input/pin-input-field.mjs';
|
|
170
170
|
export { PinInputLabel } from './pin-input/pin-input-label.mjs';
|
|
171
171
|
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
|
172
172
|
export { usePinInputContext } from './pin-input/pin-input-context.mjs';
|
package/number-input/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ const NumberInput = Object.assign(numberInput$1.NumberInput, {
|
|
|
16
16
|
Root: numberInput$1.NumberInput,
|
|
17
17
|
Control: numberInputControl.NumberInputControl,
|
|
18
18
|
DecrementTrigger: numberInputDecrementTrigger.NumberInputDecrementTrigger,
|
|
19
|
-
|
|
19
|
+
Input: numberInputField.NumberInputInput,
|
|
20
20
|
IncrementTrigger: numberInputIncrementTrigger.NumberInputIncrementTrigger,
|
|
21
21
|
Label: numberInputLabel.NumberInputLabel,
|
|
22
22
|
Scrubber: numberInputScrubber.NumberInputScrubber
|
|
@@ -25,7 +25,7 @@ const NumberInput = Object.assign(numberInput$1.NumberInput, {
|
|
|
25
25
|
exports.useNumberInputContext = numberInputContext.useNumberInputContext;
|
|
26
26
|
exports.NumberInputControl = numberInputControl.NumberInputControl;
|
|
27
27
|
exports.NumberInputDecrementTrigger = numberInputDecrementTrigger.NumberInputDecrementTrigger;
|
|
28
|
-
exports.
|
|
28
|
+
exports.NumberInputInput = numberInputField.NumberInputInput;
|
|
29
29
|
exports.NumberInputIncrementTrigger = numberInputIncrementTrigger.NumberInputIncrementTrigger;
|
|
30
30
|
exports.NumberInputLabel = numberInputLabel.NumberInputLabel;
|
|
31
31
|
exports.NumberInputScrubber = numberInputScrubber.NumberInputScrubber;
|
package/number-input/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type NumberInputProps } from './number-input';
|
|
|
5
5
|
import { useNumberInputContext } from './number-input-context';
|
|
6
6
|
import { NumberInputControl, type NumberInputControlProps } from './number-input-control';
|
|
7
7
|
import { NumberInputDecrementTrigger, type NumberInputDecrementTriggerProps } from './number-input-decrement-trigger';
|
|
8
|
-
import {
|
|
8
|
+
import { NumberInputInput, type NumberInputInputProps } from './number-input-field';
|
|
9
9
|
import { NumberInputIncrementTrigger, type NumberInputIncrementTriggerProps } from './number-input-increment-trigger';
|
|
10
10
|
import { NumberInputLabel, type NumberInputLabelProps } from './number-input-label';
|
|
11
11
|
import { NumberInputScrubber, type NumberInputScrubberProps } from './number-input-scrubber';
|
|
@@ -34,7 +34,7 @@ declare const NumberInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
34
34
|
} & {
|
|
35
35
|
asChild?: boolean | undefined;
|
|
36
36
|
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
37
|
-
|
|
37
|
+
Input: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
38
38
|
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
asChild?: boolean | undefined;
|
|
@@ -55,5 +55,5 @@ declare const NumberInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTML
|
|
|
55
55
|
asChild?: boolean | undefined;
|
|
56
56
|
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
57
57
|
};
|
|
58
|
-
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger,
|
|
59
|
-
export type { NumberInputControlProps, NumberInputDecrementTriggerProps,
|
|
58
|
+
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber, numberInputAnatomy, useNumberInputContext, };
|
|
59
|
+
export type { NumberInputControlProps, NumberInputDecrementTriggerProps, NumberInputIncrementTriggerProps, NumberInputInputProps, NumberInputLabelProps, NumberInputProps, NumberInputScrubberProps, };
|
package/number-input/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { NumberInput as NumberInput$1 } from './number-input.mjs';
|
|
|
2
2
|
export { useNumberInputContext } from './number-input-context.mjs';
|
|
3
3
|
import { NumberInputControl } from './number-input-control.mjs';
|
|
4
4
|
import { NumberInputDecrementTrigger } from './number-input-decrement-trigger.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { NumberInputInput } from './number-input-field.mjs';
|
|
6
6
|
import { NumberInputIncrementTrigger } from './number-input-increment-trigger.mjs';
|
|
7
7
|
import { NumberInputLabel } from './number-input-label.mjs';
|
|
8
8
|
import { NumberInputScrubber } from './number-input-scrubber.mjs';
|
|
@@ -12,10 +12,10 @@ const NumberInput = Object.assign(NumberInput$1, {
|
|
|
12
12
|
Root: NumberInput$1,
|
|
13
13
|
Control: NumberInputControl,
|
|
14
14
|
DecrementTrigger: NumberInputDecrementTrigger,
|
|
15
|
-
|
|
15
|
+
Input: NumberInputInput,
|
|
16
16
|
IncrementTrigger: NumberInputIncrementTrigger,
|
|
17
17
|
Label: NumberInputLabel,
|
|
18
18
|
Scrubber: NumberInputScrubber
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger,
|
|
21
|
+
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber };
|
|
@@ -9,13 +9,13 @@ const react = require('react');
|
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
10
|
const numberInputContext = require('./number-input-context.cjs');
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const NumberInputInput = react.forwardRef(
|
|
13
13
|
(props, ref) => {
|
|
14
14
|
const { inputProps } = numberInputContext.useNumberInputContext();
|
|
15
15
|
const mergedProps = react$1.mergeProps(inputProps, props);
|
|
16
16
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
NumberInputInput.displayName = "NumberInputInput";
|
|
20
20
|
|
|
21
|
-
exports.
|
|
21
|
+
exports.NumberInputInput = NumberInputInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
|
-
export type
|
|
4
|
-
export declare const
|
|
3
|
+
export type NumberInputInputProps = ComponentPropsWithoutRef<typeof ark.input>;
|
|
4
|
+
export declare const NumberInputInput: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
asChild?: boolean | undefined;
|
|
@@ -5,13 +5,13 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
6
6
|
import { useNumberInputContext } from './number-input-context.mjs';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const NumberInputInput = forwardRef(
|
|
9
9
|
(props, ref) => {
|
|
10
10
|
const { inputProps } = useNumberInputContext();
|
|
11
11
|
const mergedProps = mergeProps(inputProps, props);
|
|
12
12
|
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
|
-
|
|
15
|
+
NumberInputInput.displayName = "NumberInputInput";
|
|
16
16
|
|
|
17
|
-
export {
|
|
17
|
+
export { NumberInputInput };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
3
|
import { NumberInput } from './';
|
|
4
|
-
type NumberInputType = typeof NumberInput;
|
|
4
|
+
type NumberInputType = typeof NumberInput.Root;
|
|
5
5
|
declare const meta: Meta<NumberInputType>;
|
|
6
6
|
export default meta;
|
|
7
7
|
export declare const Basic: () => JSX.Element;
|
package/package.json
CHANGED
package/pin-input/index.cjs
CHANGED
|
@@ -12,13 +12,13 @@ const pinInput = require('@zag-js/pin-input');
|
|
|
12
12
|
const PinInput = Object.assign(pinInput$1.PinInput, {
|
|
13
13
|
Root: pinInput$1.PinInput,
|
|
14
14
|
Control: pinInputControl.PinInputControl,
|
|
15
|
-
|
|
15
|
+
Input: pinInputField.PinInputInput,
|
|
16
16
|
Label: pinInputLabel.PinInputLabel
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
exports.usePinInputContext = pinInputContext.usePinInputContext;
|
|
20
20
|
exports.PinInputControl = pinInputControl.PinInputControl;
|
|
21
|
-
exports.
|
|
21
|
+
exports.PinInputInput = pinInputField.PinInputInput;
|
|
22
22
|
exports.PinInputLabel = pinInputLabel.PinInputLabel;
|
|
23
23
|
Object.defineProperty(exports, 'pinInputAnatomy', {
|
|
24
24
|
enumerable: true,
|
package/pin-input/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject
|
|
|
4
4
|
import { type PinInputProps } from './pin-input';
|
|
5
5
|
import { usePinInputContext } from './pin-input-context';
|
|
6
6
|
import { PinInputControl, type PinInputControlProps } from './pin-input-control';
|
|
7
|
-
import {
|
|
7
|
+
import { PinInputInput, type PinInputInputProps } from './pin-input-field';
|
|
8
8
|
import { PinInputLabel, type PinInputLabelProps } from './pin-input-label';
|
|
9
9
|
import { pinInputAnatomy } from './pin-input.anatomy';
|
|
10
10
|
declare const PinInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -26,7 +26,7 @@ declare const PinInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
|
|
|
26
26
|
} & {
|
|
27
27
|
asChild?: boolean | undefined;
|
|
28
28
|
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
29
|
-
|
|
29
|
+
Input: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
30
30
|
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
asChild?: boolean | undefined;
|
|
@@ -39,5 +39,5 @@ declare const PinInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLPro
|
|
|
39
39
|
asChild?: boolean | undefined;
|
|
40
40
|
}, "ref"> & RefAttributes<HTMLLabelElement>>;
|
|
41
41
|
};
|
|
42
|
-
export { PinInput, PinInputControl,
|
|
43
|
-
export type { PinInputControlProps,
|
|
42
|
+
export { PinInput, PinInputControl, PinInputInput, PinInputLabel, pinInputAnatomy, usePinInputContext, };
|
|
43
|
+
export type { PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps };
|
package/pin-input/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PinInput as PinInput$1 } from './pin-input.mjs';
|
|
2
2
|
export { usePinInputContext } from './pin-input-context.mjs';
|
|
3
3
|
import { PinInputControl } from './pin-input-control.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { PinInputInput } from './pin-input-field.mjs';
|
|
5
5
|
import { PinInputLabel } from './pin-input-label.mjs';
|
|
6
6
|
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
|
7
7
|
|
|
8
8
|
const PinInput = Object.assign(PinInput$1, {
|
|
9
9
|
Root: PinInput$1,
|
|
10
10
|
Control: PinInputControl,
|
|
11
|
-
|
|
11
|
+
Input: PinInputInput,
|
|
12
12
|
Label: PinInputLabel
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
export { PinInput, PinInputControl,
|
|
15
|
+
export { PinInput, PinInputControl, PinInputInput, PinInputLabel };
|
|
@@ -9,12 +9,12 @@ const react = require('react');
|
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
10
|
const pinInputContext = require('./pin-input-context.cjs');
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const PinInputInput = react.forwardRef((props, ref) => {
|
|
13
13
|
const { index, ...inputProps } = props;
|
|
14
14
|
const { getInputProps } = pinInputContext.usePinInputContext();
|
|
15
15
|
const mergedProps = react$1.mergeProps(getInputProps({ index }), inputProps);
|
|
16
16
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
PinInputInput.displayName = "PinInputInput";
|
|
19
19
|
|
|
20
|
-
exports.
|
|
20
|
+
exports.PinInputInput = PinInputInput;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
|
-
export type
|
|
4
|
+
export type PinInputInputProps = Assign<ComponentPropsWithoutRef<typeof ark.input>, {
|
|
5
5
|
index: number;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const PinInputInput: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean | undefined;
|
|
@@ -5,12 +5,12 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
6
6
|
import { usePinInputContext } from './pin-input-context.mjs';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const PinInputInput = forwardRef((props, ref) => {
|
|
9
9
|
const { index, ...inputProps } = props;
|
|
10
10
|
const { getInputProps } = usePinInputContext();
|
|
11
11
|
const mergedProps = mergeProps(getInputProps({ index }), inputProps);
|
|
12
12
|
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
PinInputInput.displayName = "PinInputInput";
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { PinInputInput };
|