yootd 0.0.45 → 0.0.46

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 (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +43 -43
  3. package/dist/Preview/components/preview/phone.scss +8 -8
  4. package/dist/Preview/index.scss +35 -35
  5. package/dist/Preview/types/type.d.ts +22 -22
  6. package/dist/anchor/index.scss +23 -23
  7. package/dist/approval-process/index.scss +95 -95
  8. package/dist/areas/index.scss +21 -21
  9. package/dist/areas/types/types.d.ts +40 -40
  10. package/dist/areas-treeSelect/index.scss +6 -6
  11. package/dist/areas-treeSelect/types/type.d.ts +39 -39
  12. package/dist/aside/components/SortableItem.scss +93 -93
  13. package/dist/aside/index.scss +25 -25
  14. package/dist/aside/types/types.d.ts +44 -44
  15. package/dist/badge/index.scss +5 -5
  16. package/dist/buildings/types/types.d.ts +21 -21
  17. package/dist/button/index.scss +30 -30
  18. package/dist/cascader/index.scss +5 -5
  19. package/dist/courses/types/types.d.ts +18 -18
  20. package/dist/department/types/types.d.ts +23 -23
  21. package/dist/dictionary/types/types.d.ts +14 -14
  22. package/dist/drawer-modal/index.scss +39 -39
  23. package/dist/drawer-modal/types/types.d.ts +3 -3
  24. package/dist/dropdown/assets/arrow-down.svg +5 -5
  25. package/dist/empty/index.scss +15 -15
  26. package/dist/group-title/index.scss +31 -31
  27. package/dist/hooks/useBem.d.ts +11 -0
  28. package/dist/hooks/useBem.js +22 -1
  29. package/dist/image/index.scss +26 -26
  30. package/dist/input/index.scss +5 -5
  31. package/dist/job-title/types/types.d.ts +17 -17
  32. package/dist/modal/index.js +40 -16
  33. package/dist/modal/index.scss +76 -76
  34. package/dist/pagination/index.scss +47 -47
  35. package/dist/role/types/types.d.ts +22 -22
  36. package/dist/school/index.scss +21 -21
  37. package/dist/school/types/types.d.ts +85 -85
  38. package/dist/state/index.scss +89 -89
  39. package/dist/steps/index.scss +32 -32
  40. package/dist/student-dropdown/types/types.d.ts +44 -44
  41. package/dist/table/components/primary-header-row/index.scss +58 -58
  42. package/dist/table/components/primary-tbody-row/index.scss +5 -5
  43. package/dist/table/index.module.scss +9 -9
  44. package/dist/table/index.scss +33 -33
  45. package/dist/tabs/index.scss +86 -86
  46. package/dist/tag/index.scss +4 -4
  47. package/dist/teacher/types/types.d.ts +33 -33
  48. package/dist/tree/index.scss +25 -25
  49. package/dist/upload/index.scss +115 -115
  50. package/dist/user-dropdown/types/types.d.ts +45 -45
  51. package/dist/video-player/index.js +20 -20
  52. package/dist/video-player/index.scss +310 -310
  53. package/dist/year-term/index.scss +21 -21
  54. package/dist/year-term/types/types.d.ts +28 -28
  55. package/dist/zones/index.module.scss +23 -23
  56. package/dist/zones/types/types.d.ts +26 -26
  57. package/package.json +101 -101
@@ -1,39 +1,39 @@
1
- .yot-drawer {
2
- .ant-drawer-content-wrapper {
3
- max-width: 66.67vw;
4
- width: 100%;
5
- }
6
- .ant-drawer-header {
7
- background-color: var(--ant-color-bg-layout);
8
- .ant-drawer-header-title {
9
- font-size: 18px;
10
- font-weight: bold;
11
- .ant-drawer-close {
12
- display: none;
13
- }
14
- }
15
- }
16
- .ant-drawer-footer {
17
- padding: 0;
18
- }
19
- .ant-drawer-footer & {
20
- padding-left: 24px;
21
- padding-right: 24px;
22
- &-footer {
23
- padding: 8px 16px;
24
- }
25
- &__foot-confirm {
26
- width: 64px;
27
- height: 32px;
28
- }
29
- &__foot-close {
30
- width: 64px;
31
- height: 32px;
32
- background-color: var(--ant-color-bg-layout);
33
- margin-right: 8px;
34
- }
35
- }
36
- &__close {
37
- cursor: pointer;
38
- }
39
- }
1
+ .yot-drawer {
2
+ .ant-drawer-content-wrapper {
3
+ max-width: 66.67vw;
4
+ width: 100%;
5
+ }
6
+ .ant-drawer-header {
7
+ background-color: var(--ant-color-bg-layout);
8
+ .ant-drawer-header-title {
9
+ font-size: 18px;
10
+ font-weight: bold;
11
+ .ant-drawer-close {
12
+ display: none;
13
+ }
14
+ }
15
+ }
16
+ .ant-drawer-footer {
17
+ padding: 0;
18
+ }
19
+ .ant-drawer-footer & {
20
+ padding-left: 24px;
21
+ padding-right: 24px;
22
+ &-footer {
23
+ padding: 8px 16px;
24
+ }
25
+ &__foot-confirm {
26
+ width: 64px;
27
+ height: 32px;
28
+ }
29
+ &__foot-close {
30
+ width: 64px;
31
+ height: 32px;
32
+ background-color: var(--ant-color-bg-layout);
33
+ margin-right: 8px;
34
+ }
35
+ }
36
+ &__close {
37
+ cursor: pointer;
38
+ }
39
+ }
@@ -1,3 +1,3 @@
1
- export interface DrawerModalProps {
2
- onConfirm?: () => void;
3
- }
1
+ export interface DrawerModalProps {
2
+ onConfirm?: () => void;
3
+ }
@@ -1,6 +1,6 @@
1
- <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
- xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
- <path
4
- d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
- p-id="3742" fill="#1f1f1f"></path>
1
+ <svg t="1729587167155" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
+ xmlns="http://www.w3.org/2000/svg" p-id="3741" width="20" height="20">
3
+ <path
4
+ d="M474.282667 690.176L148.053333 363.904l45.226667-45.226667 318.72 318.72 318.72-318.72 45.226667 45.226667-326.229334 326.272a53.333333 53.333333 0 0 1-75.434666 0z"
5
+ p-id="3742" fill="#1f1f1f"></path>
6
6
  </svg>
@@ -1,15 +1,15 @@
1
- .yot-empty {
2
- &-description {
3
- &-content {
4
- &__title {
5
- font-size: 20px;
6
- font-weight: bold;
7
- color: var(--ant-color-text);
8
- }
9
- &__text {
10
- font-size: 14px;
11
- color: var(--ant-color-text-secondary);
12
- }
13
- }
14
- }
15
- }
1
+ .yot-empty {
2
+ &-description {
3
+ &-content {
4
+ &__title {
5
+ font-size: 20px;
6
+ font-weight: bold;
7
+ color: var(--ant-color-text);
8
+ }
9
+ &__text {
10
+ font-size: 14px;
11
+ color: var(--ant-color-text-secondary);
12
+ }
13
+ }
14
+ }
15
+ }
@@ -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
+ }
@@ -11,5 +11,16 @@ declare class Bem {
11
11
  toString(): string;
12
12
  clone(): Bem;
13
13
  }
