@xaui/native 0.2.8 → 0.9.1-alpha.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 (224) hide show
  1. package/dist/chunk-JDS6KGCM.cjs +791 -0
  2. package/dist/chunk-T3ZI2PZ6.js +791 -0
  3. package/dist/index.cjs +32 -1
  4. package/dist/index.d.cts +2 -2
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +32 -0
  7. package/dist/theme/index.cjs +32 -0
  8. package/dist/theme/index.d.cts +669 -0
  9. package/dist/theme/index.d.ts +669 -0
  10. package/dist/theme/index.js +32 -0
  11. package/package.json +26 -249
  12. package/README.md +0 -178
  13. package/dist/alert/index.cjs +0 -340
  14. package/dist/alert/index.d.cts +0 -46
  15. package/dist/alert/index.d.ts +0 -46
  16. package/dist/alert/index.js +0 -340
  17. package/dist/app-bar/index.cjs +0 -148
  18. package/dist/app-bar/index.d.cts +0 -59
  19. package/dist/app-bar/index.d.ts +0 -59
  20. package/dist/app-bar/index.js +0 -148
  21. package/dist/autocomplete/index.cjs +0 -1122
  22. package/dist/autocomplete/index.d.cts +0 -88
  23. package/dist/autocomplete/index.d.ts +0 -88
  24. package/dist/autocomplete/index.js +0 -1122
  25. package/dist/avatar/index.cjs +0 -281
  26. package/dist/avatar/index.d.cts +0 -123
  27. package/dist/avatar/index.d.ts +0 -123
  28. package/dist/avatar/index.js +0 -281
  29. package/dist/badge/index.cjs +0 -197
  30. package/dist/badge/index.d.cts +0 -94
  31. package/dist/badge/index.d.ts +0 -94
  32. package/dist/badge/index.js +0 -197
  33. package/dist/bottom-sheet/index.cjs +0 -9
  34. package/dist/bottom-sheet/index.d.cts +0 -84
  35. package/dist/bottom-sheet/index.d.ts +0 -84
  36. package/dist/bottom-sheet/index.js +0 -9
  37. package/dist/bottom-tab-bar/index.cjs +0 -497
  38. package/dist/bottom-tab-bar/index.d.cts +0 -211
  39. package/dist/bottom-tab-bar/index.d.ts +0 -211
  40. package/dist/bottom-tab-bar/index.js +0 -497
  41. package/dist/button/index.cjs +0 -392
  42. package/dist/button/index.d.cts +0 -174
  43. package/dist/button/index.d.ts +0 -174
  44. package/dist/button/index.js +0 -392
  45. package/dist/button.type-j1ZdkkSl.d.cts +0 -4
  46. package/dist/button.type-j1ZdkkSl.d.ts +0 -4
  47. package/dist/card/index.cjs +0 -338
  48. package/dist/card/index.d.cts +0 -191
  49. package/dist/card/index.d.ts +0 -191
  50. package/dist/card/index.js +0 -338
  51. package/dist/carousel/index.cjs +0 -381
  52. package/dist/carousel/index.d.cts +0 -147
  53. package/dist/carousel/index.d.ts +0 -147
  54. package/dist/carousel/index.js +0 -381
  55. package/dist/chart/index.cjs +0 -1026
  56. package/dist/chart/index.d.cts +0 -218
  57. package/dist/chart/index.d.ts +0 -218
  58. package/dist/chart/index.js +0 -1026
  59. package/dist/checkbox/index.cjs +0 -443
  60. package/dist/checkbox/index.d.cts +0 -73
  61. package/dist/checkbox/index.d.ts +0 -73
  62. package/dist/checkbox/index.js +0 -443
  63. package/dist/chip/index.cjs +0 -503
  64. package/dist/chip/index.d.cts +0 -195
  65. package/dist/chip/index.d.ts +0 -195
  66. package/dist/chip/index.js +0 -503
  67. package/dist/chunk-4JFWQ5XT.js +0 -368
  68. package/dist/chunk-56RPWZD2.cjs +0 -9
  69. package/dist/chunk-7UFBLUMV.cjs +0 -136
  70. package/dist/chunk-A45TVXU5.js +0 -337
  71. package/dist/chunk-BYWUAPC4.cjs +0 -368
  72. package/dist/chunk-DECMUMCI.js +0 -0
  73. package/dist/chunk-DHSTKO3K.cjs +0 -19
  74. package/dist/chunk-DJ4Q37UT.cjs +0 -75
  75. package/dist/chunk-EUQDGTST.cjs +0 -1
  76. package/dist/chunk-GBHQCAKW.js +0 -19
  77. package/dist/chunk-RBSA4NH4.js +0 -136
  78. package/dist/chunk-SHBDANQN.js +0 -9
  79. package/dist/chunk-UGEINZM7.cjs +0 -290
  80. package/dist/chunk-UU4HHBDN.js +0 -290
  81. package/dist/chunk-VSZEXOUN.js +0 -384
  82. package/dist/chunk-YIEUN3G5.cjs +0 -384
  83. package/dist/chunk-ZH6ZSV2Q.cjs +0 -337
  84. package/dist/chunk-ZY7IUTAT.js +0 -75
  85. package/dist/color-picker/index.cjs +0 -457
  86. package/dist/color-picker/index.d.cts +0 -124
  87. package/dist/color-picker/index.d.ts +0 -124
  88. package/dist/color-picker/index.js +0 -457
  89. package/dist/core/index.cjs +0 -24
  90. package/dist/core/index.d.cts +0 -28
  91. package/dist/core/index.d.ts +0 -28
  92. package/dist/core/index.js +0 -24
  93. package/dist/datepicker/index.cjs +0 -1625
  94. package/dist/datepicker/index.d.cts +0 -45
  95. package/dist/datepicker/index.d.ts +0 -45
  96. package/dist/datepicker/index.js +0 -1625
  97. package/dist/dialog/index.cjs +0 -372
  98. package/dist/dialog/index.d.cts +0 -151
  99. package/dist/dialog/index.d.ts +0 -151
  100. package/dist/dialog/index.js +0 -372
  101. package/dist/divider/index.cjs +0 -8
  102. package/dist/divider/index.d.cts +0 -30
  103. package/dist/divider/index.d.ts +0 -30
  104. package/dist/divider/index.js +0 -8
  105. package/dist/drawer/index.cjs +0 -237
  106. package/dist/drawer/index.d.cts +0 -58
  107. package/dist/drawer/index.d.ts +0 -58
  108. package/dist/drawer/index.js +0 -237
  109. package/dist/expansion-panel/index.cjs +0 -441
  110. package/dist/expansion-panel/index.d.cts +0 -153
  111. package/dist/expansion-panel/index.d.ts +0 -153
  112. package/dist/expansion-panel/index.js +0 -441
  113. package/dist/fab/index.cjs +0 -9
  114. package/dist/fab/index.d.cts +0 -10
  115. package/dist/fab/index.d.ts +0 -10
  116. package/dist/fab/index.js +0 -9
  117. package/dist/fab-menu/index.cjs +0 -330
  118. package/dist/fab-menu/index.d.cts +0 -125
  119. package/dist/fab-menu/index.d.ts +0 -125
  120. package/dist/fab-menu/index.js +0 -330
  121. package/dist/fab.type-CkUHmXU_.d.ts +0 -86
  122. package/dist/fab.type-DN0vtAh6.d.cts +0 -86
  123. package/dist/feature-discovery/index.cjs +0 -464
  124. package/dist/feature-discovery/index.d.cts +0 -82
  125. package/dist/feature-discovery/index.d.ts +0 -82
  126. package/dist/feature-discovery/index.js +0 -464
  127. package/dist/indicator/index.cjs +0 -8
  128. package/dist/indicator/index.d.cts +0 -47
  129. package/dist/indicator/index.d.ts +0 -47
  130. package/dist/indicator/index.js +0 -8
  131. package/dist/input/index.cjs +0 -1462
  132. package/dist/input/index.d.cts +0 -522
  133. package/dist/input/index.d.ts +0 -522
  134. package/dist/input/index.js +0 -1462
  135. package/dist/input-trigger/index.cjs +0 -197
  136. package/dist/input-trigger/index.d.cts +0 -11
  137. package/dist/input-trigger/index.d.ts +0 -11
  138. package/dist/input-trigger/index.js +0 -197
  139. package/dist/input-trigger.type-Ba4bM3Qp.d.cts +0 -180
  140. package/dist/input-trigger.type-Ba4bM3Qp.d.ts +0 -180
  141. package/dist/list/index.cjs +0 -395
  142. package/dist/list/index.d.cts +0 -188
  143. package/dist/list/index.d.ts +0 -188
  144. package/dist/list/index.js +0 -395
  145. package/dist/menu/index.cjs +0 -316
  146. package/dist/menu/index.d.cts +0 -115
  147. package/dist/menu/index.d.ts +0 -115
  148. package/dist/menu/index.js +0 -316
  149. package/dist/menubox/index.cjs +0 -297
  150. package/dist/menubox/index.d.cts +0 -98
  151. package/dist/menubox/index.d.ts +0 -98
  152. package/dist/menubox/index.js +0 -297
  153. package/dist/pager/index.cjs +0 -205
  154. package/dist/pager/index.d.cts +0 -93
  155. package/dist/pager/index.d.ts +0 -93
  156. package/dist/pager/index.js +0 -205
  157. package/dist/picker/index.cjs +0 -244
  158. package/dist/picker/index.d.cts +0 -121
  159. package/dist/picker/index.d.ts +0 -121
  160. package/dist/picker/index.js +0 -244
  161. package/dist/progress/index.cjs +0 -219
  162. package/dist/progress/index.d.cts +0 -47
  163. package/dist/progress/index.d.ts +0 -47
  164. package/dist/progress/index.js +0 -219
  165. package/dist/radio/index.cjs +0 -465
  166. package/dist/radio/index.d.cts +0 -145
  167. package/dist/radio/index.d.ts +0 -145
  168. package/dist/radio/index.js +0 -465
  169. package/dist/refresh-control/index.cjs +0 -45
  170. package/dist/refresh-control/index.d.cts +0 -55
  171. package/dist/refresh-control/index.d.ts +0 -55
  172. package/dist/refresh-control/index.js +0 -45
  173. package/dist/segment-button/index.cjs +0 -405
  174. package/dist/segment-button/index.d.cts +0 -141
  175. package/dist/segment-button/index.d.ts +0 -141
  176. package/dist/segment-button/index.js +0 -405
  177. package/dist/select/index.cjs +0 -878
  178. package/dist/select/index.d.cts +0 -192
  179. package/dist/select/index.d.ts +0 -192
  180. package/dist/select/index.js +0 -878
  181. package/dist/skeleton/index.cjs +0 -89
  182. package/dist/skeleton/index.d.cts +0 -45
  183. package/dist/skeleton/index.d.ts +0 -45
  184. package/dist/skeleton/index.js +0 -89
  185. package/dist/slider/index.cjs +0 -576
  186. package/dist/slider/index.d.cts +0 -171
  187. package/dist/slider/index.d.ts +0 -171
  188. package/dist/slider/index.js +0 -576
  189. package/dist/snackbar/index.cjs +0 -436
  190. package/dist/snackbar/index.d.cts +0 -174
  191. package/dist/snackbar/index.d.ts +0 -174
  192. package/dist/snackbar/index.js +0 -436
  193. package/dist/snippet/index.cjs +0 -314
  194. package/dist/snippet/index.d.cts +0 -95
  195. package/dist/snippet/index.d.ts +0 -95
  196. package/dist/snippet/index.js +0 -314
  197. package/dist/stepper/index.cjs +0 -550
  198. package/dist/stepper/index.d.cts +0 -137
  199. package/dist/stepper/index.d.ts +0 -137
  200. package/dist/stepper/index.js +0 -550
  201. package/dist/switch/index.cjs +0 -358
  202. package/dist/switch/index.d.cts +0 -28
  203. package/dist/switch/index.d.ts +0 -28
  204. package/dist/switch/index.js +0 -358
  205. package/dist/tabs/index.cjs +0 -440
  206. package/dist/tabs/index.d.cts +0 -180
  207. package/dist/tabs/index.d.ts +0 -180
  208. package/dist/tabs/index.js +0 -440
  209. package/dist/timepicker/index.cjs +0 -823
  210. package/dist/timepicker/index.d.cts +0 -215
  211. package/dist/timepicker/index.d.ts +0 -215
  212. package/dist/timepicker/index.js +0 -823
  213. package/dist/toolbar/index.cjs +0 -333
  214. package/dist/toolbar/index.d.cts +0 -100
  215. package/dist/toolbar/index.d.ts +0 -100
  216. package/dist/toolbar/index.js +0 -333
  217. package/dist/typography/index.cjs +0 -238
  218. package/dist/typography/index.d.cts +0 -113
  219. package/dist/typography/index.d.ts +0 -113
  220. package/dist/typography/index.js +0 -238
  221. package/dist/view/index.cjs +0 -1361
  222. package/dist/view/index.d.cts +0 -833
  223. package/dist/view/index.d.ts +0 -833
  224. package/dist/view/index.js +0 -1361
