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
@@ -0,0 +1,76 @@
1
+ import { ReactNode, MouseEventHandler } from 'react';
2
+ export type DropdownTrigger = "hover" | "click" | "contextMenu";
3
+ export type DropdownPlacement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight";
4
+ export interface DropdownMenuItemType {
5
+ /** Unique key */
6
+ key: string;
7
+ /** Label text or node */
8
+ label: ReactNode;
9
+ /** Icon for the item */
10
+ icon?: ReactNode;
11
+ /** Whether the item is disabled */
12
+ disabled?: boolean;
13
+ /** Whether the item is danger-styled */
14
+ danger?: boolean;
15
+ /** Click handler */
16
+ onClick?: (info: {
17
+ key: string;
18
+ domEvent: React.MouseEvent;
19
+ }) => void;
20
+ /** Type of item */
21
+ type?: "divider" | "group";
22
+ /** Children (for group type) */
23
+ children?: DropdownMenuItemType[];
24
+ }
25
+ export interface DropdownMenuType {
26
+ items: DropdownMenuItemType[];
27
+ onClick?: (info: {
28
+ key: string;
29
+ domEvent: React.MouseEvent;
30
+ }) => void;
31
+ selectedKeys?: string[];
32
+ }
33
+ export interface DropdownProps {
34
+ /** Menu configuration */
35
+ menu?: DropdownMenuType;
36
+ /** How the dropdown is triggered */
37
+ trigger?: DropdownTrigger[];
38
+ /** Placement of the dropdown */
39
+ placement?: DropdownPlacement;
40
+ /** Controlled open state */
41
+ open?: boolean;
42
+ /** Callback when open state changes */
43
+ onOpenChange?: (open: boolean) => void;
44
+ /** Whether the dropdown is disabled */
45
+ disabled?: boolean;
46
+ /** The trigger element */
47
+ children?: ReactNode;
48
+ /** Extra class name for the content */
49
+ overlayClassName?: string;
50
+ /** Arrow display */
51
+ arrow?: boolean;
52
+ /** Destroy popup on hide */
53
+ destroyPopupOnHide?: boolean;
54
+ /** Auto-adjust overflow */
55
+ autoAdjustOverflow?: boolean;
56
+ /** Extra class name */
57
+ className?: string;
58
+ }
59
+ export type DropdownButtonType = "primary" | "default" | "dashed" | "link" | "text";
60
+ export type DropdownButtonSize = "small" | "middle" | "large";
61
+ export interface DropdownButtonProps extends Omit<DropdownProps, "children"> {
62
+ /** Icon for the dropdown trigger button */
63
+ icon?: ReactNode;
64
+ /** Size of the buttons */
65
+ size?: DropdownButtonSize;
66
+ /** Type of the left button */
67
+ type?: DropdownButtonType;
68
+ /** Click handler for the left button */
69
+ onClick?: MouseEventHandler<HTMLButtonElement>;
70
+ /** Danger styling */
71
+ danger?: boolean;
72
+ /** Loading state */
73
+ loading?: boolean;
74
+ /** Content of the left button */
75
+ children?: ReactNode;
76
+ }
@@ -0,0 +1,12 @@
1
+ import { EmptyProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalEmpty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const PRESENTED_IMAGE_DEFAULT: React.FC<{
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ }>;
8
+ declare const PRESENTED_IMAGE_SIMPLE: React.FC<{
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ }>;
12
+ export { InternalEmpty, PRESENTED_IMAGE_DEFAULT, PRESENTED_IMAGE_SIMPLE };
@@ -0,0 +1,8 @@
1
+ import { InternalEmpty, PRESENTED_IMAGE_DEFAULT, PRESENTED_IMAGE_SIMPLE } from './Empty';
2
+ type EmptyComponent = typeof InternalEmpty & {
3
+ PRESENTED_IMAGE_DEFAULT: typeof PRESENTED_IMAGE_DEFAULT;
4
+ PRESENTED_IMAGE_SIMPLE: typeof PRESENTED_IMAGE_SIMPLE;
5
+ };
6
+ declare const Empty: EmptyComponent;
7
+ export { Empty };
8
+ export type { EmptyProps } from './types';
@@ -0,0 +1,15 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export interface EmptyProps {
3
+ /** Custom description text */
4
+ description?: ReactNode;
5
+ /** Custom image element or string src */
6
+ image?: ReactNode;
7
+ /** Image style */
8
+ imageStyle?: CSSProperties;
9
+ /** Extra class name */
10
+ className?: string;
11
+ /** Style */
12
+ style?: CSSProperties;
13
+ /** Action area content (e.g., a button) */
14
+ children?: ReactNode;
15
+ }
@@ -0,0 +1,4 @@
1
+ import { FlexProps } from './types';
2
+ import * as React from "react";
3
+ declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLElement>>;
4
+ export { Flex };
@@ -0,0 +1,2 @@
1
+ export { Flex } from './Flex';
2
+ export type { FlexProps, FlexGap } from './types';
@@ -0,0 +1,21 @@
1
+ import { ReactNode, HTMLAttributes, ElementType } from 'react';
2
+ export type FlexGap = "small" | "middle" | "large" | number | string;
3
+ export interface FlexProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
4
+ /** If true, direction is column */
5
+ vertical?: boolean;
6
+ /** CSS flex-wrap value */
7
+ wrap?: boolean | "wrap" | "nowrap" | "wrap-reverse";
8
+ /** CSS justify-content value */
9
+ justify?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "normal";
10
+ /** CSS align-items value */
11
+ align?: "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | "start" | "end" | "normal";
12
+ /** Gap between items - named size or CSS value */
13
+ gap?: FlexGap;
14
+ /** Flex value (flex CSS shorthand) */
15
+ flex?: string | number;
16
+ /** Render as a different element type */
17
+ component?: ElementType;
18
+ /** Extra class name */
19
+ className?: string;
20
+ children?: ReactNode;
21
+ }
@@ -0,0 +1,4 @@
1
+ import { BackTopProps } from './types';
2
+ import * as React from "react";
3
+ declare const BackTop: React.FC<BackTopProps>;
4
+ export { BackTop };
@@ -0,0 +1,4 @@
1
+ import { FloatButtonProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalFloatButton: React.ForwardRefExoticComponent<FloatButtonProps & React.RefAttributes<HTMLElement>>;
4
+ export { InternalFloatButton };
@@ -0,0 +1,4 @@
1
+ import { FloatButtonGroupProps } from './types';
2
+ import * as React from "react";
3
+ declare const FloatButtonGroup: React.FC<FloatButtonGroupProps>;
4
+ export { FloatButtonGroup };
@@ -0,0 +1,10 @@
1
+ import { InternalFloatButton } from './FloatButton';
2
+ import { FloatButtonGroup } from './FloatButtonGroup';
3
+ import { BackTop } from './BackTop';
4
+ type FloatButtonComponent = typeof InternalFloatButton & {
5
+ Group: typeof FloatButtonGroup;
6
+ BackTop: typeof BackTop;
7
+ };
8
+ declare const FloatButton: FloatButtonComponent;
9
+ export { FloatButton };
10
+ export type { FloatButtonProps, FloatButtonGroupProps, BackTopProps, FloatButtonShape, FloatButtonType, FloatButtonGroupTrigger, FloatButtonBadge, } from './types';
@@ -0,0 +1,42 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type FloatButtonShape = "circle" | "square";
3
+ export type FloatButtonType = "primary" | "default";
4
+ export type FloatButtonGroupTrigger = "click" | "hover";
5
+ export interface FloatButtonBadge {
6
+ count?: number;
7
+ dot?: boolean;
8
+ color?: string;
9
+ }
10
+ export interface FloatButtonProps {
11
+ icon?: ReactNode;
12
+ description?: ReactNode;
13
+ tooltip?: ReactNode;
14
+ type?: FloatButtonType;
15
+ shape?: FloatButtonShape;
16
+ badge?: FloatButtonBadge;
17
+ href?: string;
18
+ target?: string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ className?: string;
21
+ style?: CSSProperties;
22
+ }
23
+ export interface FloatButtonGroupProps {
24
+ shape?: FloatButtonShape;
25
+ trigger?: FloatButtonGroupTrigger;
26
+ icon?: ReactNode;
27
+ closeIcon?: ReactNode;
28
+ open?: boolean;
29
+ onOpenChange?: (open: boolean) => void;
30
+ children?: ReactNode;
31
+ className?: string;
32
+ style?: CSSProperties;
33
+ }
34
+ export interface BackTopProps {
35
+ visibilityHeight?: number;
36
+ target?: () => HTMLElement;
37
+ duration?: number;
38
+ onClick?: (e: React.MouseEvent) => void;
39
+ icon?: ReactNode;
40
+ className?: string;
41
+ style?: CSSProperties;
42
+ }
@@ -0,0 +1,7 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormProps } from './types';
3
+ declare function InternalForm<TValues extends FieldValues = FieldValues>(props: FormProps<TValues>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace InternalForm {
5
+ var displayName: string;
6
+ }
7
+ export { InternalForm };
@@ -0,0 +1,3 @@
1
+ import { FormContextValue } from './types';
2
+ export declare const FormContext: import('react').Context<FormContextValue>;
3
+ export declare function useFormContext(): FormContextValue;
@@ -0,0 +1,6 @@
1
+ import { FormErrorListProps } from './types';
2
+ declare function FormErrorList({ errors, className }: FormErrorListProps): import("react/jsx-runtime").JSX.Element | null;
3
+ declare namespace FormErrorList {
4
+ var displayName: string;
5
+ }
6
+ export { FormErrorList };
@@ -0,0 +1,7 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps } from './types';
3
+ declare function FormItem<TValues extends FieldValues = FieldValues>(props: FormItemProps<TValues>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace FormItem {
5
+ var displayName: string;
6
+ }
7
+ export { FormItem };
@@ -0,0 +1,6 @@
1
+ import { FormListProps } from './types';
2
+ declare function FormList({ name, children, initialValue }: FormListProps): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace FormList {
4
+ var displayName: string;
5
+ }
6
+ export { FormList };
@@ -0,0 +1,16 @@
1
+ import { useWatch } from 'react-hook-form';
2
+ import { InternalForm } from './Form';
3
+ import { FormItem } from './FormItem';
4
+ import { FormList } from './FormList';
5
+ import { FormErrorList } from './FormErrorList';
6
+ import { useForm } from './useForm';
7
+ type FormComponent = typeof InternalForm & {
8
+ Item: typeof FormItem;
9
+ List: typeof FormList;
10
+ ErrorList: typeof FormErrorList;
11
+ useForm: typeof useForm;
12
+ useWatch: typeof useWatch;
13
+ };
14
+ declare const Form: FormComponent;
15
+ export { Form };
16
+ export type { FormProps, FormItemProps, FormListProps, FormErrorListProps, FormLayout, FormSize, FormVariant, FormRequiredMark, Rule, UseFormOptions, FormContextValue, FormListField, FormListOperation, } from './types';
@@ -0,0 +1,148 @@
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ import { UseFormReturn, FieldValues, FieldPath } from 'react-hook-form';
3
+ import { ZodType } from 'zod';
4
+ export interface Rule {
5
+ /** Mark the field as required */
6
+ required?: boolean;
7
+ /** Custom error message shown when the rule fails */
8
+ message?: string | ReactNode;
9
+ /** Built-in type validation */
10
+ type?: "string" | "number" | "email" | "url" | "boolean";
11
+ /** RegExp pattern the value must match */
12
+ pattern?: RegExp;
13
+ /** Minimum value (number) or length (string / array) */
14
+ min?: number;
15
+ /** Maximum value (number) or length (string / array) */
16
+ max?: number;
17
+ /** Exact length the value must be */
18
+ len?: number;
19
+ /** If true, a string composed only of whitespace is considered empty */
20
+ whitespace?: boolean;
21
+ /** Custom async validator */
22
+ validator?: (rule: Rule, value: unknown) => Promise<void>;
23
+ /** If true, the validation message is shown as a warning instead of an error */
24
+ warningOnly?: boolean;
25
+ }
26
+ export type FormLayout = "horizontal" | "vertical" | "inline";
27
+ export type FormSize = "small" | "middle" | "large";
28
+ export type FormVariant = "outlined" | "borderless" | "filled" | "underlined";
29
+ export type FormRequiredMark = boolean | "optional";
30
+ export interface FormProps<TValues extends FieldValues = FieldValues> extends Omit<HTMLAttributes<HTMLFormElement>, "onSubmit"> {
31
+ /** react-hook-form instance returned by Form.useForm */
32
+ form?: UseFormReturn<TValues>;
33
+ /** Label / field layout direction */
34
+ layout?: FormLayout;
35
+ /** Grid column config for labels (horizontal layout) */
36
+ labelCol?: {
37
+ span?: number;
38
+ };
39
+ /** Grid column config for controls (horizontal layout) */
40
+ wrapperCol?: {
41
+ span?: number;
42
+ };
43
+ /** Called with validated values on successful submit */
44
+ onFinish?: (values: TValues) => void | Promise<void>;
45
+ /** Called when submit validation fails */
46
+ onFinishFailed?: (errorInfo: {
47
+ values: TValues;
48
+ errorFields: {
49
+ name: (string | number)[];
50
+ errors: string[];
51
+ }[];
52
+ }) => void;
53
+ /** Called whenever a field value changes */
54
+ onValuesChange?: (changedValues: Partial<TValues>, allValues: TValues) => void;
55
+ /** Default field values (only used when no external form instance) */
56
+ initialValues?: Partial<TValues>;
57
+ /** Whether to append colon after labels */
58
+ colon?: boolean;
59
+ /** Disable all form controls */
60
+ disabled?: boolean;
61
+ /** Size of form controls */
62
+ size?: FormSize;
63
+ /** Visual variant for all controls */
64
+ variant?: FormVariant;
65
+ /** Show required / optional marks next to labels */
66
+ requiredMark?: FormRequiredMark;
67
+ /** Additional CSS class */
68
+ className?: string;
69
+ children?: ReactNode;
70
+ }
71
+ export interface FormItemProps<TValues extends FieldValues = FieldValues> {
72
+ /** Field path in the form values object */
73
+ name?: FieldPath<TValues>;
74
+ /** Label displayed beside or above the control */
75
+ label?: ReactNode;
76
+ /** Antd-style validation rules */
77
+ rules?: Rule[];
78
+ /** Shorthand: mark field as required (adds asterisk to label) */
79
+ required?: boolean;
80
+ /** Persistent help text below the control */
81
+ help?: ReactNode;
82
+ /** Extra hint text below help / error */
83
+ extra?: ReactNode;
84
+ /** Tooltip shown next to the label */
85
+ tooltip?: ReactNode;
86
+ /** Override parent form layout for this item */
87
+ layout?: "horizontal" | "vertical";
88
+ /** Hide the form item (still registers the field) */
89
+ hidden?: boolean;
90
+ /** Render only the control without label / error wrapper */
91
+ noStyle?: boolean;
92
+ /** Prop name used for the controlled value (default: "value") */
93
+ valuePropName?: string;
94
+ /** Prop name used for the change handler (default: "onChange") */
95
+ trigger?: string;
96
+ /** When to run validation */
97
+ validateTrigger?: string | string[];
98
+ /** Additional CSS class */
99
+ className?: string;
100
+ children?: ReactNode;
101
+ }
102
+ export interface FormListOperation {
103
+ add: (defaultValue?: unknown, insertIndex?: number) => void;
104
+ remove: (index: number | number[]) => void;
105
+ move: (from: number, to: number) => void;
106
+ }
107
+ export interface FormListField {
108
+ name: number;
109
+ key: number;
110
+ }
111
+ export interface FormListProps {
112
+ /** Field array name path */
113
+ name: string;
114
+ /** Render function receiving fields and operation helpers */
115
+ children: (fields: FormListField[], operation: FormListOperation, meta: {
116
+ errors: ReactNode[];
117
+ }) => ReactNode;
118
+ /** Initial value when the list is created */
119
+ initialValue?: unknown[];
120
+ /** Validation rules for the entire list */
121
+ rules?: Rule[];
122
+ }
123
+ export interface FormErrorListProps {
124
+ /** List of error messages to display */
125
+ errors?: ReactNode[];
126
+ /** Additional CSS class */
127
+ className?: string;
128
+ }
129
+ export interface UseFormOptions<TSchema extends ZodType = ZodType> {
130
+ /** Zod schema for validation. When provided, zodResolver is used automatically. */
131
+ schema?: TSchema;
132
+ /** Default values for the form fields */
133
+ defaultValues?: Record<string, unknown>;
134
+ }
135
+ export interface FormContextValue {
136
+ layout: FormLayout;
137
+ labelCol?: {
138
+ span?: number;
139
+ };
140
+ wrapperCol?: {
141
+ span?: number;
142
+ };
143
+ colon: boolean;
144
+ disabled: boolean;
145
+ size: FormSize;
146
+ variant: FormVariant;
147
+ requiredMark: FormRequiredMark;
148
+ }
@@ -0,0 +1,21 @@
1
+ import { UseFormReturn, FieldValues } from 'react-hook-form';
2
+ import { ZodType } from 'zod';
3
+ interface UseFormOptions {
4
+ /** Zod schema for automatic validation via zodResolver */
5
+ schema?: ZodType;
6
+ /** Default values for all fields */
7
+ defaultValues?: Record<string, unknown>;
8
+ }
9
+ /**
10
+ * Creates and returns a react-hook-form instance wrapped in a single-element
11
+ * tuple to match the antd `Form.useForm()` API:
12
+ *
13
+ * ```ts
14
+ * const [form] = Form.useForm({ schema });
15
+ * ```
16
+ *
17
+ * When a Zod `schema` is provided the form is automatically configured with
18
+ * `zodResolver`. Without a schema, plain react-hook-form validation applies.
19
+ */
20
+ export declare function useForm<TValues extends FieldValues = FieldValues>(options?: UseFormOptions): [UseFormReturn<TValues>];
21
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ColProps } from './types';
2
+ import * as React from "react";
3
+ declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { Col };
@@ -0,0 +1,4 @@
1
+ import { RowProps } from './types';
2
+ import * as React from "react";
3
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { Row };
@@ -0,0 +1,4 @@
1
+ export interface RowContextValue {
2
+ gutter: [number, number];
3
+ }
4
+ export declare const RowContext: import('react').Context<RowContextValue>;
@@ -0,0 +1,3 @@
1
+ export { Row } from './Row';
2
+ export { Col } from './Col';
3
+ export type { RowProps, ColProps, ColSpanType, Breakpoint, Gutter } from './types';
@@ -0,0 +1,53 @@
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
3
+ export type Gutter = number | Partial<Record<Breakpoint, number>>;
4
+ export interface RowProps extends HTMLAttributes<HTMLDivElement> {
5
+ /** Horizontal and optional vertical gutter spacing in px.
6
+ * number | [horizontal, vertical] | responsive object */
7
+ gutter?: Gutter | [Gutter, Gutter];
8
+ /** Vertical alignment of columns */
9
+ align?: "top" | "middle" | "bottom" | "stretch";
10
+ /** Horizontal justification of columns */
11
+ justify?: "start" | "end" | "center" | "space-around" | "space-between" | "space-evenly";
12
+ /** Whether columns should wrap */
13
+ wrap?: boolean;
14
+ /** Extra class name */
15
+ className?: string;
16
+ children?: ReactNode;
17
+ }
18
+ export interface ColSpanType {
19
+ span?: number;
20
+ offset?: number;
21
+ push?: number;
22
+ pull?: number;
23
+ order?: number;
24
+ }
25
+ export interface ColProps extends HTMLAttributes<HTMLDivElement> {
26
+ /** Number of cells to occupy (0-24). 0 means display:none */
27
+ span?: number;
28
+ /** Number of cells to offset from left */
29
+ offset?: number;
30
+ /** Number of cells to move right */
31
+ push?: number;
32
+ /** Number of cells to move left */
33
+ pull?: number;
34
+ /** Flex order */
35
+ order?: number;
36
+ /** Flex grow/shrink/basis */
37
+ flex?: string | number;
38
+ /** <576px responsive config */
39
+ xs?: number | ColSpanType;
40
+ /** >=576px responsive config */
41
+ sm?: number | ColSpanType;
42
+ /** >=768px responsive config */
43
+ md?: number | ColSpanType;
44
+ /** >=992px responsive config */
45
+ lg?: number | ColSpanType;
46
+ /** >=1200px responsive config */
47
+ xl?: number | ColSpanType;
48
+ /** >=1600px responsive config */
49
+ xxl?: number | ColSpanType;
50
+ /** Extra class name */
51
+ className?: string;
52
+ children?: ReactNode;
53
+ }
@@ -0,0 +1,5 @@
1
+ import { ImageProps, PreviewGroupProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalImage: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const PreviewGroup: React.FC<PreviewGroupProps>;
5
+ export { InternalImage, PreviewGroup };
@@ -0,0 +1,7 @@
1
+ import { InternalImage, PreviewGroup } from './Image';
2
+ type ImageComponent = typeof InternalImage & {
3
+ PreviewGroup: typeof PreviewGroup;
4
+ };
5
+ declare const Image: ImageComponent;
6
+ export { Image };
7
+ export type { ImageProps, PreviewGroupProps, PreviewConfig } from './types';
@@ -0,0 +1,48 @@
1
+ import { ReactNode, CSSProperties, ImgHTMLAttributes } from 'react';
2
+ export interface PreviewConfig {
3
+ /** Visible state (controlled) */
4
+ visible?: boolean;
5
+ /** Callback when visibility changes */
6
+ onVisibleChange?: (visible: boolean) => void;
7
+ /** Source for preview (can differ from the displayed image) */
8
+ src?: string;
9
+ /** Mask content */
10
+ mask?: ReactNode;
11
+ /** Enable zoom controls */
12
+ scaleStep?: number;
13
+ /** Min scale */
14
+ minScale?: number;
15
+ /** Max scale */
16
+ maxScale?: number;
17
+ }
18
+ export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "placeholder"> {
19
+ /** Image source */
20
+ src?: string;
21
+ /** Alt text */
22
+ alt?: string;
23
+ /** Width */
24
+ width?: number | string;
25
+ /** Height */
26
+ height?: number | string;
27
+ /** Preview config or boolean */
28
+ preview?: boolean | PreviewConfig;
29
+ /** Fallback image when loading fails */
30
+ fallback?: string;
31
+ /** Placeholder content displayed while loading */
32
+ placeholder?: ReactNode | boolean;
33
+ /** Root class name */
34
+ rootClassName?: string;
35
+ /** Extra class name */
36
+ className?: string;
37
+ /** Style */
38
+ style?: CSSProperties;
39
+ }
40
+ export interface PreviewGroupProps {
41
+ /** Preview config for the group */
42
+ preview?: boolean | PreviewConfig;
43
+ /** Items to preview */
44
+ items?: string[];
45
+ /** Extra class name */
46
+ className?: string;
47
+ children?: ReactNode;
48
+ }
@@ -0,0 +1,4 @@
1
+ import { InputProps } from './types';
2
+ import * as React from "react";
3
+ declare const InternalInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
+ export { InternalInput };
@@ -0,0 +1,4 @@
1
+ import { InputOTPProps } from './types';
2
+ import * as React from "react";
3
+ declare const OTP: React.ForwardRefExoticComponent<InputOTPProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { OTP };
@@ -0,0 +1,4 @@
1
+ import { InputPasswordProps } from './types';
2
+ import * as React from "react";
3
+ declare const Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
4
+ export { Password };
@@ -0,0 +1,4 @@
1
+ import { InputSearchProps } from './types';
2
+ import * as React from "react";
3
+ declare const Search: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<HTMLInputElement>>;
4
+ export { Search };
@@ -0,0 +1,4 @@
1
+ import { InputTextAreaProps } from './types';
2
+ import * as React from "react";
3
+ declare const TextArea: React.ForwardRefExoticComponent<InputTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export { TextArea };
@@ -0,0 +1,14 @@
1
+ import { InternalInput } from './Input';
2
+ import { Password } from './Password';
3
+ import { TextArea } from './TextArea';
4
+ import { Search } from './Search';
5
+ import { OTP } from './OTP';
6
+ type InputComponent = typeof InternalInput & {
7
+ Password: typeof Password;
8
+ TextArea: typeof TextArea;
9
+ Search: typeof Search;
10
+ OTP: typeof OTP;
11
+ };
12
+ declare const Input: InputComponent;
13
+ export { Input };
14
+ export type { InputProps, InputPasswordProps, InputTextAreaProps, InputSearchProps, InputOTPProps, InputSize, InputStatus, InputVariant, AutoSizeConfig, ShowCountInfo, ShowCountFormatter, } from './types';