14
+ /**
15
+ * 自定义 Hook,用于创建并缓存 BEM 命名实例
16
+ * @param namespace - BEM 命名的命名空间,用于生成基础类名
17
+ * @returns {Bem} 返回一个 Bem 实例,用于生成 BEM 格式的类名
18
+ *
19
+ * 使用示例:
20
+ * const b = useBem('button');
21
+ * b.toString(); // => 'yot-button'
22
+ * b.e('icon').toString(); // => 'yot-button__icon'
23
+ * b.m('primary').toString(); // => 'yot-button--primary'
24
+ */
14
25
  export declare const useBem: (namespace: string) => Bem;
15
26
  export {};
@@ -6,6 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  import _ from 'lodash';
9
+ import { useRef } from 'react';
9
10
  var Bem = /*#__PURE__*/function () {
10
11
  function Bem(_namespace) {
11
12
  _classCallCheck(this, Bem);
@@ -75,6 +76,26 @@ var Bem = /*#__PURE__*/function () {
75
76
  }]);
76
77
  return Bem;
77
78
  }();
79
+ /**
80
+ * 自定义 Hook,用于创建并缓存 BEM 命名实例
81
+ * @param namespace - BEM 命名的命名空间,用于生成基础类名
82
+ * @returns {Bem} 返回一个 Bem 实例,用于生成 BEM 格式的类名
83
+ *
84
+ * 使用示例:
85
+ * const b = useBem('button');
86
+ * b.toString(); // => 'yot-button'
87
+ * b.e('icon').toString(); // => 'yot-button__icon'
88
+ * b.m('primary').toString(); // => 'yot-button--primary'
89
+ */
78
90
  export var useBem = function useBem(namespace) {
79
- return new Bem(namespace);
91
+ // 使用 useRef 存储 Bem 实例,确保在组件重渲染时保持实例不变
92
+ var bemRef = useRef();
93
+
94
+ // 仅在首次渲染时创建 Bem 实例
95
+ if (!bemRef.current) {
96
+ bemRef.current = new Bem(namespace);
97
+ }
98
+
99
+ // 返回缓存的 Bem 实例
100
+ return bemRef.current;
80
101
  };
