yootd 0.2.45 → 0.2.47

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 (223) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +43 -43
  3. package/dist/affix/index.d.ts +4 -2
  4. package/dist/affix/index.js +1 -1
  5. package/dist/alert/index.d.ts +3 -3
  6. package/dist/alert/index.js +1 -1
  7. package/dist/anchor/index.d.ts +2 -2
  8. package/dist/anchor/index.js +1 -1
  9. package/dist/anchor/index.scss +23 -23
  10. package/dist/app/index.d.ts +3 -3
  11. package/dist/app/index.js +1 -1
  12. package/dist/approval-process/index.scss +95 -95
  13. package/dist/areas/index.scss +21 -21
  14. package/dist/areas/types/types.d.ts +41 -41
  15. package/dist/areas-treeSelect/index.js +1 -1
  16. package/dist/areas-treeSelect/index.scss +6 -6
  17. package/dist/areas-treeSelect/types/type.d.ts +40 -40
  18. package/dist/aside/components/SortableItem.scss +289 -289
  19. package/dist/aside/index.scss +44 -44
  20. package/dist/aside/types/types.d.ts +82 -82
  21. package/dist/auto-complete/index.d.ts +2 -2
  22. package/dist/auto-complete/index.js +1 -1
  23. package/dist/avatar/index.d.ts +2 -2
  24. package/dist/avatar/index.js +1 -1
  25. package/dist/badge/index.d.ts +3 -3
  26. package/dist/badge/index.js +2 -2
  27. package/dist/badge/index.scss +5 -5
  28. package/dist/breadcrumb/index.d.ts +2 -2
  29. package/dist/breadcrumb/index.js +1 -1
  30. package/dist/buildings/types/types.d.ts +21 -21
  31. package/dist/business-tree/components/dept.d.ts +1 -1
  32. package/dist/business-tree/components/space.d.ts +1 -1
  33. package/dist/business-tree/index.d.ts +1 -1
  34. package/dist/button/index.d.ts +2 -2
  35. package/dist/button/index.js +1 -1
  36. package/dist/button/index.scss +30 -30
  37. package/dist/calendar/index.d.ts +2 -2
  38. package/dist/calendar/index.js +1 -1
  39. package/dist/card/index.d.ts +2 -2
  40. package/dist/card/index.js +1 -1
  41. package/dist/carousel/index.d.ts +2 -2
  42. package/dist/carousel/index.js +1 -1
  43. package/dist/cascader/index.d.ts +3 -3
  44. package/dist/cascader/index.js +1 -1
  45. package/dist/cascader/index.scss +5 -5
  46. package/dist/checkbox/index.d.ts +3 -3
  47. package/dist/checkbox/index.js +1 -1
  48. package/dist/collapse/index.d.ts +2 -2
  49. package/dist/collapse/index.js +1 -1
  50. package/dist/color-picker/index.d.ts +2 -2
  51. package/dist/color-picker/index.js +1 -1
  52. package/dist/config-provider/index.d.ts +2 -2
  53. package/dist/config-provider/index.js +2 -2
  54. package/dist/courses/types/types.d.ts +18 -18
  55. package/dist/date-interval/index.d.ts +1 -1
  56. package/dist/date-interval/index.js +1 -1
  57. package/dist/date-picker/index.d.ts +2 -2
  58. package/dist/date-picker/index.js +1 -1
  59. package/dist/date-range/index.d.ts +1 -1
  60. package/dist/date-range/index.js +1 -1
  61. package/dist/department/index.scss +6 -6
  62. package/dist/department/types/types.d.ts +23 -23
  63. package/dist/description/index.d.ts +1 -1
  64. package/dist/description/index.js +1 -1
  65. package/dist/description/index.scss +10 -10
  66. package/dist/dictionary/types/types.d.ts +14 -14
  67. package/dist/divider/index.d.ts +1 -1
  68. package/dist/divider/index.js +1 -1
  69. package/dist/drawer/index.d.ts +2 -2
  70. package/dist/drawer/index.js +1 -1
  71. package/dist/drawer-modal/index.d.ts +1 -1
  72. package/dist/drawer-modal/index.js +1 -1
  73. package/dist/drawer-modal/index.scss +42 -42
  74. package/dist/drawer-modal/types/types.d.ts +3 -3
  75. package/dist/dropdown/assets/arrow-down.svg +5 -5
  76. package/dist/dropdown/index.d.ts +2 -2
  77. package/dist/dropdown/index.js +1 -1
  78. package/dist/dropdown-select/index.js +1 -1
  79. package/dist/dropdown-select/index.scss +6 -6
  80. package/dist/dropdown-select/types/type.d.ts +18 -18
  81. package/dist/empty/index.d.ts +3 -3
  82. package/dist/empty/index.js +1 -1
  83. package/dist/empty/index.scss +15 -15
  84. package/dist/export/index.d.ts +1 -1
  85. package/dist/export/index.js +1 -1
  86. package/dist/export/index.scss +6 -6
  87. package/dist/flex/index.d.ts +1 -1
  88. package/dist/flex/index.js +1 -1
  89. package/dist/float-button/index.d.ts +2 -2
  90. package/dist/float-button/index.js +1 -1
  91. package/dist/form/index.d.ts +2 -2
  92. package/dist/form/index.js +1 -1
  93. package/dist/go-back/components/index.scss +5 -5
  94. package/dist/go-back/index.scss +33 -33
  95. package/dist/grid/index.d.ts +1 -1
  96. package/dist/grid/index.js +1 -1
  97. package/dist/group-title/index.scss +31 -31
  98. package/dist/holiday/types/types.d.ts +22 -22
  99. package/dist/hooks/useBem.js +10 -10
  100. package/dist/image/index.d.ts +3 -3
  101. package/dist/image/index.js +1 -1
  102. package/dist/image/index.scss +26 -26
  103. package/dist/input/index.d.ts +3 -3
  104. package/dist/input/index.js +1 -1
  105. package/dist/input/index.scss +5 -5
  106. package/dist/input-number/index.d.ts +2 -2
  107. package/dist/input-number/index.js +1 -1
  108. package/dist/job-title/types/types.d.ts +17 -17
  109. package/dist/layout/index.d.ts +2 -2
  110. package/dist/layout/index.js +1 -1
  111. package/dist/list/index.d.ts +2 -2
  112. package/dist/list/index.js +1 -1
  113. package/dist/mentions/index.d.ts +2 -2
  114. package/dist/mentions/index.js +1 -1
  115. package/dist/menu/index.d.ts +2 -2
  116. package/dist/menu/index.js +1 -1
  117. package/dist/message/index.d.ts +2 -2
  118. package/dist/message/index.js +1 -1
  119. package/dist/modal/index.d.ts +7 -7
  120. package/dist/modal/index.js +1 -1
  121. package/dist/modal/index.scss +81 -81
  122. package/dist/notification/index.d.ts +2 -2
  123. package/dist/notification/index.js +1 -1
  124. package/dist/pagination/index.d.ts +1 -1
  125. package/dist/pagination/index.js +1 -1
  126. package/dist/pagination/index.scss +47 -47
  127. package/dist/pop-confirm/index.d.ts +2 -2
  128. package/dist/pop-confirm/index.js +1 -1
  129. package/dist/popover/index.d.ts +3 -3
  130. package/dist/popover/index.js +1 -1
  131. package/dist/preview/components/preview/phone.scss +7 -7
  132. package/dist/preview/components/reactflow/Controls.d.ts +1 -1
  133. package/dist/preview/components/reactflow/TopPreview.d.ts +1 -1
  134. package/dist/preview/index.scss +35 -35
  135. package/dist/preview/types/type.d.ts +22 -22
  136. package/dist/progress/index.d.ts +2 -2
  137. package/dist/progress/index.js +1 -1
  138. package/dist/qrcode/index.d.ts +2 -2
  139. package/dist/qrcode/index.js +1 -1
  140. package/dist/radio/index.d.ts +3 -3
  141. package/dist/radio/index.js +2 -2
  142. package/dist/rate/index.d.ts +2 -2
  143. package/dist/rate/index.js +1 -1
  144. package/dist/result/index.d.ts +2 -2
  145. package/dist/result/index.js +1 -1
  146. package/dist/role/types/types.d.ts +22 -22
  147. package/dist/school/index.scss +21 -21
  148. package/dist/school/types/types.d.ts +85 -85
  149. package/dist/segmented/index.d.ts +2 -2
  150. package/dist/segmented/index.js +1 -1
  151. package/dist/select/index.d.ts +2 -2
  152. package/dist/select/index.js +1 -1
  153. package/dist/skeleton/index.d.ts +7 -7
  154. package/dist/skeleton/index.js +1 -1
  155. package/dist/slider/index.d.ts +2 -2
  156. package/dist/slider/index.js +1 -1
  157. package/dist/space/index.d.ts +2 -2
  158. package/dist/space/index.js +1 -1
  159. package/dist/spin/index.d.ts +2 -2
  160. package/dist/spin/index.js +1 -1
  161. package/dist/splitter/index.d.ts +2 -2
  162. package/dist/splitter/index.js +1 -1
  163. package/dist/state/index.scss +89 -89
  164. package/dist/statistic/index.d.ts +2 -2
  165. package/dist/statistic/index.js +1 -1
  166. package/dist/steps/index.d.ts +2 -2
  167. package/dist/steps/index.js +1 -1
  168. package/dist/steps/index.scss +32 -32
  169. package/dist/student-dropdown/types/types.d.ts +44 -44
  170. package/dist/switch/index.d.ts +2 -2
  171. package/dist/switch/index.js +1 -1
  172. package/dist/table/components/primary-header-row/index.scss +67 -67
  173. package/dist/table/components/primary-tbody-row/index.scss +5 -5
  174. package/dist/table/index.d.ts +6 -6
  175. package/dist/table/index.js +2 -2
  176. package/dist/table/index.scss +58 -58
  177. package/dist/tabs/index.d.ts +3 -3
  178. package/dist/tabs/index.js +1 -1
  179. package/dist/tabs/index.scss +86 -86
  180. package/dist/tag/index.d.ts +2 -2
  181. package/dist/tag/index.js +1 -1
  182. package/dist/tag/index.scss +4 -4
  183. package/dist/teacher/types/types.d.ts +33 -33
  184. package/dist/time-picker/index.d.ts +2 -2
  185. package/dist/time-picker/index.js +1 -1
  186. package/dist/timeline/index.d.ts +3 -3
  187. package/dist/timeline/index.js +1 -1
  188. package/dist/tooltip/index.d.ts +3 -3
  189. package/dist/tooltip/index.js +1 -1
  190. package/dist/tour/index.d.ts +3 -3
  191. package/dist/tour/index.js +1 -1
  192. package/dist/transfer/index.d.ts +2 -2
  193. package/dist/transfer/index.js +1 -1
  194. package/dist/tree/index.d.ts +3 -3
  195. package/dist/tree/index.js +1 -1
  196. package/dist/tree/index.scss +34 -34
  197. package/dist/tree-select/index.d.ts +2 -2
  198. package/dist/tree-select/index.js +1 -1
  199. package/dist/typography/index.d.ts +1 -1
  200. package/dist/typography/index.js +1 -1
  201. package/dist/upload/components/fileUpload.d.ts +3 -3
  202. package/dist/upload/components/fileUpload.js +1 -1
  203. package/dist/upload/components/imageUpload.d.ts +3 -3
  204. package/dist/upload/components/imageUpload.js +2 -2
  205. package/dist/upload/index.d.ts +4 -4
  206. package/dist/upload/index.js +1 -1
  207. package/dist/upload/index.scss +115 -115
  208. package/dist/user-dropdown/types/types.d.ts +45 -45
  209. package/dist/utils/types.d.ts +1 -1
  210. package/dist/utils/utils.d.ts +1 -1
  211. package/dist/video-player/index.js +7 -7
  212. package/dist/video-player/index.scss +339 -339
  213. package/dist/watermark/index.d.ts +2 -2
  214. package/dist/watermark/index.js +1 -1
  215. package/dist/with-search-form/index.scss +11 -11
  216. package/dist/with-search-form/types/type.d.ts +3 -3
  217. package/dist/year-options/index.d.ts +1 -1
  218. package/dist/year-options/index.js +1 -1
  219. package/dist/year-term/index.scss +21 -21
  220. package/dist/year-term/types/types.d.ts +39 -39
  221. package/dist/zones/index.scss +21 -21
  222. package/dist/zones/types/types.d.ts +26 -26
  223. package/package.json +93 -93
