@ark-ui/react 0.10.0 → 0.11.0-beta.0
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 +15 -12
- package/carousel/carousel-next-slide-trigger.cjs +2 -2
- package/carousel/carousel-next-slide-trigger.mjs +2 -2
- package/carousel/carousel-prev-slide-trigger.cjs +2 -2
- package/carousel/carousel-prev-slide-trigger.mjs +2 -2
- package/carousel/carousel.anatomy.d.ts +2 -2
- package/checkbox/checkbox-control.cjs +5 -2
- package/checkbox/checkbox-control.mjs +6 -3
- package/checkbox/index.cjs +0 -2
- package/checkbox/index.d.ts +0 -1
- package/checkbox/index.mjs +0 -1
- package/color-picker/color-picker.anatomy.d.ts +2 -2
- package/combobox/combobox-clear-trigger.cjs +21 -0
- package/combobox/combobox-clear-trigger.d.ts +8 -0
- package/combobox/combobox-clear-trigger.mjs +17 -0
- package/combobox/combobox-option-group-label.cjs +23 -0
- package/combobox/combobox-option-group-label.d.ts +10 -0
- package/combobox/combobox-option-group-label.mjs +19 -0
- package/combobox/combobox-option-group.cjs +23 -0
- package/combobox/combobox-option-group.d.ts +10 -0
- package/combobox/combobox-option-group.mjs +19 -0
- package/combobox/combobox.cjs +2 -0
- package/combobox/combobox.d.ts +1 -1
- package/combobox/combobox.mjs +2 -0
- package/combobox/index.cjs +8 -2
- package/combobox/index.d.ts +3 -0
- package/combobox/index.mjs +3 -0
- package/date-picker/date-picker-positioner.cjs +21 -0
- package/date-picker/date-picker-positioner.d.ts +8 -0
- package/date-picker/date-picker-positioner.mjs +17 -0
- package/date-picker/date-picker.anatomy.d.ts +2 -2
- package/date-picker/index.cjs +2 -0
- package/date-picker/index.d.ts +1 -0
- package/date-picker/index.mjs +1 -0
- package/editable/editable.cjs +2 -0
- package/editable/editable.d.ts +1 -1
- package/editable/editable.mjs +2 -0
- package/index.cjs +8 -2
- package/index.mjs +4 -1
- package/menu/menu.cjs +3 -0
- package/menu/menu.mjs +3 -0
- package/package.json +41 -41
- package/pin-input/pin-input-control.cjs +3 -3
- package/pin-input/pin-input-control.mjs +4 -4
- package/range-slider/range-slider-thumb.cjs +4 -13
- package/range-slider/range-slider-thumb.mjs +5 -14
- package/rating-group/rating-group-control.cjs +4 -1
- package/rating-group/rating-group-control.mjs +5 -2
- package/rating-group/rating-group.cjs +1 -4
- package/rating-group/rating-group.d.ts +5 -5
- package/rating-group/rating-group.mjs +2 -5
- package/select/select-option-group.cjs +3 -2
- package/select/select-option-group.d.ts +3 -6
- package/select/select-option-group.mjs +3 -2
- package/select/select.cjs +2 -0
- package/select/select.mjs +2 -0
- package/slider/slider-thumb.cjs +4 -12
- package/slider/slider-thumb.mjs +5 -13
- package/tags-input/tags-input-control.cjs +2 -2
- package/tags-input/tags-input-control.mjs +3 -3
- package/tags-input/tags-input.cjs +3 -1
- package/tags-input/tags-input.mjs +3 -1
- package/checkbox/checkbox-input.cjs +0 -19
- package/checkbox/checkbox-input.d.ts +0 -8
- package/checkbox/checkbox-input.mjs +0 -15
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const react$1 = require('@zag-js/react');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
const factory = require('../factory.cjs');
|
|
10
|
-
const checkboxContext = require('./checkbox-context.cjs');
|
|
11
|
-
|
|
12
|
-
const CheckboxInput = react.forwardRef((props, ref) => {
|
|
13
|
-
const { inputProps } = checkboxContext.useCheckboxContext();
|
|
14
|
-
const mergedProps = react$1.mergeProps(inputProps, props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { ...mergedProps, ref });
|
|
16
|
-
});
|
|
17
|
-
CheckboxInput.displayName = "CheckboxInput";
|
|
18
|
-
|
|
19
|
-
exports.CheckboxInput = CheckboxInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { ark } from '../factory';
|
|
3
|
-
export type CheckboxInputProps = ComponentPropsWithoutRef<typeof ark.input>;
|
|
4
|
-
export declare const CheckboxInput: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
asChild?: boolean | undefined;
|
|
8
|
-
}, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { mergeProps } from '@zag-js/react';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { ark } from '../factory.mjs';
|
|
6
|
-
import { useCheckboxContext } from './checkbox-context.mjs';
|
|
7
|
-
|
|
8
|
-
const CheckboxInput = forwardRef((props, ref) => {
|
|
9
|
-
const { inputProps } = useCheckboxContext();
|
|
10
|
-
const mergedProps = mergeProps(inputProps, props);
|
|
11
|
-
return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });
|
|
12
|
-
});
|
|
13
|
-
CheckboxInput.displayName = "CheckboxInput";
|
|
14
|
-
|
|
15
|
-
export { CheckboxInput };
|