@@ -1,522 +0,0 @@
1
- import * as _xaui_core from '@xaui/core';
2
- import React, { ReactNode } from 'react';
3
- import * as react_native from 'react-native';
4
- import { StyleProp, ViewStyle, TextStyle, TextInputProps as TextInputProps$1, TextInput as TextInput$1 } from 'react-native';
5
- import { ThemeColor, Radius } from '@xaui/core/types';
6
-
7
- type TextInputVariant = 'colored' | 'light' | 'bordered' | 'underlined';
8
- type TextInputSize = 'sm' | 'md' | 'lg';
9
- type TextInputLabelPlacement = 'outside' | 'inside';
10
- type TextInputCustomAppearance = {
11
- container?: StyleProp<ViewStyle>;
12
- inputContainer?: StyleProp<ViewStyle>;
13
- inputWrapper?: StyleProp<ViewStyle>;
14
- label?: StyleProp<TextStyle>;
15
- input?: StyleProp<TextStyle>;
16
- helperText?: StyleProp<TextStyle>;
17
- };
18
- type TextInputProps = Omit<TextInputProps$1, 'value' | 'defaultValue' | 'style'> & {
19
- /**
20
- * Controlled value of the input.
21
- */
22
- value?: string;
23
- /**
24
- * Uncontrolled default value of the input.
25
- */
26
- defaultValue?: string;
27
- /**
28
- * Called when the input value changes.
29
- */
30
- onValueChange?: (value: string) => void;
31
- /**
32
- * Input label.
33
- */
34
- label?: ReactNode;
35
- /**
36
- * Label position relative to the field.
37
- * @default 'outside'
38
- */
39
- labelPlacement?: TextInputLabelPlacement;
40
- /**
41
- * Helper text displayed below the input.
42
- */
43
- description?: ReactNode;
44
- /**
45
- * Error text displayed below the input when invalid.
46
- */
47
- errorMessage?: ReactNode;
48
- /**
49
- * Start slot content.
50
- */
51
- startContent?: ReactNode;
52
- /**
53
- * End slot content.
54
- */
55
- endContent?: ReactNode;
56
- /**
57
- * Theme color used for focus/active states.
58
- * @default 'primary'
59
- */
60
- themeColor?: ThemeColor;
61
- /**
62
- * Visual style variant.
63
- * @default 'colored'
64
- */
65
- variant?: TextInputVariant;
66
- /**
67
- * Input size.
68
- * @default 'md'
69
- */
70
- size?: TextInputSize;
71
- /**
72
- * Input radius.
73
- * @default 'md'
74
- */
75
- radius?: Radius;
76
- /**
77
- * Whether the input should be secured (password mode).
78
- * @default false
79
- */
80
- isSecured?: boolean;
81
- /**
82
- * Whether to show a clear button when input has value.
83
- * @default false
84
- */
85
- isClearable?: boolean;
86
- /**
87
- * Whether the input is disabled.
88
- * @default false
89
- */
90
- isDisabled?: boolean;
91
- /**
92
- * Whether the input is read-only.
93
- * @default false
94
- */
95
- isReadOnly?: boolean;
96
- /**
97
- * Whether the input is invalid.
98
- * @default false
99
- */
100
- isInvalid?: boolean;
101
- /**
102
- * Whether the component should take full available width.
103
- * @default true
104
- */
105
- fullWidth?: boolean;
106
- /**
107
- * Optional custom styles for input parts.
108
- */
109
- customAppearance?: TextInputCustomAppearance;
110
- };
111
-
112
- declare const TextInput: React.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "value" | "defaultValue" | "style"> & {
113
- value?: string;
114
- defaultValue?: string;
115
- onValueChange?: (value: string) => void;
116
- label?: React.ReactNode;
117
- labelPlacement?: TextInputLabelPlacement;
118
- description?: React.ReactNode;
119
- errorMessage?: React.ReactNode;
120
- startContent?: React.ReactNode;
121
- endContent?: React.ReactNode;
122
- themeColor?: _xaui_core.ThemeColor;
123
- variant?: TextInputVariant;
124
- size?: TextInputSize;
125
- radius?: _xaui_core.Radius;
126
- isSecured?: boolean;
127
- isClearable?: boolean;
128
- isDisabled?: boolean;
129
- isReadOnly?: boolean;
130
- isInvalid?: boolean;
131
- fullWidth?: boolean;
132
- customAppearance?: TextInputCustomAppearance;
133
- } & React.RefAttributes<TextInput$1>>;
134
-
135
- type TextAreaProps = Omit<TextInputProps, 'multiline'> & {
136
- /**
137
- * Minimum number of rows.
138
- * @default 3
139
- */
140
- minRows?: number;
141
- /**
142
- * Optional maximum number of rows before scrolling.
143
- */
144
- maxRows?: number;
145
- };
146
-
147
- declare const TextArea: React.FC<TextAreaProps>;
148
-
149
- type DateSeparator = '-' | '/' | '.';
150
- type DateOrder = 'YMD' | 'DMY' | 'MDY';
151
- type TimeInputGranularity = 'minute' | 'second';
152
- type TimeInputConvertOptions = {
153
- granularity?: TimeInputGranularity;
154
- hourCycle?: 12 | 24;
155
- };
156
- type DateTimeInputConvertOptions = {
157
- separator?: DateSeparator;
158
- granularity?: TimeInputGranularity;
159
- hourCycle?: 12 | 24;
160
- };
161
- type DateInputProps = TextInputProps & {
162
- /**
163
- * Separator character between date segments.
164
- * @default '-'
165
- */
166
- separator?: DateSeparator;
167
- /**
168
- * Date segment ordering.
169
- * Auto-detected from locale if not provided.
170
- */
171
- dateOrder?: DateOrder;
172
- /**
173
- * Locale string used to auto-detect date order.
174
- * @default 'en-US'
175
- */
176
- locale?: string;
177
- };
178
- type TimeInputProps = TextInputProps & {
179
- /**
180
- * Smallest time unit shown in the placeholder.
181
- * @default 'minute'
182
- */
183
- granularity?: TimeInputGranularity;
184
- /**
185
- * 12-hour or 24-hour format placeholder hint.
186
- * @default 24
187
- */
188
- hourCycle?: 12 | 24;
189
- };
190
- type DateTimeInputProps = TextInputProps & {
191
- /**
192
- * Separator character between date segments.
193
- * @default '-'
194
- */
195
- separator?: DateSeparator;
196
- /**
197
- * Date segment ordering.
198
- * Auto-detected from locale if not provided.
199
- */
200
- dateOrder?: DateOrder;
201
- /**
202
- * Locale string used to auto-detect date order.
203
- * @default 'en-US'
204
- */
205
- locale?: string;
206
- /**
207
- * Smallest time unit shown in the placeholder.
208
- * @default 'minute'
209
- */
210
- granularity?: TimeInputGranularity;
211
- /**
212
- * 12-hour or 24-hour format placeholder hint.
213
- * @default 24
214
- */
215
- hourCycle?: 12 | 24;
216
- };
217
-
218
- declare const DateInput: React.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "value" | "defaultValue" | "style"> & {
219
- value?: string;
220
- defaultValue?: string;
221
- onValueChange?: (value: string) => void;
222
- label?: React.ReactNode;
223
- labelPlacement?: TextInputLabelPlacement;
224
- description?: React.ReactNode;
225
- errorMessage?: React.ReactNode;
226
- startContent?: React.ReactNode;
227
- endContent?: React.ReactNode;
228
- themeColor?: _xaui_core.ThemeColor;
229
- variant?: TextInputVariant;
230
- size?: TextInputSize;
231
- radius?: _xaui_core.Radius;
232
- isSecured?: boolean;
233
- isClearable?: boolean;
234
- isDisabled?: boolean;
235
- isReadOnly?: boolean;
236
- isInvalid?: boolean;
237
- fullWidth?: boolean;
238
- customAppearance?: TextInputCustomAppearance;
239
- } & {
240
- separator?: DateSeparator;
241
- dateOrder?: DateOrder;
242
- locale?: string;
243
- } & React.RefAttributes<TextInput$1>>;
244
- declare const TimeInput: React.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "value" | "defaultValue" | "style"> & {
245
- value?: string;
246
- defaultValue?: string;
247
- onValueChange?: (value: string) => void;
248
- label?: React.ReactNode;
249
- labelPlacement?: TextInputLabelPlacement;
250
- description?: React.ReactNode;
251
- errorMessage?: React.ReactNode;
252
- startContent?: React.ReactNode;
253
- endContent?: React.ReactNode;
254
- themeColor?: _xaui_core.ThemeColor;
255
- variant?: TextInputVariant;
256
- size?: TextInputSize;
257
- radius?: _xaui_core.Radius;
258
- isSecured?: boolean;
259
- isClearable?: boolean;
260
- isDisabled?: boolean;
261
- isReadOnly?: boolean;
262
- isInvalid?: boolean;
263
- fullWidth?: boolean;
264
- customAppearance?: TextInputCustomAppearance;
265
- } & {
266
- granularity?: TimeInputGranularity;
267
- hourCycle?: 12 | 24;
268
- } & React.RefAttributes<TextInput$1>>;
269
- declare const DateTimeInput: React.ForwardRefExoticComponent<Omit<react_native.TextInputProps, "value" | "defaultValue" | "style"> & {
270
- value?: string;
271
- defaultValue?: string;
272
- onValueChange?: (value: string) => void;
273
- label?: React.ReactNode;
274
- labelPlacement?: TextInputLabelPlacement;
275
- description?: React.ReactNode;
276
- errorMessage?: React.ReactNode;
277
- startContent?: React.ReactNode;
278
- endContent?: React.ReactNode;
279
- themeColor?: _xaui_core.ThemeColor;
280
- variant?: TextInputVariant;
281
- size?: TextInputSize;
282
- radius?: _xaui_core.Radius;
283
- isSecured?: boolean;
284
- isClearable?: boolean;
285
- isDisabled?: boolean;
286
- isReadOnly?: boolean;
287
- isInvalid?: boolean;
288
- fullWidth?: boolean;
289
- customAppearance?: TextInputCustomAppearance;
290
- } & {
291
- separator?: DateSeparator;
292
- dateOrder?: DateOrder;
293
- locale?: string;
294
- granularity?: TimeInputGranularity;
295
- hourCycle?: 12 | 24;
296
- } & React.RefAttributes<TextInput$1>>;
297
-
298
- type OTPInputCustomAppearance = {
299
- container?: StyleProp<ViewStyle>;
300
- segmentContainer?: StyleProp<ViewStyle>;
301
- segment?: StyleProp<ViewStyle>;
302
- segmentText?: StyleProp<TextStyle>;
303
- label?: StyleProp<TextStyle>;
304
- helperText?: StyleProp<TextStyle>;
305
- };
306
- type OTPInputProps = {
307
- /**
308
- * Number of OTP segments.
309
- * @default 4
310
- */
311
- length?: number;
312
- /**
313
- * Controlled value of the OTP input.
314
- */
315
- value?: string;
316
- /**
317
- * Uncontrolled default value.
318
- */
319
- defaultValue?: string;
320
- /**
321
- * Called when the OTP value changes.
322
- */
323
- onValueChange?: (value: string) => void;
324
- /**
325
- * Called when all segments are filled.
326
- */
327
- onComplete?: (value: string) => void;
328
- /**
329
- * Visual style variant.
330
- * @default 'flat'
331
- */
332
- variant?: TextInputVariant;
333
- /**
334
- * Input size.
335
- * @default 'md'
336
- */
337
- size?: TextInputSize;
338
- /**
339
- * Input radius.
340
- * @default 'md'
341
- */
342
- radius?: Radius;
343
- /**
344
- * Theme color used for focus/active states.
345
- * @default 'primary'
346
- */
347
- themeColor?: ThemeColor;
348
- /**
349
- * Whether the input is disabled.
350
- * @default false
351
- */
352
- isDisabled?: boolean;
353
- /**
354
- * Whether the input is invalid.
355
- * @default false
356
- */
357
- isInvalid?: boolean;
358
- /**
359
- * Whether to hide entered characters.
360
- * @default false
361
- */
362
- isSecured?: boolean;
363
- /**
364
- * Error text displayed below the input when invalid.
365
- */
366
- errorMessage?: string;
367
- /**
368
- * Helper text displayed below the input.
369
- */
370
- description?: string;
371
- /**
372
- * Input label.
373
- */
374
- label?: string;
375
- /**
376
- * Regex to filter allowed key input.
377
- * @default /^[0-9]$/
378
- */
379
- allowedKeys?: RegExp;
380
- /**
381
- * Optional custom styles for input parts.
382
- */
383
- customAppearance?: OTPInputCustomAppearance;
384
- /**
385
- * Whether the component should take full available width.
386
- * @default false
387
- */
388
- fullWidth?: boolean;
389
- };
390
-
391
- declare const OTPInput: {
392
- ({ length, value, defaultValue, onValueChange, onComplete, variant, size, radius, themeColor, isDisabled, isInvalid, isSecured, errorMessage, description, label, allowedKeys, customAppearance, fullWidth, }: OTPInputProps): React.JSX.Element;
393
- displayName: string;
394
- };
395
-
396
- type NumberInputCustomAppearance = TextInputCustomAppearance & {
397
- stepperContainer?: StyleProp<ViewStyle>;
398
- stepperButton?: StyleProp<ViewStyle>;
399
- };
400
- type NumberInputProps = {
401
- /**
402
- * Controlled numeric value.
403
- */
404
- value?: number;
405
- /**
406
- * Uncontrolled default numeric value.
407
- */
408
- defaultValue?: number;
409
- /**
410
- * Called when the numeric value changes.
411
- */
412
- onValueChange?: (value: number | undefined) => void;
413
- /**
414
- * Minimum allowed value.
415
- */
416
- minValue?: number;
417
- /**
418
- * Maximum allowed value.
419
- */
420
- maxValue?: number;
421
- /**
422
- * Step increment/decrement amount.
423
- * @default 1
424
- */
425
- step?: number;
426
- /**
427
- * Whether to hide the stepper buttons.
428
- * @default false
429
- */
430
- hideStepper?: boolean;
431
- /**
432
- * Intl.NumberFormat options for display formatting.
433
- */
434
- formatOptions?: Intl.NumberFormatOptions;
435
- /**
436
- * Locale for number formatting.
437
- * @default 'en-US'
438
- */
439
- locale?: string;
440
- /**
441
- * Input label.
442
- */
443
- label?: string;
444
- /**
445
- * Label position relative to the field.
446
- * @default 'outside'
447
- */
448
- labelPlacement?: TextInputLabelPlacement;
449
- /**
450
- * Helper text displayed below the input.
451
- */
452
- description?: string;
453
- /**
454
- * Error text displayed below the input when invalid.
455
- */
456
- errorMessage?: string;
457
- /**
458
- * Placeholder text.
459
- */
460
- placeholder?: string;
461
- /**
462
- * Theme color used for focus/active states.
463
- * @default 'primary'
464
- */
465
- themeColor?: ThemeColor;
466
- /**
467
- * Visual style variant.
468
- * @default 'flat'
469
- */
470
- variant?: TextInputVariant;
471
- /**
472
- * Input size.
473
- * @default 'md'
474
- */
475
- size?: TextInputSize;
476
- /**
477
- * Input radius.
478
- * @default 'md'
479
- */
480
- radius?: Radius;
481
- /**
482
- * Whether the input is disabled.
483
- * @default false
484
- */
485
- isDisabled?: boolean;
486
- /**
487
- * Whether the input is read-only.
488
- * @default false
489
- */
490
- isReadOnly?: boolean;
491
- /**
492
- * Whether the input is invalid.
493
- * @default false
494
- */
495
- isInvalid?: boolean;
496
- /**
497
- * Whether to show a clear button.
498
- * @default false
499
- */
500
- isClearable?: boolean;
501
- /**
502
- * Whether the component should take full available width.
503
- * @default true
504
- */
505
- fullWidth?: boolean;
506
- /**
507
- * Optional custom styles for input parts.
508
- */
509
- customAppearance?: NumberInputCustomAppearance;
510
- };
511
-
512
- declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<TextInput$1>>;
513
-
514
- declare const getDateOrder: (locale: string) => DateOrder;
515
- declare const dateInputValueToDate: (value: string, dateOrder: DateOrder, separator: DateSeparator) => Date | null;
516
- declare const dateToDateInputValue: (date: Date | string, dateOrder: DateOrder, separator: DateSeparator) => string;
517
- declare const timeInputValueToDate: (value: string, options?: TimeInputConvertOptions) => Date | null;
518
- declare const dateToTimeInputValue: (date: Date | string, options?: TimeInputConvertOptions) => string;
519
- declare const dateTimeInputValueToDate: (value: string, dateOrder: DateOrder, options?: DateTimeInputConvertOptions) => Date | null;
520
- declare const dateToDateTimeInputValue: (date: Date | string, dateOrder: DateOrder, options?: DateTimeInputConvertOptions) => string;
521
-
522
- export { DateInput, type DateInputProps, type DateOrder, type DateSeparator, DateTimeInput, type DateTimeInputConvertOptions, type DateTimeInputProps, NumberInput, type NumberInputCustomAppearance, type NumberInputProps, OTPInput, type OTPInputCustomAppearance, type OTPInputProps, TextArea, type TextAreaProps, TextInput, type TextInputCustomAppearance, type TextInputLabelPlacement, type TextInputProps, type TextInputSize, type TextInputVariant, TimeInput, type TimeInputConvertOptions, type TimeInputGranularity, type TimeInputProps, dateInputValueToDate, dateTimeInputValueToDate, dateToDateInputValue, dateToDateTimeInputValue, dateToTimeInputValue, getDateOrder, timeInputValueToDate };