naive-ui 2.41.0 → 2.42.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.
Files changed (209) hide show
  1. package/dist/index.js +930 -428
  2. package/dist/index.mjs +927 -430
  3. package/dist/index.prod.js +1 -1
  4. package/dist/index.prod.mjs +1 -1
  5. package/es/_internal/icon/src/styles/index.cssr.mjs +0 -1
  6. package/es/_internal/selection/src/Selection.d.ts +1 -1
  7. package/es/_mixins/use-form-item.d.ts +1 -1
  8. package/es/_utils/dom/download.d.ts +1 -0
  9. package/es/_utils/dom/download.mjs +3 -0
  10. package/es/_utils/index.d.ts +1 -1
  11. package/es/_utils/index.mjs +1 -1
  12. package/es/_utils/naive/index.d.ts +1 -0
  13. package/es/_utils/naive/index.mjs +1 -0
  14. package/es/_utils/naive/value.d.ts +1 -0
  15. package/es/_utils/naive/value.mjs +13 -0
  16. package/es/anchor/index.d.ts +1 -0
  17. package/es/anchor/src/Link.d.ts +3 -2
  18. package/es/anchor/src/Link.mjs +5 -2
  19. package/es/anchor/src/public-types.d.ts +5 -0
  20. package/es/anchor/src/public-types.mjs +1 -0
  21. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  22. package/es/cascader/src/Cascader.d.ts +1 -1
  23. package/es/components.d.ts +1 -0
  24. package/es/components.mjs +1 -0
  25. package/es/config-provider/src/internal-interface.d.ts +2 -0
  26. package/es/data-table/src/DataTable.d.ts +6 -6
  27. package/es/data-table/src/DataTable.mjs +6 -6
  28. package/es/data-table/src/styles/index.cssr.mjs +1 -0
  29. package/es/date-picker/src/DatePicker.d.ts +5 -5
  30. package/es/date-picker/src/DatePicker.mjs +1 -1
  31. package/es/date-picker/src/panel/date.d.ts +2 -2
  32. package/es/date-picker/src/panel/daterange.d.ts +3 -3
  33. package/es/date-picker/src/panel/datetime.d.ts +2 -2
  34. package/es/date-picker/src/panel/datetime.mjs +1 -1
  35. package/es/date-picker/src/panel/datetimerange.d.ts +3 -3
  36. package/es/date-picker/src/panel/datetimerange.mjs +2 -2
  37. package/es/date-picker/src/panel/month.d.ts +2 -2
  38. package/es/date-picker/src/panel/monthrange.d.ts +3 -3
  39. package/es/date-picker/src/panel/panelHeader.d.ts +4 -4
  40. package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
  41. package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  42. package/es/date-picker/src/panel/use-dual-calendar.mjs +3 -3
  43. package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
  44. package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
  45. package/es/date-picker/src/props.d.ts +2 -2
  46. package/es/date-picker/src/props.mjs +1 -1
  47. package/es/descriptions/src/Descriptions.d.ts +1 -1
  48. package/es/form/index.d.ts +1 -0
  49. package/es/form/src/FormItem.d.ts +1 -1
  50. package/es/form/src/FormItemCol.d.ts +1 -1
  51. package/es/form/src/FormItemGridItem.d.ts +1 -1
  52. package/es/form/src/interface.d.ts +0 -1
  53. package/es/form/src/public-types.d.ts +1 -0
  54. package/es/form/src/public-types.mjs +1 -0
  55. package/es/icon/src/styles/index.cssr.mjs +0 -1
  56. package/es/input/src/Input.d.ts +1 -1
  57. package/es/input/src/Input.mjs +1 -8
  58. package/es/input-number/src/InputNumber.d.ts +1 -1
  59. package/es/input-otp/index.d.ts +3 -0
  60. package/es/input-otp/index.mjs +1 -0
  61. package/es/input-otp/src/InputOtp.d.ts +875 -0
  62. package/es/input-otp/src/InputOtp.mjs +322 -0
  63. package/es/input-otp/src/public-types.d.ts +24 -0
  64. package/es/input-otp/src/public-types.mjs +1 -0
  65. package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
  66. package/es/input-otp/src/styles/index.cssr.mjs +20 -0
  67. package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  68. package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
  69. package/es/input-otp/styles/dark.d.ts +3 -0
  70. package/es/input-otp/styles/dark.mjs +12 -0
  71. package/es/input-otp/styles/index.d.ts +4 -0
  72. package/es/input-otp/styles/index.mjs +3 -0
  73. package/es/input-otp/styles/light.d.ts +81 -0
  74. package/es/input-otp/styles/light.mjs +22 -0
  75. package/es/input-otp/styles/rtl.d.ts +2 -0
  76. package/es/input-otp/styles/rtl.mjs +5 -0
  77. package/es/mention/src/Mention.d.ts +1 -1
  78. package/es/progress/src/Circle.d.ts +1 -1
  79. package/es/progress/src/MultipleCircle.d.ts +1 -1
  80. package/es/progress/src/Progress.d.ts +2 -2
  81. package/es/radio/src/Radio.mjs +5 -5
  82. package/es/radio/src/styles/radio.cssr.mjs +3 -7
  83. package/es/select/src/Select.d.ts +1 -1
  84. package/es/styles.d.ts +1 -0
  85. package/es/styles.mjs +1 -0
  86. package/es/tabs/src/TabPane.d.ts +1 -0
  87. package/es/themes/dark.mjs +2 -1
  88. package/es/themes/light.mjs +2 -0
  89. package/es/time-picker/src/TimePicker.d.ts +1 -1
  90. package/es/transfer/src/Transfer.d.ts +1 -1
  91. package/es/tree/src/Tree.d.ts +21 -17
  92. package/es/tree/src/Tree.mjs +4 -4
  93. package/es/tree/src/styles/index.cssr.mjs +0 -1
  94. package/es/tree-select/src/TreeSelect.d.ts +14 -1
  95. package/es/tree-select/src/TreeSelect.mjs +1 -0
  96. package/es/typography/src/text.d.ts +1 -1
  97. package/es/upload/index.d.ts +1 -0
  98. package/es/upload/index.mjs +1 -0
  99. package/es/upload/src/Upload.d.ts +11 -8
  100. package/es/upload/src/Upload.mjs +2 -0
  101. package/es/upload/src/UploadFile.mjs +8 -1
  102. package/es/upload/src/interface.d.ts +1 -0
  103. package/es/version.d.ts +1 -1
  104. package/es/version.mjs +1 -1
  105. package/es/watermark/src/Watermark.d.ts +1 -1
  106. package/lib/_internal/icon/src/styles/index.cssr.js +0 -1
  107. package/lib/_internal/selection/src/Selection.d.ts +1 -1
  108. package/lib/_mixins/use-form-item.d.ts +1 -1
  109. package/lib/_utils/dom/download.d.ts +1 -0
  110. package/lib/_utils/dom/download.js +4 -0
  111. package/lib/_utils/index.d.ts +1 -1
  112. package/lib/_utils/index.js +2 -1
  113. package/lib/_utils/naive/index.d.ts +1 -0
  114. package/lib/_utils/naive/index.js +3 -1
  115. package/lib/_utils/naive/value.d.ts +1 -0
  116. package/lib/_utils/naive/value.js +18 -0
  117. package/lib/anchor/index.d.ts +1 -0
  118. package/lib/anchor/src/Link.d.ts +3 -2
  119. package/lib/anchor/src/Link.js +4 -1
  120. package/lib/anchor/src/public-types.d.ts +5 -0
  121. package/lib/anchor/src/public-types.js +2 -0
  122. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  123. package/lib/cascader/src/Cascader.d.ts +1 -1
  124. package/lib/components.d.ts +1 -0
  125. package/lib/components.js +1 -0
  126. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  127. package/lib/data-table/src/DataTable.d.ts +6 -6
  128. package/lib/data-table/src/DataTable.js +6 -6
  129. package/lib/data-table/src/styles/index.cssr.js +1 -0
  130. package/lib/date-picker/src/DatePicker.d.ts +5 -5
  131. package/lib/date-picker/src/DatePicker.js +1 -1
  132. package/lib/date-picker/src/panel/date.d.ts +2 -2
  133. package/lib/date-picker/src/panel/daterange.d.ts +3 -3
  134. package/lib/date-picker/src/panel/datetime.d.ts +2 -2
  135. package/lib/date-picker/src/panel/datetime.js +1 -1
  136. package/lib/date-picker/src/panel/datetimerange.d.ts +3 -3
  137. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  138. package/lib/date-picker/src/panel/month.d.ts +2 -2
  139. package/lib/date-picker/src/panel/monthrange.d.ts +3 -3
  140. package/lib/date-picker/src/panel/panelHeader.d.ts +4 -4
  141. package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
  142. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  143. package/lib/date-picker/src/panel/use-dual-calendar.js +3 -3
  144. package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
  145. package/lib/date-picker/src/panel/use-panel-common.js +1 -1
  146. package/lib/date-picker/src/props.d.ts +2 -2
  147. package/lib/date-picker/src/props.js +1 -1
  148. package/lib/descriptions/src/Descriptions.d.ts +1 -1
  149. package/lib/form/index.d.ts +1 -0
  150. package/lib/form/src/FormItem.d.ts +1 -1
  151. package/lib/form/src/FormItemCol.d.ts +1 -1
  152. package/lib/form/src/FormItemGridItem.d.ts +1 -1
  153. package/lib/form/src/interface.d.ts +0 -1
  154. package/lib/form/src/public-types.d.ts +1 -0
  155. package/lib/form/src/public-types.js +2 -0
  156. package/lib/icon/src/styles/index.cssr.js +0 -1
  157. package/lib/input/src/Input.d.ts +1 -1
  158. package/lib/input/src/Input.js +0 -7
  159. package/lib/input-number/src/InputNumber.d.ts +1 -1
  160. package/lib/input-otp/index.d.ts +3 -0
  161. package/lib/input-otp/index.js +9 -0
  162. package/lib/input-otp/src/InputOtp.d.ts +875 -0
  163. package/lib/input-otp/src/InputOtp.js +248 -0
  164. package/lib/input-otp/src/public-types.d.ts +24 -0
  165. package/lib/input-otp/src/public-types.js +2 -0
  166. package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
  167. package/lib/input-otp/src/styles/index.cssr.js +25 -0
  168. package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
  169. package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
  170. package/lib/input-otp/styles/dark.d.ts +3 -0
  171. package/lib/input-otp/styles/dark.js +14 -0
  172. package/lib/input-otp/styles/index.d.ts +4 -0
  173. package/lib/input-otp/styles/index.js +12 -0
  174. package/lib/input-otp/styles/light.d.ts +81 -0
  175. package/lib/input-otp/styles/light.js +25 -0
  176. package/lib/input-otp/styles/rtl.d.ts +2 -0
  177. package/lib/input-otp/styles/rtl.js +11 -0
  178. package/lib/mention/src/Mention.d.ts +1 -1
  179. package/lib/progress/src/Circle.d.ts +1 -1
  180. package/lib/progress/src/MultipleCircle.d.ts +1 -1
  181. package/lib/progress/src/Progress.d.ts +2 -2
  182. package/lib/radio/src/Radio.js +2 -2
  183. package/lib/radio/src/styles/radio.cssr.js +3 -7
  184. package/lib/select/src/Select.d.ts +1 -1
  185. package/lib/styles.d.ts +1 -0
  186. package/lib/styles.js +99 -96
  187. package/lib/tabs/src/TabPane.d.ts +1 -0
  188. package/lib/themes/dark.js +1 -0
  189. package/lib/themes/light.js +92 -90
  190. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  191. package/lib/transfer/src/Transfer.d.ts +1 -1
  192. package/lib/tree/src/Tree.d.ts +21 -17
  193. package/lib/tree/src/Tree.js +5 -4
  194. package/lib/tree/src/styles/index.cssr.js +0 -1
  195. package/lib/tree-select/src/TreeSelect.d.ts +14 -1
  196. package/lib/tree-select/src/TreeSelect.js +1 -1
  197. package/lib/typography/src/text.d.ts +1 -1
  198. package/lib/upload/index.d.ts +1 -0
  199. package/lib/upload/index.js +3 -1
  200. package/lib/upload/src/Upload.d.ts +11 -8
  201. package/lib/upload/src/Upload.js +2 -1
  202. package/lib/upload/src/UploadFile.js +7 -2
  203. package/lib/upload/src/interface.d.ts +1 -0
  204. package/lib/version.d.ts +1 -1
  205. package/lib/version.js +1 -1
  206. package/lib/watermark/src/Watermark.d.ts +1 -1
  207. package/package.json +1 -1
  208. package/volar.d.ts +3 -2
  209. package/web-types.json +139 -10
