@byyuurin/ui 0.1.0 → 0.3.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/LICENSE +20 -20
- package/README.md +5 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.vue +41 -41
- package/dist/runtime/components/Accordion.vue.d.ts +11 -7
- package/dist/runtime/components/Alert.vue +63 -63
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.vue +11 -10
- package/dist/runtime/components/App.vue.d.ts +11 -7
- package/dist/runtime/components/Avatar.vue +29 -29
- package/dist/runtime/components/Avatar.vue.d.ts +4 -3
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +32 -32
- package/dist/runtime/components/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/Breadcrumb.vue +49 -49
- package/dist/runtime/components/Breadcrumb.vue.d.ts +10 -6
- package/dist/runtime/components/Button.vue +52 -51
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +75 -77
- package/dist/runtime/components/Calendar.vue.d.ts +16 -12
- package/dist/runtime/components/Card.vue +41 -41
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +85 -66
- package/dist/runtime/components/Carousel.vue.d.ts +14 -10
- package/dist/runtime/components/Checkbox.vue +46 -46
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/components/CheckboxGroup.vue +131 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +93 -0
- package/dist/runtime/components/Chip.vue +15 -15
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue +14 -14
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/Drawer.vue +76 -76
- package/dist/runtime/components/Drawer.vue.d.ts +6 -6
- package/dist/runtime/components/DropdownMenu.vue +28 -28
- package/dist/runtime/components/DropdownMenu.vue.d.ts +17 -9
- package/dist/runtime/components/DropdownMenuContent.vue +152 -153
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +11 -7
- package/dist/runtime/components/FieldGroup.vue +3 -3
- package/dist/runtime/components/FieldGroup.vue.d.ts +2 -2
- package/dist/runtime/components/Form.vue +9 -9
- package/dist/runtime/components/Form.vue.d.ts +13 -8
- package/dist/runtime/components/FormField.vue +39 -38
- package/dist/runtime/components/FormField.vue.d.ts +7 -2
- package/dist/runtime/components/Icon.vue +2 -2
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +48 -48
- package/dist/runtime/components/Input.vue.d.ts +16 -12
- package/dist/runtime/components/InputNumber.vue +48 -50
- package/dist/runtime/components/InputNumber.vue.d.ts +128 -129
- package/dist/runtime/components/InputTags.vue +156 -0
- package/dist/runtime/components/InputTags.vue.d.ts +90 -0
- package/dist/runtime/components/Kbd.vue +3 -3
- package/dist/runtime/components/Kbd.vue.d.ts +2 -2
- package/dist/runtime/components/Link.vue +26 -25
- package/dist/runtime/components/Link.vue.d.ts +16 -6
- package/dist/runtime/components/LinkBase.vue +3 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -2
- package/dist/runtime/components/Marquee.vue +38 -0
- package/dist/runtime/components/Marquee.vue.d.ts +54 -0
- package/dist/runtime/components/Modal.vue +74 -74
- package/dist/runtime/components/Modal.vue.d.ts +6 -6
- package/dist/runtime/components/NavigationMenu.vue +243 -234
- package/dist/runtime/components/NavigationMenu.vue.d.ts +53 -14
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/Pagination.vue.d.ts +4 -4
- package/dist/runtime/components/PinInput.vue +23 -23
- package/dist/runtime/components/PinInput.vue.d.ts +14 -10
- package/dist/runtime/components/Popover.vue +22 -22
- package/dist/runtime/components/Popover.vue.d.ts +11 -7
- package/dist/runtime/components/Progress.vue +25 -25
- package/dist/runtime/components/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/RadioGroup.vue +50 -50
- package/dist/runtime/components/RadioGroup.vue.d.ts +13 -9
- package/dist/runtime/components/ScrollArea.vue +32 -32
- package/dist/runtime/components/ScrollArea.vue.d.ts +2 -2
- package/dist/runtime/components/Select.vue +299 -148
- package/dist/runtime/components/Select.vue.d.ts +103 -123
- package/dist/runtime/components/Separator.vue +30 -30
- package/dist/runtime/components/Separator.vue.d.ts +2 -2
- package/dist/runtime/components/Skeleton.vue +11 -11
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue +25 -25
- package/dist/runtime/components/Slider.vue.d.ts +11 -7
- package/dist/runtime/components/Stepper.vue +116 -0
- package/dist/runtime/components/Stepper.vue.d.ts +83 -0
- package/dist/runtime/components/Switch.vue +30 -30
- package/dist/runtime/components/Switch.vue.d.ts +4 -3
- package/dist/runtime/components/Table.vue +188 -166
- package/dist/runtime/components/Table.vue.d.ts +27 -22
- package/dist/runtime/components/Tabs.vue +74 -74
- package/dist/runtime/components/Tabs.vue.d.ts +12 -8
- package/dist/runtime/components/Textarea.vue +47 -47
- package/dist/runtime/components/Textarea.vue.d.ts +16 -11
- package/dist/runtime/components/Timeline.vue +102 -0
- package/dist/runtime/components/Timeline.vue.d.ts +78 -0
- package/dist/runtime/components/Toast.vue +93 -93
- package/dist/runtime/components/Toast.vue.d.ts +5 -5
- package/dist/runtime/components/ToastProvider.vue +29 -29
- package/dist/runtime/components/ToastProvider.vue.d.ts +3 -3
- package/dist/runtime/components/Tooltip.vue +24 -25
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/components/Tree.vue +241 -0
- package/dist/runtime/components/Tree.vue.d.ts +121 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -0
- package/dist/runtime/composables/defineShortcuts.js +44 -8
- package/dist/runtime/composables/useLocale.d.ts +12 -0
- package/dist/runtime/locale/en.d.ts +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/zh_tw.d.ts +6 -0
- package/dist/runtime/locale/zh_tw.js +6 -0
- package/dist/runtime/types/html.d.ts +8 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/index.d.ts +7 -0
- package/dist/runtime/types/index.js +7 -0
- package/dist/runtime/types/input.d.ts +5 -5
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/unocss.d.ts +4 -4
- package/dist/runtime/types/utils.d.ts +9 -6
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/link.d.ts +2 -1
- package/dist/runtime/utils/link.js +40 -29
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue +7 -12
- package/dist/runtime/vue/components/Link.vue.d.ts +11 -40
- package/dist/setup.d.mts +1 -1
- package/dist/shared/{ui.CzIlLITK.mjs → ui.9kQouwss.mjs} +5 -3
- package/dist/shared/{ui.DpbffTXs.d.mts → ui.D8Bg1HWt.d.mts} +2 -0
- package/dist/shared/{ui.DSyJHSTk.mjs → ui.DpkP12cX.mjs} +784 -84
- package/dist/unocss.mjs +1 -1
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +29 -29
- package/vue-plugin.d.ts +5 -5
|
@@ -107,52 +107,52 @@ defineExpose({
|
|
|
107
107
|
</script>
|
|
108
108
|
|
|
109
109
|
<template>
|
|
110
|
-
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })" data-part="root">
|
|
111
|
-
<span v-if="isLeading || !!props.avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })" data-part="leading">
|
|
112
|
-
<slot name="leading" :ui="ui">
|
|
113
|
-
<Icon
|
|
114
|
-
v-if="isLeading && leadingIconName"
|
|
115
|
-
:name="leadingIconName"
|
|
116
|
-
:class="ui.leadingIcon({ class: props.ui?.leadingIcon })"
|
|
117
|
-
data-part="
|
|
118
|
-
/>
|
|
119
|
-
<Avatar
|
|
120
|
-
v-else-if="props.avatar"
|
|
121
|
-
:size="props.ui?.leadingAvatarSize || ui.leadingAvatarSize()"
|
|
122
|
-
v-bind="props.avatar"
|
|
123
|
-
:class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })"
|
|
124
|
-
data-part="
|
|
125
|
-
/>
|
|
126
|
-
</slot>
|
|
127
|
-
</span>
|
|
128
|
-
|
|
129
|
-
<input
|
|
130
|
-
ref="inputRef"
|
|
131
|
-
:type="props.type"
|
|
132
|
-
:value="modelValue"
|
|
133
|
-
:placeholder="props.placeholder"
|
|
134
|
-
:required="props.required"
|
|
135
|
-
:autocomplete="props.autocomplete"
|
|
136
|
-
v-bind="{ id, name, disabled, ...$attrs, ...ariaAttrs }"
|
|
137
|
-
:class="ui.base({ class: props.ui?.base })"
|
|
138
|
-
data-part="base"
|
|
139
|
-
@input="onInput"
|
|
140
|
-
@blur="onBlur"
|
|
141
|
-
@change="onChange"
|
|
142
|
-
@focus="emitFormFocus"
|
|
143
|
-
/>
|
|
144
|
-
|
|
145
|
-
<slot :ui="ui"></slot>
|
|
146
|
-
|
|
147
|
-
<span v-if="isTrailing || slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })" data-part="trailing">
|
|
148
|
-
<slot name="trailing" :ui="ui">
|
|
149
|
-
<Icon
|
|
150
|
-
v-if="trailingIconName"
|
|
151
|
-
:name="trailingIconName"
|
|
152
|
-
:class="ui.trailingIcon({ class: props.ui?.trailingIcon })"
|
|
153
|
-
data-part="
|
|
154
|
-
/>
|
|
155
|
-
</slot>
|
|
156
|
-
</span>
|
|
157
|
-
</Primitive>
|
|
110
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })" data-part="root">
|
|
111
|
+
<span v-if="isLeading || !!props.avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })" data-part="leading">
|
|
112
|
+
<slot name="leading" :ui="ui">
|
|
113
|
+
<Icon
|
|
114
|
+
v-if="isLeading && leadingIconName"
|
|
115
|
+
:name="leadingIconName"
|
|
116
|
+
:class="ui.leadingIcon({ class: props.ui?.leadingIcon })"
|
|
117
|
+
data-part="leadingIcon"
|
|
118
|
+
/>
|
|
119
|
+
<Avatar
|
|
120
|
+
v-else-if="props.avatar"
|
|
121
|
+
:size="props.ui?.leadingAvatarSize || ui.leadingAvatarSize()"
|
|
122
|
+
v-bind="props.avatar"
|
|
123
|
+
:class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })"
|
|
124
|
+
data-part="leadingAvatar"
|
|
125
|
+
/>
|
|
126
|
+
</slot>
|
|
127
|
+
</span>
|
|
128
|
+
|
|
129
|
+
<input
|
|
130
|
+
ref="inputRef"
|
|
131
|
+
:type="props.type"
|
|
132
|
+
:value="modelValue"
|
|
133
|
+
:placeholder="props.placeholder"
|
|
134
|
+
:required="props.required"
|
|
135
|
+
:autocomplete="props.autocomplete"
|
|
136
|
+
v-bind="{ id, name, disabled, ...$attrs, ...ariaAttrs }"
|
|
137
|
+
:class="ui.base({ class: props.ui?.base })"
|
|
138
|
+
data-part="base"
|
|
139
|
+
@input="onInput"
|
|
140
|
+
@blur="onBlur"
|
|
141
|
+
@change="onChange"
|
|
142
|
+
@focus="emitFormFocus"
|
|
143
|
+
/>
|
|
144
|
+
|
|
145
|
+
<slot :ui="ui"></slot>
|
|
146
|
+
|
|
147
|
+
<span v-if="isTrailing || slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })" data-part="trailing">
|
|
148
|
+
<slot name="trailing" :ui="ui">
|
|
149
|
+
<Icon
|
|
150
|
+
v-if="trailingIconName"
|
|
151
|
+
:name="trailingIconName"
|
|
152
|
+
:class="ui.trailingIcon({ class: props.ui?.trailingIcon })"
|
|
153
|
+
data-part="trailingIcon"
|
|
154
|
+
/>
|
|
155
|
+
</slot>
|
|
156
|
+
</span>
|
|
157
|
+
</Primitive>
|
|
158
158
|
</template>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { VariantProps } from '@byyuurin/ui-kit';
|
|
2
2
|
import type { PrimitiveProps } from 'reka-ui';
|
|
3
|
-
import type { InputHTMLAttributes } from 'vue';
|
|
4
3
|
import theme from '#build/ui/input';
|
|
5
4
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
6
5
|
import type { ComponentBaseProps, ComponentStyler, ComponentUIProps } from '../types';
|
|
6
|
+
import type { InputHTMLAttributes } from '../types/html';
|
|
7
7
|
import type { ModelModifiers } from '../types/input';
|
|
8
8
|
import type { AcceptableValue, MaybeNull, StaticSlot } from '../types/utils';
|
|
9
9
|
export type InputValue = AcceptableValue;
|
|
10
10
|
type ThemeVariants = VariantProps<typeof theme>;
|
|
11
|
-
export interface InputProps<T extends InputValue = InputValue> extends ComponentBaseProps, UseComponentIconsProps {
|
|
11
|
+
export interface InputProps<T extends InputValue = InputValue> extends ComponentBaseProps, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'name' | 'type' | 'placeholder' | 'required' | 'autocomplete' | 'autofocus' | 'disabled'> {
|
|
12
12
|
/**
|
|
13
13
|
* The element or component this component should render as.
|
|
14
14
|
* @default "div"
|
|
@@ -35,7 +35,7 @@ export interface InputProps<T extends InputValue = InputValue> extends Component
|
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
defaultValue?: T;
|
|
37
37
|
modelValue?: T;
|
|
38
|
-
modelModifiers?: ModelModifiers
|
|
38
|
+
modelModifiers?: ModelModifiers<T>;
|
|
39
39
|
ui?: ComponentUIProps<typeof theme>;
|
|
40
40
|
}
|
|
41
41
|
export interface InputEmits<T extends InputValue> {
|
|
@@ -54,23 +54,27 @@ export interface InputSlots {
|
|
|
54
54
|
ui: ComponentStyler<typeof theme>;
|
|
55
55
|
}>;
|
|
56
56
|
}
|
|
57
|
-
declare const
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
declare const _default: typeof __VLS_export;
|
|
58
|
+
export default _default;
|
|
59
|
+
declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
60
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<InputProps<T> & {
|
|
60
61
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
62
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
61
63
|
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
62
|
-
}> &
|
|
64
|
+
}> & (typeof globalThis extends {
|
|
65
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
66
|
+
} ? P : {});
|
|
63
67
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
64
68
|
inputRef: import("vue").Ref<MaybeNull<HTMLInputElement>, MaybeNull<HTMLInputElement>>;
|
|
65
69
|
}>) => void;
|
|
66
70
|
attrs: any;
|
|
67
71
|
slots: InputSlots;
|
|
68
|
-
emit: ((evt: "
|
|
72
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
69
73
|
}>) => import("vue").VNode & {
|
|
70
74
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
71
75
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
77
|
+
[K in keyof T]: T[K];
|
|
78
|
+
} : {
|
|
75
79
|
[K in keyof T as K]: T[K];
|
|
76
|
-
} & {};
|
|
80
|
+
}) & {};
|
|
@@ -30,7 +30,6 @@ const props = defineProps({
|
|
|
30
30
|
autofocus: { type: Boolean, required: false },
|
|
31
31
|
autofocusDelay: { type: Number, required: false },
|
|
32
32
|
modelModifiers: { type: Object, required: false },
|
|
33
|
-
locale: { type: String, required: false },
|
|
34
33
|
ui: { type: null, required: false },
|
|
35
34
|
class: { type: [Object, String, Number, Boolean, null, Array], required: false, skipCheck: true },
|
|
36
35
|
modelValue: { type: [Number, null], required: false },
|
|
@@ -52,8 +51,7 @@ const emit = defineEmits(["update:modelValue", "blur", "change"]);
|
|
|
52
51
|
defineSlots();
|
|
53
52
|
const modelValue = useVModel(props, "modelValue", emit, { defaultValue: props.defaultValue });
|
|
54
53
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "defaultValue", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "readonly"), emit);
|
|
55
|
-
const { t
|
|
56
|
-
const locale = computed(() => props.locale || codeLocale.value);
|
|
54
|
+
const { t } = useLocale();
|
|
57
55
|
const { id, name, size: formFieldSize, color, highlight, disabled, ariaAttrs, emitFormBlur, emitFormFocus, emitFormInput, emitFormChange } = useFormField(props);
|
|
58
56
|
const { size: fieldGroupSize, orientation } = useFieldGroup(props);
|
|
59
57
|
const appConfig = useAppConfig();
|
|
@@ -97,51 +95,51 @@ defineExpose({
|
|
|
97
95
|
</script>
|
|
98
96
|
|
|
99
97
|
<template>
|
|
100
|
-
<NumberFieldRoot
|
|
101
|
-
v-bind="{ ...rootProps, id, name, disabled,
|
|
102
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
103
|
-
data-part="root"
|
|
104
|
-
@update:model-value="onUpdate"
|
|
105
|
-
>
|
|
106
|
-
<NumberFieldInput
|
|
107
|
-
v-bind="{ ...$attrs, ...ariaAttrs }"
|
|
108
|
-
ref="inputRef"
|
|
109
|
-
:placeholder="props.placeholder"
|
|
110
|
-
:required="props.required"
|
|
111
|
-
:class="ui.base({ class: props.ui?.base })"
|
|
112
|
-
data-part="base"
|
|
113
|
-
@blur="onBlur"
|
|
114
|
-
@focus="emitFormFocus"
|
|
115
|
-
/>
|
|
116
|
-
|
|
117
|
-
<div v-if="props.increment" :class="ui.increment({ class: props.ui?.increment })" data-part="increment">
|
|
118
|
-
<NumberFieldIncrement :disabled="disabled || incrementDisabled" as-child>
|
|
119
|
-
<slot name="increment">
|
|
120
|
-
<Button
|
|
121
|
-
:icon="incrementIcon"
|
|
122
|
-
:size="props.size"
|
|
123
|
-
:color="color"
|
|
124
|
-
variant="link"
|
|
125
|
-
:aria-label="t('inputNumber.increment')"
|
|
126
|
-
v-bind="typeof props.increment === 'object' ? props.increment : void 0"
|
|
127
|
-
/>
|
|
128
|
-
</slot>
|
|
129
|
-
</NumberFieldIncrement>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<div v-if="props.decrement" :class="ui.decrement({ class: props.ui?.decrement })" data-part="decrement">
|
|
133
|
-
<NumberFieldDecrement :disabled="disabled || decrementDisabled" as-child>
|
|
134
|
-
<slot name="decrement">
|
|
135
|
-
<Button
|
|
136
|
-
:icon="decrementIcon"
|
|
137
|
-
:size="props.size"
|
|
138
|
-
:color="color"
|
|
139
|
-
variant="link"
|
|
140
|
-
:aria-label="t('inputNumber.decrement')"
|
|
141
|
-
v-bind="typeof props.decrement === 'object' ? props.decrement : void 0"
|
|
142
|
-
/>
|
|
143
|
-
</slot>
|
|
144
|
-
</NumberFieldDecrement>
|
|
145
|
-
</div>
|
|
146
|
-
</NumberFieldRoot>
|
|
98
|
+
<NumberFieldRoot
|
|
99
|
+
v-bind="{ ...rootProps, id, name, disabled, modelValue }"
|
|
100
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
101
|
+
data-part="root"
|
|
102
|
+
@update:model-value="onUpdate"
|
|
103
|
+
>
|
|
104
|
+
<NumberFieldInput
|
|
105
|
+
v-bind="{ ...$attrs, ...ariaAttrs }"
|
|
106
|
+
ref="inputRef"
|
|
107
|
+
:placeholder="props.placeholder"
|
|
108
|
+
:required="props.required"
|
|
109
|
+
:class="ui.base({ class: props.ui?.base })"
|
|
110
|
+
data-part="base"
|
|
111
|
+
@blur="onBlur"
|
|
112
|
+
@focus="emitFormFocus"
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
<div v-if="props.increment" :class="ui.increment({ class: props.ui?.increment })" data-part="increment">
|
|
116
|
+
<NumberFieldIncrement :disabled="disabled || incrementDisabled" as-child>
|
|
117
|
+
<slot name="increment">
|
|
118
|
+
<Button
|
|
119
|
+
:icon="incrementIcon"
|
|
120
|
+
:size="props.size"
|
|
121
|
+
:color="color"
|
|
122
|
+
variant="link"
|
|
123
|
+
:aria-label="t('inputNumber.increment')"
|
|
124
|
+
v-bind="typeof props.increment === 'object' ? props.increment : void 0"
|
|
125
|
+
/>
|
|
126
|
+
</slot>
|
|
127
|
+
</NumberFieldIncrement>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div v-if="props.decrement" :class="ui.decrement({ class: props.ui?.decrement })" data-part="decrement">
|
|
131
|
+
<NumberFieldDecrement :disabled="disabled || decrementDisabled" as-child>
|
|
132
|
+
<slot name="decrement">
|
|
133
|
+
<Button
|
|
134
|
+
:icon="decrementIcon"
|
|
135
|
+
:size="props.size"
|
|
136
|
+
:color="color"
|
|
137
|
+
variant="link"
|
|
138
|
+
:aria-label="t('inputNumber.decrement')"
|
|
139
|
+
v-bind="typeof props.decrement === 'object' ? props.decrement : void 0"
|
|
140
|
+
/>
|
|
141
|
+
</slot>
|
|
142
|
+
</NumberFieldDecrement>
|
|
143
|
+
</div>
|
|
144
|
+
</NumberFieldRoot>
|
|
147
145
|
</template>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { VariantProps } from '@byyuurin/ui-kit';
|
|
2
2
|
import type { NumberFieldRootProps } from 'reka-ui';
|
|
3
3
|
import theme from '#build/ui/input-number';
|
|
4
|
-
import type { ButtonProps, ComponentBaseProps, ComponentUIProps, IconProps } from '../types';
|
|
4
|
+
import type { ButtonProps, ComponentBaseProps, ComponentUIProps, IconProps, LinkPropsKeys } from '../types';
|
|
5
|
+
import type { InputHTMLAttributes } from '../types/html';
|
|
5
6
|
import type { ModelModifiers } from '../types/input';
|
|
6
7
|
import type { MaybeNull, StaticSlot } from '../types/utils';
|
|
7
8
|
type ThemeVariants = VariantProps<typeof theme>;
|
|
8
|
-
|
|
9
|
+
type InputNumberValue = MaybeNull<number>;
|
|
10
|
+
export interface InputNumberProps<T extends InputNumberValue = InputNumberValue> extends ComponentBaseProps, Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'>, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'min' | 'max' | 'readonly' | 'required' | 'step' | 'name' | 'placeholder'> {
|
|
9
11
|
/**
|
|
10
12
|
* The element or component this component should render as.
|
|
11
13
|
* @default "div"
|
|
@@ -30,7 +32,7 @@ export interface InputNumberProps extends ComponentBaseProps, Pick<NumberFieldRo
|
|
|
30
32
|
* Configure the increment button. The `color` and `size` are inherited.
|
|
31
33
|
* @default { variant: 'link' }
|
|
32
34
|
*/
|
|
33
|
-
increment?: boolean | ButtonProps
|
|
35
|
+
increment?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
34
36
|
/**
|
|
35
37
|
* The icon displayed to increment the value.
|
|
36
38
|
* @default app.icons.plus
|
|
@@ -42,7 +44,7 @@ export interface InputNumberProps extends ComponentBaseProps, Pick<NumberFieldRo
|
|
|
42
44
|
* Configure the decrement button. The `color` and `size` are inherited.
|
|
43
45
|
* @default { variant: 'link' }
|
|
44
46
|
*/
|
|
45
|
-
decrement?: boolean | ButtonProps
|
|
47
|
+
decrement?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
46
48
|
/**
|
|
47
49
|
* The icon displayed to decrement the value.
|
|
48
50
|
* @default app.icons.minus
|
|
@@ -52,16 +54,11 @@ export interface InputNumberProps extends ComponentBaseProps, Pick<NumberFieldRo
|
|
|
52
54
|
decrementDisabled?: boolean;
|
|
53
55
|
autofocus?: boolean;
|
|
54
56
|
autofocusDelay?: number;
|
|
55
|
-
modelModifiers?: Pick<ModelModifiers
|
|
56
|
-
/**
|
|
57
|
-
* The locale to use for formatting and parsing numbers.
|
|
58
|
-
* @default App.locale.code
|
|
59
|
-
*/
|
|
60
|
-
locale?: string;
|
|
57
|
+
modelModifiers?: Pick<ModelModifiers<T>, 'optional'>;
|
|
61
58
|
ui?: ComponentUIProps<typeof theme>;
|
|
62
59
|
}
|
|
63
|
-
export interface InputNumberEmits {
|
|
64
|
-
'update:modelValue': [value:
|
|
60
|
+
export interface InputNumberEmits<T extends InputNumberValue = InputNumberValue> {
|
|
61
|
+
'update:modelValue': [value: T];
|
|
65
62
|
'blur': [event: FocusEvent];
|
|
66
63
|
'change': [event: Event];
|
|
67
64
|
}
|
|
@@ -69,123 +66,125 @@ export interface InputNumberSlots {
|
|
|
69
66
|
increment: StaticSlot;
|
|
70
67
|
decrement: StaticSlot;
|
|
71
68
|
}
|
|
72
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
|
|
73
|
-
inputRef: import("vue").Ref<MaybeNull<{
|
|
74
|
-
$: import("vue").ComponentInternalInstance;
|
|
75
|
-
$data: {};
|
|
76
|
-
$props: {
|
|
77
|
-
readonly asChild?: boolean | undefined;
|
|
78
|
-
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
79
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
80
|
-
$attrs: {
|
|
81
|
-
[x: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
$refs: {
|
|
84
|
-
[x: string]: unknown;
|
|
85
|
-
};
|
|
86
|
-
$slots: Readonly<{
|
|
87
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
88
|
-
}>;
|
|
89
|
-
$root: import("vue").ComponentPublicInstance | null;
|
|
90
|
-
$parent: import("vue").ComponentPublicInstance | null;
|
|
91
|
-
$host: Element | null;
|
|
92
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
93
|
-
$el: any;
|
|
94
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
95
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
96
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
97
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
98
|
-
created?: (() => void) | (() => void)[];
|
|
99
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
100
|
-
mounted?: (() => void) | (() => void)[];
|
|
101
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
102
|
-
updated?: (() => void) | (() => void)[];
|
|
103
|
-
activated?: (() => void) | (() => void)[];
|
|
104
|
-
deactivated?: (() => void) | (() => void)[];
|
|
105
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
106
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
107
|
-
destroyed?: (() => void) | (() => void)[];
|
|
108
|
-
unmounted?: (() => void) | (() => void)[];
|
|
109
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
110
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
111
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
112
|
-
};
|
|
113
|
-
$forceUpdate: () => void;
|
|
114
|
-
$nextTick: typeof import("vue").nextTick;
|
|
115
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
116
|
-
} & Readonly<{
|
|
117
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
118
|
-
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
119
|
-
$slots: {
|
|
120
|
-
default?: (props: {}) => any;
|
|
121
|
-
};
|
|
122
|
-
}>, MaybeNull<{
|
|
123
|
-
$: import("vue").ComponentInternalInstance;
|
|
124
|
-
$data: {};
|
|
125
|
-
$props: {
|
|
126
|
-
readonly asChild?: boolean | undefined;
|
|
127
|
-
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
128
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
129
|
-
$attrs: {
|
|
130
|
-
[x: string]: unknown;
|
|
131
|
-
};
|
|
132
|
-
$refs: {
|
|
133
|
-
[x: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
$slots: Readonly<{
|
|
136
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
137
|
-
}>;
|
|
138
|
-
$root: import("vue").ComponentPublicInstance | null;
|
|
139
|
-
$parent: import("vue").ComponentPublicInstance | null;
|
|
140
|
-
$host: Element | null;
|
|
141
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
142
|
-
$el: any;
|
|
143
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
144
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
145
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
146
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
147
|
-
created?: (() => void) | (() => void)[];
|
|
148
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
149
|
-
mounted?: (() => void) | (() => void)[];
|
|
150
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
151
|
-
updated?: (() => void) | (() => void)[];
|
|
152
|
-
activated?: (() => void) | (() => void)[];
|
|
153
|
-
deactivated?: (() => void) | (() => void)[];
|
|
154
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
155
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
156
|
-
destroyed?: (() => void) | (() => void)[];
|
|
157
|
-
unmounted?: (() => void) | (() => void)[];
|
|
158
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
159
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
160
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
161
|
-
};
|
|
162
|
-
$forceUpdate: () => void;
|
|
163
|
-
$nextTick: typeof import("vue").nextTick;
|
|
164
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
165
|
-
} & Readonly<{
|
|
166
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
167
|
-
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
168
|
-
$slots: {
|
|
169
|
-
default?: (props: {}) => any;
|
|
170
|
-
};
|
|
171
|
-
}>>;
|
|
172
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
173
|
-
change: (event: Event) => any;
|
|
174
|
-
blur: (event: FocusEvent) => any;
|
|
175
|
-
"update:modelValue": (value: number) => any;
|
|
176
|
-
}, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
177
|
-
onChange?: ((event: Event) => any) | undefined;
|
|
178
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
179
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
180
|
-
}>, {
|
|
181
|
-
orientation: "horizontal" | "vertical";
|
|
182
|
-
increment: boolean | ButtonProps;
|
|
183
|
-
decrement: boolean | ButtonProps;
|
|
184
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
|
|
185
69
|
declare const _default: typeof __VLS_export;
|
|
186
70
|
export default _default;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
71
|
+
declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
72
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<InputNumberProps<T> & {
|
|
73
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
74
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
76
|
+
}> & (typeof globalThis extends {
|
|
77
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
78
|
+
} ? P : {});
|
|
79
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
80
|
+
inputRef: import("vue").Ref<MaybeNull<{
|
|
81
|
+
$: import("vue").ComponentInternalInstance;
|
|
82
|
+
$data: {};
|
|
83
|
+
$props: {
|
|
84
|
+
readonly asChild?: boolean | undefined;
|
|
85
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
86
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
87
|
+
$attrs: {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
$refs: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
$slots: Readonly<{
|
|
94
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
97
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
98
|
+
$host: Element | null;
|
|
99
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
100
|
+
$el: any;
|
|
101
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
102
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
103
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
104
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
105
|
+
created?: (() => void) | (() => void)[];
|
|
106
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
107
|
+
mounted?: (() => void) | (() => void)[];
|
|
108
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
109
|
+
updated?: (() => void) | (() => void)[];
|
|
110
|
+
activated?: (() => void) | (() => void)[];
|
|
111
|
+
deactivated?: (() => void) | (() => void)[];
|
|
112
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
113
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
114
|
+
destroyed?: (() => void) | (() => void)[];
|
|
115
|
+
unmounted?: (() => void) | (() => void)[];
|
|
116
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
117
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
118
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
119
|
+
};
|
|
120
|
+
$forceUpdate: () => void;
|
|
121
|
+
$nextTick: typeof import("vue").nextTick;
|
|
122
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
123
|
+
} & Readonly<{
|
|
124
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
125
|
+
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
126
|
+
$slots: {
|
|
127
|
+
default?: (props: {}) => any;
|
|
128
|
+
};
|
|
129
|
+
}>, MaybeNull<{
|
|
130
|
+
$: import("vue").ComponentInternalInstance;
|
|
131
|
+
$data: {};
|
|
132
|
+
$props: {
|
|
133
|
+
readonly asChild?: boolean | undefined;
|
|
134
|
+
readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
|
|
135
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
136
|
+
$attrs: {
|
|
137
|
+
[x: string]: unknown;
|
|
138
|
+
};
|
|
139
|
+
$refs: {
|
|
140
|
+
[x: string]: unknown;
|
|
141
|
+
};
|
|
142
|
+
$slots: Readonly<{
|
|
143
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
146
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
147
|
+
$host: Element | null;
|
|
148
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
149
|
+
$el: any;
|
|
150
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
151
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
152
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
153
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
154
|
+
created?: (() => void) | (() => void)[];
|
|
155
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
156
|
+
mounted?: (() => void) | (() => void)[];
|
|
157
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
158
|
+
updated?: (() => void) | (() => void)[];
|
|
159
|
+
activated?: (() => void) | (() => void)[];
|
|
160
|
+
deactivated?: (() => void) | (() => void)[];
|
|
161
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
162
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
163
|
+
destroyed?: (() => void) | (() => void)[];
|
|
164
|
+
unmounted?: (() => void) | (() => void)[];
|
|
165
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
166
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
167
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
168
|
+
};
|
|
169
|
+
$forceUpdate: () => void;
|
|
170
|
+
$nextTick: typeof import("vue").nextTick;
|
|
171
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
172
|
+
} & Readonly<{
|
|
173
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
174
|
+
}> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
175
|
+
$slots: {
|
|
176
|
+
default?: (props: {}) => any;
|
|
177
|
+
};
|
|
178
|
+
}>>;
|
|
179
|
+
}>) => void;
|
|
180
|
+
attrs: any;
|
|
181
|
+
slots: InputNumberSlots;
|
|
182
|
+
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
183
|
+
}>) => import("vue").VNode & {
|
|
184
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
191
185
|
};
|
|
186
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
187
|
+
[K in keyof T]: T[K];
|
|
188
|
+
} : {
|
|
189
|
+
[K in keyof T as K]: T[K];
|
|
190
|
+
}) & {};
|