@@ -1,31 +1,31 @@
1
- .yot-group-title {
2
- background-color: var(--yot-group-color-secondary);
3
- border-radius: 4px;
4
- height: 42px;
5
- position: relative;
6
-
7
- &__content::before {
8
- content: '';
9
- position: absolute;
10
- width: 4px;
11
- height: 16px;
12
- top: 13px;
13
- left: 16px;
14
- background: var(--yot-group-color-primary);
15
- border-radius: 2px 2px 2px 2px
16
- }
17
-
18
- &-title {
19
- display: flex;
20
- padding: 0px 26px;
21
- line-height: 42px;
22
-
23
- &__title-text {
24
- font-family: Source Han Sans CN, Source Han Sans CN;
25
- font-weight: 550;
26
- font-size: 16px;
27
- text-align: left;
28
- }
29
- }
30
-
31
- }
1
+ .yot-group-title {
2
+ background-color: var(--yot-group-color-secondary);
3
+ border-radius: 4px;
4
+ height: 42px;
5
+ position: relative;
6
+
7
+ &__content::before {
8
+ content: '';
9
+ position: absolute;
10
+ width: 4px;
11
+ height: 16px;
12
+ top: 13px;
13
+ left: 16px;
14
+ background: var(--yot-group-color-primary);
15
+ border-radius: 2px 2px 2px 2px
16
+ }
17
+
18
+ &-title {
19
+ display: flex;
20
+ padding: 0px 26px;
21
+ line-height: 42px;
22
+
23
+ &__title-text {
24
+ font-family: Source Han Sans CN, Source Han Sans CN;
25
+ font-weight: 550;
26
+ font-size: 16px;
27
+ text-align: left;
28
+ }
29
+ }
30
+
31
+ }
@@ -1,22 +1,22 @@
1
- import { SelectProps } from 'yootd';
2
-
3
- export interface PageData<T> {
4
- content: T[];
5
- page: {
6
- number: number;
7
- size: number;
8
- totalElements: number;
9
- totalPages: number;
10
- };
11
- }
12
- // 查询职务返回的数据类型
13
- export interface IjobTitleItem {
14
- titleId: number;
15
- titleName: string;
16
- }
17
- // 查询角色返回的数据类型
18
- export interface IHolidayItem {
19
- vacationId: number;
20
- vacationName: string;
21
- }
22
- export type HolidayProps = SelectProps;
1
+ import { SelectProps } from 'yootd';
2
+
3
+ export interface PageData<T> {
4
+ content: T[];
5
+ page: {
6
+ number: number;
7
+ size: number;
8
+ totalElements: number;
9
+ totalPages: number;
10
+ };
11
+ }
12
+ // 查询职务返回的数据类型
13
+ export interface IjobTitleItem {
14
+ titleId: number;
15
+ titleName: string;
16
+ }
17
+ // 查询角色返回的数据类型
18
+ export interface IHolidayItem {
19
+ vacationId: number;
20
+ vacationName: string;
21
+ }
22
+ export type HolidayProps = SelectProps;
@@ -71,16 +71,16 @@ var Bem = /*#__PURE__*/function () {
71
71
  }]);