@@ -0,0 +1,875 @@
1
+ import type { PropType, SlotsType } from 'vue';
2
+ import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
3
+ import type { FormValidationStatus } from '../../form/src/public-types';
4
+ import type { InputOtpAllowInput, InputOtpOnBlur, InputOtpOnFinish, InputOtpOnFocus, InputOtpOnUpdateValue, InputOtpSize, InputOtpSlots } from './public-types';
5
+ export declare const inputOtpProps: {
6
+ defaultValue: {
7
+ type: PropType<string[]>;
8
+ default: never[];
9
+ };
10
+ value: PropType<null | string[]>;
11
+ length: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ block: BooleanConstructor;
16
+ size: PropType<InputOtpSize>;
17
+ disabled: BooleanConstructor;
18
+ mask: BooleanConstructor;
19
+ readonly: BooleanConstructor;
20
+ status: PropType<FormValidationStatus>;
21
+ gap: PropType<string | number>;
22
+ placeholder: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ allowInput: PropType<InputOtpAllowInput>;
27
+ onBlur: PropType<MaybeArray<InputOtpOnBlur>>;
28
+ onFocus: PropType<MaybeArray<InputOtpOnFocus>>;
29
+ 'onUpdate:value': PropType<MaybeArray<InputOtpOnUpdateValue>>;
30
+ onUpdateValue: PropType<MaybeArray<InputOtpOnUpdateValue>>;
31
+ onFinish: PropType<MaybeArray<InputOtpOnFinish>>;
32
+ theme: PropType<import("../../_mixins").Theme<"InputOtp", {
33
+ inputWidthSmall: string;
34
+ inputWidthMedium: string;
35
+ inputWidthLarge: string;
36
+ gapSmall: string;
37
+ gapMedium: string;
38
+ gapLarge: string;
39
+ }, {
40
+ Input: import("../../_mixins").Theme<"Input", {
41
+ fontWeight: string;
42
+ countTextColorDisabled: string;
43
+ countTextColor: string;
44
+ heightTiny: string;
45
+ heightSmall: string;
46
+ heightMedium: string;
47
+ heightLarge: string;
48
+ fontSizeTiny: string;
49
+ fontSizeSmall: string;
50
+ fontSizeMedium: string;
51
+ fontSizeLarge: string;
52
+ lineHeight: string;
53
+ lineHeightTextarea: string;
54
+ borderRadius: string;
55
+ iconSize: string;
56
+ groupLabelColor: string;
57
+ groupLabelTextColor: string;
58
+ textColor: string;
59
+ textColorDisabled: string;
60
+ textDecorationColor: string;
61
+ caretColor: string;
62
+ placeholderColor: string;
63
+ placeholderColorDisabled: string;
64
+ color: string;
65
+ colorDisabled: string;
66
+ colorFocus: string;
67
+ groupLabelBorder: string;
68
+ border: string;
69
+ borderHover: string;
70
+ borderDisabled: string;
71
+ borderFocus: string;
72
+ boxShadowFocus: string;
73
+ loadingColor: string;
74
+ loadingColorWarning: string;
75
+ borderWarning: string;
76
+ borderHoverWarning: string;
77
+ colorFocusWarning: string;
78
+ borderFocusWarning: string;
79
+ boxShadowFocusWarning: string;
80
+ caretColorWarning: string;
81
+ loadingColorError: string;
82
+ borderError: string;
83
+ borderHoverError: string;
84
+ colorFocusError: string;
85
+ borderFocusError: string;
86
+ boxShadowFocusError: string;
87
+ caretColorError: string;
88
+ clearColor: string;
89
+ clearColorHover: string;
90
+ clearColorPressed: string;
91
+ iconColor: string;
92
+ iconColorDisabled: string;
93
+ iconColorHover: string;
94
+ iconColorPressed: string;
95
+ suffixTextColor: string;
96
+ paddingTiny: string;
97
+ paddingSmall: string;
98
+ paddingMedium: string;
99
+ paddingLarge: string;
100
+ clearSize: string;
101
+ }, any>;
102
+ }>>;
103
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
104
+ inputWidthSmall: string;
105
+ inputWidthMedium: string;
106
+ inputWidthLarge: string;
107
+ gapSmall: string;
108
+ gapMedium: string;
109
+ gapLarge: string;
110
+ }, {
111
+ Input: import("../../_mixins").Theme<"Input", {
112
+ fontWeight: string;
113
+ countTextColorDisabled: string;
114
+ countTextColor: string;
115
+ heightTiny: string;
116
+ heightSmall: string;
117
+ heightMedium: string;
118
+ heightLarge: string;
119
+ fontSizeTiny: string;
120
+ fontSizeSmall: string;
121
+ fontSizeMedium: string;
122
+ fontSizeLarge: string;
123
+ lineHeight: string;
124
+ lineHeightTextarea: string;
125
+ borderRadius: string;
126
+ iconSize: string;
127
+ groupLabelColor: string;
128
+ groupLabelTextColor: string;
129
+ textColor: string;
130
+ textColorDisabled: string;
131
+ textDecorationColor: string;
132
+ caretColor: string;
133
+ placeholderColor: string;
134
+ placeholderColorDisabled: string;
135
+ color: string;
136
+ colorDisabled: string;
137
+ colorFocus: string;
138
+ groupLabelBorder: string;
139
+ border: string;
140
+ borderHover: string;
141
+ borderDisabled: string;
142
+ borderFocus: string;
143
+ boxShadowFocus: string;
144
+ loadingColor: string;
145
+ loadingColorWarning: string;
146
+ borderWarning: string;
147
+ borderHoverWarning: string;
148
+ colorFocusWarning: string;
149
+ borderFocusWarning: string;
150
+ boxShadowFocusWarning: string;
151
+ caretColorWarning: string;
152
+ loadingColorError: string;
153
+ borderError: string;
154
+ borderHoverError: string;
155
+ colorFocusError: string;
156
+ borderFocusError: string;
157
+ boxShadowFocusError: string;
158
+ caretColorError: string;
159
+ clearColor: string;
160
+ clearColorHover: string;
161
+ clearColorPressed: string;
162
+ iconColor: string;
163
+ iconColorDisabled: string;
164
+ iconColorHover: string;
165
+ iconColorPressed: string;
166
+ suffixTextColor: string;
167
+ paddingTiny: string;
168
+ paddingSmall: string;
169
+ paddingMedium: string;
170
+ paddingLarge: string;
171
+ clearSize: string;
172
+ }, any>;
173
+ }>>>;
174
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
175
+ inputWidthSmall: string;
176
+ inputWidthMedium: string;
177
+ inputWidthLarge: string;
178
+ gapSmall: string;
179
+ gapMedium: string;
180
+ gapLarge: string;
181
+ }, {
182
+ Input: import("../../_mixins").Theme<"Input", {
183
+ fontWeight: string;
184
+ countTextColorDisabled: string;
185
+ countTextColor: string;
186
+ heightTiny: string;
187
+ heightSmall: string;
188
+ heightMedium: string;
189
+ heightLarge: string;
190
+ fontSizeTiny: string;
191
+ fontSizeSmall: string;
192
+ fontSizeMedium: string;
193
+ fontSizeLarge: string;
194
+ lineHeight: string;
195
+ lineHeightTextarea: string;
196
+ borderRadius: string;
197
+ iconSize: string;
198
+ groupLabelColor: string;
199
+ groupLabelTextColor: string;
200
+ textColor: string;
201
+ textColorDisabled: string;
202
+ textDecorationColor: string;
203
+ caretColor: string;
204
+ placeholderColor: string;
205
+ placeholderColorDisabled: string;
206
+ color: string;
207
+ colorDisabled: string;
208
+ colorFocus: string;
209
+ groupLabelBorder: string;
210
+ border: string;
211
+ borderHover: string;
212
+ borderDisabled: string;
213
+ borderFocus: string;
214
+ boxShadowFocus: string;
215
+ loadingColor: string;
216
+ loadingColorWarning: string;
217
+ borderWarning: string;
218
+ borderHoverWarning: string;
219
+ colorFocusWarning: string;
220
+ borderFocusWarning: string;
221
+ boxShadowFocusWarning: string;
222
+ caretColorWarning: string;
223
+ loadingColorError: string;
224
+ borderError: string;
225
+ borderHoverError: string;
226
+ colorFocusError: string;
227
+ borderFocusError: string;
228
+ boxShadowFocusError: string;
229
+ caretColorError: string;
230
+ clearColor: string;
231
+ clearColorHover: string;
232
+ clearColorPressed: string;
233
+ iconColor: string;
234
+ iconColorDisabled: string;
235
+ iconColorHover: string;
236
+ iconColorPressed: string;
237
+ suffixTextColor: string;
238
+ paddingTiny: string;
239
+ paddingSmall: string;
240
+ paddingMedium: string;
241
+ paddingLarge: string;
242
+ clearSize: string;
243
+ }, any>;
244
+ }>>>;
245
+ };
246
+ export type InputOtpProps = ExtractPublicPropTypes<typeof inputOtpProps>;
247
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
248
+ defaultValue: {
249
+ type: PropType<string[]>;
250
+ default: never[];
251
+ };
252
+ value: PropType<null | string[]>;
253
+ length: {
254
+ type: NumberConstructor;
255
+ default: number;
256
+ };
257
+ block: BooleanConstructor;
258
+ size: PropType<InputOtpSize>;
259
+ disabled: BooleanConstructor;
260
+ mask: BooleanConstructor;
261
+ readonly: BooleanConstructor;
262
+ status: PropType<FormValidationStatus>;
263
+ gap: PropType<string | number>;
264
+ placeholder: {
265
+ type: StringConstructor;
266
+ default: string;
267
+ };
268
+ allowInput: PropType<InputOtpAllowInput>;
269
+ onBlur: PropType<MaybeArray<InputOtpOnBlur>>;
270
+ onFocus: PropType<MaybeArray<InputOtpOnFocus>>;
271
+ 'onUpdate:value': PropType<MaybeArray<InputOtpOnUpdateValue>>;
272
+ onUpdateValue: PropType<MaybeArray<InputOtpOnUpdateValue>>;
273
+ onFinish: PropType<MaybeArray<InputOtpOnFinish>>;
274
+ theme: PropType<import("../../_mixins").Theme<"InputOtp", {
275
+ inputWidthSmall: string;
276
+ inputWidthMedium: string;
277
+ inputWidthLarge: string;
278
+ gapSmall: string;
279
+ gapMedium: string;
280
+ gapLarge: string;
281
+ }, {
282
+ Input: import("../../_mixins").Theme<"Input", {
283
+ fontWeight: string;
284
+ countTextColorDisabled: string;
285
+ countTextColor: string;
286
+ heightTiny: string;
287
+ heightSmall: string;
288
+ heightMedium: string;
289
+ heightLarge: string;
290
+ fontSizeTiny: string;
291
+ fontSizeSmall: string;
292
+ fontSizeMedium: string;
293
+ fontSizeLarge: string;
294
+ lineHeight: string;
295
+ lineHeightTextarea: string;
296
+ borderRadius: string;
297
+ iconSize: string;
298
+ groupLabelColor: string;
299
+ groupLabelTextColor: string;
300
+ textColor: string;
301
+ textColorDisabled: string;
302
+ textDecorationColor: string;
303
+ caretColor: string;
304
+ placeholderColor: string;
305
+ placeholderColorDisabled: string;
306
+ color: string;
307
+ colorDisabled: string;
308
+ colorFocus: string;
309
+ groupLabelBorder: string;
310
+ border: string;
311
+ borderHover: string;
312
+ borderDisabled: string;
313
+ borderFocus: string;
314
+ boxShadowFocus: string;
315
+ loadingColor: string;
316
+ loadingColorWarning: string;
317
+ borderWarning: string;
318
+ borderHoverWarning: string;
319
+ colorFocusWarning: string;
320
+ borderFocusWarning: string;
321
+ boxShadowFocusWarning: string;
322
+ caretColorWarning: string;
323
+ loadingColorError: string;
324
+ borderError: string;
325
+ borderHoverError: string;
326
+ colorFocusError: string;
327
+ borderFocusError: string;
328
+ boxShadowFocusError: string;
329
+ caretColorError: string;
330
+ clearColor: string;
331
+ clearColorHover: string;
332
+ clearColorPressed: string;
333
+ iconColor: string;
334
+ iconColorDisabled: string;
335
+ iconColorHover: string;
336
+ iconColorPressed: string;
337
+ suffixTextColor: string;
338
+ paddingTiny: string;
339
+ paddingSmall: string;
340
+ paddingMedium: string;
341
+ paddingLarge: string;
342
+ clearSize: string;
343
+ }, any>;
344
+ }>>;
345
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
346
+ inputWidthSmall: string;
347
+ inputWidthMedium: string;
348
+ inputWidthLarge: string;
349
+ gapSmall: string;
350
+ gapMedium: string;
351
+ gapLarge: string;
352
+ }, {
353
+ Input: import("../../_mixins").Theme<"Input", {
354
+ fontWeight: string;
355
+ countTextColorDisabled: string;
356
+ countTextColor: string;
357
+ heightTiny: string;
358
+ heightSmall: string;
359
+ heightMedium: string;
360
+ heightLarge: string;
361
+ fontSizeTiny: string;
362
+ fontSizeSmall: string;
363
+ fontSizeMedium: string;
364
+ fontSizeLarge: string;
365
+ lineHeight: string;
366
+ lineHeightTextarea: string;
367
+ borderRadius: string;
368
+ iconSize: string;
369
+ groupLabelColor: string;
370
+ groupLabelTextColor: string;
371
+ textColor: string;
372
+ textColorDisabled: string;
373
+ textDecorationColor: string;
374
+ caretColor: string;
375
+ placeholderColor: string;
376
+ placeholderColorDisabled: string;
377
+ color: string;
378
+ colorDisabled: string;
379
+ colorFocus: string;
380
+ groupLabelBorder: string;
381
+ border: string;
382
+ borderHover: string;
383
+ borderDisabled: string;
384
+ borderFocus: string;
385
+ boxShadowFocus: string;
386
+ loadingColor: string;
387
+ loadingColorWarning: string;
388
+ borderWarning: string;
389
+ borderHoverWarning: string;
390
+ colorFocusWarning: string;
391
+ borderFocusWarning: string;
392
+ boxShadowFocusWarning: string;
393
+ caretColorWarning: string;
394
+ loadingColorError: string;
395
+ borderError: string;
396
+ borderHoverError: string;
397
+ colorFocusError: string;
398
+ borderFocusError: string;
399
+ boxShadowFocusError: string;
400
+ caretColorError: string;
401
+ clearColor: string;
402
+ clearColorHover: string;
403
+ clearColorPressed: string;
404
+ iconColor: string;
405
+ iconColorDisabled: string;
406
+ iconColorHover: string;
407
+ iconColorPressed: string;
408
+ suffixTextColor: string;
409
+ paddingTiny: string;
410
+ paddingSmall: string;
411
+ paddingMedium: string;
412
+ paddingLarge: string;
413
+ clearSize: string;
414
+ }, any>;
415
+ }>>>;
416
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
417
+ inputWidthSmall: string;
418
+ inputWidthMedium: string;
419
+ inputWidthLarge: string;
420
+ gapSmall: string;
421
+ gapMedium: string;
422
+ gapLarge: string;
423
+ }, {
424
+ Input: import("../../_mixins").Theme<"Input", {
425
+ fontWeight: string;
426
+ countTextColorDisabled: string;
427
+ countTextColor: string;
428
+ heightTiny: string;
429
+ heightSmall: string;
430
+ heightMedium: string;
431
+ heightLarge: string;
432
+ fontSizeTiny: string;
433
+ fontSizeSmall: string;
434
+ fontSizeMedium: string;
435
+ fontSizeLarge: string;
436
+ lineHeight: string;
437
+ lineHeightTextarea: string;
438
+ borderRadius: string;
439
+ iconSize: string;
440
+ groupLabelColor: string;
441
+ groupLabelTextColor: string;
442
+ textColor: string;
443
+ textColorDisabled: string;
444
+ textDecorationColor: string;
445
+ caretColor: string;
446
+ placeholderColor: string;
447
+ placeholderColorDisabled: string;
448
+ color: string;
449
+ colorDisabled: string;
450
+ colorFocus: string;
451
+ groupLabelBorder: string;
452
+ border: string;
453
+ borderHover: string;
454
+ borderDisabled: string;
455
+ borderFocus: string;
456
+ boxShadowFocus: string;
457
+ loadingColor: string;
458
+ loadingColorWarning: string;
459
+ borderWarning: string;
460
+ borderHoverWarning: string;
461
+ colorFocusWarning: string;
462
+ borderFocusWarning: string;
463
+ boxShadowFocusWarning: string;
464
+ caretColorWarning: string;
465
+ loadingColorError: string;
466
+ borderError: string;
467
+ borderHoverError: string;
468
+ colorFocusError: string;
469
+ borderFocusError: string;
470
+ boxShadowFocusError: string;
471
+ caretColorError: string;
472
+ clearColor: string;
473
+ clearColorHover: string;
474
+ clearColorPressed: string;
475
+ iconColor: string;
476
+ iconColorDisabled: string;
477
+ iconColorHover: string;
478
+ iconColorPressed: string;
479
+ suffixTextColor: string;
480
+ paddingTiny: string;
481
+ paddingSmall: string;
482
+ paddingMedium: string;
483
+ paddingLarge: string;
484
+ clearSize: string;
485
+ }, any>;
486
+ }>>>;
487
+ }>, {
488
+ mergedTheme: import("vue").ComputedRef<{
489
+ common: import("naive-ui").ThemeCommonVars;
490
+ self: {
491
+ inputWidthSmall: string;
492
+ inputWidthMedium: string;
493
+ inputWidthLarge: string;
494
+ gapSmall: string;
495
+ gapMedium: string;
496
+ gapLarge: string;
497
+ };
498
+ peers: {
499
+ Input: import("../../_mixins").Theme<"Input", {
500
+ fontWeight: string;
501
+ countTextColorDisabled: string;
502
+ countTextColor: string;
503
+ heightTiny: string;
504
+ heightSmall: string;
505
+ heightMedium: string;
506
+ heightLarge: string;
507
+ fontSizeTiny: string;
508
+ fontSizeSmall: string;
509
+ fontSizeMedium: string;
510
+ fontSizeLarge: string;
511
+ lineHeight: string;
512
+ lineHeightTextarea: string;
513
+ borderRadius: string;
514
+ iconSize: string;
515
+ groupLabelColor: string;
516
+ groupLabelTextColor: string;
517
+ textColor: string;
518
+ textColorDisabled: string;
519
+ textDecorationColor: string;
520
+ caretColor: string;
521
+ placeholderColor: string;
522
+ placeholderColorDisabled: string;
523
+ color: string;
524
+ colorDisabled: string;
525
+ colorFocus: string;
526
+ groupLabelBorder: string;
527
+ border: string;
528
+ borderHover: string;
529
+ borderDisabled: string;
530
+ borderFocus: string;
531
+ boxShadowFocus: string;
532
+ loadingColor: string;
533
+ loadingColorWarning: string;
534
+ borderWarning: string;
535
+ borderHoverWarning: string;
536
+ colorFocusWarning: string;
537
+ borderFocusWarning: string;
538
+ boxShadowFocusWarning: string;
539
+ caretColorWarning: string;
540
+ loadingColorError: string;
541
+ borderError: string;
542
+ borderHoverError: string;
543
+ colorFocusError: string;
544
+ borderFocusError: string;
545
+ boxShadowFocusError: string;
546
+ caretColorError: string;
547
+ clearColor: string;
548
+ clearColorHover: string;
549
+ clearColorPressed: string;
550
+ iconColor: string;
551
+ iconColorDisabled: string;
552
+ iconColorHover: string;
553
+ iconColorPressed: string;
554
+ suffixTextColor: string;
555
+ paddingTiny: string;
556
+ paddingSmall: string;
557
+ paddingMedium: string;
558
+ paddingLarge: string;
559
+ clearSize: string;
560
+ }, any>;
561
+ };
562
+ peerOverrides: {
563
+ Input?: {
564
+ peers?: {
565
+ [x: string]: any;
566
+ } | undefined;
567
+ } | undefined;
568
+ };
569
+ }>;
570
+ perItemValueArray: import("vue").ComputedRef<string[]>;
571
+ mergedClsPrefix: import("vue").Ref<string, string>;
572
+ inputRefList: import("vue").Ref<{
573
+ wrapperElRef: HTMLElement | null;
574
+ textareaElRef: HTMLTextAreaElement | null;
575
+ inputElRef: HTMLInputElement | null;
576
+ isCompositing: boolean;
577
+ blur: () => void;
578
+ clear: () => void;
579
+ focus: () => void;
580
+ select: () => void;
581
+ activate: () => void;
582
+ deactivate: () => void;
583
+ scrollTo: (options: ScrollToOptions) => void;
584
+ }[], {
585
+ wrapperElRef: HTMLElement | null;
586
+ textareaElRef: HTMLTextAreaElement | null;
587
+ inputElRef: HTMLInputElement | null;
588
+ isCompositing: boolean;
589
+ blur: () => void;
590
+ clear: () => void;
591
+ focus: () => void;
592
+ select: () => void;
593
+ activate: () => void;
594
+ deactivate: () => void;
595
+ scrollTo: (options: ScrollToOptions) => void;
596
+ }[] | {
597
+ wrapperElRef: HTMLElement | null;
598
+ textareaElRef: HTMLTextAreaElement | null;
599
+ inputElRef: HTMLInputElement | null;
600
+ isCompositing: boolean;
601
+ blur: () => void;
602
+ clear: () => void;
603
+ focus: () => void;
604
+ select: () => void;
605
+ activate: () => void;
606
+ deactivate: () => void;
607
+ scrollTo: (options: ScrollToOptions) => void;
608
+ }[]>;
609
+ inputType: import("vue").ComputedRef<"text" | "password">;
610
+ rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined, import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
611
+ mergedStatus: import("vue").ComputedRef<FormValidationStatus | undefined>;
612
+ mergedDisabled: import("vue").ComputedRef<boolean>;
613
+ cssVars: import("vue").ComputedRef<{
614
+ '--n-gap': string;
615
+ '--n-input-width': string;
616
+ }> | undefined;
617
+ themeClass: import("vue").Ref<string, string> | undefined;
618
+ getTemplateEvents: (index: number) => {
619
+ onInput: (value: string) => void;
620
+ onPaste: (event: ClipboardEvent) => void;
621
+ onKeydown: (event: KeyboardEvent) => void;
622
+ onFocus: (event: FocusEvent) => void;
623
+ onBlur: (event: FocusEvent) => void;
624
+ };
625
+ onRender: (() => void) | undefined;
626
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
627
+ defaultValue: {
628
+ type: PropType<string[]>;
629
+ default: never[];
630
+ };
631
+ value: PropType<null | string[]>;
632
+ length: {
633
+ type: NumberConstructor;
634
+ default: number;
635
+ };
636
+ block: BooleanConstructor;
637
+ size: PropType<InputOtpSize>;
638
+ disabled: BooleanConstructor;
639
+ mask: BooleanConstructor;
640
+ readonly: BooleanConstructor;
641
+ status: PropType<FormValidationStatus>;
642
+ gap: PropType<string | number>;
643
+ placeholder: {
644
+ type: StringConstructor;
645
+ default: string;
646
+ };
647
+ allowInput: PropType<InputOtpAllowInput>;
648
+ onBlur: PropType<MaybeArray<InputOtpOnBlur>>;
649
+ onFocus: PropType<MaybeArray<InputOtpOnFocus>>;
650
+ 'onUpdate:value': PropType<MaybeArray<InputOtpOnUpdateValue>>;
651
+ onUpdateValue: PropType<MaybeArray<InputOtpOnUpdateValue>>;
652
+ onFinish: PropType<MaybeArray<InputOtpOnFinish>>;
653
+ theme: PropType<import("../../_mixins").Theme<"InputOtp", {
654
+ inputWidthSmall: string;
655
+ inputWidthMedium: string;
656
+ inputWidthLarge: string;
657
+ gapSmall: string;
658
+ gapMedium: string;
659
+ gapLarge: string;
660
+ }, {
661
+ Input: import("../../_mixins").Theme<"Input", {
662
+ fontWeight: string;
663
+ countTextColorDisabled: string;
664
+ countTextColor: string;
665
+ heightTiny: string;
666
+ heightSmall: string;
667
+ heightMedium: string;
668
+ heightLarge: string;
669
+ fontSizeTiny: string;
670
+ fontSizeSmall: string;
671
+ fontSizeMedium: string;
672
+ fontSizeLarge: string;
673
+ lineHeight: string;
674
+ lineHeightTextarea: string;
675
+ borderRadius: string;
676
+ iconSize: string;
677
+ groupLabelColor: string;
678
+ groupLabelTextColor: string;
679
+ textColor: string;
680
+ textColorDisabled: string;
681
+ textDecorationColor: string;
682
+ caretColor: string;
683
+ placeholderColor: string;
684
+ placeholderColorDisabled: string;
685
+ color: string;
686
+ colorDisabled: string;
687
+ colorFocus: string;
688
+ groupLabelBorder: string;
689
+ border: string;
690
+ borderHover: string;
691
+ borderDisabled: string;
692
+ borderFocus: string;
693
+ boxShadowFocus: string;
694
+ loadingColor: string;
695
+ loadingColorWarning: string;
696
+ borderWarning: string;
697
+ borderHoverWarning: string;
698
+ colorFocusWarning: string;
699
+ borderFocusWarning: string;
700
+ boxShadowFocusWarning: string;
701
+ caretColorWarning: string;
702
+ loadingColorError: string;
703
+ borderError: string;
704
+ borderHoverError: string;
705
+ colorFocusError: string;
706
+ borderFocusError: string;
707
+ boxShadowFocusError: string;
708
+ caretColorError: string;
709
+ clearColor: string;
710
+ clearColorHover: string;
711
+ clearColorPressed: string;
712
+ iconColor: string;
713
+ iconColorDisabled: string;
714
+ iconColorHover: string;
715
+ iconColorPressed: string;
716
+ suffixTextColor: string;
717
+ paddingTiny: string;
718
+ paddingSmall: string;
719
+ paddingMedium: string;
720
+ paddingLarge: string;
721
+ clearSize: string;
722
+ }, any>;
723
+ }>>;
724
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
725
+ inputWidthSmall: string;
726
+ inputWidthMedium: string;
727
+ inputWidthLarge: string;
728
+ gapSmall: string;
729
+ gapMedium: string;
730
+ gapLarge: string;
731
+ }, {
732
+ Input: import("../../_mixins").Theme<"Input", {
733
+ fontWeight: string;
734
+ countTextColorDisabled: string;
735
+ countTextColor: string;
736
+ heightTiny: string;
737
+ heightSmall: string;
738
+ heightMedium: string;
739
+ heightLarge: string;
740
+ fontSizeTiny: string;
741
+ fontSizeSmall: string;
742
+ fontSizeMedium: string;
743
+ fontSizeLarge: string;
744
+ lineHeight: string;
745
+ lineHeightTextarea: string;
746
+ borderRadius: string;
747
+ iconSize: string;
748
+ groupLabelColor: string;
749
+ groupLabelTextColor: string;
750
+ textColor: string;
751
+ textColorDisabled: string;
752
+ textDecorationColor: string;
753
+ caretColor: string;
754
+ placeholderColor: string;
755
+ placeholderColorDisabled: string;
756
+ color: string;
757
+ colorDisabled: string;
758
+ colorFocus: string;
759
+ groupLabelBorder: string;
760
+ border: string;
761
+ borderHover: string;
762
+ borderDisabled: string;
763
+ borderFocus: string;
764
+ boxShadowFocus: string;
765
+ loadingColor: string;
766
+ loadingColorWarning: string;
767
+ borderWarning: string;
768
+ borderHoverWarning: string;
769
+ colorFocusWarning: string;
770
+ borderFocusWarning: string;
771
+ boxShadowFocusWarning: string;
772
+ caretColorWarning: string;
773
+ loadingColorError: string;
774
+ borderError: string;
775
+ borderHoverError: string;
776
+ colorFocusError: string;
777
+ borderFocusError: string;
778
+ boxShadowFocusError: string;
779
+ caretColorError: string;
780
+ clearColor: string;
781
+ clearColorHover: string;
782
+ clearColorPressed: string;
783
+ iconColor: string;
784
+ iconColorDisabled: string;
785
+ iconColorHover: string;
786
+ iconColorPressed: string;
787
+ suffixTextColor: string;
788
+ paddingTiny: string;
789
+ paddingSmall: string;
790
+ paddingMedium: string;
791
+ paddingLarge: string;
792
+ clearSize: string;
793
+ }, any>;
794
+ }>>>;
795
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputOtp", {
796
+ inputWidthSmall: string;
797
+ inputWidthMedium: string;
798
+ inputWidthLarge: string;
799
+ gapSmall: string;
800
+ gapMedium: string;
801
+ gapLarge: string;
802
+ }, {
803
+ Input: import("../../_mixins").Theme<"Input", {
804
+ fontWeight: string;
805
+ countTextColorDisabled: string;
806
+ countTextColor: string;
807
+ heightTiny: string;
808
+ heightSmall: string;
809
+ heightMedium: string;
810
+ heightLarge: string;
811
+ fontSizeTiny: string;
812
+ fontSizeSmall: string;
813
+ fontSizeMedium: string;
814
+ fontSizeLarge: string;
815
+ lineHeight: string;
816
+ lineHeightTextarea: string;
817
+ borderRadius: string;
818
+ iconSize: string;
819
+ groupLabelColor: string;
820
+ groupLabelTextColor: string;
821
+ textColor: string;
822
+ textColorDisabled: string;
823
+ textDecorationColor: string;
824
+ caretColor: string;
825
+ placeholderColor: string;
826
+ placeholderColorDisabled: string;
827
+ color: string;
828
+ colorDisabled: string;
829
+ colorFocus: string;
830
+ groupLabelBorder: string;
831
+ border: string;
832
+ borderHover: string;
833
+ borderDisabled: string;
834
+ borderFocus: string;
835
+ boxShadowFocus: string;
836
+ loadingColor: string;
837
+ loadingColorWarning: string;
838
+ borderWarning: string;
839
+ borderHoverWarning: string;
840
+ colorFocusWarning: string;
841
+ borderFocusWarning: string;
842
+ boxShadowFocusWarning: string;
843
+ caretColorWarning: string;
844
+ loadingColorError: string;
845
+ borderError: string;
846
+ borderHoverError: string;
847
+ colorFocusError: string;
848
+ borderFocusError: string;
849
+ boxShadowFocusError: string;
850
+ caretColorError: string;
851
+ clearColor: string;
852
+ clearColorHover: string;
853
+ clearColorPressed: string;
854
+ iconColor: string;
855
+ iconColorDisabled: string;
856
+ iconColorHover: string;
857
+ iconColorPressed: string;
858
+ suffixTextColor: string;
859
+ paddingTiny: string;
860
+ paddingSmall: string;
861
+ paddingMedium: string;
862
+ paddingLarge: string;
863
+ clearSize: string;
864
+ }, any>;
865
+ }>>>;
866
+ }>> & Readonly<{}>, {
867
+ readonly: boolean;
868
+ block: boolean;
869
+ length: number;
870
+ disabled: boolean;
871
+ mask: boolean;
872
+ placeholder: string;
873
+ defaultValue: string[];
874
+ }, SlotsType<InputOtpSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
875
+ export default _default;