asterui 0.11.0 → 0.12.1

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 (303) hide show
  1. package/README.md +1 -103
  2. package/dist/components/Anchor.d.ts +45 -0
  3. package/dist/components/Diff.d.ts +12 -0
  4. package/dist/components/Form.d.ts +27 -2
  5. package/dist/components/Kbd.d.ts +8 -0
  6. package/dist/components/Radio.d.ts +7 -1
  7. package/dist/components/Status.d.ts +18 -0
  8. package/dist/components/TextRotate.d.ts +13 -0
  9. package/dist/index.d.ts +12 -2
  10. package/dist/index.js +210 -200
  11. package/dist/index.js.map +1 -1
  12. package/dist/index10.js +92 -30
  13. package/dist/index10.js.map +1 -1
  14. package/dist/index100.js +8 -5
  15. package/dist/index100.js.map +1 -1
  16. package/dist/index101.js +12 -41
  17. package/dist/index101.js.map +1 -1
  18. package/dist/index102.js +31 -2
  19. package/dist/index102.js.map +1 -1
  20. package/dist/index103.js +17 -6
  21. package/dist/index103.js.map +1 -1
  22. package/dist/index104.js +10788 -147
  23. package/dist/index104.js.map +1 -1
  24. package/dist/index105.js +5 -30
  25. package/dist/index105.js.map +1 -1
  26. package/dist/index106.js +39 -27
  27. package/dist/index106.js.map +1 -1
  28. package/dist/index108.js +6 -71
  29. package/dist/index108.js.map +1 -1
  30. package/dist/index109.js +147 -34
  31. package/dist/index109.js.map +1 -1
  32. package/dist/index11.js +28 -263
  33. package/dist/index11.js.map +1 -1
  34. package/dist/index110.js +28 -24
  35. package/dist/index110.js.map +1 -1
  36. package/dist/index111.js +28 -19
  37. package/dist/index111.js.map +1 -1
  38. package/dist/index112.js +2 -24
  39. package/dist/index112.js.map +1 -1
  40. package/dist/index113.js +71 -19
  41. package/dist/index113.js.map +1 -1
  42. package/dist/index114.js +33 -94
  43. package/dist/index114.js.map +1 -1
  44. package/dist/index115.js +24 -358
  45. package/dist/index115.js.map +1 -1
  46. package/dist/index116.js +19 -23
  47. package/dist/index116.js.map +1 -1
  48. package/dist/index117.js +22 -71
  49. package/dist/index117.js.map +1 -1
  50. package/dist/index118.js +17 -13
  51. package/dist/index118.js.map +1 -1
  52. package/dist/index119.js +91 -57
  53. package/dist/index119.js.map +1 -1
  54. package/dist/index12.js +259 -89
  55. package/dist/index12.js.map +1 -1
  56. package/dist/index120.js +357 -141
  57. package/dist/index120.js.map +1 -1
  58. package/dist/index121.js +25 -2
  59. package/dist/index121.js.map +1 -1
  60. package/dist/index122.js +70 -53
  61. package/dist/index122.js.map +1 -1
  62. package/dist/index123.js +16 -2
  63. package/dist/index123.js.map +1 -1
  64. package/dist/index124.js +66 -2
  65. package/dist/index124.js.map +1 -1
  66. package/dist/index125.js +144 -2
  67. package/dist/index125.js.map +1 -1
  68. package/dist/index126.js +2 -2
  69. package/dist/index127.js +56 -2
  70. package/dist/index127.js.map +1 -1
  71. package/dist/index13.js +90 -153
  72. package/dist/index13.js.map +1 -1
  73. package/dist/index130.js +2 -32
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index132.js +2 -8
  76. package/dist/index132.js.map +1 -1
  77. package/dist/index133.js +2 -2
  78. package/dist/index134.js +2 -2
  79. package/dist/index135.js +2 -21
  80. package/dist/index135.js.map +1 -1
  81. package/dist/index136.js +32 -2
  82. package/dist/index136.js.map +1 -1
  83. package/dist/index137.js +2 -24
  84. package/dist/index137.js.map +1 -1
  85. package/dist/index138.js +7 -70
  86. package/dist/index138.js.map +1 -1
  87. package/dist/index139.js +2 -21
  88. package/dist/index139.js.map +1 -1
  89. package/dist/index14.js +154 -146
  90. package/dist/index14.js.map +1 -1
  91. package/dist/index140.js +2 -34
  92. package/dist/index140.js.map +1 -1
  93. package/dist/index141.js +20 -69
  94. package/dist/index141.js.map +1 -1
  95. package/dist/index142.js +2 -2
  96. package/dist/index143.js +24 -2
  97. package/dist/index143.js.map +1 -1
  98. package/dist/index144.js +70 -21
  99. package/dist/index144.js.map +1 -1
  100. package/dist/index145.js +21 -2
  101. package/dist/index145.js.map +1 -1
  102. package/dist/index146.js +34 -2
  103. package/dist/index146.js.map +1 -1
  104. package/dist/index147.js +70 -2
  105. package/dist/index147.js.map +1 -1
  106. package/dist/index148.js +2 -2
  107. package/dist/index149.js +21 -3
  108. package/dist/index149.js.map +1 -1
  109. package/dist/index15.js +150 -5
  110. package/dist/index15.js.map +1 -1
  111. package/dist/index150.js +5 -0
  112. package/dist/index150.js.map +1 -0
  113. package/dist/index151.js +5 -0
  114. package/dist/index151.js.map +1 -0
  115. package/dist/index152.js +5 -0
  116. package/dist/index152.js.map +1 -0
  117. package/dist/index153.js +5 -0
  118. package/dist/index153.js.map +1 -0
  119. package/dist/index154.js +7 -0
  120. package/dist/index154.js.map +1 -0
  121. package/dist/index16.js +5 -71
  122. package/dist/index16.js.map +1 -1
  123. package/dist/index17.js +71 -17
  124. package/dist/index17.js.map +1 -1
  125. package/dist/index18.js +15 -96
  126. package/dist/index18.js.map +1 -1
  127. package/dist/index19.js +89 -105
  128. package/dist/index19.js.map +1 -1
  129. package/dist/index20.js +107 -177
  130. package/dist/index20.js.map +1 -1
  131. package/dist/index21.js +181 -107
  132. package/dist/index21.js.map +1 -1
  133. package/dist/index22.js +107 -29
  134. package/dist/index22.js.map +1 -1
  135. package/dist/index23.js +19 -41
  136. package/dist/index23.js.map +1 -1
  137. package/dist/index24.js +31 -11
  138. package/dist/index24.js.map +1 -1
  139. package/dist/index25.js +41 -33
  140. package/dist/index25.js.map +1 -1
  141. package/dist/index26.js +12 -63
  142. package/dist/index26.js.map +1 -1
  143. package/dist/index27.js +33 -80
  144. package/dist/index27.js.map +1 -1
  145. package/dist/index28.js +63 -18
  146. package/dist/index28.js.map +1 -1
  147. package/dist/index29.js +78 -159
  148. package/dist/index29.js.map +1 -1
  149. package/dist/index3.js +96 -27
  150. package/dist/index3.js.map +1 -1
  151. package/dist/index30.js +16 -1080
  152. package/dist/index30.js.map +1 -1
  153. package/dist/index31.js +218 -16
  154. package/dist/index31.js.map +1 -1
  155. package/dist/index32.js +1081 -121
  156. package/dist/index32.js.map +1 -1
  157. package/dist/index33.js +17 -39
  158. package/dist/index33.js.map +1 -1
  159. package/dist/index34.js +121 -190
  160. package/dist/index34.js.map +1 -1
  161. package/dist/index35.js +37 -94
  162. package/dist/index35.js.map +1 -1
  163. package/dist/index36.js +186 -157
  164. package/dist/index36.js.map +1 -1
  165. package/dist/index37.js +89 -138
  166. package/dist/index37.js.map +1 -1
  167. package/dist/index38.js +161 -14
  168. package/dist/index38.js.map +1 -1
  169. package/dist/index39.js +146 -21
  170. package/dist/index39.js.map +1 -1
  171. package/dist/index4.js +26 -99
  172. package/dist/index4.js.map +1 -1
  173. package/dist/index40.js +12 -116
  174. package/dist/index40.js.map +1 -1
  175. package/dist/index41.js +18 -13
  176. package/dist/index41.js.map +1 -1
  177. package/dist/index42.js +21 -35
  178. package/dist/index42.js.map +1 -1
  179. package/dist/index43.js +117 -114
  180. package/dist/index43.js.map +1 -1
  181. package/dist/index44.js +13 -176
  182. package/dist/index44.js.map +1 -1
  183. package/dist/index45.js +34 -146
  184. package/dist/index45.js.map +1 -1
  185. package/dist/index46.js +116 -12
  186. package/dist/index46.js.map +1 -1
  187. package/dist/index47.js +176 -22
  188. package/dist/index47.js.map +1 -1
  189. package/dist/index48.js +147 -14
  190. package/dist/index48.js.map +1 -1
  191. package/dist/index49.js +10 -5
  192. package/dist/index49.js.map +1 -1
  193. package/dist/index5.js +100 -60
  194. package/dist/index5.js.map +1 -1
  195. package/dist/index50.js +21 -265
  196. package/dist/index50.js.map +1 -1
  197. package/dist/index51.js +10 -13
  198. package/dist/index51.js.map +1 -1
  199. package/dist/index52.js +7 -122
  200. package/dist/index52.js.map +1 -1
  201. package/dist/index53.js +262 -106
  202. package/dist/index53.js.map +1 -1
  203. package/dist/index54.js +14 -167
  204. package/dist/index54.js.map +1 -1
  205. package/dist/index55.js +121 -31
  206. package/dist/index55.js.map +1 -1
  207. package/dist/index56.js +107 -119
  208. package/dist/index56.js.map +1 -1
  209. package/dist/index57.js +161 -77
  210. package/dist/index57.js.map +1 -1
  211. package/dist/index58.js +31 -19
  212. package/dist/index58.js.map +1 -1
  213. package/dist/index59.js +117 -69
  214. package/dist/index59.js.map +1 -1
  215. package/dist/index6.js +61 -130
  216. package/dist/index6.js.map +1 -1
  217. package/dist/index60.js +82 -53
  218. package/dist/index60.js.map +1 -1
  219. package/dist/index61.js +19 -44
  220. package/dist/index61.js.map +1 -1
  221. package/dist/index62.js +70 -48
  222. package/dist/index62.js.map +1 -1
  223. package/dist/index63.js +55 -60
  224. package/dist/index63.js.map +1 -1
  225. package/dist/index64.js +39 -101
  226. package/dist/index64.js.map +1 -1
  227. package/dist/index65.js +52 -41
  228. package/dist/index65.js.map +1 -1
  229. package/dist/index66.js +58 -64
  230. package/dist/index66.js.map +1 -1
  231. package/dist/index67.js +105 -19
  232. package/dist/index67.js.map +1 -1
  233. package/dist/index68.js +41 -46
  234. package/dist/index68.js.map +1 -1
  235. package/dist/index69.js +63 -129
  236. package/dist/index69.js.map +1 -1
  237. package/dist/index7.js +130 -11
  238. package/dist/index7.js.map +1 -1
  239. package/dist/index70.js +19 -50
  240. package/dist/index70.js.map +1 -1
  241. package/dist/index71.js +46 -22
  242. package/dist/index71.js.map +1 -1
  243. package/dist/index72.js +134 -22
  244. package/dist/index72.js.map +1 -1
  245. package/dist/index73.js +51 -328
  246. package/dist/index73.js.map +1 -1
  247. package/dist/index74.js +19 -53
  248. package/dist/index74.js.map +1 -1
  249. package/dist/index75.js +31 -40
  250. package/dist/index75.js.map +1 -1
  251. package/dist/index76.js +22 -95
  252. package/dist/index76.js.map +1 -1
  253. package/dist/index77.js +311 -112
  254. package/dist/index77.js.map +1 -1
  255. package/dist/index78.js +52 -157
  256. package/dist/index78.js.map +1 -1
  257. package/dist/index79.js +40 -65
  258. package/dist/index79.js.map +1 -1
  259. package/dist/index8.js +11 -70
  260. package/dist/index8.js.map +1 -1
  261. package/dist/index80.js +23 -35
  262. package/dist/index80.js.map +1 -1
  263. package/dist/index81.js +88 -227
  264. package/dist/index81.js.map +1 -1
  265. package/dist/index82.js +130 -34
  266. package/dist/index82.js.map +1 -1
  267. package/dist/index83.js +153 -202
  268. package/dist/index83.js.map +1 -1
  269. package/dist/index84.js +61 -209
  270. package/dist/index84.js.map +1 -1
  271. package/dist/index85.js +34 -294
  272. package/dist/index85.js.map +1 -1
  273. package/dist/index86.js +228 -172
  274. package/dist/index86.js.map +1 -1
  275. package/dist/index87.js +32 -256
  276. package/dist/index87.js.map +1 -1
  277. package/dist/index88.js +208 -12
  278. package/dist/index88.js.map +1 -1
  279. package/dist/index89.js +209 -29
  280. package/dist/index89.js.map +1 -1
  281. package/dist/index9.js +69 -91
  282. package/dist/index9.js.map +1 -1
  283. package/dist/index90.js +294 -5
  284. package/dist/index90.js.map +1 -1
  285. package/dist/index91.js +176 -12
  286. package/dist/index91.js.map +1 -1
  287. package/dist/index92.js +256 -44
  288. package/dist/index92.js.map +1 -1
  289. package/dist/index93.js +13 -12
  290. package/dist/index93.js.map +1 -1
  291. package/dist/index94.js +32 -14
  292. package/dist/index94.js.map +1 -1
  293. package/dist/index95.js +5 -7
  294. package/dist/index95.js.map +1 -1
  295. package/dist/index96.js +13 -12
  296. package/dist/index96.js.map +1 -1
  297. package/dist/index97.js +42 -27
  298. package/dist/index97.js.map +1 -1
  299. package/dist/index98.js +11 -16
  300. package/dist/index98.js.map +1 -1
  301. package/dist/index99.js +12 -10790
  302. package/dist/index99.js.map +1 -1
  303. package/package.json +1 -1
