@yuntijs/ui 1.0.0-beta.8 → 1.0.0-beta.80

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 (239) hide show
  1. package/es/Alert/index.d.ts +13 -0
  2. package/es/Alert/index.js +25 -0
  3. package/es/Alert/style.d.ts +4 -0
  4. package/es/Alert/style.js +13 -0
  5. package/es/App/index.d.ts +7 -0
  6. package/es/App/index.js +19 -0
  7. package/es/ButtonGroup/index.d.ts +24 -0
  8. package/es/ButtonGroup/index.js +66 -0
  9. package/es/Card/index.d.ts +1 -0
  10. package/es/Card/index.js +1 -0
  11. package/es/CardList/Item/index.d.ts +4 -0
  12. package/es/CardList/Item/index.js +43 -0
  13. package/es/CardList/Item/style.d.ts +0 -0
  14. package/es/CardList/Item/style.js +0 -0
  15. package/es/CardList/index.d.ts +2 -0
  16. package/es/CardList/index.js +39 -0
  17. package/es/ChatInputArea/desktop/ChatInputArea.d.ts +19 -0
  18. package/es/ChatInputArea/desktop/ChatInputArea.js +72 -0
  19. package/es/ChatInputArea/index.d.ts +6 -0
  20. package/es/ChatInputArea/index.js +6 -0
  21. package/es/ChatItem/components/MessageContent.d.ts +21 -0
  22. package/es/ChatItem/components/MessageContent.js +59 -0
  23. package/es/ChatItem/index.d.ts +4 -0
  24. package/es/ChatItem/index.js +120 -0
  25. package/es/ChatItem/style.d.ts +24 -0
  26. package/es/ChatItem/style.js +38 -0
  27. package/es/ChatItem/type.d.ts +82 -0
  28. package/es/ChatItem/type.js +1 -0
  29. package/es/CollapseGroup/index.d.ts +4 -0
  30. package/es/CollapseGroup/index.js +23 -0
  31. package/es/CollapseGroup/style.d.ts +3 -0
  32. package/es/CollapseGroup/style.js +11 -0
  33. package/es/ConfigProvider/index.d.ts +3 -0
  34. package/es/ConfigProvider/index.js +17 -11
  35. package/es/Descriptions/index.d.ts +14 -0
  36. package/es/Descriptions/index.js +31 -0
  37. package/es/Descriptions/style.d.ts +4 -0
  38. package/es/Descriptions/style.js +24 -0
  39. package/es/Divider/index.d.ts +38 -0
  40. package/es/Divider/index.js +66 -0
  41. package/es/Divider/style.d.ts +3 -0
  42. package/es/Divider/style.js +12 -0
  43. package/es/DragPanel/index.d.ts +10 -0
  44. package/es/DragPanel/index.js +97 -0
  45. package/es/DragPanel/style.d.ts +7 -0
  46. package/es/DragPanel/style.js +15 -0
  47. package/es/Drawer/index.d.ts +13 -0
  48. package/es/Drawer/index.js +20 -0
  49. package/es/Drawer/style.d.ts +4 -0
  50. package/es/Drawer/style.js +16 -0
  51. package/es/Dropdown/index.d.ts +14 -0
  52. package/es/Dropdown/index.js +59 -0
  53. package/es/Dropdown/style.d.ts +7 -0
  54. package/es/Dropdown/style.js +13 -0
  55. package/es/EditableMessage/index.d.ts +75 -0
  56. package/es/EditableMessage/index.js +99 -0
  57. package/es/Form/collapse-list/index.d.ts +40 -0
  58. package/es/Form/collapse-list/index.js +209 -0
  59. package/es/Form/collapse-list/style.d.ts +5 -0
  60. package/es/Form/collapse-list/style.js +13 -0
  61. package/es/Form/index.d.ts +8 -0
  62. package/es/Form/index.js +5 -0
  63. package/es/FormHelper/autoFocus.d.ts +10 -0
  64. package/es/FormHelper/autoFocus.js +38 -0
  65. package/es/FormHelper/index.d.ts +13 -0
  66. package/es/FormHelper/index.js +41 -0
  67. package/es/Highlighter/FullFeatured.d.ts +18 -0
  68. package/es/Highlighter/FullFeatured.js +102 -0
  69. package/es/Highlighter/SyntaxHighlighter/index.d.ts +7 -0
  70. package/es/Highlighter/SyntaxHighlighter/index.js +51 -0
  71. package/es/Highlighter/SyntaxHighlighter/style.d.ts +5 -0
  72. package/es/Highlighter/SyntaxHighlighter/style.js +16 -0
  73. package/es/Highlighter/index.d.ts +50 -0
  74. package/es/Highlighter/index.js +77 -0
  75. package/es/Highlighter/style.d.ts +9 -0
  76. package/es/Highlighter/style.js +23 -0
  77. package/es/Highlighter/theme.d.ts +1 -0
  78. package/es/Highlighter/theme.js +1661 -0
  79. package/es/LogViewer/index.d.ts +10 -0
  80. package/es/LogViewer/index.js +141 -0
  81. package/es/LogViewer/style.d.ts +6 -0
  82. package/es/LogViewer/style.js +16 -0
  83. package/es/LogViewer/types.d.ts +235 -0
  84. package/es/LogViewer/types.js +1 -0
  85. package/es/Mentions/constants.d.ts +6 -0
  86. package/es/Mentions/constants.js +28 -0
  87. package/es/Mentions/hooks.d.ts +20 -0
  88. package/es/Mentions/hooks.js +133 -0
  89. package/es/Mentions/index.d.ts +19 -0
  90. package/es/Mentions/index.js +136 -0
  91. package/es/Mentions/plugins/custom-text/node.d.ts +11 -0
  92. package/es/Mentions/plugins/custom-text/node.js +72 -0
  93. package/es/Mentions/plugins/mention-node/component.d.ts +6 -0
  94. package/es/Mentions/plugins/mention-node/component.js +64 -0
  95. package/es/Mentions/plugins/mention-node/index.d.ts +9 -0
  96. package/es/Mentions/plugins/mention-node/index.js +32 -0
  97. package/es/Mentions/plugins/mention-node/node.d.ts +23 -0
  98. package/es/Mentions/plugins/mention-node/node.js +97 -0
  99. package/es/Mentions/plugins/mention-node/replacement.d.ts +5 -0
  100. package/es/Mentions/plugins/mention-node/replacement.js +42 -0
  101. package/es/Mentions/plugins/mention-node/style.d.ts +8 -0
  102. package/es/Mentions/plugins/mention-node/style.js +47 -0
  103. package/es/Mentions/plugins/mention-node/utils.d.ts +4 -0
  104. package/es/Mentions/plugins/mention-node/utils.js +5 -0
  105. package/es/Mentions/plugins/mention-picker/hooks.d.ts +5 -0
  106. package/es/Mentions/plugins/mention-picker/hooks.js +39 -0
  107. package/es/Mentions/plugins/mention-picker/index.d.ts +36 -0
  108. package/es/Mentions/plugins/mention-picker/index.js +87 -0
  109. package/es/Mentions/plugins/mention-picker/menu-item.d.ts +11 -0
  110. package/es/Mentions/plugins/mention-picker/menu-item.js +71 -0
  111. package/es/Mentions/plugins/mention-picker/menu.d.ts +9 -0
  112. package/es/Mentions/plugins/mention-picker/menu.js +30 -0
  113. package/es/Mentions/plugins/mention-picker/style.d.ts +11 -0
  114. package/es/Mentions/plugins/mention-picker/style.js +19 -0
  115. package/es/Mentions/plugins/mention-picker/utils.d.ts +22 -0
  116. package/es/Mentions/plugins/mention-picker/utils.js +39 -0
  117. package/es/Mentions/plugins/on-blur-or-focus-block.d.ts +7 -0
  118. package/es/Mentions/plugins/on-blur-or-focus-block.js +36 -0
  119. package/es/Mentions/provider.d.ts +12 -0
  120. package/es/Mentions/provider.js +15 -0
  121. package/es/Mentions/style.d.ts +11 -0
  122. package/es/Mentions/style.js +22 -0
  123. package/es/Mentions/types.d.ts +17 -0
  124. package/es/Mentions/types.js +1 -0
  125. package/es/Mentions/utils.d.ts +9 -0
  126. package/es/Mentions/utils.js +95 -0
  127. package/es/Modal/index.d.ts +19 -0
  128. package/es/Modal/index.js +36 -0
  129. package/es/Modal/style.d.ts +4 -0
  130. package/es/Modal/style.js +17 -0
  131. package/es/MonacoEditor/base/controller.d.ts +17 -0
  132. package/es/MonacoEditor/base/controller.js +49 -0
  133. package/es/MonacoEditor/base/helper.d.ts +65 -0
  134. package/es/MonacoEditor/base/helper.js +324 -0
  135. package/es/MonacoEditor/base/index.d.ts +35 -0
  136. package/es/MonacoEditor/base/index.js +236 -0
  137. package/es/MonacoEditor/base/monaco.d.ts +6 -0
  138. package/es/MonacoEditor/base/monaco.js +64 -0
  139. package/es/MonacoEditor/base/style.d.ts +12 -0
  140. package/es/MonacoEditor/base/style.js +26 -0
  141. package/es/MonacoEditor/index.d.ts +2 -4
  142. package/es/MonacoEditor/index.js +26 -62
  143. package/es/MonacoEditor/style.js +3 -2
  144. package/es/Page/Breadcrumb/index.d.ts +9 -0
  145. package/es/Page/Breadcrumb/index.js +56 -0
  146. package/es/Page/Content/index.d.ts +4 -0
  147. package/es/Page/Content/index.js +59 -0
  148. package/es/Page/Content/style.d.ts +3 -0
  149. package/es/Page/Content/style.js +12 -0
  150. package/es/Page/Footer/index.d.ts +2 -0
  151. package/es/Page/Footer/index.js +6 -0
  152. package/es/Page/Header/Icon.d.ts +17 -0
  153. package/es/Page/Header/Icon.js +42 -0
  154. package/es/Page/Header/index.d.ts +43 -0
  155. package/es/Page/Header/index.js +202 -0
  156. package/es/Page/Header/style.d.ts +12 -0
  157. package/es/Page/Header/style.js +21 -0
  158. package/es/Page/Page.d.ts +9 -0
  159. package/es/Page/Page.js +49 -0
  160. package/es/Page/PageContext.d.ts +15 -0
  161. package/es/Page/PageContext.js +21 -0
  162. package/es/Page/Title/index.d.ts +5 -0
  163. package/es/Page/Title/index.js +18 -0
  164. package/es/Page/Title/style.d.ts +3 -0
  165. package/es/Page/Title/style.js +10 -0
  166. package/es/Page/index.d.ts +18 -0
  167. package/es/Page/index.js +15 -0
  168. package/es/Page/style.d.ts +3 -0
  169. package/es/Page/style.js +10 -0
  170. package/es/ProCard/Card/index.d.ts +6 -0
  171. package/es/ProCard/Card/index.js +25 -0
  172. package/es/ProCard/Card/style.d.ts +7 -0
  173. package/es/ProCard/Card/style.js +15 -0
  174. package/es/ProCard/Content/index.d.ts +4 -0
  175. package/es/ProCard/Content/index.js +24 -0
  176. package/es/ProCard/Content/style.d.ts +3 -0
  177. package/es/ProCard/Content/style.js +10 -0
  178. package/es/ProCard/Descriptions/index.d.ts +4 -0
  179. package/es/ProCard/Descriptions/index.js +28 -0
  180. package/es/ProCard/Descriptions/style.d.ts +3 -0
  181. package/es/ProCard/Descriptions/style.js +12 -0
  182. package/es/ProCard/Header/index.d.ts +15 -0
  183. package/es/ProCard/Header/index.js +86 -0
  184. package/es/ProCard/Header/style.d.ts +12 -0
  185. package/es/ProCard/Header/style.js +21 -0
  186. package/es/ProCard/index.d.ts +13 -0
  187. package/es/ProCard/index.js +8 -0
  188. package/es/Radio/index.d.ts +36 -0
  189. package/es/Radio/index.js +26 -0
  190. package/es/Radio/style.d.ts +4 -0
  191. package/es/Radio/style.js +66 -0
  192. package/es/SelectCard/index.d.ts +33 -0
  193. package/es/SelectCard/index.js +132 -0
  194. package/es/SelectCard/style.d.ts +10 -0
  195. package/es/SelectCard/style.js +42 -0
  196. package/es/SliderInput/index.js +2 -2
  197. package/es/Status/index.d.ts +7 -0
  198. package/es/Status/index.js +39 -0
  199. package/es/Status/style.d.ts +4 -0
  200. package/es/Status/style.js +14 -0
  201. package/es/Table/collapse/index.d.ts +8 -0
  202. package/es/Table/collapse/index.js +39 -0
  203. package/es/Table/collapse/style.d.ts +3 -0
  204. package/es/Table/collapse/style.js +11 -0
  205. package/es/Table/index.d.ts +20 -0
  206. package/es/Table/index.js +56 -0
  207. package/es/Typography/index.d.ts +32 -0
  208. package/es/Typography/index.js +77 -0
  209. package/es/WaveformIcon/index.d.ts +9 -0
  210. package/es/WaveformIcon/index.js +51 -0
  211. package/es/hooks/languageMap.d.ts +1 -0
  212. package/es/hooks/languageMap.js +1 -0
  213. package/es/hooks/useHighlight.d.ts +5 -0
  214. package/es/hooks/useHighlight.js +78 -0
  215. package/es/index.d.ts +38 -1
  216. package/es/index.js +52 -1
  217. package/es/notification/index.d.ts +24 -0
  218. package/es/notification/index.js +237 -0
  219. package/es/notification/style.d.ts +2 -0
  220. package/es/notification/style.js +28 -0
  221. package/es/styles/colors/colors.d.ts +39 -0
  222. package/es/styles/colors/colors.js +86 -0
  223. package/es/styles/colors/generateColorPalette.d.ts +11 -0
  224. package/es/styles/colors/generateColorPalette.js +31 -0
  225. package/es/styles/colors/neutralColors.d.ts +9 -0
  226. package/es/styles/colors/neutralColors.js +32 -0
  227. package/es/styles/index.d.ts +4 -0
  228. package/es/styles/index.js +4 -0
  229. package/es/useSpeechSynthes/const/polyfill.d.ts +3 -0
  230. package/es/useSpeechSynthes/const/polyfill.js +21 -0
  231. package/es/useSpeechSynthes/index.d.ts +13 -0
  232. package/es/useSpeechSynthes/index.js +69 -0
  233. package/es/utils/constants.d.ts +1 -0
  234. package/es/utils/constants.js +1 -0
  235. package/es/utils/tools.d.ts +1 -0
  236. package/es/utils/tools.js +1 -0
  237. package/package.json +30 -9
  238. package/umd/index.min.js +1 -1
  239. package/umd/index.min.js.map +1 -1
