x-ui-design 1.0.29 → 1.0.31-gamma.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 (218) hide show
  1. package/README.md +1 -22
  2. package/dist/{esm/types/components → components}/DatePicker/DatePicker.d.ts +1 -2
  3. package/dist/{esm/types/components → components}/DatePicker/RangePicker/RangePicker.d.ts +1 -2
  4. package/dist/{esm/types/components → components}/Dropdown/Dropdown.d.ts +1 -2
  5. package/dist/{esm/types/components → components}/Empty/Empty.d.ts +1 -2
  6. package/dist/{esm/types/components → components}/Form/Item/Item.d.ts +1 -2
  7. package/dist/components/Icons/Icons.d.ts +18 -0
  8. package/dist/{esm/types/components → components}/Input/Input.d.ts +1 -2
  9. package/dist/{esm/types/components → components}/Input/Textarea/Textarea.d.ts +1 -2
  10. package/dist/{esm/types/components → components}/Popover/Popover.d.ts +1 -2
  11. package/dist/{esm/types/components → components}/Radio/Button/Button.d.ts +1 -2
  12. package/dist/{esm/types/components → components}/Radio/Group/Group.d.ts +1 -2
  13. package/dist/{esm/types/components → components}/Radio/Radio.d.ts +1 -2
  14. package/dist/{esm/types/components → components}/Result/Result.d.ts +1 -2
  15. package/dist/{esm/types/components → components}/Switch/Switch.d.ts +1 -2
  16. package/dist/{esm/types/components → components}/Upload/Upload.d.ts +1 -2
  17. package/dist/esm/types/index.d.ts +0 -50
  18. package/dist/index.d.ts +1 -144
  19. package/dist/index.esm.js +3436 -3863
  20. package/dist/index.esm.js.map +1 -1
  21. package/dist/index.js +3398 -3825
  22. package/dist/index.js.map +1 -1
  23. package/package.json +22 -20
  24. package/.github/workflows/x-ui-design.yml +0 -14
  25. package/compile.sh +0 -15
  26. package/dist/esm/types/components/Icons/Icons.d.ts +0 -19
  27. package/eslint.config.mjs +0 -16
  28. package/lib/components/Button/Button.tsx +0 -136
  29. package/lib/components/Button/index.ts +0 -1
  30. package/lib/components/Button/style.css +0 -197
  31. package/lib/components/Checkbox/Checkbox.tsx +0 -131
  32. package/lib/components/Checkbox/index.ts +0 -1
  33. package/lib/components/Checkbox/style.css +0 -95
  34. package/lib/components/ConditionalWrapper/index.tsx +0 -12
  35. package/lib/components/DatePicker/DatePicker.tsx +0 -526
  36. package/lib/components/DatePicker/RangePicker/RangePicker.tsx +0 -500
  37. package/lib/components/DatePicker/RangePicker/index.ts +0 -1
  38. package/lib/components/DatePicker/RangePicker/style.css +0 -434
  39. package/lib/components/DatePicker/TimePicker/TimePicker.tsx +0 -497
  40. package/lib/components/DatePicker/TimePicker/index.ts +0 -1
  41. package/lib/components/DatePicker/TimePicker/style.css +0 -197
  42. package/lib/components/DatePicker/index.ts +0 -1
  43. package/lib/components/DatePicker/style.css +0 -318
  44. package/lib/components/Dropdown/Dropdown.tsx +0 -234
  45. package/lib/components/Dropdown/index.ts +0 -1
  46. package/lib/components/Dropdown/style.css +0 -124
  47. package/lib/components/Empty/Empty.tsx +0 -45
  48. package/lib/components/Empty/index.ts +0 -1
  49. package/lib/components/Empty/style.css +0 -13
  50. package/lib/components/Form/Form.tsx +0 -130
  51. package/lib/components/Form/Item/Item.tsx +0 -294
  52. package/lib/components/Form/Item/index.ts +0 -1
  53. package/lib/components/Form/Item/style.css +0 -61
  54. package/lib/components/Form/index.ts +0 -1
  55. package/lib/components/Icons/Icons.tsx +0 -433
  56. package/lib/components/Icons/index.ts +0 -15
  57. package/lib/components/Input/Input.tsx +0 -216
  58. package/lib/components/Input/Textarea/Textarea.tsx +0 -110
  59. package/lib/components/Input/Textarea/index.ts +0 -1
  60. package/lib/components/Input/Textarea/style.css +0 -104
  61. package/lib/components/Input/index.ts +0 -1
  62. package/lib/components/Input/style.css +0 -137
  63. package/lib/components/Menu/Item/Item.tsx +0 -65
  64. package/lib/components/Menu/Menu.tsx +0 -261
  65. package/lib/components/Menu/SubMenu/SubMenu.tsx +0 -68
  66. package/lib/components/Menu/index.css +0 -145
  67. package/lib/components/Menu/index.ts +0 -1
  68. package/lib/components/Popover/Popover.tsx +0 -135
  69. package/lib/components/Popover/index.ts +0 -1
  70. package/lib/components/Popover/style.css +0 -82
  71. package/lib/components/Radio/Button/Button.tsx +0 -42
  72. package/lib/components/Radio/Button/index.ts +0 -1
  73. package/lib/components/Radio/Button/style.css +0 -43
  74. package/lib/components/Radio/Group/Group.tsx +0 -105
  75. package/lib/components/Radio/Group/index.ts +0 -1
  76. package/lib/components/Radio/Group/style.css +0 -53
  77. package/lib/components/Radio/Radio.tsx +0 -83
  78. package/lib/components/Radio/index.ts +0 -1
  79. package/lib/components/Radio/style.css +0 -73
  80. package/lib/components/Result/Result.tsx +0 -39
  81. package/lib/components/Result/index.ts +0 -1
  82. package/lib/components/Result/style.css +0 -173
  83. package/lib/components/Select/Option/Option.tsx +0 -49
  84. package/lib/components/Select/Option/index.ts +0 -1
  85. package/lib/components/Select/Option/style.css +0 -50
  86. package/lib/components/Select/Select.tsx +0 -935
  87. package/lib/components/Select/Tag/Tag.tsx +0 -43
  88. package/lib/components/Select/Tag/index.ts +0 -1
  89. package/lib/components/Select/Tag/style.css +0 -87
  90. package/lib/components/Select/index.ts +0 -1
  91. package/lib/components/Select/style.css +0 -186
  92. package/lib/components/Skeleton/Avatar/Avatar.tsx +0 -61
  93. package/lib/components/Skeleton/Avatar/index.ts +0 -1
  94. package/lib/components/Skeleton/Avatar/style.css +0 -27
  95. package/lib/components/Skeleton/Button/Button.tsx +0 -44
  96. package/lib/components/Skeleton/Button/index.ts +0 -1
  97. package/lib/components/Skeleton/Button/style.css +0 -50
  98. package/lib/components/Skeleton/Image/Image.tsx +0 -45
  99. package/lib/components/Skeleton/Image/index.ts +0 -1
  100. package/lib/components/Skeleton/Image/style.css +0 -23
  101. package/lib/components/Skeleton/Input/Input.tsx +0 -42
  102. package/lib/components/Skeleton/Input/index.ts +0 -1
  103. package/lib/components/Skeleton/Input/style.css +0 -56
  104. package/lib/components/Skeleton/Skeleton.tsx +0 -97
  105. package/lib/components/Skeleton/index.ts +0 -1
  106. package/lib/components/Skeleton/style.css +0 -84
  107. package/lib/components/Switch/Switch.tsx +0 -68
  108. package/lib/components/Switch/index.css +0 -50
  109. package/lib/components/Switch/index.ts +0 -1
  110. package/lib/components/Upload/Upload.tsx +0 -291
  111. package/lib/components/Upload/index.ts +0 -1
  112. package/lib/components/Upload/style.css +0 -151
  113. package/lib/global.d.ts +0 -1
  114. package/lib/helpers/flatten.ts +0 -26
  115. package/lib/helpers/index.ts +0 -52
  116. package/lib/helpers/mask.ts +0 -52
  117. package/lib/hooks/useForm.ts +0 -548
  118. package/lib/hooks/usePosition.ts +0 -206
  119. package/lib/hooks/useWatch.ts +0 -41
  120. package/lib/hooks/useWatchError.ts +0 -20
  121. package/lib/index.ts +0 -184
  122. package/lib/styles/global.css +0 -57
  123. package/lib/types/button.ts +0 -83
  124. package/lib/types/checkbox.ts +0 -32
  125. package/lib/types/datepicker.ts +0 -165
  126. package/lib/types/dropdown.ts +0 -41
  127. package/lib/types/empty.ts +0 -8
  128. package/lib/types/form.ts +0 -179
  129. package/lib/types/index.ts +0 -38
  130. package/lib/types/input.ts +0 -72
  131. package/lib/types/menu.ts +0 -55
  132. package/lib/types/popover.ts +0 -16
  133. package/lib/types/radio.ts +0 -69
  134. package/lib/types/result.ts +0 -22
  135. package/lib/types/select.ts +0 -126
  136. package/lib/types/skeleton.ts +0 -62
  137. package/lib/types/switch.ts +0 -22
  138. package/lib/types/upload.ts +0 -67
  139. package/lib/utils/index.ts +0 -37
  140. package/lib/utils/lazy.ts +0 -17
  141. package/next.config.ts +0 -7
  142. package/rollup.config.js +0 -71
  143. package/src/app/favicon.ico +0 -0
  144. package/src/app/globals.css +0 -48
  145. package/src/app/layout.d.ts +0 -5
  146. package/src/app/layout.tsx +0 -16
  147. package/src/app/page.d.ts +0 -1
  148. package/src/app/page.tsx +0 -21
  149. package/tsconfig.json +0 -46
  150. /package/dist/{esm/types/components → components}/Button/Button.d.ts +0 -0
  151. /package/dist/{esm/types/components → components}/Button/index.d.ts +0 -0
  152. /package/dist/{esm/types/components → components}/Checkbox/Checkbox.d.ts +0 -0
  153. /package/dist/{esm/types/components → components}/Checkbox/index.d.ts +0 -0
  154. /package/dist/{esm/types/components → components}/ConditionalWrapper/index.d.ts +0 -0
  155. /package/dist/{esm/types/components → components}/DatePicker/RangePicker/index.d.ts +0 -0
  156. /package/dist/{esm/types/components → components}/DatePicker/TimePicker/TimePicker.d.ts +0 -0
  157. /package/dist/{esm/types/components → components}/DatePicker/TimePicker/index.d.ts +0 -0
  158. /package/dist/{esm/types/components → components}/DatePicker/index.d.ts +0 -0
  159. /package/dist/{esm/types/components → components}/Dropdown/index.d.ts +0 -0
  160. /package/dist/{esm/types/components → components}/Empty/index.d.ts +0 -0
  161. /package/dist/{esm/types/components → components}/Form/Form.d.ts +0 -0
  162. /package/dist/{esm/types/components → components}/Form/Item/index.d.ts +0 -0
  163. /package/dist/{esm/types/components → components}/Form/index.d.ts +0 -0
  164. /package/dist/{esm/types/components → components}/Icons/index.d.ts +0 -0
  165. /package/dist/{esm/types/components → components}/Input/Textarea/index.d.ts +0 -0
  166. /package/dist/{esm/types/components → components}/Input/index.d.ts +0 -0
  167. /package/dist/{esm/types/components → components}/Menu/Item/Item.d.ts +0 -0
  168. /package/dist/{esm/types/components → components}/Menu/Menu.d.ts +0 -0
  169. /package/dist/{esm/types/components → components}/Menu/SubMenu/SubMenu.d.ts +0 -0
  170. /package/dist/{esm/types/components → components}/Menu/index.d.ts +0 -0
  171. /package/dist/{esm/types/components → components}/Popover/index.d.ts +0 -0
  172. /package/dist/{esm/types/components → components}/Radio/Button/index.d.ts +0 -0
  173. /package/dist/{esm/types/components → components}/Radio/Group/index.d.ts +0 -0
  174. /package/dist/{esm/types/components → components}/Radio/index.d.ts +0 -0
  175. /package/dist/{esm/types/components → components}/Result/index.d.ts +0 -0
  176. /package/dist/{esm/types/components → components}/Select/Option/Option.d.ts +0 -0
  177. /package/dist/{esm/types/components → components}/Select/Option/index.d.ts +0 -0
  178. /package/dist/{esm/types/components → components}/Select/Select.d.ts +0 -0
  179. /package/dist/{esm/types/components → components}/Select/Tag/Tag.d.ts +0 -0
  180. /package/dist/{esm/types/components → components}/Select/Tag/index.d.ts +0 -0
  181. /package/dist/{esm/types/components → components}/Select/index.d.ts +0 -0
  182. /package/dist/{esm/types/components → components}/Skeleton/Avatar/Avatar.d.ts +0 -0
  183. /package/dist/{esm/types/components → components}/Skeleton/Avatar/index.d.ts +0 -0
  184. /package/dist/{esm/types/components → components}/Skeleton/Button/Button.d.ts +0 -0
  185. /package/dist/{esm/types/components → components}/Skeleton/Button/index.d.ts +0 -0
  186. /package/dist/{esm/types/components → components}/Skeleton/Image/Image.d.ts +0 -0
  187. /package/dist/{esm/types/components → components}/Skeleton/Image/index.d.ts +0 -0
  188. /package/dist/{esm/types/components → components}/Skeleton/Input/Input.d.ts +0 -0
  189. /package/dist/{esm/types/components → components}/Skeleton/Input/index.d.ts +0 -0
  190. /package/dist/{esm/types/components → components}/Skeleton/Skeleton.d.ts +0 -0
  191. /package/dist/{esm/types/components → components}/Skeleton/index.d.ts +0 -0
  192. /package/dist/{esm/types/components → components}/Switch/index.d.ts +0 -0
  193. /package/dist/{esm/types/components → components}/Upload/index.d.ts +0 -0
  194. /package/dist/{esm/types/helpers → helpers}/flatten.d.ts +0 -0
  195. /package/dist/{esm/types/helpers → helpers}/index.d.ts +0 -0
  196. /package/dist/{esm/types/helpers → helpers}/mask.d.ts +0 -0
  197. /package/dist/{esm/types/hooks → hooks}/useForm.d.ts +0 -0
  198. /package/dist/{esm/types/hooks → hooks}/usePosition.d.ts +0 -0
  199. /package/dist/{esm/types/hooks → hooks}/useWatch.d.ts +0 -0
  200. /package/dist/{esm/types/hooks → hooks}/useWatchError.d.ts +0 -0
  201. /package/dist/{esm/types/types → types}/button.d.ts +0 -0
  202. /package/dist/{esm/types/types → types}/checkbox.d.ts +0 -0
  203. /package/dist/{esm/types/types → types}/datepicker.d.ts +0 -0
  204. /package/dist/{esm/types/types → types}/dropdown.d.ts +0 -0
  205. /package/dist/{esm/types/types → types}/empty.d.ts +0 -0
  206. /package/dist/{esm/types/types → types}/form.d.ts +0 -0
  207. /package/dist/{esm/types/types → types}/index.d.ts +0 -0
  208. /package/dist/{esm/types/types → types}/input.d.ts +0 -0
  209. /package/dist/{esm/types/types → types}/menu.d.ts +0 -0
  210. /package/dist/{esm/types/types → types}/popover.d.ts +0 -0
  211. /package/dist/{esm/types/types → types}/radio.d.ts +0 -0
  212. /package/dist/{esm/types/types → types}/result.d.ts +0 -0
  213. /package/dist/{esm/types/types → types}/select.d.ts +0 -0
  214. /package/dist/{esm/types/types → types}/skeleton.d.ts +0 -0
  215. /package/dist/{esm/types/types → types}/switch.d.ts +0 -0
  216. /package/dist/{esm/types/types → types}/upload.d.ts +0 -0
  217. /package/dist/{esm/types/utils → utils}/index.d.ts +0 -0
  218. /package/dist/{esm/types/utils → utils}/lazy.d.ts +0 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1