package/README.md CHANGED
@@ -102,109 +102,7 @@ export default function App() {
102
102
 
103
103
  ## Components
104
104
 
105
- ### General
106
- - **Typography** - Text, Title, Paragraph, and Link components with consistent styling
107
-
108
- ### Actions
109
- - **Button** - Buttons with multiple types, sizes, and variants
110
- - **Dropdown** - Composable dropdown menu with trigger, items, and dividers
111
- - **FloatButton** - Floating action button with BackTop variant
112
- - **ThemeController** - Theme switcher with swap and dropdown modes
113
-
114
- ### Data Entry
115
- - **Autocomplete** - Search and select with keyboard navigation and filtering
116
- - **Cascader** - Cascade selection for hierarchical data
117
- - **Checkbox** - Checkboxes with sizes, colors, and indeterminate state
118
- - **ColorPicker** - Color selection with presets and custom colors
119
- - **DatePicker** - Interactive calendar date picker with custom formatting
120
- - **Fieldset** - Fieldset container with legend
121
- - **FileInput** - File input with sizes and colors
122
- - **Form** - Form component with React Hook Form integration and validation
123
- - **Input** - Text inputs with types, sizes, colors, and input masking
124
- - **InputNumber** - Numeric input with increment/decrement controls
125
- - **Label** - Form labels with required indicator and floating labels
126
- - **Mention** - Input with @mention support for tagging users
127
- - **OTPInput** - One-time password input with auto-focus
128
- - **Radio** - Radio buttons with group support
129
- - **Range** - Range slider with min, max, and step support
130
- - **Rating** - Star rating component
131
- - **Segmented** - Inline toggle for switching between mutually exclusive options
132
- - **Select** - Select dropdown with sizes and colors
133
- - **Textarea** - Multiline text input
134
- - **TimePicker** - Time input with hour and minute selection
135
- - **Toggle** - Toggle switches with sizes and colors
136
- - **Transfer** - Double-column transfer for moving items between lists
137
- - **TreeSelect** - Tree selection dropdown for hierarchical data
138
- - **Upload** - File upload with drag and drop support
139
-
140
- ### Data Display
141
- - **Avatar** - User avatars with sizes, shapes, and group support
142
- - **Badge** - Notification badges, status indicators, and ribbons
143
- - **Card** - Composable card component with body, title, actions, and figure
144
- - **Carousel** - Image carousel with navigation and indicators
145
- - **Chart** - Data visualization with ApexCharts and theme integration
146
- - **Chat** - Chat message bubbles with avatars and timestamps
147
- - **Collapse** - Collapsible content panels
148
- - **Descriptions** - Display multiple read-only fields in groups
149
- - **Empty** - Empty state placeholder with custom images and actions
150
- - **Image** - Image component with fallback and preview support
151
- - **List** - Vertical list layout with customizable rows
152
- - **Pagination** - Page navigation with multiple sizes
153
- - **QRCode** - QR code generator
154
- - **Stats** - Statistics display with figures and actions
155
- - **Steps** - Step progress indicator
156
- - **Table** - Feature-rich data table with sorting and pagination
157
- - **Tag** - Categorization labels with colors and close button
158
- - **Timeline** - Timeline component for displaying chronological events
159
- - **Tree** - Hierarchical tree view with expand/collapse and selection
160
-
161
- ### Layout
162
- - **Affix** - Make elements stick to viewport when scrolling
163
- - **Divider** - Horizontal and vertical dividers with optional text
164
- - **Drawer** - Sidebar drawer with multiple placements
165
- - **Footer** - Footer component with title sections
166
- - **Grid** - Flexible grid system with Row and Col components
167
- - **Hero** - Hero section with overlay and content wrapping
168
- - **Indicator** - Position indicators on elements
169
- - **Join** - Join multiple elements together seamlessly
170
- - **Layout** - Page layout with Header, Sider, Content, and Footer
171
- - **Masonry** - Responsive masonry grid layout
172
- - **Space** - Layout component for consistent spacing between elements
173
- - **Splitter** - Resizable split panes for adjustable layouts
174
-
175
- ### Responsive
176
- - **Show/Hide** - Conditionally render content based on breakpoint
177
- - **useBreakpoint** - Hook for detecting current breakpoint and screen width
178
-
179
- ### Navigation
180
- - **Breadcrumb** - Breadcrumb navigation trail
181
- - **Menu** - Menu with vertical, horizontal, and inline modes
182
- - **Navbar** - Navigation bar with start, center, and end sections
183
- - **Tabs** - Tab navigation with multiple variants
184
-
185
- ### Feedback
186
- - **Alert** - Alert messages with multiple types and dismissible option
187
- - **Loading** - Loading spinners with sizes and overlay support
188
- - **Modal** - Modal dialogs with imperative API
189
- - **Notification** - Toast notifications with auto-dismiss and stacking
190
- - **Popconfirm** - Confirmation popover for actions
191
- - **Popover** - Floating content triggered by hover or click
192
- - **Progress** - Progress bars with colors and indeterminate state
193
- - **RadialProgress** - Circular progress indicator
194
- - **Result** - Result pages for operation outcomes
195
- - **Skeleton** - Loading placeholder with animated shimmer effect
196
- - **Tooltip** - Tooltips with multiple placements
197
- - **Tour** - Guided tour with spotlight and step navigation
198
-
199
- ### Mockup
200
- - **Browser** - Browser window mockup with URL bar
201
- - **Code** - Terminal-style code display with line highlighting
202
- - **Phone** - iPhone-style phone frame mockup
203
- - **Window** - OS-style window frame mockup
204
-
205
- ## Demo
206
-
207
- View live examples and documentation at [https://asterui.com](https://asterui.com)
105
+ 90+ components including forms, data display, navigation, feedback, and layout. See the full list at [asterui.com/components](https://asterui.com/components).
208
106
 
209
107
  ## Requirements
210
108
 
@@ -0,0 +1,45 @@
1
+ import { default as React } from 'react';
2
+ export interface AnchorLinkItem {
3
+ /** Target element id (without #) */
4
+ href: string;
5
+ /** Link title */
6
+ title: React.ReactNode;
7
+ /** Nested links */
8
+ children?: AnchorLinkItem[];
9
+ }
10
+ export interface AnchorProps {
11
+ /** Anchor links (alternative to Anchor.Link children) */
12
+ items?: AnchorLinkItem[];
13
+ /** Layout direction */
14
+ direction?: 'horizontal' | 'vertical';
15
+ /** Offset from top when calculating scroll position */
16
+ offsetTop?: number;
17
+ /** Target scroll container (default: window) */
18
+ getContainer?: () => HTMLElement | Window;
19
+ /** Callback when active link changes */
20
+ onChange?: (activeLink: string) => void;
21
+ /** Callback when link is clicked */
22
+ onClick?: (e: React.MouseEvent, link: {
23
+ href: string;
24
+ title: React.ReactNode;
25
+ }) => void;
26
+ /** Currently active link (controlled) */
27
+ activeLink?: string;
28
+ /** Custom class name */
29
+ className?: string;
30
+ /** Anchor.Link children */
31
+ children?: React.ReactNode;
32
+ }
33
+ export interface AnchorLinkProps {
34
+ /** Target element id (without #) */
35
+ href: string;
36
+ /** Link title */
37
+ title: React.ReactNode;
38
+ /** Nested links */
39
+ children?: React.ReactNode;
40
+ /** Custom class name */
41
+ className?: string;
42
+ }
43
+ export declare const Anchor: React.FC<AnchorProps> & {
44
+ Link: React.FC<AnchorLinkProps>;
45
+ };
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface DiffProps {
3
+ /** Left side content (revealed when dragging) */
4
+ left: React.ReactNode;
5
+ /** Right side content (hidden when dragging) */
6
+ right: React.ReactNode;
7
+ /** Aspect ratio class (e.g., "aspect-16/9", "aspect-4/3", "aspect-square") */
8
+ aspect?: string;
9
+ /** Additional CSS classes */
10
+ className?: string;
11
+ }
12
+ export declare const Diff: React.FC<DiffProps>;
@@ -5,6 +5,8 @@ export interface FormProps<TFieldValues extends FieldValues = FieldValues> exten
5
5
  onFinish?: SubmitHandler<TFieldValues>;
6
6
  initialValues?: UseFormProps<TFieldValues>['defaultValues'];
7
7
  layout?: 'vertical' | 'horizontal' | 'inline';
8
+ /** Label width in pixels for horizontal layout (default: 80) */
9
+ labelWidth?: number;
8
10
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
11
  children: React.ReactNode;
10
12
  }
@@ -26,6 +28,7 @@ export interface FormRule {
26
28
  message?: string;
27
29
  validate?: (value: any) => boolean | string | Promise<boolean | string>;
28
30
  }
31
+ export type ValidateTrigger = 'onChange' | 'onBlur' | 'onSubmit' | ('onChange' | 'onBlur' | 'onSubmit')[];
29
32
  export interface FormItemProps {
30
33
  name?: string | string[];
31
34
  label?: string;
@@ -36,6 +39,20 @@ export interface FormItemProps {
36
39
  inline?: boolean;
37
40
  className?: string;
38
41
  children: React.ReactElement;
42
+ /** Tooltip text to show next to label */
43
+ tooltip?: string;
44
+ /** Additional content below the form control */
45
+ extra?: React.ReactNode;
46
+ /** Show validation feedback icon */
47
+ hasFeedback?: boolean;
48
+ /** Field names that this field depends on for validation */
49
+ dependencies?: string[];
50
+ /** When to trigger validation */
51
+ validateTrigger?: ValidateTrigger;
52
+ /** Initial value for this field (overrides Form's initialValues) */
53
+ initialValue?: any;
54
+ /** Hide this field (still validates and submits) */
55
+ hidden?: boolean;
39
56
  }
40
57
  export interface FormListProps<TFieldValues extends FieldValues = FieldValues> {
41
58
  name: FieldArrayPath<TFieldValues>;
@@ -45,8 +62,8 @@ export interface FormListProps<TFieldValues extends FieldValues = FieldValues> {
45
62
  move: (from: number, to: number) => void;
46
63
  }) => React.ReactNode;
47
64
  }
48
- declare function FormRoot<TFieldValues extends FieldValues = FieldValues>({ form: externalForm, onFinish, initialValues, layout, size, children, className, noValidate, ...props }: FormProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
49
- declare function FormItem({ name, label, help, required, rules, valuePropName, inline, className, children, }: FormItemProps): import("react/jsx-runtime").JSX.Element;
65
+ declare function FormRoot<TFieldValues extends FieldValues = FieldValues>({ form: externalForm, onFinish, initialValues, layout, labelWidth, size, children, className, noValidate, ...props }: FormProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
66
+ declare function FormItem({ name, label, help, required, rules, valuePropName, inline, className, children, tooltip, extra, hasFeedback, dependencies, validateTrigger, initialValue, hidden, }: FormItemProps): import("react/jsx-runtime").JSX.Element;
50
67
  declare function FormList<TFieldValues extends FieldValues = FieldValues>({ name, children, }: FormListProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
51
68
  export declare function useFormInstance<TFieldValues extends FieldValues = FieldValues>(): UseFormReturn<TFieldValues, any, TFieldValues> & {
52
69
  setFieldValue: import('react-hook-form').UseFormSetValue<TFieldValues>;
@@ -58,9 +75,17 @@ export declare function useFormInstance<TFieldValues extends FieldValues = Field
58
75
  isFieldTouched: (name: string) => boolean;
59
76
  getFieldError: (name: string) => string | undefined;
60
77
  };
78
+ export interface FormErrorListProps {
79
+ /** Specific field names to show errors for (shows all errors if not specified) */
80
+ fields?: string[];
81
+ /** Custom className */
82
+ className?: string;
83
+ }
84
+ declare function FormErrorList({ fields, className }: FormErrorListProps): import("react/jsx-runtime").JSX.Element | null;
61
85
  export declare const Form: typeof FormRoot & {
62
86
  Item: typeof FormItem;
63
87
  List: typeof FormList;
88
+ ErrorList: typeof FormErrorList;
64
89
  useForm: typeof useFormInstance;
65
90
  };
66
91
  export type { UseFormReturn as FormInstance };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface KbdProps extends React.HTMLAttributes<HTMLElement> {
3
+ /** Size of the kbd */
4
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ /** Key content */
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare const Kbd: React.FC<KbdProps>;
@@ -5,11 +5,17 @@ export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
5
5
  className?: string;
6
6
  children?: React.ReactNode;
7
7
  }
8
+ export interface RadioGroupChangeEvent {
9
+ target: {
10
+ value: string | number;
11
+ name?: string;
12
+ };
13
+ }
8
14
  export interface RadioGroupProps {
9
15
  children: React.ReactNode;
10
16
  value?: string | number;
11
17
  defaultValue?: string | number;
12
- onChange?: (value: string | number) => void;
18
+ onChange?: (e: RadioGroupChangeEvent) => void;
13
19
  name?: string;
14
20
  className?: string;
15
21
  }
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export type StatusType = 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
3
+ export type StatusSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ export interface StatusProps {
5
+ /** Status color type */
6
+ type?: StatusType;
7
+ /** Status size */
8
+ size?: StatusSize;
9
+ /** Ping animation effect */
10
+ ping?: boolean;
11
+ /** Bounce animation effect */
12
+ bounce?: boolean;
13
+ /** Accessibility label */
14
+ label?: string;
15
+ /** Additional CSS classes */
16
+ className?: string;
17
+ }
18
+ export declare const Status: React.FC<StatusProps>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export type TextRotateDuration = 6000 | 9000 | 12000 | 15000 | 18000;
3
+ export interface TextRotateProps {
4
+ /** Text items to rotate through (max 6) */
5
+ items: React.ReactNode[];
6
+ /** Animation duration in ms (default 10000) */
7
+ duration?: TextRotateDuration;
8
+ /** Center text horizontally */
9
+ centered?: boolean;
10
+ /** Additional CSS classes */
11
+ className?: string;
12
+ }
13
+ export declare const TextRotate: React.FC<TextRotateProps>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export { Affix } from './components/Affix';
2
2
  export type { AffixProps } from './components/Affix';
3
+ export { Anchor } from './components/Anchor';
4
+ export type { AnchorProps, AnchorLinkProps, AnchorLinkItem } from './components/Anchor';
3
5
  export { Alert } from './components/Alert';
4
6
  export type { AlertProps } from './components/Alert';
5
7
  export { Autocomplete } from './components/Autocomplete';
@@ -38,6 +40,8 @@ export { DatePicker } from './components/DatePicker';
38
40
  export type { DatePickerProps } from './components/DatePicker';
39
41
  export { Descriptions } from './components/Descriptions';
40
42
  export type { DescriptionsProps, DescriptionsItemProps, DescriptionsSize, DescriptionsLayout } from './components/Descriptions';
43
+ export { Diff } from './components/Diff';
44
+ export type { DiffProps } from './components/Diff';
41
45
  export { Divider } from './components/Divider';
42
46
  export type { DividerProps } from './components/Divider';
43
47
  export { Drawer } from './components/Drawer';
@@ -53,7 +57,7 @@ export type { FloatButtonProps, BackTopProps } from './components/FloatButton';
53
57
  export { Footer } from './components/Footer';
54
58
  export type { FooterProps, FooterTitleProps } from './components/Footer';
55
59
  export { Form, useFormInstance } from './components/Form';
56
- export type { FormProps, FormItemProps, FormRule, FormInstance } from './components/Form';
60
+ export type { FormProps, FormItemProps, FormRule, FormInstance, FormErrorListProps, ValidateTrigger } from './components/Form';
57
61
  export { Grid, Row, Col } from './components/Grid';
58
62
  export type { RowProps, ColProps } from './components/Grid';
59
63
  export { Hero } from './components/Hero';
@@ -72,6 +76,8 @@ export { InputNumber } from './components/InputNumber';
72
76
  export type { InputNumberProps } from './components/InputNumber';
73
77
  export { Join } from './components/Join';
74
78
  export type { JoinProps } from './components/Join';
79
+ export { Kbd } from './components/Kbd';
80
+ export type { KbdProps } from './components/Kbd';
75
81
  export { Label } from './components/Label';
76
82
  export type { LabelProps, FloatingLabelProps } from './components/Label';
77
83
  export { Layout, useSiderContext } from './components/Layout';
@@ -115,7 +121,7 @@ export type { ProgressProps } from './components/Progress';
115
121
  export { QRCode } from './components/QRCode';
116
122
  export type { QRCodeProps, QRCodeErrorLevel, QRCodeType, QRCodeStatus } from './components/QRCode';
117
123
  export { Radio } from './components/Radio';
118
- export type { RadioProps, RadioGroupProps } from './components/Radio';
124
+ export type { RadioProps, RadioGroupProps, RadioGroupChangeEvent } from './components/Radio';
119
125
  export { RadialProgress } from './components/RadialProgress';
120
126
  export type { RadialProgressProps } from './components/RadialProgress';
121
127
  export { Range } from './components/Range';
@@ -138,6 +144,8 @@ export { Stack } from './components/Stack';
138
144
  export type { StackProps } from './components/Stack';
139
145
  export { Stats } from './components/Stat';
140
146
  export type { StatsProps, StatProps } from './components/Stat';
147
+ export { Status } from './components/Status';
148
+ export type { StatusProps, StatusType, StatusSize } from './components/Status';
141
149
  export { Steps } from './components/Steps';
142
150
  export type { StepsProps, StepProps } from './components/Steps';
143
151
  export { Table } from './components/Table';
@@ -146,6 +154,8 @@ export { Tabs } from './components/Tabs';
146
154
  export type { TabsProps, TabPanelProps } from './components/Tabs';
147
155
  export { Textarea } from './components/Textarea';
148
156
  export type { TextareaProps } from './components/Textarea';
157
+ export { TextRotate } from './components/TextRotate';
158
+ export type { TextRotateProps, TextRotateDuration } from './components/TextRotate';
149
159
  export { Tag, CheckableTag } from './components/Tag';
150
160
  export type { TagProps, CheckableTagProps } from './components/Tag';
151
161
  export { ThemeController } from './components/ThemeController';