72
72
  return Bem;
73
73
  }();
74
- /**
75
- * 自定义 Hook,用于创建并缓存 BEM 命名实例
76
- * @param namespace - BEM 命名的命名空间,用于生成基础类名
77
- * @returns {Bem} 返回一个 Bem 实例,用于生成 BEM 格式的类名
78
- *
79
- * 使用示例:
80
- * const b = useBem('button');
81
- * b.toString(); // => 'yot-button'
82
- * b.e('icon').toString(); // => 'yot-button__icon'
83
- * b.m('primary').toString(); // => 'yot-button--primary'
74
+ /**
75
+ * 自定义 Hook,用于创建并缓存 BEM 命名实例
76
+ * @param namespace - BEM 命名的命名空间,用于生成基础类名
77
+ * @returns {Bem} 返回一个 Bem 实例,用于生成 BEM 格式的类名
78
+ *
79
+ * 使用示例:
80
+ * const b = useBem('button');
81
+ * b.toString(); // => 'yot-button'
82
+ * b.e('icon').toString(); // => 'yot-button__icon'
83
+ * b.m('primary').toString(); // => 'yot-button--primary'
84
84
  */
85
85
  export var useBem = function useBem(namespace) {
86
86
  // 使用 useRef 存储 Bem 实例,确保在组件重渲染时保持实例不变
@@ -1,9 +1,9 @@
1
- import type { ImageProps as AntImageProps } from 'antd';
2
- import { Image as AntImage } from 'antd';
1
+ import type { ImageProps as AntImageProps } from '@phoss/antd';
2
+ import { Image as AntImage } from '@phoss/antd';
3
3
  import { FC } from 'react';
4
4
  import './index.scss';
5
5
  export type ImageProps = AntImageProps;
6
- export type { CompositionImage } from 'antd/es/image';
6
+ export type { CompositionImage } from '@phoss/antd/es/image';
7
7
  type AntImageType = typeof AntImage;
8
8
  type ImageType = typeof ImageComponent & Pick<AntImageType, 'PreviewGroup'>;
9
9
  declare const ImageComponent: FC<ImageProps>;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  var _excluded = ["width", "height"];
5
- import { Image as AntImage } from 'antd';
5
+ import { Image as AntImage } from '@phoss/antd';
6
6
  import React, { useEffect, useMemo, useState } from 'react';
7
7
  import defaultImg from "./assets/default.png";
8
8
  import errorImg from "./assets/error.png";
@@ -1,27 +1,27 @@
1
- .yot-image {
2
- &-content {
3
- display: flex;
4
- justify-content: center;
5
- align-items: center;
6
- background-color: #f5f5f5;
7
- border-radius: 4px;
8
- position: relative;
9
-
10
- .ant-image-mask-info {
11
- display: none;
12
- }
13
-
14
- .ant-image-mask::after {
15
- content: '';
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- background-image: url('./assets/eye.png');
20
- background-repeat: no-repeat;
21
- background-size: cover;
22
- width: 16px;
23
- height: 16px;
24
- transform: translate(-50%, -50%);
25
- }
26
- }
1
+ .yot-image {
2
+ &-content {
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ background-color: #f5f5f5;
7
+ border-radius: 4px;
8
+ position: relative;
9
+
10
+ .ant-image-mask-info {
11
+ display: none;
12
+ }
13
+
14
+ .ant-image-mask::after {
15
+ content: '';
16
+ position: absolute;
17
+ top: 50%;
18
+ left: 50%;
19
+ background-image: url('./assets/eye.png');
20
+ background-repeat: no-repeat;
21
+ background-size: cover;
22
+ width: 16px;
23
+ height: 16px;
24
+ transform: translate(-50%, -50%);
25
+ }
26
+ }
27
27
  }
@@ -1,9 +1,9 @@
1
- import type { InputProps as AntInputProps, InputRef as AntInputRef } from 'antd';
2
- import { Input as AntInput } from 'antd';
1
+ import type { InputProps as AntInputProps, InputRef as AntInputRef } from '@phoss/antd';
2
+ import { Input as AntInput } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  import './index.scss';
5
5
  export type InputProps = AntInputProps;
6
- export type { InputFocusOptions, InputRef, triggerFocus, } from 'antd/es/input/Input';
6
+ export type { InputFocusOptions, InputRef, triggerFocus, } from '@phoss/antd/es/input/Input';
7
7
  type AntInputType = typeof AntInput;
8
8
  declare const InternalInput: React.ForwardRefExoticComponent<AntInputProps & React.RefAttributes<AntInputRef>>;
9
9
  type CompoundedComponent = typeof InternalInput & Pick<AntInputType, 'Group' | 'Search' | 'TextArea' | 'Password' | 'OTP'>;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["className"];
4
- import { Input as AntInput } from 'antd';
4
+ import { Input as AntInput } from '@phoss/antd';
5
5
  import React, { forwardRef } from 'react';
6
6
  import { useBem } from "../hooks/useBem";
7
7
  import "./index.scss";
@@ -1,5 +1,5 @@
1
- .yot-input {
2
- height: 32px;
3
- padding-left: var(--ant-padding-sm);
4
- padding-right: var(--ant-padding-sm);
5
- }
1
+ .yot-input {
2
+ height: 32px;
3
+ padding-left: var(--ant-padding-sm);
4
+ padding-right: var(--ant-padding-sm);
5
+ }
@@ -1,3 +1,3 @@
1
- import { InputNumber as AntInputNumber } from 'antd';
2
- export type { InputNumberProps } from 'antd/es/input-number';
1
+ import { InputNumber as AntInputNumber } from '@phoss/antd';
2
+ export type { InputNumberProps } from '@phoss/antd/es/input-number';
3
3
  export declare const InputNumber: typeof AntInputNumber;
@@ -1,2 +1,2 @@
1
- import { InputNumber as AntInputNumber } from 'antd';
1
+ import { InputNumber as AntInputNumber } from '@phoss/antd';
2
2
  export var InputNumber = AntInputNumber;
@@ -1,17 +1,17 @@
1
- import { SelectProps } from 'yootd';
2
-
3
- export interface PageData<T> {
4
- content: T[];
5
- page: {
6
- number: number;
7
- size: number;
8
- totalElements: number;
9
- totalPages: number;
10
- };
11
- }
12
- // 查询职务返回的数据类型
13
- export interface IjobTitleItem {
14
- titleId: number;
15
- titleName: string;
16
- }
17
- export type JobTitleProps = SelectProps;
1
+ import { SelectProps } from 'yootd';
2
+
3
+ export interface PageData<T> {
4
+ content: T[];
5
+ page: {
6
+ number: number;
7
+ size: number;
8
+ totalElements: number;
9
+ totalPages: number;
10
+ };
11
+ }
12
+ // 查询职务返回的数据类型
13
+ export interface IjobTitleItem {
14
+ titleId: number;
15
+ titleName: string;
16
+ }
17
+ export type JobTitleProps = SelectProps;
@@ -1,5 +1,5 @@
1
- import type { LayoutProps as AntLayoutProps } from 'antd';
2
- import { Layout as AntLayout } from 'antd';
1
+ import type { LayoutProps as AntLayoutProps } from '@phoss/antd';
2
+ import { Layout as AntLayout } from '@phoss/antd';
3
3
  export type LayoutProps = AntLayoutProps;
4
4
  type LayoutType = typeof AntLayout;
5
5
  export declare const Layout: LayoutType;
@@ -1,2 +1,2 @@
1
- import { Layout as AntLayout } from 'antd';
1
+ import { Layout as AntLayout } from '@phoss/antd';
2
2
  export var Layout = AntLayout;
@@ -1,3 +1,3 @@
1
- import { List as AntList } from 'antd';
2
- export type { ColumnCount, ColumnType, ListConsumerProps, ListGridType, ListItemLayout, ListItemMetaProps, ListItemProps, ListLocale, ListProps, ListSize, } from 'antd/es/list';
1
+ import { List as AntList } from '@phoss/antd';
2
+ export type { ColumnCount, ColumnType, ListConsumerProps, ListGridType, ListItemLayout, ListItemMetaProps, ListItemProps, ListLocale, ListProps, ListSize, } from '@phoss/antd/es/list';
3
3
  export declare const List: typeof AntList;
@@ -1,2 +1,2 @@
1
- import { List as AntList } from 'antd';
1
+ import { List as AntList } from '@phoss/antd';
2
2
  export var List = AntList;
@@ -1,3 +1,3 @@
1
- import { Mentions as AntMentions } from 'antd';
2
- export type { MentionPlacement, MentionProps, MentionsOptionProps, MentionsProps, MentionsRef, Option, OptionProps, } from 'antd/es/mentions';
1
+ import { Mentions as AntMentions } from '@phoss/antd';
2
+ export type { MentionPlacement, MentionProps, MentionsOptionProps, MentionsProps, MentionsRef, Option, OptionProps, } from '@phoss/antd/es/mentions';
3
3
  export declare const Mentions: typeof AntMentions;
@@ -1,2 +1,2 @@
1
- import { Mentions as AntMentions } from 'antd';
1
+ import { Mentions as AntMentions } from '@phoss/antd';
2
2
  export var Mentions = AntMentions;
@@ -1,5 +1,5 @@
1
- import type { MenuProps as AntMenuProps } from 'antd';
2
- import { Menu as AntMenu } from 'antd';
1
+ import type { MenuProps as AntMenuProps } from '@phoss/antd';
2
+ import { Menu as AntMenu } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  export type MenuProps = AntMenuProps;
5
5
  type AntMenuType = typeof AntMenu;
@@ -1,5 +1,5 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
2
- import { Menu as AntMenu } from 'antd';
2
+ import { Menu as AntMenu } from '@phoss/antd';
3
3
  import React from 'react';
4
4
  var MenuComponent = function MenuComponent(_ref) {
5
5
  var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
@@ -1,3 +1,3 @@
1
- import { message as antMessage } from 'antd';
2
- export type { ArgsProps } from 'antd/es/message';
1
+ import { message as antMessage } from '@phoss/antd';
2
+ export type { ArgsProps } from '@phoss/antd/es/message';
3
3
  export declare const message: typeof antMessage;
@@ -1,2 +1,2 @@
1
- import { message as antMessage } from 'antd';
1
+ import { message as antMessage } from '@phoss/antd';
2
2
  export var message = antMessage;
@@ -1,14 +1,14 @@
1
- import { Modal as AntModal, ModalProps } from 'antd';
2
- import { ModalStaticFunctions } from 'antd/es/modal/confirm';
1
+ import { Modal as AntModal, ModalProps } from '@phoss/antd';
2
+ import { ModalStaticFunctions } from '@phoss/antd/es/modal/confirm';
3
3
  import React from 'react';
4
4
  import './index.scss';
5
- export type { ModalFuncProps, ModalLocale } from 'antd/es/modal';
5
+ export type { ModalFuncProps, ModalLocale } from '@phoss/antd/es/modal';
6
6
  export type { ModalProps };
7
7
  export declare const Modal: React.FC<ModalProps> & ModalStaticFunctions & Pick<React.FC<ModalProps> & ModalStaticFunctions & {
8
- useModal: typeof import("antd/es/modal/useModal").default;
8
+ useModal: typeof import("@phoss/antd/es/modal/useModal").default;
9
9
  destroyAll: () => void;
10
- config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
11
- _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
12
- }, "_InternalPanelDoNotUseOrYouWillBeFired" | "config" | "useModal" | "destroyAll"> & {
10
+ config: typeof import("@phoss/antd/es/modal/confirm").modalGlobalConfig;
11
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: import("@phoss/antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
12
+ }, "config" | "_InternalPanelDoNotUseOrYouWillBeFired" | "useModal" | "destroyAll"> & {
13
13
  AntdModal: typeof AntModal;
14
14
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["className", "children", "title"];
4
- import { Modal as AntModal } from 'antd';
4
+ import { Modal as AntModal } from '@phoss/antd';
5
5
  import React, { useEffect } from 'react';
6
6
  import { HeaderIcon } from "./components/header-icon";
7
7
  import { useBem } from "../hooks/useBem";
@@ -1,81 +1,81 @@
1
- .yot-modal {
2
- padding-top: 13px;
3
- position: relative;
4
- max-width: calc(2 / 3 * 100vw) !important;
5
-
6
- & > div:first-child {
7
- box-sizing: border-box;
8
- padding: 4px;
9
- background: linear-gradient(180deg, #3a8cff 0%, #c4ddff 100%);
10
- border-radius: 24px;
11
- }
12
-
13
- .ant-modal-header {
14
- width: 100%;
15
- position: absolute;
16
- left: 0;
17
- top: -13px;
18
- background-color: transparent;
19
- }
20
-
21
- .ant-modal-content {
22
- padding: var(--ant-margin-xl);
23
- padding-top: 71px;
24
- border-radius: 24px;
25
- }
26
-
27
- .ant-modal-body {
28
- max-height: 529px;
29
- overflow-y: auto;
30
- }
31
- @media (max-width: 1366px) {
32
- .ant-modal-body {
33
- max-height: 400px;
34
- overflow-y: auto;
35
- }
36
- }
37
- .ant-modal-footer {
38
- margin-top: 40px;
39
- }
40
-
41
- &-title {
42
- &-content {
43
- width: 100%;
44
- display: flex;
45
- justify-content: center;
46
- align-items: center;
47
-
48
- &__body {
49
- position: absolute;
50
- color: var(--ant-color-bg-base);
51
- font-size: var(--ant-font-size-heading-3);
52
- }
53
-
54
- &__icon {
55
- .path-1 {
56
- fill: var(--yot-modal-color-tertiary);
57
- }
58
- .path-2 {
59
- fill: var(--yot-modal-color-tertiary);
60
- }
61
- .stop-color-1 {
62
- stop-color: var(--yot-modal-color-secondary);
63
- }
64
- .stop-color-2 {
65
- stop-color: var(--yot-modal-color-primary);
66
- }
67
- }
68
- }
69
- }
70
- &__color-defs {
71
- position: fixed;
72
- top: -1000px;
73
- left: -1000px;
74
- .stop-color-1 {
75
- stop-color: var(--yot-modal-color-secondary);
76
- }
77
- .stop-color-2 {
78
- stop-color: var(--yot-modal-color-primary);
79
- }
80
- }
81
- }
1
+ .yot-modal {
2
+ padding-top: 13px;
3
+ position: relative;
4
+ max-width: calc(2 / 3 * 100vw) !important;
5
+
6
+ & > div:first-child {
7
+ box-sizing: border-box;
8
+ padding: 4px;
9
+ background: linear-gradient(180deg, var(--yot-modal-color-quaternary) 0%, var(--yot-modal-color-quinary) 100%);
10
+ border-radius: 24px;
11
+ }
12
+
13
+ .ant-modal-header {
14
+ width: 100%;
15
+ position: absolute;
16
+ left: 0;
17
+ top: -13px;
18
+ background-color: transparent;
19
+ }
20
+
21
+ .ant-modal-content {
22
+ padding: var(--ant-margin-xl);
23
+ padding-top: 71px;
24
+ border-radius: 24px;
25
+ }
26
+
27
+ .ant-modal-body {
28
+ max-height: 529px;
29
+ overflow-y: auto;
30
+ }
31
+ @media (max-width: 1366px) {
32
+ .ant-modal-body {
33
+ max-height: 400px;
34
+ overflow-y: auto;
35
+ }
36
+ }
37
+ .ant-modal-footer {
38
+ margin-top: 40px;
39
+ }
40
+
41
+ &-title {
42
+ &-content {
43
+ width: 100%;
44
+ display: flex;
45
+ justify-content: center;
46
+ align-items: center;
47
+
48
+ &__body {
49
+ position: absolute;
50
+ color: var(--ant-color-bg-base);
51
+ font-size: var(--ant-font-size-heading-3);
52
+ }
53
+
54
+ &__icon {
55
+ .path-1 {
56
+ fill: var(--yot-modal-color-tertiary);
57
+ }
58
+ .path-2 {
59
+ fill: var(--yot-modal-color-tertiary);
60
+ }
61
+ .stop-color-1 {
62
+ stop-color: var(--yot-modal-color-secondary);
63
+ }
64
+ .stop-color-2 {
65
+ stop-color: var(--yot-modal-color-primary);
66
+ }
67
+ }
68
+ }
69
+ }
70
+ &__color-defs {
71
+ position: fixed;
72
+ top: -1000px;
73
+ left: -1000px;
74
+ .stop-color-1 {
75
+ stop-color: var(--yot-modal-color-secondary);
76
+ }
77
+ .stop-color-2 {
78
+ stop-color: var(--yot-modal-color-primary);
79
+ }
80
+ }
81
+ }
@@ -1,3 +1,3 @@
1
- import { notification as antNotification } from 'antd';
2
- export type { ArgsProps } from 'antd/es/notification';
1
+ import { notification as antNotification } from '@phoss/antd';
2
+ export type { ArgsProps } from '@phoss/antd/es/notification';
3
3
  export declare const notification: typeof antNotification;
@@ -1,2 +1,2 @@
1
- import { notification as antNotification } from 'antd';
1
+ import { notification as antNotification } from '@phoss/antd';
2
2
  export var notification = antNotification;
@@ -1,4 +1,4 @@
1
- import type { PaginationProps as AntPaginationProps } from 'antd';
1
+ import type { PaginationProps as AntPaginationProps } from '@phoss/antd';
2
2
  import { FC } from 'react';
3
3
  import './index.scss';
4
4
  export type PaginationProps = AntPaginationProps;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
3
- import { Pagination as AntPagination } from 'antd';
3
+ import { Pagination as AntPagination } from '@phoss/antd';
4
4
  import React from 'react';
5
5
  import { useBem } from "../hooks/useBem";
6
6
  import "./index.scss";