@@ -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,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,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;
@@ -3,10 +3,42 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import { Modal as AntModal } from 'antd';
6
- import React from 'react';
6
+ import React, { useEffect } from 'react';
7
7
  import { HeaderIcon } from "./components/header-icon";
8
8
  import { useBem } from "../hooks/useBem";
9
9
  import "./index.scss";
10
+ // 添加一个工具函数来创建 SVG
11
+ var createColorDefs = function createColorDefs(mb) {
12
+ var svgId = 'yootd-modal-color-defs';
13
+
14
+ // 检查是否已存在相同 id 的 SVG
15
+ if (document.getElementById(svgId)) {
16
+ return null;
17
+ }
18
+
19
+ // 创建 SVG 元素及其子元素
20
+ var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
21
+ svg.setAttribute('id', svgId);
22
+ svg.setAttribute('class', mb.e('color-defs').toString());
23
+ var defs = document.createElementNS('http://www.w3.org/2000/svg', 'defs');
24
+ var linearGradient = document.createElementNS('http://www.w3.org/2000/svg', 'linearGradient');
25
+ linearGradient.setAttribute('id', 'paint0_linear_589_9609');
26
+ linearGradient.setAttribute('x1', '132.5');
27
+ linearGradient.setAttribute('y1', '0');
28
+ linearGradient.setAttribute('x2', '132.5');
29
+ linearGradient.setAttribute('y2', '56');
30
+ linearGradient.setAttribute('gradientUnits', 'userSpaceOnUse');
31
+ var stop1 = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
32
+ stop1.setAttribute('class', 'stop-color-1');
33
+ var stop2 = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
34
+ stop2.setAttribute('class', 'stop-color-2');
35
+ stop2.setAttribute('offset', '1');
36
+ linearGradient.appendChild(stop1);
37
+ linearGradient.appendChild(stop2);
38
+ defs.appendChild(linearGradient);
39
+ svg.appendChild(defs);
40
+ return svg;
41
+ };
10
42
  var ModalComponent = function ModalComponent(_ref) {
11
43
  var className = _ref.className,
12
44
  children = _ref.children,
@@ -17,21 +49,13 @@ var ModalComponent = function ModalComponent(_ref) {
17
49
 
18
50
  // title content block
19
51
  var tcb = mb.b('title').b('content');
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
21
- className: "".concat(mb.e('color-defs'))
22
- }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
23
- id: "paint0_linear_589_9609",
24
- x1: "132.5",
25
- y1: "0",
26
- x2: "132.5",
27
- y2: "56",
28
- gradientUnits: "userSpaceOnUse"
29
- }, /*#__PURE__*/React.createElement("stop", {
30
- className: "stop-color-1"
31
- }), /*#__PURE__*/React.createElement("stop", {
32
- className: "stop-color-2",
33
- offset: "1"
34
- })))), /*#__PURE__*/React.createElement(AntModal, _extends({}, rest, {
52
+ useEffect(function () {
53
+ var svg = createColorDefs(mb);
54
+ if (svg) {
55
+ document.body.appendChild(svg);
56
+ }
57
+ }, [mb]);
58
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AntModal, _extends({}, rest, {
35
59
  className: "".concat(mb, " ").concat(className !== null && className !== void 0 ? className : ''),
36
60
  title: /*#__PURE__*/React.createElement("div", {
37
61
  className: "".concat(tcb)
@@ -1,76 +1,76 @@
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
-
32
- .ant-modal-footer {
33
- margin-top: 40px;
34
- }
35
-
36
- &-title {
37
- &-content {
38
- width: 100%;
39
- display: flex;
40
- justify-content: center;
41
- align-items: center;
42
-
43
- &__body {
44
- position: absolute;
45
- color: var(--ant-color-bg-base);
46
- font-size: var(--ant-font-size-heading-3);
47
- }
48
-
49
- &__icon {
50
- .path-1 {
51
- fill: var(--yot-modal-color-tertiary);
52
- }
53
- .path-2 {
54
- fill: var(--yot-modal-color-tertiary);
55
- }
56
- .stop-color-1 {
57
- stop-color: var(--yot-modal-color-secondary);
58
- }
59
- .stop-color-2 {
60
- stop-color: var(--yot-modal-color-primary);
61
- }
62
- }
63
- }
64
- }
65
- &__color-defs {
66
- position: fixed;
67
- top: -1000px;
68
- left: -1000px;
69
- .stop-color-1 {
70
- stop-color: var(--yot-modal-color-secondary);
71
- }
72
- .stop-color-2 {
73
- stop-color: var(--yot-modal-color-primary);
74
- }
75
- }
76
- }
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
+
32
+ .ant-modal-footer {
33
+ margin-top: 40px;
34
+ }
35
+
36
+ &-title {
37
+ &-content {
38
+ width: 100%;
39
+ display: flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+
43
+ &__body {
44
+ position: absolute;
45
+ color: var(--ant-color-bg-base);
46
+ font-size: var(--ant-font-size-heading-3);
47
+ }
48
+
49
+ &__icon {
50
+ .path-1 {
51
+ fill: var(--yot-modal-color-tertiary);
52
+ }
53
+ .path-2 {
54
+ fill: var(--yot-modal-color-tertiary);
55
+ }
56
+ .stop-color-1 {
57
+ stop-color: var(--yot-modal-color-secondary);
58
+ }
59
+ .stop-color-2 {
60
+ stop-color: var(--yot-modal-color-primary);
61
+ }
62
+ }
63
+ }
64
+ }
65
+ &__color-defs {
66
+ position: fixed;
67
+ top: -1000px;
68
+ left: -1000px;
69
+ .stop-color-1 {
70
+ stop-color: var(--yot-modal-color-secondary);
71
+ }
72
+ .stop-color-2 {
73
+ stop-color: var(--yot-modal-color-primary);
74
+ }
75
+ }
76
+ }
@@ -1,47 +1,47 @@
1
- .yot-pagination {
2
- &--small {
3
- .ant-pagination-item-active {
4
- border-color: var(--ant-color-primary);
5
- a {
6
- color: var(--ant-color-primary);
7
- }
8
- }
9
- .ant-select-selection-item {
10
- color: var(--ant-color-text-secondary);
11
- }
12
- .ant-pagination-options-quick-jumper {
13
- color: var(--ant-color-text-secondary);
14
- }
15
- .ant-pagination-item-link {
16
- color: var(--ant-color-text-secondary);
17
- }
18
- }
19
-
20
- &--default {
21
- .ant-pagination-total-text {
22
- color: var(--ant-color-text-secondary);
23
- }
24
- .ant-pagination-item-active {
25
- background-color: var(--ant-color-primary);
26
- border-color: var(--ant-color-primary);
27
- a {
28
- color: var(--ant-color-white);
29
- transition: none;
30
- }
31
- }
32
- .ant-pagination-item-active:hover {
33
- a {
34
- color: var(--ant-color-white);
35
- }
36
- }
37
- .ant-select-selection-item {
38
- color: var(--ant-color-text-secondary);
39
- }
40
- .ant-pagination-options-quick-jumper {
41
- color: var(--ant-color-text-secondary);
42
- }
43
- .ant-pagination-item-link {
44
- color: var(--ant-color-text-secondary);
45
- }
46
- }
47
- }
1
+ .yot-pagination {
2
+ &--small {
3
+ .ant-pagination-item-active {
4
+ border-color: var(--ant-color-primary);
5
+ a {
6
+ color: var(--ant-color-primary);
7
+ }
8
+ }
9
+ .ant-select-selection-item {
10
+ color: var(--ant-color-text-secondary);
11
+ }
12
+ .ant-pagination-options-quick-jumper {
13
+ color: var(--ant-color-text-secondary);
14
+ }
15
+ .ant-pagination-item-link {
16
+ color: var(--ant-color-text-secondary);
17
+ }
18
+ }
19
+
20
+ &--default {
21
+ .ant-pagination-total-text {
22
+ color: var(--ant-color-text-secondary);
23
+ }
24
+ .ant-pagination-item-active {
25
+ background-color: var(--ant-color-primary);
26
+ border-color: var(--ant-color-primary);
27
+ a {
28
+ color: var(--ant-color-white);
29
+ transition: none;
30
+ }
31
+ }
32
+ .ant-pagination-item-active:hover {
33
+ a {
34
+ color: var(--ant-color-white);
35
+ }
36
+ }
37
+ .ant-select-selection-item {
38
+ color: var(--ant-color-text-secondary);
39
+ }
40
+ .ant-pagination-options-quick-jumper {
41
+ color: var(--ant-color-text-secondary);
42
+ }
43
+ .ant-pagination-item-link {
44
+ color: var(--ant-color-text-secondary);
45
+ }
46
+ }
47
+ }