diff --git a/package.json b/package.json index 012a39eb..82905ecd 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "mlly": "^1.7.4", "ohash": "^2.0.11", "pathe": "^2.0.3", - "reka-ui": "^2.2.1", + "reka-ui": "^2.3.0", "scule": "^1.3.0", "tailwind-variants": "^1.0.0", "tailwindcss": "^4.1.7", diff --git a/playground/app/pages/components/calendar.vue b/playground/app/pages/components/calendar.vue index cd05cb4e..fc21882c 100644 --- a/playground/app/pages/components/calendar.vue +++ b/playground/app/pages/components/calendar.vue @@ -2,19 +2,23 @@ import { CalendarDate } from '@internationalized/date' const singleValue = shallowRef(new CalendarDate(2022, 1, 10)) -const multipleValue = shallowRef({ +const multipleValue = shallowRef([new CalendarDate(2022, 1, 10), new CalendarDate(2022, 1, 20)]) +const rangeValue = shallowRef({ start: new CalendarDate(2022, 1, 10), end: new CalendarDate(2022, 1, 20) }) diff --git a/playground/app/pages/components/pin-input.vue b/playground/app/pages/components/pin-input.vue index f65be36f..664c54ed 100644 --- a/playground/app/pages/components/pin-input.vue +++ b/playground/app/pages/components/pin-input.vue @@ -5,7 +5,7 @@ const sizes = Object.keys(theme.variants.size) as Array const onComplete = (e: string[]) => { - alert(e.join('')) + console.log(e) } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 338f6838..06b01401 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -119,8 +119,8 @@ importers: specifier: ^2.0.3 version: 2.0.3 reka-ui: - specifier: ^2.2.1 - version: 2.2.1(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)) + specifier: ^2.3.0 + version: 2.3.0(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)) scule: specifier: ^1.3.0 version: 1.3.0 @@ -153,7 +153,7 @@ importers: version: 1.1.0(typescript@5.8.3) vaul-vue: specifier: ^0.4.1 - version: 0.4.1(reka-ui@2.2.1(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)))(vue@3.5.15(typescript@5.8.3)) + version: 0.4.1(reka-ui@2.3.0(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)))(vue@3.5.15(typescript@5.8.3)) vue-component-type-helpers: specifier: ^2.2.10 version: 2.2.10 @@ -6035,8 +6035,8 @@ packages: rehype-sort-attributes@5.0.1: resolution: {integrity: sha512-Bxo+AKUIELcnnAZwJDt5zUDDRpt4uzhfz9d0PVGhcxYWsbFj5Cv35xuWxu5r1LeYNFNhgGqsr9Q2QiIOM/Qctg==} - reka-ui@2.2.1: - resolution: {integrity: sha512-oLHiyBn6gTIQGnTnv8G5LQuFp9j8HuUNl0qdnW3XPhFb/07hrxzFpjo2kt/jxOZive+n/XWDbOjSj2h9Hih3qA==} + reka-ui@2.3.0: + resolution: {integrity: sha512-HKvJej9Sc0KYEvTAbsGHgOxpEWL4FWSR70Q6Ld+bVNuaCxK6LP3jyTtyTWS+A44hHA9/aYfOBZ1Q8WkgZsGZpA==} peerDependencies: vue: '>= 3.2.0' @@ -14187,7 +14187,7 @@ snapshots: '@types/hast': 3.0.4 unist-util-visit: 5.0.0 - reka-ui@2.2.1(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)): + reka-ui@2.3.0(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)): dependencies: '@floating-ui/dom': 1.7.0 '@floating-ui/vue': 1.1.6(vue@3.5.15(typescript@5.8.3)) @@ -15304,10 +15304,10 @@ snapshots: spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 - vaul-vue@0.4.1(reka-ui@2.2.1(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)))(vue@3.5.15(typescript@5.8.3)): + vaul-vue@0.4.1(reka-ui@2.3.0(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)))(vue@3.5.15(typescript@5.8.3)): dependencies: '@vueuse/core': 10.11.1(vue@3.5.15(typescript@5.8.3)) - reka-ui: 2.2.1(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)) + reka-ui: 2.3.0(typescript@5.8.3)(vue@3.5.15(typescript@5.8.3)) vue: 3.5.15(typescript@5.8.3) transitivePeerDependencies: - '@vue/composition-api' diff --git a/src/runtime/components/Calendar.vue b/src/runtime/components/Calendar.vue index e09b69ea..ec2b1518 100644 --- a/src/runtime/components/Calendar.vue +++ b/src/runtime/components/Calendar.vue @@ -153,8 +153,8 @@ const Calendar = computed(() => props.range ? RangeCalendar : SingleCalendar) -export interface InputNumberProps extends Pick { +export interface InputNumberProps extends Pick { /** * The element or component this component should render as. * @defaultValue 'div' @@ -98,7 +98,7 @@ defineSlots() const { t, code: codeLocale } = useLocale() const appConfig = useAppConfig() as InputNumber['AppConfig'] -const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'modelValue', 'defaultValue', 'min', 'max', 'step', 'stepSnapping', 'formatOptions', 'disableWheelChange'), emits) +const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'modelValue', 'defaultValue', 'min', 'max', 'step', 'stepSnapping', 'formatOptions', 'disableWheelChange', 'invertWheelChange'), emits) const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size: formGroupSize, name, highlight, disabled, ariaAttrs } = useFormField(props) const { orientation, size: buttonGroupSize } = useButtonGroup(props) diff --git a/src/runtime/components/PinInput.vue b/src/runtime/components/PinInput.vue index 87581b01..d90e698a 100644 --- a/src/runtime/components/PinInput.vue +++ b/src/runtime/components/PinInput.vue @@ -7,7 +7,9 @@ import type { ComponentConfig } from '../types/utils' type PinInput = ComponentConfig -export interface PinInputProps extends Pick { +type PinInputType = 'text' | 'number' + +export interface PinInputProps extends Pick, 'defaultValue' | 'disabled' | 'id' | 'mask' | 'modelValue' | 'name' | 'otp' | 'placeholder' | 'required' | 'type'> { /** * The element or component this component should render as. * @defaultValue 'div' @@ -37,14 +39,14 @@ export interface PinInputProps extends Pick = PinInputRootEmits & { change: [payload: Event] blur: [payload: Event] } - -