orizon 0.1.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 (252) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -0
  3. package/dist/components/affix/Affix.d.ts +4 -0
  4. package/dist/components/affix/index.d.ts +2 -0
  5. package/dist/components/affix/types.d.ts +10 -0
  6. package/dist/components/alert/Alert.d.ts +4 -0
  7. package/dist/components/alert/ErrorBoundary.d.ts +12 -0
  8. package/dist/components/alert/index.d.ts +8 -0
  9. package/dist/components/alert/types.d.ts +45 -0
  10. package/dist/components/anchor/Anchor.d.ts +4 -0
  11. package/dist/components/anchor/index.d.ts +2 -0
  12. package/dist/components/anchor/types.d.ts +47 -0
  13. package/dist/components/app/App.d.ts +13 -0
  14. package/dist/components/app/index.d.ts +7 -0
  15. package/dist/components/app/types.d.ts +9 -0
  16. package/dist/components/auto-complete/AutoComplete.d.ts +4 -0
  17. package/dist/components/auto-complete/index.d.ts +3 -0
  18. package/dist/components/auto-complete/types.d.ts +36 -0
  19. package/dist/components/avatar/Avatar.d.ts +5 -0
  20. package/dist/components/avatar/index.d.ts +7 -0
  21. package/dist/components/avatar/types.d.ts +49 -0
  22. package/dist/components/badge/Badge.d.ts +5 -0
  23. package/dist/components/badge/index.d.ts +7 -0
  24. package/dist/components/badge/types.d.ts +45 -0
  25. package/dist/components/breadcrumb/Breadcrumb.d.ts +4 -0
  26. package/dist/components/breadcrumb/index.d.ts +2 -0
  27. package/dist/components/breadcrumb/types.d.ts +35 -0
  28. package/dist/components/button/Button.d.ts +4 -0
  29. package/dist/components/button/ButtonGroup.d.ts +4 -0
  30. package/dist/components/button/index.d.ts +8 -0
  31. package/dist/components/button/types.d.ts +35 -0
  32. package/dist/components/calendar/Calendar.d.ts +4 -0
  33. package/dist/components/calendar/index.d.ts +3 -0
  34. package/dist/components/calendar/types.d.ts +45 -0
  35. package/dist/components/card/Card.d.ts +6 -0
  36. package/dist/components/card/index.d.ts +8 -0
  37. package/dist/components/card/types.d.ts +53 -0
  38. package/dist/components/carousel/Carousel.d.ts +4 -0
  39. package/dist/components/carousel/index.d.ts +3 -0
  40. package/dist/components/carousel/types.d.ts +41 -0
  41. package/dist/components/cascader/Cascader.d.ts +4 -0
  42. package/dist/components/cascader/index.d.ts +3 -0
  43. package/dist/components/cascader/types.d.ts +42 -0
  44. package/dist/components/checkbox/Checkbox.d.ts +4 -0
  45. package/dist/components/checkbox/CheckboxGroup.d.ts +10 -0
  46. package/dist/components/checkbox/index.d.ts +8 -0
  47. package/dist/components/checkbox/types.d.ts +55 -0
  48. package/dist/components/collapse/Collapse.d.ts +4 -0
  49. package/dist/components/collapse/index.d.ts +3 -0
  50. package/dist/components/collapse/types.d.ts +58 -0
  51. package/dist/components/color-picker/ColorPicker.d.ts +4 -0
  52. package/dist/components/color-picker/index.d.ts +3 -0
  53. package/dist/components/color-picker/types.d.ts +30 -0
  54. package/dist/components/date-picker/DatePicker.d.ts +9 -0
  55. package/dist/components/date-picker/RangePicker.d.ts +4 -0
  56. package/dist/components/date-picker/index.d.ts +8 -0
  57. package/dist/components/date-picker/types.d.ts +60 -0
  58. package/dist/components/descriptions/Descriptions.d.ts +4 -0
  59. package/dist/components/descriptions/index.d.ts +3 -0
  60. package/dist/components/descriptions/types.d.ts +55 -0
  61. package/dist/components/divider/Divider.d.ts +4 -0
  62. package/dist/components/divider/index.d.ts +2 -0
  63. package/dist/components/divider/types.d.ts +19 -0
  64. package/dist/components/drawer/Drawer.d.ts +4 -0
  65. package/dist/components/drawer/index.d.ts +3 -0
  66. package/dist/components/drawer/types.d.ts +49 -0
  67. package/dist/components/dropdown/Dropdown.d.ts +4 -0
  68. package/dist/components/dropdown/DropdownButton.d.ts +4 -0
  69. package/dist/components/dropdown/index.d.ts +8 -0
  70. package/dist/components/dropdown/types.d.ts +76 -0
  71. package/dist/components/empty/Empty.d.ts +12 -0
  72. package/dist/components/empty/index.d.ts +8 -0
  73. package/dist/components/empty/types.d.ts +15 -0
  74. package/dist/components/flex/Flex.d.ts +4 -0
  75. package/dist/components/flex/index.d.ts +2 -0
  76. package/dist/components/flex/types.d.ts +21 -0
  77. package/dist/components/float-button/BackTop.d.ts +4 -0
  78. package/dist/components/float-button/FloatButton.d.ts +4 -0
  79. package/dist/components/float-button/FloatButtonGroup.d.ts +4 -0
  80. package/dist/components/float-button/index.d.ts +10 -0
  81. package/dist/components/float-button/types.d.ts +42 -0
  82. package/dist/components/form/Form.d.ts +7 -0
  83. package/dist/components/form/FormContext.d.ts +3 -0
  84. package/dist/components/form/FormErrorList.d.ts +6 -0
  85. package/dist/components/form/FormItem.d.ts +7 -0
  86. package/dist/components/form/FormList.d.ts +6 -0
  87. package/dist/components/form/index.d.ts +16 -0
  88. package/dist/components/form/types.d.ts +148 -0
  89. package/dist/components/form/useForm.d.ts +21 -0
  90. package/dist/components/grid/Col.d.ts +4 -0
  91. package/dist/components/grid/Row.d.ts +4 -0
  92. package/dist/components/grid/RowContext.d.ts +4 -0
  93. package/dist/components/grid/index.d.ts +3 -0
  94. package/dist/components/grid/types.d.ts +53 -0
  95. package/dist/components/image/Image.d.ts +5 -0
  96. package/dist/components/image/index.d.ts +7 -0
  97. package/dist/components/image/types.d.ts +48 -0
  98. package/dist/components/input/Input.d.ts +4 -0
  99. package/dist/components/input/OTP.d.ts +4 -0
  100. package/dist/components/input/Password.d.ts +4 -0
  101. package/dist/components/input/Search.d.ts +4 -0
  102. package/dist/components/input/TextArea.d.ts +4 -0
  103. package/dist/components/input/index.d.ts +14 -0
  104. package/dist/components/input/types.d.ts +126 -0
  105. package/dist/components/input-number/InputNumber.d.ts +4 -0
  106. package/dist/components/input-number/index.d.ts +3 -0
  107. package/dist/components/input-number/types.d.ts +42 -0
  108. package/dist/components/layout/Layout.d.ts +7 -0
  109. package/dist/components/layout/Sider.d.ts +4 -0
  110. package/dist/components/layout/index.d.ts +11 -0
  111. package/dist/components/layout/types.d.ts +52 -0
  112. package/dist/components/list/List.d.ts +9 -0
  113. package/dist/components/list/index.d.ts +11 -0
  114. package/dist/components/list/types.d.ts +83 -0
  115. package/dist/components/masonry/Masonry.d.ts +4 -0
  116. package/dist/components/masonry/index.d.ts +3 -0
  117. package/dist/components/masonry/types.d.ts +11 -0
  118. package/dist/components/mentions/Mentions.d.ts +4 -0
  119. package/dist/components/mentions/index.d.ts +3 -0
  120. package/dist/components/mentions/types.d.ts +33 -0
  121. package/dist/components/menu/Menu.d.ts +4 -0
  122. package/dist/components/menu/index.d.ts +2 -0
  123. package/dist/components/menu/types.d.ts +66 -0
  124. package/dist/components/message/MessageContainer.d.ts +7 -0
  125. package/dist/components/message/index.d.ts +8 -0
  126. package/dist/components/message/messageManager.d.ts +3 -0
  127. package/dist/components/message/types.d.ts +52 -0
  128. package/dist/components/message/useMessage.d.ts +3 -0
  129. package/dist/components/modal/ConfirmModal.d.ts +7 -0
  130. package/dist/components/modal/Modal.d.ts +4 -0
  131. package/dist/components/modal/index.d.ts +9 -0
  132. package/dist/components/modal/staticMethods.d.ts +6 -0
  133. package/dist/components/modal/types.d.ts +92 -0
  134. package/dist/components/modal/useModal.d.ts +3 -0
  135. package/dist/components/notification/NotificationContainer.d.ts +10 -0
  136. package/dist/components/notification/index.d.ts +8 -0
  137. package/dist/components/notification/notificationManager.d.ts +3 -0
  138. package/dist/components/notification/types.d.ts +69 -0
  139. package/dist/components/notification/useNotification.d.ts +3 -0
  140. package/dist/components/pagination/Pagination.d.ts +4 -0
  141. package/dist/components/pagination/index.d.ts +2 -0
  142. package/dist/components/pagination/types.d.ts +34 -0
  143. package/dist/components/popconfirm/Popconfirm.d.ts +4 -0
  144. package/dist/components/popconfirm/index.d.ts +3 -0
  145. package/dist/components/popconfirm/types.d.ts +39 -0
  146. package/dist/components/popover/Popover.d.ts +4 -0
  147. package/dist/components/popover/index.d.ts +3 -0
  148. package/dist/components/popover/types.d.ts +31 -0
  149. package/dist/components/progress/Progress.d.ts +4 -0
  150. package/dist/components/progress/index.d.ts +3 -0
  151. package/dist/components/progress/types.d.ts +39 -0
  152. package/dist/components/qrcode/QRCode.d.ts +4 -0
  153. package/dist/components/qrcode/index.d.ts +3 -0
  154. package/dist/components/qrcode/types.d.ts +32 -0
  155. package/dist/components/radio/Radio.d.ts +4 -0
  156. package/dist/components/radio/RadioButton.d.ts +4 -0
  157. package/dist/components/radio/RadioGroup.d.ts +12 -0
  158. package/dist/components/radio/index.d.ts +10 -0
  159. package/dist/components/radio/types.d.ts +72 -0
  160. package/dist/components/rate/Rate.d.ts +4 -0
  161. package/dist/components/rate/index.d.ts +3 -0
  162. package/dist/components/rate/types.d.ts +18 -0
  163. package/dist/components/result/Result.d.ts +4 -0
  164. package/dist/components/result/index.d.ts +3 -0
  165. package/dist/components/result/types.d.ts +20 -0
  166. package/dist/components/segmented/Segmented.d.ts +4 -0
  167. package/dist/components/segmented/index.d.ts +3 -0
  168. package/dist/components/segmented/types.d.ts +30 -0
  169. package/dist/components/select/Select.d.ts +4 -0
  170. package/dist/components/select/index.d.ts +3 -0
  171. package/dist/components/select/types.d.ts +65 -0
  172. package/dist/components/skeleton/Skeleton.d.ts +4 -0
  173. package/dist/components/skeleton/SkeletonElements.d.ts +8 -0
  174. package/dist/components/skeleton/index.d.ts +12 -0
  175. package/dist/components/skeleton/types.d.ts +76 -0
  176. package/dist/components/slider/Slider.d.ts +4 -0
  177. package/dist/components/slider/index.d.ts +3 -0
  178. package/dist/components/slider/types.d.ts +29 -0
  179. package/dist/components/space/Compact.d.ts +4 -0
  180. package/dist/components/space/Space.d.ts +4 -0
  181. package/dist/components/space/index.d.ts +8 -0
  182. package/dist/components/space/types.d.ts +30 -0
  183. package/dist/components/spin/Spin.d.ts +4 -0
  184. package/dist/components/spin/index.d.ts +3 -0
  185. package/dist/components/spin/types.d.ts +28 -0
  186. package/dist/components/splitter/Panel.d.ts +4 -0
  187. package/dist/components/splitter/Splitter.d.ts +4 -0
  188. package/dist/components/splitter/index.d.ts +8 -0
  189. package/dist/components/splitter/types.d.ts +25 -0
  190. package/dist/components/statistic/Statistic.d.ts +5 -0
  191. package/dist/components/statistic/index.d.ts +7 -0
  192. package/dist/components/statistic/types.d.ts +37 -0
  193. package/dist/components/steps/Steps.d.ts +4 -0
  194. package/dist/components/steps/index.d.ts +2 -0
  195. package/dist/components/steps/types.d.ts +54 -0
  196. package/dist/components/switch/Switch.d.ts +4 -0
  197. package/dist/components/switch/index.d.ts +3 -0
  198. package/dist/components/switch/types.d.ts +25 -0
  199. package/dist/components/table/Table.d.ts +6 -0
  200. package/dist/components/table/index.d.ts +4 -0
  201. package/dist/components/table/types.d.ts +162 -0
  202. package/dist/components/tabs/Tabs.d.ts +4 -0
  203. package/dist/components/tabs/index.d.ts +2 -0
  204. package/dist/components/tabs/types.d.ts +51 -0
  205. package/dist/components/tag/Tag.d.ts +5 -0
  206. package/dist/components/tag/index.d.ts +7 -0
  207. package/dist/components/tag/types.d.ts +32 -0
  208. package/dist/components/time-picker/TimePicker.d.ts +5 -0
  209. package/dist/components/time-picker/TimeRangePicker.d.ts +4 -0
  210. package/dist/components/time-picker/index.d.ts +8 -0
  211. package/dist/components/time-picker/types.d.ts +48 -0
  212. package/dist/components/timeline/Timeline.d.ts +4 -0
  213. package/dist/components/timeline/index.d.ts +3 -0
  214. package/dist/components/timeline/types.d.ts +35 -0
  215. package/dist/components/tooltip/Tooltip.d.ts +4 -0
  216. package/dist/components/tooltip/index.d.ts +3 -0
  217. package/dist/components/tooltip/types.d.ts +33 -0
  218. package/dist/components/tour/Tour.d.ts +4 -0
  219. package/dist/components/tour/index.d.ts +3 -0
  220. package/dist/components/tour/types.d.ts +63 -0
  221. package/dist/components/transfer/Transfer.d.ts +4 -0
  222. package/dist/components/transfer/index.d.ts +3 -0
  223. package/dist/components/transfer/types.d.ts +40 -0
  224. package/dist/components/tree/Tree.d.ts +5 -0
  225. package/dist/components/tree/index.d.ts +7 -0
  226. package/dist/components/tree/types.d.ts +103 -0
  227. package/dist/components/tree-select/TreeSelect.d.ts +4 -0
  228. package/dist/components/tree-select/index.d.ts +3 -0
  229. package/dist/components/tree-select/types.d.ts +48 -0
  230. package/dist/components/typography/Typography.d.ts +12 -0
  231. package/dist/components/typography/index.d.ts +10 -0
  232. package/dist/components/typography/types.d.ts +92 -0
  233. package/dist/components/upload/Dragger.d.ts +4 -0
  234. package/dist/components/upload/Upload.d.ts +4 -0
  235. package/dist/components/upload/index.d.ts +8 -0
  236. package/dist/components/upload/types.d.ts +59 -0
  237. package/dist/components/watermark/Watermark.d.ts +4 -0
  238. package/dist/components/watermark/index.d.ts +3 -0
  239. package/dist/components/watermark/types.d.ts +43 -0
  240. package/dist/config-provider/ConfigProvider.d.ts +5 -0
  241. package/dist/config-provider/context.d.ts +7 -0
  242. package/dist/config-provider/index.d.ts +3 -0
  243. package/dist/config-provider/theme.d.ts +7 -0
  244. package/dist/config-provider/types.d.ts +23 -0
  245. package/dist/hooks/useComponentSize.d.ts +2 -0
  246. package/dist/hooks/useConfig.d.ts +1 -0
  247. package/dist/index.d.ts +138 -0
  248. package/dist/orizon.cjs.js +244 -0
  249. package/dist/orizon.es.js +61213 -0
  250. package/dist/preset.css +160 -0
  251. package/dist/vite.svg +1 -0
  252. package/package.json +96 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Orizon Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,101 @@