+ This is a [React.js].
2
2
 
3
3
  ## Getting Started
4
4
 
@@ -13,24 +13,3 @@ pnpm dev
13
13
  # or
14
14
  bun dev
15
15
  ```
16
-
17
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
-
19
- You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
-
21
- This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
-
23
- ## Learn More
24
-
25
- To learn more about Next.js, take a look at the following resources:
26
-
27
- - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
- - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
-
30
- You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
-
32
- ## Deploy on Vercel
33
-
34
- The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
-
36
- Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { TDatePickerProps } from '../../types/datepicker';
3
2
  import './style.css';
4
3
  export declare const NUMBER_SIX = 6;
5
4
  export declare const MONTH_LENGTH = 11;
6
5
  export declare const NEXT_DAYS_COUNT_AS_CURRENT_MUNTH = 35;
7
- declare const DatePicker: ({ value, onChange, onCalendarChange, disabled, error, placeholder, prefixCls, noStyle, feedbackIcons, locale, className, placement, defaultValue, size, format, getPopupContainer, showToday, allowClear, disabledDate, suffixIcon, picker, prefix, defaultOpen, inputReadOnly, bordered, defaultPickerValue }: TDatePickerProps) => React.JSX.Element;
6
+ declare const DatePicker: ({ value, onChange, onCalendarChange, disabled, error, placeholder, prefixCls, noStyle, feedbackIcons, locale, className, placement, defaultValue, size, format, getPopupContainer, showToday, allowClear, disabledDate, suffixIcon, picker, prefix, defaultOpen, inputReadOnly, bordered, defaultPickerValue }: TDatePickerProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export default DatePicker;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { TRangePickerProps } from '../../../types/datepicker';
3
2
  import './style.css';
4
- declare const RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, onVisibleChange, onCalendarChange, style, className, separator, defaultValue, bordered, getPopupContainer, placement }: TRangePickerProps) => React.JSX.Element;
3
+ declare const RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, onVisibleChange, onCalendarChange, style, className, separator, defaultValue, bordered, getPopupContainer, placement }: TRangePickerProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default RangePicker;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { DropdownProps } from '../../types/dropdown';
3
2
  import './style.css';
4
- declare const Dropdown: ({ children, menu, open: controlledOpen, defaultOpen, onVisibleChange, trigger, placement, overlayClassName, overlayStyle, getPopupContainer, destroyOnHidden, disabled, arrow, autoFocus, popupRender, className, overlay, prefixCls, }: DropdownProps) => React.JSX.Element;
3
+ declare const Dropdown: ({ children, menu, open: controlledOpen, defaultOpen, onVisibleChange, trigger, placement, overlayClassName, overlayStyle, getPopupContainer, destroyOnHidden, disabled, arrow, autoFocus, popupRender, className, overlay, prefixCls, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Dropdown;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { EmptyContentProps } from '../../types/empty';
3
2
  import './style.css';
4
- declare const EmptyContent: ({ icon, style, className, title, description, prefixCls, prefixClsV3 }: EmptyContentProps) => React.JSX.Element;
3
+ declare const EmptyContent: ({ icon, style, className, title, description, prefixCls, prefixClsV3 }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default EmptyContent;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { FormItemProps } from '../../../types/form';
3
2
  import './style.css';
4
3
  declare const FormItem: {
5
- ({ prefixCls, prefixClsV3, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, hideLabel, removeErrorMessageHeight, ...props }: FormItemProps): React.JSX.Element;
4
+ ({ prefixCls, prefixClsV3, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, hideLabel, removeErrorMessageHeight, ...props }: FormItemProps): import("react/jsx-runtime").JSX.Element;
6
5
  displayName: string;
7
6
  };
8
7
  export default FormItem;
@@ -0,0 +1,18 @@
1
+ import { ResultStatusType } from '../../types/result';
2
+ declare const ClearIcon: () => import("react/jsx-runtime").JSX.Element;
3
+ declare const ArrowIcon: ({ isOpen }: {
4
+ isOpen: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ declare const LoadingIcon: () => import("react/jsx-runtime").JSX.Element;
7
+ declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
8
+ declare const SearchIcon: () => import("react/jsx-runtime").JSX.Element;
9
+ declare const CalendarIcon: () => import("react/jsx-runtime").JSX.Element;
10
+ declare const SuccessIcon: () => import("react/jsx-runtime").JSX.Element;
11
+ declare const ErrorIcon: () => import("react/jsx-runtime").JSX.Element;
12
+ declare const DateDistanceIcon: () => import("react/jsx-runtime").JSX.Element;
13
+ declare const TimeIcon: () => import("react/jsx-runtime").JSX.Element;
14
+ declare const StampleIcon: () => import("react/jsx-runtime").JSX.Element;
15
+ declare const TrashIcon: () => import("react/jsx-runtime").JSX.Element;
16
+ declare const SpinerIcon: () => import("react/jsx-runtime").JSX.Element;
17
+ declare const renderDefaultIcon: (status: ResultStatusType) => import("react/jsx-runtime").JSX.Element | null;
18
+ export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon, renderDefaultIcon };
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { InputProps } from '../../types/input';
3
2
  import Textarea from './Textarea/Textarea';
4
3
  import './style.css';
5
4
  declare const InputComponent: {
6
- ({ size, error, suffix, prefix, addonAfter, addonBefore, onPressEnter, disabled, allowClear, prefixCls, prefixClsV3, className, value, iconRender, noStyle, feedbackIcons, mask, maskChar, maskRegex, __injected, defaultValue, child, ref, ...props }: InputProps): React.JSX.Element;
5
+ ({ size, error, suffix, prefix, addonAfter, addonBefore, onPressEnter, disabled, allowClear, prefixCls, prefixClsV3, className, value, iconRender, noStyle, feedbackIcons, mask, maskChar, maskRegex, __injected, defaultValue, child, ref, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
7
6
  displayName: string;
8
7
  };
9
8
  declare const Input: typeof InputComponent & {
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { TextareaProps } from '../../../types/input';
3
2
  import './style.css';
4
3
  declare const Textarea: {
5
- ({ prefixCls, prefixClsV3, value, className, style, autoSize, onPressEnter, onResize, styles, bordered, size, status, rootClassName, variant, error, allowClear, ref, ...props }: TextareaProps): React.JSX.Element;
4
+ ({ prefixCls, prefixClsV3, value, className, style, autoSize, onPressEnter, onResize, styles, bordered, size, status, rootClassName, variant, error, allowClear, ref, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
6
5
  displayName: string;
7
6
  };
8
7
  export default Textarea;
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  import { PopoverProps } from "../../types/popover";
3
2
  import './style.css';
4
- declare const Popover: ({ prefixCls, content, children, trigger, placement, open, visible, title, style, overlayClassName, overlayStyle, onVisibleChange, getPopupContainer }: PopoverProps) => React.JSX.Element;
3
+ declare const Popover: ({ prefixCls, content, children, trigger, placement, open, visible, title, style, overlayClassName, overlayStyle, onVisibleChange, getPopupContainer }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Popover;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { RadioButtonProps } from '../../../types/radio';
3
2
  import './style.css';
4
- declare const RadioButton: ({ prefixCls, prefixClsV3, className, checked, disabled, children, size, ...props }: RadioButtonProps) => React.JSX.Element;
3
+ declare const RadioButton: ({ prefixCls, prefixClsV3, className, checked, disabled, children, size, ...props }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default RadioButton;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { RadioGroupProps } from '../../../types/radio';
3
2
  import './style.css';
4
- declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, prefixClsV3, className, options, children, ...props }: RadioGroupProps) => React.JSX.Element;
3
+ declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, prefixClsV3, className, options, children, ...props }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default RadioGroup;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { RadioProps } from '../../types/radio';
3
2
  import './style.css';
4
3
  declare const Radio: {
5
- ({ prefixCls, className, value, onChange, onClick, disabled, children, name, title, defaultChecked, checked, onBlur, onFocus, onMouseEnter, onMouseLeave, noStyle, ref }: RadioProps): React.JSX.Element;
4
+ ({ prefixCls, className, value, onChange, onClick, disabled, children, name, title, defaultChecked, checked, onBlur, onFocus, onMouseEnter, onMouseLeave, noStyle, ref }: RadioProps): import("react/jsx-runtime").JSX.Element;
6
5
  displayName: string;
7
6
  };
8
7
  export default Radio;
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  import { ResultProps } from "../../types/result";
3
2
  import './style.css';
4
- declare const Result: ({ icon, status, title, subTitle, extra, prefixCls, className, style, children, }: ResultProps) => React.JSX.Element;
3
+ declare const Result: ({ icon, status, title, subTitle, extra, prefixCls, className, style, children, }: ResultProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Result;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { SwitchProps } from '../../types/switch';
3
2
  import './index.css';
4
3
  declare const Switch: {
5
- ({ prefixCls, prefixClsV3, checked, onChange, onClick, disabled, className, style, defaultChecked, value, controlled }: SwitchProps): React.JSX.Element;
4
+ ({ prefixCls, prefixClsV3, checked, onChange, onClick, disabled, className, style, defaultChecked, value, controlled }: SwitchProps): import("react/jsx-runtime").JSX.Element;
6
5
  displayName: string;
7
6
  };
8
7
  export default Switch;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { UploadProps } from '../../types/upload';
3
2
  import './style.css';
4
- declare const Upload: ({ prefixCls, prefixClsV3, multiple, style, className, onChange, action, name, method, headers, directory, beforeUpload, rootClassName, onRemove, disabled, withCredentials, openFileDialogOnClick, maxCount, fileList: controlledFileList, customRequest, accept, listType, showUploadList, children, noStyle, defaultFileList }: UploadProps) => React.JSX.Element;
3
+ declare const Upload: ({ prefixCls, prefixClsV3, multiple, style, className, onChange, action, name, method, headers, directory, beforeUpload, rootClassName, onRemove, disabled, withCredentials, openFileDialogOnClick, maxCount, fileList: controlledFileList, customRequest, accept, listType, showUploadList, children, noStyle, defaultFileList }: UploadProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Upload;
@@ -1,50 +0,0 @@
1
- import './styles/global.css';
2
- declare const Button: import("react").ComponentType<import("@/types/button").ButtonProps>;
3
- declare const Checkbox: import("react").ComponentType<import("@/types/checkbox").CheckboxProps>;
4
- declare const Switch: import("react").ComponentType<import("./types/switch").SwitchProps>;
5
- declare const Empty: import("react").ComponentType<import("./types/empty").EmptyContentProps>;
6
- declare const Upload: import("react").ComponentType<import("@/types/upload").UploadProps>;
7
- declare const DatePicker: import("react").ComponentType<import("@/types/datepicker").TDatePickerProps>;
8
- declare const RangePicker: import("react").ComponentType<import("@/types/datepicker").TRangePickerProps>;
9
- declare const TimePicker: import("react").ComponentType<import("@/types/datepicker").TimePickerProps>;
10
- declare const Form: import("react").ComponentType<import("@/types/form").FormProps>;
11
- declare const FormItem: import("react").ComponentType<import("@/types/form").FormItemProps>;
12
- declare const Input: import("react").ComponentType<import("@/types/input").InputProps>;
13
- declare const Textarea: import("react").ComponentType<import("@/types/input").TextareaProps>;
14
- declare const Radio: import("react").ComponentType<import("@/types/radio").RadioProps>;
15
- declare const RadioButton: import("react").ComponentType<import("@/types/radio").RadioButtonProps>;
16
- declare const RadioGroup: import("react").ComponentType<import("@/types/radio").RadioGroupProps>;
17
- declare const Select: import("react").ComponentType<import("@/types/select").SelectProps>;
18
- declare const Option: import("react").ComponentType<import("@/types/select").OptionProps>;
19
- declare const Tag: import("react").ComponentType<import("@/types/select").CustomTagProps>;
20
- declare const Skeleton: import("react").ComponentType<import("./types/skeleton").SkeletonProps>;
21
- declare const SkeletonAvatar: import("react").ComponentType<import("./types/skeleton").SkeletonAvatarProps>;
22
- declare const SkeletonButton: import("react").ComponentType<import("./types/skeleton").SkeletonButtonProps>;
23
- declare const SkeletonImage: import("react").ComponentType<import("./types/skeleton").SkeletonImageProps>;
24
- declare const SkeletonInput: import("react").ComponentType<import("./types/skeleton").SkeletonInputProps>;
25
- declare const Menu: import("react").ComponentType<import("@/types/menu").MenuProps>;
26
- declare const MenuItem: import("react").ComponentType<import("@/types/menu").ItemType>;
27
- declare const MenuSubMenu: import("react").ComponentType<import("@/types/menu").SubMenuItem>;
28
- declare const Dropdown: import("react").ComponentType<import("@/types/dropdown").DropdownProps>;
29
- declare const Popover: import("react").ComponentType<import("@/types/popover").PopoverProps>;
30
- declare const Result: import("react").ComponentType<import("@/types/result").ResultProps>;
31
- export { Button, Checkbox, Empty, DatePicker, RangePicker, TimePicker, Form, FormItem, Input, Textarea, Radio, RadioButton, RadioGroup, Select, Option, Tag, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, Upload, Switch, Menu, MenuItem, MenuSubMenu, Dropdown, Popover, Result };
32
- export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon, } from '@/components/Icons';
33
- export { useForm } from '@/hooks/useForm';
34
- export { useWatch } from '@/hooks/useWatch';
35
- export type { FormInstance, RuleObject, RuleRender, FieldData, FieldInstancesInputRef, FieldError, FormProps, FormItemChildComponentProps } from '@/types/form';
36
- export type { DefaultProps, TargetProps, RuleTypes, RuleType, MouseEventHandlerSelect, SyntheticBaseEvent, Placement } from '@/types';
37
- export type { CheckboxProps } from '@/types/checkbox';
38
- export type { InputProps, TextareaProps } from '@/types/input';
39
- export type { PopoverProps } from '@/types/popover';
40
- export type { ButtonType, ButtonProps, BaseButtonProps } from '@/types/button';
41
- export type { ItemType, MenuProps, SubMenuItem } from '@/types/menu';
42
- export type { DropdownProps, DropdownItemType, } from '@/types/dropdown';
43
- export type { ResultProps, ResultStatusType } from '@/types/result';
44
- export type { RadioProps, RadioGroupProps, RadioButtonProps } from '@/types/radio';
45
- export type { TDatePickerProps, TRangePickerProps, TimePickerProps } from '@/types/datepicker';
46
- export type { SelectProps, OptionType, OptionProps, CustomTagProps, TagProps, DisplayValueType } from '@/types/select';
47
- export type { RcFile, UploadFile, UploadProps, UploadChangeParam } from '@/types/upload';
48
- export { FormContext } from '@/components/Form/Form';
49
- export { clsx, createArray, parseValue } from '@/helpers';
50
- export { flattenChildren } from '@/helpers/flatten';
package/dist/index.d.ts CHANGED
@@ -1,145 +1,2 @@
1
- import * as __types_result from '@/types/result';
2
- export { ResultProps, ResultStatusType } from '@/types/result';
3
- import * as __types_popover from '@/types/popover';
4
- export { PopoverProps } from '@/types/popover';
5
- import * as __types_dropdown from '@/types/dropdown';
6
- export { DropdownItemType, DropdownProps } from '@/types/dropdown';
7
- import * as __types_menu from '@/types/menu';
8
- export { ItemType, MenuProps, SubMenuItem } from '@/types/menu';
9
- import * as react from 'react';
10
- import { CSSProperties, ReactNode } from 'react';
11
- import * as __types_select from '@/types/select';
12
- export { CustomTagProps, DisplayValueType, OptionProps, OptionType, SelectProps, TagProps } from '@/types/select';
13
- import * as __types_radio from '@/types/radio';
14
- export { RadioButtonProps, RadioGroupProps, RadioProps } from '@/types/radio';
15
- import * as __types_input from '@/types/input';
16
- export { InputProps, TextareaProps } from '@/types/input';
17
- import * as __types_form from '@/types/form';
18
- export { FieldData, FieldError, FieldInstancesInputRef, FormInstance, FormItemChildComponentProps, FormProps, RuleObject, RuleRender } from '@/types/form';
19
- import * as __types_datepicker from '@/types/datepicker';
20
- export { TDatePickerProps, TRangePickerProps, TimePickerProps } from '@/types/datepicker';
21
- import * as __types_upload from '@/types/upload';
22
- export { RcFile, UploadChangeParam, UploadFile, UploadProps } from '@/types/upload';
23
- import * as __types_checkbox from '@/types/checkbox';
24
- export { CheckboxProps } from '@/types/checkbox';
25
- import * as __types_button from '@/types/button';
26
- export { BaseButtonProps, ButtonProps, ButtonType } from '@/types/button';
27
- export { ArrowIcon, CalendarIcon, CheckIcon, ClearIcon, DateDistanceIcon, ErrorIcon, LoadingIcon, SearchIcon, SpinerIcon, StampleIcon, SuccessIcon, TimeIcon, TrashIcon } from '@/components/Icons';
28
- export { useForm } from '@/hooks/useForm';
29
- export { useWatch } from '@/hooks/useWatch';
30
- export { DefaultProps, MouseEventHandlerSelect, Placement, RuleType, RuleTypes, SyntheticBaseEvent, TargetProps } from '@/types';
31
- export { FormContext } from '@/components/Form/Form';
32
- export { clsx, createArray, parseValue } from '@/helpers';
33
- export { flattenChildren } from '@/helpers/flatten';
34
1
 
35
- interface DefaultProps {
36
- prefixCls?: string;
37
- prefixClsV3?: string;
38
- className?: string;
39
- style?: CSSProperties;
40
- noStyle?: boolean;
41
- }
42
-
43
- declare type widthUnit = number | string;
44
- interface SkeletonElementProps {
45
- className?: string;
46
- style?: CSSProperties;
47
- size?: 'large' | 'small' | 'default' | number;
48
- shape?: 'circle' | 'square' | 'round';
49
- active?: boolean;
50
- }
51
- type SkeletonProps = DefaultProps & {
52
- active?: boolean;
53
- loading?: boolean;
54
- className?: string;
55
- style?: CSSProperties;
56
- children?: ReactNode;
57
- avatar?: SkeletonAvatarProps | boolean;
58
- title?: SkeletonTitleProps | boolean;
59
- paragraph?: SkeletonParagraphProps | boolean;
60
- round?: boolean;
61
- teamLogo?: boolean;
62
- };
63
- interface SkeletonTitleProps {
64
- className?: string;
65
- style?: CSSProperties;
66
- width?: number | string;
67
- }
68
- interface SkeletonParagraphProps {
69
- className?: string;
70
- style?: CSSProperties;
71
- width?: widthUnit | Array<widthUnit>;
72
- rows?: number;
73
- }
74
- type SkeletonAvatarProps = Omit<SkeletonElementProps, 'shape'> & DefaultProps & {
75
- shape?: 'circle' | 'square';
76
- active?: boolean;
77
- applyElementStyle?: boolean;
78
- wrapperStyle?: CSSProperties;
79
- };
80
- type SkeletonImageProps = DefaultProps & Omit<SkeletonElementProps, 'size' | 'shape' | 'active'>;
81
- type SkeletonInputProps = Omit<SkeletonElementProps, 'size' | 'shape'> & DefaultProps & {
82
- size?: 'large' | 'small' | 'default';
83
- block?: boolean;
84
- };
85
- type SkeletonButtonProps = Omit<SkeletonElementProps, 'size'> & DefaultProps & {
86
- size?: 'large' | 'small' | 'default';
87
- block?: boolean;
88
- applyElementStyle?: boolean;
89
- };
90
-
91
- type EmptyContentProps = DefaultProps & {
92
- title?: string;
93
- description?: string;
94
- icon?: ReactNode;
95
- };
96
-
97
- type SwitchProps = DefaultProps & {
98
- disabled?: boolean;
99
- onChange?: (value: boolean) => void;
100
- onClick?: (value: boolean) => void;
101
- value?: boolean;
102
- tabIndex?: number;
103
- name?: string;
104
- children?: ReactNode;
105
- id?: string;
106
- autoFocus?: boolean;
107
- type?: string;
108
- skipGroup?: boolean;
109
- required?: boolean;
110
- defaultChecked?: boolean;
111
- checked?: boolean;
112
- controlled?: boolean;
113
- };
114
-
115
- declare const Button: react.ComponentType<__types_button.ButtonProps>;
116
- declare const Checkbox: react.ComponentType<__types_checkbox.CheckboxProps>;
117
- declare const Switch: react.ComponentType<SwitchProps>;
118
- declare const Empty: react.ComponentType<EmptyContentProps>;
119
- declare const Upload: react.ComponentType<__types_upload.UploadProps>;
120
- declare const DatePicker: react.ComponentType<__types_datepicker.TDatePickerProps>;
121
- declare const RangePicker: react.ComponentType<__types_datepicker.TRangePickerProps>;
122
- declare const TimePicker: react.ComponentType<__types_datepicker.TimePickerProps>;
123
- declare const Form: react.ComponentType<__types_form.FormProps>;
124
- declare const FormItem: react.ComponentType<__types_form.FormItemProps>;
125
- declare const Input: react.ComponentType<__types_input.InputProps>;
126
- declare const Textarea: react.ComponentType<__types_input.TextareaProps>;
127
- declare const Radio: react.ComponentType<__types_radio.RadioProps>;
128
- declare const RadioButton: react.ComponentType<__types_radio.RadioButtonProps>;
129
- declare const RadioGroup: react.ComponentType<__types_radio.RadioGroupProps>;
130
- declare const Select: react.ComponentType<__types_select.SelectProps>;
131
- declare const Option: react.ComponentType<__types_select.OptionProps>;
132
- declare const Tag: react.ComponentType<__types_select.CustomTagProps>;
133
- declare const Skeleton: react.ComponentType<SkeletonProps>;
134
- declare const SkeletonAvatar: react.ComponentType<SkeletonAvatarProps>;
135
- declare const SkeletonButton: react.ComponentType<SkeletonButtonProps>;
136
- declare const SkeletonImage: react.ComponentType<SkeletonImageProps>;
137
- declare const SkeletonInput: react.ComponentType<SkeletonInputProps>;
138
- declare const Menu: react.ComponentType<__types_menu.MenuProps>;
139
- declare const MenuItem: react.ComponentType<__types_menu.ItemType>;
140
- declare const MenuSubMenu: react.ComponentType<__types_menu.SubMenuItem>;
141
- declare const Dropdown: react.ComponentType<__types_dropdown.DropdownProps>;
142
- declare const Popover: react.ComponentType<__types_popover.PopoverProps>;
143
- declare const Result: react.ComponentType<__types_result.ResultProps>;
144
-
145
- export { Button, Checkbox, DatePicker, Dropdown, Empty, Form, FormItem, Input, Menu, MenuItem, MenuSubMenu, Option, Popover, Radio, RadioButton, RadioGroup, RangePicker, Result, Select, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, Switch, Tag, Textarea, TimePicker, Upload };
2
+ export { }