@@ -0,0 +1,59 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["className", "children"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import { Button, Flex, Result, Skeleton } from 'antd';
7
+ import React, { useCallback, useContext } from 'react';
8
+ import { PageContext } from "../PageContext";
9
+ import { useStyles } from "./style";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ var STATUS_TITLE_MAP = {
12
+ '403': 'Sorry, you are not authorized to access this page.',
13
+ '404': 'Sorry, the page you visited does not exist.',
14
+ '500': 'Sorry, something went wrong.'
15
+ };
16
+ export var PageContent = function PageContent(props) {
17
+ var className = props.className,
18
+ children = props.children,
19
+ otherProps = _objectWithoutProperties(props, _excluded);
20
+ var _useStyles = useStyles(),
21
+ styles = _useStyles.styles,
22
+ cx = _useStyles.cx;
23
+ var _useContext = useContext(PageContext),
24
+ loading = _useContext.loading,
25
+ breadcrumb = _useContext.breadcrumb,
26
+ Link = _useContext.Link,
27
+ status = _useContext.status;
28
+ var renderChildren = useCallback(function () {
29
+ if (status) {
30
+ var _breadcrumb$items;
31
+ return /*#__PURE__*/_jsx(Result, {
32
+ extra: /*#__PURE__*/_jsx(Link, {
33
+ to: breadcrumb === null || breadcrumb === void 0 || (_breadcrumb$items = breadcrumb.items) === null || _breadcrumb$items === void 0 || (_breadcrumb$items = _breadcrumb$items[0]) === null || _breadcrumb$items === void 0 ? void 0 : _breadcrumb$items.path,
34
+ children: /*#__PURE__*/_jsx(Button, {
35
+ type: "primary",
36
+ children: "Go Back"
37
+ })
38
+ }),
39
+ status: status,
40
+ subTitle: STATUS_TITLE_MAP[status],
41
+ title: status
42
+ });
43
+ }
44
+ return children;
45
+ }, [status, children, Link, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.items]);
46
+ if (loading) {
47
+ return /*#__PURE__*/_jsx(Skeleton, {
48
+ active: true,
49
+ className: cx(styles.root, className)
50
+ });
51
+ }
52
+ return /*#__PURE__*/_jsx(Flex, _objectSpread(_objectSpread({
53
+ className: cx(styles.root, className),
54
+ gap: 20,
55
+ vertical: true
56
+ }, otherProps), {}, {
57
+ children: renderChildren()
58
+ }));
59
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ root: import("antd-style").SerializedStyles;
3
+ }>;
@@ -0,0 +1,12 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref) {
5
+ var css = _ref.css,
6
+ token = _ref.token;
7
+ return {
8
+ root: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n "])))
9
+ };
10
+ }, {
11
+ hashPriority: 'low'
12
+ });
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PageFooter: React.FC;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ export var PageFooter = function PageFooter() {
5
+ return /*#__PURE__*/_jsx(_Fragment, {});
6
+ };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface HeaderIconProps {
3
+ /** 样式名 */
4
+ className?: string;
5
+ /** 图像无法显示时的替代文本 */
6
+ alt?: string;
7
+ /** 图标的形状,默认为 square */
8
+ shape?: 'circle' | 'square';
9
+ /** 设置图标的大小 */
10
+ size?: number | 'large' | 'small' | 'default';
11
+ /** 图标的资源地址或者图片元素 */
12
+ src: React.ReactNode;
13
+ /** 样式 */
14
+ style?: React.CSSProperties;
15
+ }
16
+ export declare const getIconSize: (size: HeaderIconProps['size']) => number;
17
+ export declare const HeaderIcon: React.FC<HeaderIconProps>;
@@ -0,0 +1,42 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["shape", "size", "src"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import { Avatar } from 'antd';
7
+ import React, { useMemo } from 'react';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ export var getIconSize = function getIconSize(size) {
10
+ if (typeof size === 'number') {
11
+ return size;
12
+ }
13
+ switch (size) {
14
+ case 'small':
15
+ {
16
+ return 40;
17
+ }
18
+ case 'large':
19
+ {
20
+ return 88;
21
+ }
22
+ default:
23
+ {
24
+ return 64;
25
+ }
26
+ }
27
+ };
28
+ export var HeaderIcon = function HeaderIcon(props) {
29
+ var _props$shape = props.shape,
30
+ shape = _props$shape === void 0 ? 'square' : _props$shape,
31
+ size = props.size,
32
+ src = props.src,
33
+ otherProps = _objectWithoutProperties(props, _excluded);
34
+ var sizeNumber = useMemo(function () {
35
+ return getIconSize(size);
36
+ }, [size]);
37
+ return /*#__PURE__*/_jsx(Avatar, _objectSpread({
38
+ shape: shape,
39
+ size: sizeNumber,
40
+ src: src
41
+ }, otherProps));
42
+ };
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { type ButtonGroupProps } from "../../ButtonGroup";
3
+ import { StatusProps } from "../../Status";
4
+ import { HeaderIconProps } from './Icon';
5
+ export interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
6
+ /** 是否有边框,默认没有 */
7
+ bordered?: boolean;
8
+ /** 状态 */
9
+ status?: StatusProps;
10
+ /** 图标 src 路径或者详细配置 */
11
+ icon?: string | HeaderIconProps;
12
+ /** 标题 */
13
+ title?: React.ReactNode;
14
+ /** 标题自定义渲染 */
15
+ titleRender?: (titleElement: React.ReactNode) => React.ReactNode;
16
+ /** 副标题:例如描述等 */
17
+ subTitle?: React.ReactNode;
18
+ /** 描述列表 */
19
+ descriptions?: {
20
+ icon?: {
21
+ content: React.ReactNode;
22
+ tooltip?: string;
23
+ };
24
+ text: React.ReactNode;
25
+ }[];
26
+ /** 描述列表自定义渲染 */
27
+ descriptionsRender?: (descriptionsElement: React.ReactNode) => React.ReactNode;
28
+ /** 右侧扩展区域 */
29
+ extraContent?: ButtonGroupProps;
30
+ /** 右侧扩展区域自定义渲染 */
31
+ extraContentRender?: (buttonsElement: React.ReactNode) => React.ReactNode;
32
+ /** 控制 header 与 content 的分割线,当 bordered 为 true 时,divider 自动设置为 false */
33
+ divider?: boolean;
34
+ /** PageHeader 各个模块的 className */
35
+ classNames?: {
36
+ titleWrapper?: string;
37
+ title?: string;
38
+ subTitle?: string;
39
+ descriptions?: string;
40
+ extraContent?: string;
41
+ };
42
+ }
43
+ export declare const PageHeader: React.FC<PageHeaderProps>;
@@ -0,0 +1,202 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["className", "classNames", "icon", "title", "titleRender", "subTitle", "status", "descriptions", "descriptionsRender", "extraContent", "extraContentRender", "bordered", "divider"];
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
8
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
10
+ import { Flex, Skeleton, Tooltip } from 'antd';
11
+ import React, { useContext, useMemo } from 'react';
12
+ import { ButtonGroup } from "../../ButtonGroup";
13
+ import Divider from "../../Divider";
14
+ import { Status } from "../../Status";
15
+ import Typography from "../../Typography";
16
+ import { PageContext } from "../PageContext";
17
+ import { HeaderIcon, getIconSize } from "./Icon";
18
+ import { useStyles } from "./style";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ var Paragraph = Typography.Paragraph;
22
+ export var PageHeader = function PageHeader(props) {
23
+ var className = props.className,
24
+ classNames = props.classNames,
25
+ icon = props.icon,
26
+ title = props.title,
27
+ titleRender = props.titleRender,
28
+ subTitle = props.subTitle,
29
+ status = props.status,
30
+ _props$descriptions = props.descriptions,
31
+ descriptions = _props$descriptions === void 0 ? [] : _props$descriptions,
32
+ descriptionsRender = props.descriptionsRender,
33
+ _props$extraContent = props.extraContent,
34
+ extraContent = _props$extraContent === void 0 ? {} : _props$extraContent,
35
+ extraContentRender = props.extraContentRender,
36
+ bordered = props.bordered,
37
+ divider = props.divider,
38
+ otherProps = _objectWithoutProperties(props, _excluded);
39
+ var _useStyles = useStyles({
40
+ bordered: bordered,
41
+ divider: divider
42
+ }),
43
+ styles = _useStyles.styles,
44
+ cx = _useStyles.cx;
45
+ var iconProps = useMemo(function () {
46
+ if (!icon || typeof icon === 'string') {
47
+ return {
48
+ src: icon,
49
+ size: subTitle ? 'large' : 'default'
50
+ };
51
+ }
52
+ if (subTitle && icon.size === undefined) {
53
+ icon.size = 'large';
54
+ }
55
+ return icon;
56
+ }, [icon, subTitle]);
57
+ var TitleNode = useMemo(function () {
58
+ var titleElement = /*#__PURE__*/_jsx("span", {
59
+ className: cx(styles.title, classNames === null || classNames === void 0 ? void 0 : classNames.title),
60
+ children: title
61
+ });
62
+ if (titleRender) {
63
+ return titleRender(titleElement);
64
+ }
65
+ return titleElement;
66
+ }, [classNames === null || classNames === void 0 ? void 0 : classNames.title, cx, styles.title, title, titleRender]);
67
+ var DescriptionsNode = useMemo(function () {
68
+ var descriptionsElement = [];
69
+ var _iterator = _createForOfIteratorHelper(descriptions.filter(function (d) {
70
+ return !!d;
71
+ }).entries()),
72
+ _step;
73
+ try {
74
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
75
+ var _step$value = _slicedToArray(_step.value, 2),
76
+ index = _step$value[0],
77
+ desc = _step$value[1];
78
+ var descIcon = desc.icon,
79
+ text = desc.text;
80
+ if (status || index >= 1) {
81
+ descriptionsElement.push( /*#__PURE__*/_jsx(Divider, {
82
+ dashed: false,
83
+ type: "vertical"
84
+ }, "divider-".concat(index)));
85
+ }
86
+ descriptionsElement.push( /*#__PURE__*/_jsxs(Flex, {
87
+ align: "center",
88
+ gap: 4,
89
+ children: [descIcon && /*#__PURE__*/_jsx(Tooltip, {
90
+ title: descIcon.tooltip,
91
+ children: descIcon.content
92
+ }), /*#__PURE__*/_jsx("span", {
93
+ children: text
94
+ })]
95
+ }, "desc-".concat(index)));
96
+ }
97
+ } catch (err) {
98
+ _iterator.e(err);
99
+ } finally {
100
+ _iterator.f();
101
+ }
102
+ if (descriptionsRender) {
103
+ return descriptionsRender(descriptionsElement);
104
+ }
105
+ return descriptionsElement;
106
+ }, [descriptions, descriptionsRender, status]);
107
+ var ExtraContentNode = useMemo(function () {
108
+ if (!extraContent && !extraContentRender) {
109
+ return null;
110
+ }
111
+ var buttons = /*#__PURE__*/_jsx(ButtonGroup, _objectSpread({
112
+ className: styles.rightButtons
113
+ }, extraContent));
114
+ if (extraContentRender) {
115
+ return extraContentRender(buttons);
116
+ }
117
+ return buttons;
118
+ }, [extraContent, extraContentRender, styles.rightButtons]);
119
+ var _useContext = useContext(PageContext),
120
+ loading = _useContext.loading,
121
+ pageStatus = _useContext.status;
122
+ if (loading) {
123
+ return /*#__PURE__*/_jsxs(Flex, {
124
+ className: cx(styles.root, className),
125
+ gap: 20,
126
+ children: [/*#__PURE__*/_jsx(Flex, {
127
+ children: /*#__PURE__*/_jsx(Skeleton.Avatar, {
128
+ active: true,
129
+ className: styles.icon,
130
+ shape: iconProps === null || iconProps === void 0 ? void 0 : iconProps.shape,
131
+ size: getIconSize(iconProps === null || iconProps === void 0 ? void 0 : iconProps.size)
132
+ })
133
+ }), /*#__PURE__*/_jsxs(Flex, {
134
+ flex: "2",
135
+ justify: "space-between",
136
+ vertical: true,
137
+ children: [/*#__PURE__*/_jsxs("div", {
138
+ className: styles.titleBox,
139
+ children: [/*#__PURE__*/_jsx(Skeleton.Input, {
140
+ active: true,
141
+ size: 25
142
+ }), subTitle && /*#__PURE__*/_jsx("div", {
143
+ className: cx(styles.subTitle, className),
144
+ children: /*#__PURE__*/_jsx(Skeleton.Input, {
145
+ active: true,
146
+ size: 18
147
+ })
148
+ })]
149
+ }), /*#__PURE__*/_jsx(Skeleton.Input, {
150
+ active: true,
151
+ size: 18
152
+ })]
153
+ }), /*#__PURE__*/_jsx(Flex, {
154
+ align: "center",
155
+ flex: "0 0 140px",
156
+ justify: "flex-end",
157
+ children: /*#__PURE__*/_jsx(Skeleton.Button, {
158
+ active: true
159
+ })
160
+ })]
161
+ });
162
+ }
163
+ if (pageStatus) {
164
+ return null;
165
+ }
166
+ return /*#__PURE__*/_jsxs(Flex, _objectSpread(_objectSpread({
167
+ className: cx(styles.root, className),
168
+ gap: 20
169
+ }, otherProps), {}, {
170
+ children: [iconProps && /*#__PURE__*/_jsx(Flex, {
171
+ children: /*#__PURE__*/_jsx(HeaderIcon, _objectSpread({
172
+ className: styles.icon
173
+ }, iconProps))
174
+ }), /*#__PURE__*/_jsxs(Flex, {
175
+ flex: "2",
176
+ justify: "space-between",
177
+ vertical: true,
178
+ children: [/*#__PURE__*/_jsxs(Flex, {
179
+ className: cx(styles.titleBox, classNames === null || classNames === void 0 ? void 0 : classNames.titleWrapper),
180
+ vertical: true,
181
+ children: [TitleNode, subTitle && /*#__PURE__*/_jsx(Paragraph, {
182
+ className: cx(styles.subTitle, classNames === null || classNames === void 0 ? void 0 : classNames.subTitle),
183
+ ellipsis: {
184
+ rows: 2
185
+ },
186
+ children: subTitle
187
+ })]
188
+ }), /*#__PURE__*/_jsxs(Flex, {
189
+ align: "center",
190
+ className: cx(styles.descriptions, classNames === null || classNames === void 0 ? void 0 : classNames.descriptions),
191
+ gap: 4,
192
+ children: [status && /*#__PURE__*/_jsx(Status, _objectSpread({}, status)), DescriptionsNode]
193
+ })]
194
+ }), /*#__PURE__*/_jsx(Flex, {
195
+ align: "center",
196
+ className: classNames === null || classNames === void 0 ? void 0 : classNames.extraContent,
197
+ flex: "1",
198
+ justify: "flex-end",
199
+ children: ExtraContentNode
200
+ })]
201
+ }));
202
+ };
@@ -0,0 +1,12 @@
1
+ export declare const useStyles: (props?: {
2
+ bordered?: boolean | undefined;
3
+ divider?: boolean | undefined;
4
+ } | undefined) => import("antd-style").ReturnStyles<{
5
+ root: import("antd-style").SerializedStyles;
6
+ icon: import("antd-style").SerializedStyles;
7
+ titleBox: import("antd-style").SerializedStyles;
8
+ subTitle: import("antd-style").SerializedStyles;
9
+ title: import("antd-style").SerializedStyles;
10
+ descriptions: import("antd-style").SerializedStyles;
11
+ rightButtons: import("antd-style").SerializedStyles;
12
+ }>;
@@ -0,0 +1,21 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref, _ref2) {
5
+ var css = _ref.css,
6
+ token = _ref.token,
7
+ prefixCls = _ref.prefixCls;
8
+ var _ref2$bordered = _ref2.bordered,
9
+ bordered = _ref2$bordered === void 0 ? false : _ref2$bordered,
10
+ _ref2$divider = _ref2.divider,
11
+ divider = _ref2$divider === void 0 ? true : _ref2$divider;
12
+ return {
13
+ root: bordered ? css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n padding: ", "px;\n\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n "])), token.marginXS, token.padding, token.colorBgBase, token.borderRadius, token.boxShadowTertiary) : css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-top: ", "px;\n margin-bottom: ", "px;\n ", "\n "])), token.paddingXS, token.marginXS, divider && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-bottom: ", "px;\n border-bottom: 1px solid ", ";\n "])), token.paddingLG, token.colorSplit)),
14
+ icon: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n &.", "-avatar.", "-avatar-square {\n color: ", ";\n border-radius: 10px;\n }\n .", "-skeleton-avatar {\n border-radius: 10px;\n }\n "])), prefixCls, prefixCls, token.colorPrimary, prefixCls),
15
+ titleBox: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n "])), token.marginSM),
16
+ subTitle: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n &.", "-typography {\n margin-bottom: 0 !important;\n font-size: ", "px;\n color: ", ";\n }\n "])), token.marginXXS, prefixCls, token.fontSize, token.colorTextSecondary),
17
+ title: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: ", "px;\n font-weight: 700;\n "])), token.fontSizeHeading5),
18
+ descriptions: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n font-size: ", "px;\n color: ", ";\n .", "-badge.", "-badge-status {\n font-size: ", "px;\n & > .", "-badge-status-text {\n font-size: ", "px;\n color: ", ";\n }\n }\n "])), token.marginXXS, token.fontSize, token.colorTextSecondary, prefixCls, prefixCls, token.fontSize, prefixCls, token.fontSize, token.colorTextSecondary),
19
+ rightButtons: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n justify-content: flex-end;\n "])))
20
+ };
21
+ });
@@ -0,0 +1,9 @@
1
+ import { FlexProps } from 'antd/lib';
2
+ import React from 'react';
3
+ import { PageContextValue } from './PageContext';
4
+ export interface PageProps extends React.HTMLAttributes<HTMLDivElement>, Pick<FlexProps, 'gap'> {
5
+ loading?: boolean;
6
+ status?: PageContextValue['status'];
7
+ Link?: PageContextValue['Link'];
8
+ }
9
+ export declare const Page: React.FC<PageProps>;
@@ -0,0 +1,49 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["loading", "className", "children", "Link", "status", "gap"];
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ import { Flex } from 'antd';
8
+ import React, { useState } from 'react';
9
+ import { useLink } from "../ConfigProvider";
10
+ import { DefaultLink, PageContext } from "./PageContext";
11
+ import { useStyles } from "./style";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ export var Page = function Page(props) {
14
+ var LinkFromRootConfigProvider = useLink();
15
+ var loading = props.loading,
16
+ className = props.className,
17
+ children = props.children,
18
+ _props$Link = props.Link,
19
+ Link = _props$Link === void 0 ? LinkFromRootConfigProvider || DefaultLink : _props$Link,
20
+ status = props.status,
21
+ _props$gap = props.gap,
22
+ gap = _props$gap === void 0 ? 16 : _props$gap,
23
+ otherProps = _objectWithoutProperties(props, _excluded);
24
+ var _useStyles = useStyles(otherProps),
25
+ styles = _useStyles.styles,
26
+ cx = _useStyles.cx;
27
+ var _useState = useState([]),
28
+ _useState2 = _slicedToArray(_useState, 2),
29
+ breadcrumbItems = _useState2[0],
30
+ setBreadcrumbItems = _useState2[1];
31
+ return /*#__PURE__*/_jsx(Flex, _objectSpread(_objectSpread({
32
+ className: cx(styles.root, className),
33
+ gap: gap,
34
+ vertical: true
35
+ }, otherProps), {}, {
36
+ children: /*#__PURE__*/_jsx(PageContext.Provider, {
37
+ value: {
38
+ loading: loading,
39
+ Link: Link,
40
+ breadcrumb: {
41
+ items: breadcrumbItems,
42
+ setItems: setBreadcrumbItems
43
+ },
44
+ status: status
45
+ },
46
+ children: children
47
+ })
48
+ }));
49
+ };
@@ -0,0 +1,15 @@
1
+ import type { ExceptionStatusType } from 'antd/es/result';
2
+ import React from 'react';
3
+ import { BreadcrumbLinkProps, PageBreadcrumbProps } from './Breadcrumb';
4
+ export interface PageContextValue {
5
+ loading?: boolean;
6
+ /** Link component */
7
+ Link: typeof React.Component | React.FC<any>;
8
+ breadcrumb?: {
9
+ items?: PageBreadcrumbProps['items'];
10
+ setItems?: (items?: PageBreadcrumbProps['items']) => void;
11
+ };
12
+ status?: ExceptionStatusType;
13
+ }
14
+ export declare const DefaultLink: React.FC<Omit<BreadcrumbLinkProps, 'Link'>>;
15
+ export declare const PageContext: React.Context<PageContextValue>;
@@ -0,0 +1,21 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["to", "children"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import React, { createContext } from 'react';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export var DefaultLink = function DefaultLink(props) {
9
+ var to = props.to,
10
+ children = props.children,
11
+ otherProps = _objectWithoutProperties(props, _excluded);
12
+ return /*#__PURE__*/_jsx("a", _objectSpread(_objectSpread({
13
+ href: "#".concat(to)
14
+ }, otherProps), {}, {
15
+ children: children
16
+ }));
17
+ };
18
+ export var PageContext = /*#__PURE__*/createContext({
19
+ loading: false,
20
+ Link: DefaultLink
21
+ });
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface PageTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const PageTitle: React.FC<PageTitleProps>;
@@ -0,0 +1,18 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["className"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import React from 'react';
7
+ import { useStyles } from "./style";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ export var PageTitle = function PageTitle(_ref) {
10
+ var className = _ref.className,
11
+ otherProps = _objectWithoutProperties(_ref, _excluded);
12
+ var _useStyles = useStyles(),
13
+ cx = _useStyles.cx,
14
+ styles = _useStyles.styles;
15
+ return /*#__PURE__*/_jsx("h2", _objectSpread({
16
+ className: cx(styles.root, className)
17
+ }, otherProps));
18
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ root: import("antd-style").SerializedStyles;
3
+ }>;
@@ -0,0 +1,10 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref) {
5
+ var css = _ref.css,
6
+ token = _ref.token;
7
+ return {
8
+ root: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0;\n\n font-family: ", ";\n font-size: 16px;\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n "])), token.fontFamily, token.fontWeightStrong, token.lineHeight, token.colorText)
9
+ };
10
+ });
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { PageBreadcrumb } from './Breadcrumb';
3
+ import { PageContent } from './Content';
4
+ import { PageFooter } from './Footer';
5
+ import { PageHeader } from './Header';
6
+ import { PageTitle } from './Title';
7
+ export type { PageBreadcrumbProps } from './Breadcrumb';
8
+ export type { PageContentProps } from './Content';
9
+ export type { PageHeaderProps } from './Header';
10
+ export type { PageProps } from './Page';
11
+ export type { PageTitleProps } from './Title';
12
+ export declare const Page: import("react").FC<import("./Page").PageProps> & {
13
+ Breadcrumb: typeof PageBreadcrumb;
14
+ Title: typeof PageTitle;
15
+ Header: typeof PageHeader;
16
+ Content: typeof PageContent;
17
+ Footer: typeof PageFooter;
18
+ };
@@ -0,0 +1,15 @@
1
+ import { PageBreadcrumb } from "./Breadcrumb";
2
+ import { PageContent } from "./Content";
3
+ import { PageFooter } from "./Footer";
4
+ import { PageHeader } from "./Header";
5
+ import { Page as InternalPage } from "./Page";
6
+ import { PageTitle } from "./Title";
7
+
8
+ // export type { } from './Footer';
9
+
10
+ export var Page = InternalPage;
11
+ Page.Breadcrumb = PageBreadcrumb;
12
+ Page.Title = PageTitle;
13
+ Page.Header = PageHeader;
14
+ Page.Content = PageContent;
15
+ Page.Footer = PageFooter;
@@ -0,0 +1,3 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ root: import("antd-style").SerializedStyles;
3
+ }>;
@@ -0,0 +1,10 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { createStyles } from 'antd-style';
4
+ export var useStyles = createStyles(function (_ref) {
5
+ var css = _ref.css,
6
+ token = _ref.token;
7
+ return {
8
+ root: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: inherit;\n height: 100%;\n min-height: inherit;\n padding: ", "px ", "px ", "px;\n "])), token.padding, token.paddingLG, token.paddingXL)
9
+ };
10
+ });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface ProCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ bordered?: boolean;
4
+ hoverable?: boolean;
5
+ }
6
+ export declare const ProCard: React.FC<ProCardProps>;