1
+ # Orizon
2
+
3
+ Ant Design API on shadcn/ui primitives. 68 React components with full TypeScript support.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install orizon
9
+ ```
10
+
11
+ **Peer dependencies** — your project needs:
12
+
13
+ ```bash
14
+ npm install react react-dom tailwindcss
15
+ ```
16
+
17
+ For the **Form** component (optional):
18
+
19
+ ```bash
20
+ npm install react-hook-form @hookform/resolvers zod
21
+ ```
22
+
23
+ ## Setup
24
+
25
+ Add these 3 lines to your app's CSS file:
26
+
27
+ ```css
28
+ @import "tailwindcss";
29
+ @import "orizon/preset.css";
30
+ @source "../node_modules/orizon/dist";
31
+ ```
32
+
33
+ That's it. The `@source` directive tells Tailwind to scan Orizon's compiled JS for utility classes.
34
+
35
+ ## Usage
36
+
37
+ ```tsx
38
+ import { Button, Input, Form, Table, Modal, message } from "orizon";
39
+
40
+ function App() {
41
+ return (
42
+ <div>
43
+ <Button type="primary" onClick={() => message.success("Hello!")}>
44
+ Click me
45
+ </Button>
46
+ </div>
47
+ );
48
+ }
49
+ ```
50
+
51
+ The API follows Ant Design exactly — same props, same patterns:
52
+
53
+ ```tsx
54
+ // Compound components
55
+ <Input.Password placeholder="Password" />
56
+ <Form.Item label="Name" name="name">
57
+ <Input />
58
+ </Form.Item>
59
+
60
+ // Static methods
61
+ Modal.confirm({ title: "Sure?", onOk: () => {} });
62
+ message.success("Saved!");
63
+ notification.open({ message: "Done" });
64
+ ```
65
+
66
+ ## Components (68)
67
+
68
+ | Category | Components |
69
+ |----------|-----------|
70
+ | General | Button, FloatButton, Typography |
71
+ | Layout | Space, Flex, Grid, Divider, Layout, Masonry, Splitter |
72
+ | Navigation | Anchor, Breadcrumb, Dropdown, Menu, Pagination, Steps, Tabs |
73
+ | Data Entry | AutoComplete, Cascader, Checkbox, ColorPicker, DatePicker, Form, Input, InputNumber, Mentions, Radio, Rate, Select, Slider, Switch, TimePicker, Transfer, TreeSelect, Upload |
74
+ | Data Display | Avatar, Badge, Calendar, Card, Carousel, Collapse, Descriptions, Empty, Image, List, Popover, QRCode, Segmented, Statistic, Table, Tag, Timeline, Tooltip, Tour, Tree |
75
+ | Feedback | Alert, Drawer, Message, Modal, Notification, Popconfirm, Progress, Result, Skeleton, Spin, Watermark |
76
+ | Other | Affix, App, ConfigProvider |
77
+
78
+ ## Theming
79
+
80
+ Override CSS variables in your CSS:
81
+
82
+ ```css
83
+ :root {
84
+ --primary: oklch(0.6 0.25 150); /* green primary */
85
+ --radius: 0.5rem; /* rounder corners */
86
+ }
87
+ ```
88
+
89
+ Or use the ConfigProvider:
90
+
91
+ ```tsx
92
+ import { ConfigProvider } from "orizon";
93
+
94
+ <ConfigProvider theme={{ algorithm: "dark" }}>
95
+ <App />
96
+ </ConfigProvider>
97
+ ```
98
+
99
+ ## License
100
+
101
+ MIT
@@ -0,0 +1,4 @@
1
+ import { AffixProps } from './types';
2
+ import * as React from "react";
3
+ declare const Affix: React.FC<AffixProps>;
4
+ export { Affix };
@@ -0,0 +1,2 @@
1
+ export { Affix } from './Affix';
2
+ export type { AffixProps } from './types';
@@ -0,0 +1,10 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export interface AffixProps {
3
+ offsetTop?: number;
4
+ offsetBottom?: number;
5
+ target?: () => HTMLElement | Window;
6
+ onChange?: (affixed: boolean) => void;
7
+ children?: ReactNode;
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ }
@@ -0,0 +1,4 @@
1
+ import { AlertProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalAlert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { InternalAlert };
@@ -0,0 +1,12 @@
1
+ import { AlertErrorBoundaryProps } from './types';
2
+ import * as React from "react";
3
+ interface ErrorBoundaryState {
4
+ hasError: boolean;
5
+ error: Error | null;
6
+ }
7
+ declare class AlertErrorBoundary extends React.Component<AlertErrorBoundaryProps, ErrorBoundaryState> {
8
+ constructor(props: AlertErrorBoundaryProps);
9
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
10
+ render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
11
+ }
12
+ export { AlertErrorBoundary };
@@ -0,0 +1,8 @@
1
+ import { InternalAlert } from './Alert';
2
+ import { AlertErrorBoundary } from './ErrorBoundary';
3
+ type AlertComponent = typeof InternalAlert & {
4
+ ErrorBoundary: typeof AlertErrorBoundary;
5
+ };
6
+ declare const Alert: AlertComponent;
7
+ export { Alert };
8
+ export type { AlertProps, AlertType, AlertClosableConfig, AlertErrorBoundaryProps, } from './types';
@@ -0,0 +1,45 @@
1
+ import { ReactNode } from 'react';
2
+ export type AlertType = "success" | "info" | "warning" | "error";
3
+ export interface AlertClosableConfig {
4
+ closeIcon?: ReactNode;
5
+ afterClose?: () => void;
6
+ onClose?: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
+ }
8
+ export interface AlertProps {
9
+ /** Alert type */
10
+ type?: AlertType;
11
+ /** Alert title / message */
12
+ message?: ReactNode;
13
+ /** Alias for message */
14
+ title?: ReactNode;
15
+ /** Additional description below the title */
16
+ description?: ReactNode;
17
+ /** Whether alert can be closed */
18
+ closable?: boolean | AlertClosableConfig;
19
+ /** Show type icon */
20
+ showIcon?: boolean;
21
+ /** Custom icon */
22
+ icon?: ReactNode;
23
+ /** Action area on the right */
24
+ action?: ReactNode;
25
+ /** Banner mode (no border, full width) */
26
+ banner?: boolean;
27
+ /** Called after close animation finishes */
28
+ afterClose?: () => void;
29
+ /** Custom close icon */
30
+ closeIcon?: ReactNode;
31
+ /** Called when close button is clicked */
32
+ onClose?: (e: React.MouseEvent<HTMLButtonElement>) => void;
33
+ /** Extra class name */
34
+ className?: string;
35
+ /** Inline style */
36
+ style?: React.CSSProperties;
37
+ }
38
+ export interface AlertErrorBoundaryProps {
39
+ /** Title shown in the error alert */
40
+ message?: ReactNode;
41
+ /** Description shown in the error alert */
42
+ description?: ReactNode;
43
+ /** Children to wrap */
44
+ children?: ReactNode;
45
+ }
@@ -0,0 +1,4 @@
1
+ import { AnchorProps } from './types';
2
+ import * as React from "react";
3
+ declare const Anchor: React.ForwardRefExoticComponent<AnchorProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { Anchor };
@@ -0,0 +1,2 @@
1
+ export { Anchor } from './Anchor';
2
+ export type { AnchorProps, AnchorItem, AnchorDirection } from './types';
@@ -0,0 +1,47 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export type AnchorDirection = "horizontal" | "vertical";
3
+ export interface AnchorItem {
4
+ /** Unique key for the anchor */
5
+ key: string;
6
+ /** Link href (e.g., "#section-id") */
7
+ href: string;
8
+ /** Display title */
9
+ title: ReactNode;
10
+ /** Nested children anchor items */
11
+ children?: AnchorItem[];
12
+ /** Target for the link (e.g., "_blank") */
13
+ target?: string;
14
+ /** Class name for the item */
15
+ className?: string;
16
+ }
17
+ export interface AnchorProps {
18
+ /** Anchor items */
19
+ items?: AnchorItem[];
20
+ /** Direction of the anchor layout */
21
+ direction?: AnchorDirection;
22
+ /** Custom function to determine the current active anchor */
23
+ getCurrentAnchor?: (activeLink: string) => string;
24
+ /** Pixel offset from top when scrolling to an anchor */
25
+ targetOffset?: number;
26
+ /** Whether to pin the anchor to the viewport (affix mode) */
27
+ affix?: boolean;
28
+ /** Offset top when affix is active */
29
+ offsetTop?: number;
30
+ /** Callback when active anchor changes */
31
+ onChange?: (currentActiveLink: string) => void;
32
+ /** Callback when an anchor link is clicked */
33
+ onClick?: (e: React.MouseEvent, link: {
34
+ title: ReactNode;
35
+ href: string;
36
+ }) => void;
37
+ /** Bounds for activating anchor links (proportion of viewport) */
38
+ bounds?: number;
39
+ /** Replace browser history instead of push */
40
+ replace?: boolean;
41
+ /** Container to listen for scroll events (defaults to window) */
42
+ getContainer?: () => HTMLElement | Window;
43
+ /** Extra class name */
44
+ className?: string;
45
+ /** Style */
46
+ style?: CSSProperties;
47
+ }
@@ -0,0 +1,13 @@
1
+ import { MessageAPI } from '../message/types';
2
+ import { NotificationAPI } from '../notification/types';
3
+ import { ModalHookAPI } from '../modal/types';
4
+ import { AppProps } from './types';
5
+ import * as React from "react";
6
+ interface AppContextValue {
7
+ message: MessageAPI;
8
+ notification: NotificationAPI;
9
+ modal: ModalHookAPI;
10
+ }
11
+ declare function useApp(): AppContextValue;
12
+ declare const InternalApp: React.FC<AppProps>;
13
+ export { InternalApp, useApp };
@@ -0,0 +1,7 @@
1
+ import { InternalApp, useApp } from './App';
2
+ type AppComponent = typeof InternalApp & {
3
+ useApp: typeof useApp;
4
+ };
5
+ declare const App: AppComponent;
6
+ export { App };
7
+ export type { AppProps } from './types';
@@ -0,0 +1,9 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export interface AppProps {
3
+ children?: ReactNode;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ component?: keyof React.JSX.IntrinsicElements | false;
7
+ message?: Record<string, unknown>;
8
+ notification?: Record<string, unknown>;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { AutoCompleteProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalAutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { InternalAutoComplete };
@@ -0,0 +1,3 @@
1
+ declare const AutoComplete: import('react').ForwardRefExoticComponent<import('./types').AutoCompleteProps & import('react').RefAttributes<HTMLDivElement>>;
2
+ export { AutoComplete };
3
+ export type { AutoCompleteProps, AutoCompleteOption, AutoCompleteSize, AutoCompleteStatus, AutoCompleteVariant, } from './types';
@@ -0,0 +1,36 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type AutoCompleteSize = "small" | "middle" | "large";
3
+ export type AutoCompleteStatus = "error" | "warning";
4
+ export type AutoCompleteVariant = "outlined" | "borderless" | "filled";
5
+ export interface AutoCompleteOption {
6
+ value: string;
7
+ label?: ReactNode;
8
+ disabled?: boolean;
9
+ }
10
+ export interface AutoCompleteProps {
11
+ options?: AutoCompleteOption[];
12
+ value?: string;
13
+ defaultValue?: string;
14
+ onChange?: (value: string) => void;
15
+ onSelect?: (value: string, option: AutoCompleteOption) => void;
16
+ onSearch?: (value: string) => void;
17
+ onClear?: () => void;
18
+ allowClear?: boolean;
19
+ placeholder?: string;
20
+ disabled?: boolean;
21
+ defaultOpen?: boolean;
22
+ open?: boolean;
23
+ onDropdownVisibleChange?: (open: boolean) => void;
24
+ filterOption?: boolean | ((inputValue: string, option: AutoCompleteOption) => boolean);
25
+ defaultActiveFirstOption?: boolean;
26
+ backfill?: boolean;
27
+ size?: AutoCompleteSize;
28
+ status?: AutoCompleteStatus;
29
+ variant?: AutoCompleteVariant;
30
+ notFoundContent?: ReactNode;
31
+ popupClassName?: string;
32
+ popupMatchSelectWidth?: boolean | number;
33
+ children?: ReactNode;
34
+ className?: string;
35
+ style?: CSSProperties;
36
+ }
@@ -0,0 +1,5 @@
1
+ import { AvatarProps, AvatarGroupProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalAvatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
4
+ declare const InternalAvatarGroup: React.FC<AvatarGroupProps>;
5
+ export { InternalAvatar, InternalAvatarGroup };
@@ -0,0 +1,7 @@
1
+ import { InternalAvatar, InternalAvatarGroup } from './Avatar';
2
+ type AvatarComponent = typeof InternalAvatar & {
3
+ Group: typeof InternalAvatarGroup;
4
+ };
5
+ declare const Avatar: AvatarComponent;
6
+ export { Avatar };
7
+ export type { AvatarProps, AvatarGroupProps, AvatarSize, AvatarShape, AvatarGroupMaxConfig } from './types';
@@ -0,0 +1,49 @@
1
+ import { ReactNode, CSSProperties, HTMLAttributes } from 'react';
2
+ export type AvatarSize = number | "small" | "middle" | "large";
3
+ export type AvatarShape = "circle" | "square";
4
+ export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
5
+ /** Image source */
6
+ src?: string;
7
+ /** Size of avatar */
8
+ size?: AvatarSize;
9
+ /** Shape */
10
+ shape?: AvatarShape;
11
+ /** Icon displayed when no src */
12
+ icon?: ReactNode;
13
+ /** Alt text for image */
14
+ alt?: string;
15
+ /** Gap between character and border */
16
+ gap?: number;
17
+ /** Src set */
18
+ srcSet?: string;
19
+ /** Whether to allow drag */
20
+ draggable?: boolean;
21
+ /** Cross-origin */
22
+ crossOrigin?: "" | "anonymous" | "use-credentials";
23
+ /** Fallback text (children) */
24
+ children?: ReactNode;
25
+ /** Extra class name */
26
+ className?: string;
27
+ /** Style */
28
+ style?: CSSProperties;
29
+ /** onError callback for image loading */
30
+ onError?: () => boolean;
31
+ }
32
+ export interface AvatarGroupMaxConfig {
33
+ count?: number;
34
+ style?: CSSProperties;
35
+ popover?: boolean;
36
+ }
37
+ export interface AvatarGroupProps {
38
+ /** Max config */
39
+ max?: AvatarGroupMaxConfig;
40
+ /** Default size for all avatars */
41
+ size?: AvatarSize;
42
+ /** Default shape for all avatars */
43
+ shape?: AvatarShape;
44
+ /** Extra class name */
45
+ className?: string;
46
+ /** Style */
47
+ style?: CSSProperties;
48
+ children?: ReactNode;
49
+ }
@@ -0,0 +1,5 @@
1
+ import { BadgeProps, BadgeRibbonProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalBadge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
4
+ declare const BadgeRibbon: React.FC<BadgeRibbonProps>;
5
+ export { InternalBadge, BadgeRibbon };
@@ -0,0 +1,7 @@
1
+ import { InternalBadge, BadgeRibbon } from './Badge';
2
+ type BadgeComponent = typeof InternalBadge & {
3
+ Ribbon: typeof BadgeRibbon;
4
+ };
5
+ declare const Badge: BadgeComponent;
6
+ export { Badge };
7
+ export type { BadgeProps, BadgeRibbonProps, BadgeStatus, BadgeSize, PresetColor, RibbonPlacement, } from './types';
@@ -0,0 +1,45 @@
1
+ import { ReactNode, CSSProperties, HTMLAttributes } from 'react';
2
+ export type BadgeStatus = "success" | "processing" | "default" | "error" | "warning";
3
+ export type BadgeSize = "default" | "small";
4
+ export type PresetColor = "blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold";
5
+ export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "title"> {
6
+ /** Number to display */
7
+ count?: ReactNode;
8
+ /** Show as a dot */
9
+ dot?: boolean;
10
+ /** Status type */
11
+ status?: BadgeStatus;
12
+ /** Custom color */
13
+ color?: PresetColor | string;
14
+ /** Size */
15
+ size?: BadgeSize;
16
+ /** Whether to show when count is 0 */
17
+ showZero?: boolean;
18
+ /** Max count to show */
19
+ overflowCount?: number;
20
+ /** Position offset [x, y] */
21
+ offset?: [number, number];
22
+ /** Title attribute for the badge */
23
+ title?: string;
24
+ /** Text to display next to status dot */
25
+ text?: ReactNode;
26
+ /** Extra class name */
27
+ className?: string;
28
+ /** Style */
29
+ style?: CSSProperties;
30
+ children?: ReactNode;
31
+ }
32
+ export type RibbonPlacement = "start" | "end";
33
+ export interface BadgeRibbonProps {
34
+ /** Ribbon text */
35
+ text?: ReactNode;
36
+ /** Ribbon color */
37
+ color?: PresetColor | string;
38
+ /** Placement */
39
+ placement?: RibbonPlacement;
40
+ /** Extra class name */
41
+ className?: string;
42
+ /** Style */
43
+ style?: CSSProperties;
44
+ children?: ReactNode;
45
+ }
@@ -0,0 +1,4 @@
1
+ import { BreadcrumbProps } from './types';
2
+ import * as React from "react";
3
+ declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
4
+ export { Breadcrumb };
@@ -0,0 +1,2 @@
1
+ export { Breadcrumb } from './Breadcrumb';
2
+ export type { BreadcrumbProps, BreadcrumbItemType, BreadcrumbMenuItemType } from './types';
@@ -0,0 +1,35 @@
1
+ import { ReactNode, MouseEventHandler } from 'react';
2
+ export interface BreadcrumbMenuItemType {
3
+ /** Key for the menu item */
4
+ key: string;
5
+ /** Label text */
6
+ label: ReactNode;
7
+ /** Optional href */
8
+ href?: string;
9
+ /** Click handler */
10
+ onClick?: MouseEventHandler;
11
+ }
12
+ export interface BreadcrumbItemType {
13
+ /** Title text or node */
14
+ title: ReactNode;
15
+ /** Link href */
16
+ href?: string;
17
+ /** Dropdown menu for this item */
18
+ menu?: {
19
+ items: BreadcrumbMenuItemType[];
20
+ };
21
+ /** Click handler */
22
+ onClick?: MouseEventHandler;
23
+ /** Path key (for routing) */
24
+ path?: string;
25
+ /** Class name for the item */
26
+ className?: string;
27
+ }
28
+ export interface BreadcrumbProps {
29
+ /** Breadcrumb items */
30
+ items?: BreadcrumbItemType[];
31
+ /** Custom separator, defaults to "/" */
32
+ separator?: ReactNode;
33
+ /** Extra class name */
34
+ className?: string;
35
+ }
@@ -0,0 +1,4 @@
1
+ import { ButtonProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
+ export { InternalButton };
@@ -0,0 +1,4 @@
1
+ import { ButtonGroupProps } from './types';
2
+ import * as React from "react";
3
+ declare const ButtonGroup: React.FC<ButtonGroupProps>;
4
+ export { ButtonGroup };
@@ -0,0 +1,8 @@
1
+ import { InternalButton } from './Button';
2
+ import { ButtonGroup } from './ButtonGroup';
3
+ type ButtonComponent = typeof InternalButton & {
4
+ Group: typeof ButtonGroup;
5
+ };
6
+ declare const Button: ButtonComponent;
7
+ export { Button };
8
+ export type { ButtonProps, ButtonGroupProps, ButtonType, ButtonSize, ButtonShape, ButtonHTMLType } from './types';
@@ -0,0 +1,35 @@
1
+ import { ReactNode, MouseEventHandler, ButtonHTMLAttributes } from 'react';
2
+ export type ButtonType = "primary" | "default" | "dashed" | "link" | "text";
3
+ export type ButtonSize = "small" | "middle" | "large";
4
+ export type ButtonShape = "default" | "circle" | "round";
5
+ export type ButtonHTMLType = "button" | "submit" | "reset";
6
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> {
7
+ /** Antd button type */
8
+ type?: ButtonType;
9
+ /** Size of button */
10
+ size?: ButtonSize;
11
+ /** Shape of button */
12
+ shape?: ButtonShape;
13
+ /** Show loading spinner */
14
+ loading?: boolean;
15
+ /** Danger styling */
16
+ danger?: boolean;
17
+ /** Ghost styling (transparent background) */
18
+ ghost?: boolean;
19
+ /** Full width */
20
+ block?: boolean;
21
+ /** Icon placed before children */
22
+ icon?: ReactNode;
23
+ /** Icon placement */
24
+ iconPosition?: "start" | "end";
25
+ /** HTML button type attribute */
26
+ htmlType?: ButtonHTMLType;
27
+ /** Click handler */
28
+ onClick?: MouseEventHandler<HTMLButtonElement>;
29
+ children?: ReactNode;
30
+ }
31
+ export interface ButtonGroupProps {
32
+ size?: ButtonSize;
33
+ className?: string;
34
+ children?: ReactNode;
35
+ }
@@ -0,0 +1,4 @@
1
+ import { CalendarProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalCalendar: React.FC<CalendarProps>;
4
+ export { InternalCalendar };
@@ -0,0 +1,3 @@
1
+ declare const Calendar: import('react').FC<import('./types').CalendarProps>;
2
+ export { Calendar };
3
+ export type { CalendarProps, CalendarMode } from './types';
@@ -0,0 +1,45 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export type CalendarMode = "month" | "year";
3
+ export interface CalendarProps {
4
+ /** Selected date value (controlled) */
5
+ value?: Date;
6
+ /** Default selected date */
7
+ defaultValue?: Date;
8
+ /** Calendar mode */
9
+ mode?: CalendarMode;
10
+ /** Whether to render full-screen calendar */
11
+ fullscreen?: boolean;
12
+ /** Custom cell render */
13
+ cellRender?: (date: Date, info: {
14
+ originNode: ReactNode;
15
+ type: "date" | "month";
16
+ }) => ReactNode;
17
+ /** Custom header render */
18
+ headerRender?: (config: {
19
+ value: Date;
20
+ type: CalendarMode;
21
+ onChange: (date: Date) => void;
22
+ onTypeChange: (type: CalendarMode) => void;
23
+ }) => ReactNode;
24
+ /** Whether date is disabled */
25
+ disabledDate?: (date: Date) => boolean;
26
+ /** Callback when date changes */
27
+ onChange?: (date: Date) => void;
28
+ /** Callback when panel mode changes */
29
+ onPanelChange?: (date: Date, mode: CalendarMode) => void;
30
+ /** Callback when date is selected */
31
+ onSelect?: (date: Date, info: {
32
+ source: "year" | "month" | "date";
33
+ }) => void;
34
+ /** Extra class name */
35
+ className?: string;
36
+ /** Style */
37
+ style?: CSSProperties;
38
+ /** Locale */
39
+ locale?: {
40
+ lang?: {
41
+ locale?: string;
42
+ monthFormat?: string;
43
+ };
44
+ };
45
+ }
@@ -0,0 +1,6 @@
1
+ import { CardProps, CardMetaProps, CardGridProps } from './types';
2
+ import * as React from "react";
3
+ declare const CardMeta: React.FC<CardMetaProps>;
4
+ declare const CardGrid: React.FC<CardGridProps>;
5
+ declare const InternalCard: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { InternalCard, CardMeta, CardGrid };