@aloudata/aloudata-design 1.10.13 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/index.d.ts +3 -4
- package/dist/Button/index.js +7 -20
- package/dist/Button/style/size.less +21 -8
- package/dist/Button/style/type.less +61 -33
- package/dist/Button/style/variables.less +229 -44
- package/dist/Checkbox/style/index.less +111 -114
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +70 -107
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
- package/dist/Icon/components/AlertTriangleLine.js +35 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
- package/dist/Icon/components/ArrowDownFill.js +35 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionCircleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
- package/dist/Icon/components/CheckCircleFill.js +35 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckCircleLightLine.js +38 -0
- package/dist/Icon/components/CheckLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckLightLine.js +35 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CircleLightLine.js +38 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
- package/dist/Icon/components/CloseCircleFill.js +35 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseLightLine.js +35 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +11 -0
- package/dist/Icon/components/Ellipsis.js +35 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
- package/dist/Icon/components/InformationCircleFill.js +35 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/InformationCircleLightLine.js +38 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
- package/dist/Icon/components/LoadingDuotone.js +39 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/TriangleLightLine.js +35 -0
- package/dist/Icon/index.d.ts +16 -3
- package/dist/Icon/index.js +16 -2
- package/dist/Icon/svg/Loading-duotone.svg +6 -0
- package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
- package/dist/Icon/svg/alert-triangle-line.svg +5 -0
- package/dist/Icon/svg/arrow-down-fill.svg +5 -0
- package/dist/Icon/svg/attention-circle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
- package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
- package/dist/Icon/svg/check-circle-duotone.svg +6 -2
- package/dist/Icon/svg/check-circle-fill.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +8 -0
- package/dist/Icon/svg/check-light-line.svg +5 -0
- package/dist/Icon/svg/chevron-down-line.svg +6 -4
- package/dist/Icon/svg/chevron-left-line.svg +6 -4
- package/dist/Icon/svg/chevron-right-line.svg +6 -4
- package/dist/Icon/svg/circle-light-line.svg +9 -0
- package/dist/Icon/svg/close-L-line.svg +11 -9
- package/dist/Icon/svg/close-circle-fill.svg +5 -0
- package/dist/Icon/svg/close-light-line.svg +5 -0
- package/dist/Icon/svg/close-m-line.svg +6 -4
- package/dist/Icon/svg/drag-line.svg +6 -4
- package/dist/Icon/svg/ellipsis.svg +5 -0
- package/dist/Icon/svg/eye-off-line.svg +6 -4
- package/dist/Icon/svg/eye-on-line.svg +14 -8
- package/dist/Icon/svg/fold-down-fill.svg +7 -6
- package/dist/Icon/svg/fold-up-fill.svg +7 -6
- package/dist/Icon/svg/info-circle-duotone.svg +4 -2
- package/dist/Icon/svg/info-circle-line.svg +3 -1
- package/dist/Icon/svg/information-circle-fill.svg +5 -0
- package/dist/Icon/svg/information-circle-light-line.svg +9 -0
- package/dist/Icon/svg/loading-2-line.svg +4 -2
- package/dist/Icon/svg/loading-line.svg +6 -4
- package/dist/Icon/svg/more-vertical-line.svg +6 -4
- package/dist/Icon/svg/search-line.svg +6 -4
- package/dist/Icon/svg/triangle-light-line.svg +5 -0
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/IconButton/index.js +8 -19
- package/dist/IconButton/style/index.less +49 -25
- package/dist/Input/components/Input/index.js +18 -2
- package/dist/Input/components/Password/index.d.ts +0 -5
- package/dist/Input/components/Password/index.js +10 -10
- package/dist/Input/components/TextArea/index.js +15 -2
- package/dist/Input/index.d.ts +2 -5
- package/dist/Input/index.js +1 -3
- package/dist/Input/style/index.less +4 -565
- package/dist/Input/style/reset.less +22 -0
- package/dist/Input/style/size.less +82 -0
- package/dist/Input/style/status.less +105 -0
- package/dist/MemberPicker/components/MemberSelection.d.ts +2 -1
- package/dist/MemberPicker/components/MemberSelection.js +9 -1
- package/dist/MemberPicker/components/MultipleOption.js +1 -1
- package/dist/MemberPicker/components/Panel.d.ts +2 -1
- package/dist/MemberPicker/components/Panel.js +9 -3
- package/dist/MemberPicker/components/PanelWrapper.d.ts +3 -2
- package/dist/MemberPicker/components/PanelWrapper.js +5 -2
- package/dist/MemberPicker/components/SelectedMemberTags.d.ts +2 -1
- package/dist/MemberPicker/components/SelectedMemberTags.js +19 -2
- package/dist/MemberPicker/components/UserGroupSelection.d.ts +3 -2
- package/dist/MemberPicker/components/UserGroupSelection.js +8 -1
- package/dist/MemberPicker/index.js +4 -1
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +10 -2
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +72 -133
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +32 -43
- package/dist/Modal/style/index.less +3 -191
- package/dist/Modal/style/modal.less +132 -0
- package/dist/Modal/style/modalConfirm.less +100 -0
- package/dist/Pagination/index.js +4 -2
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +16 -6
- package/dist/Popover/style/index.less +29 -29
- package/dist/Radio/components/Group/index.js +3 -5
- package/dist/Radio/components/Radio/index.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/style/index.less +69 -56
- package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
- package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +3 -1
- package/dist/Select/index.d.ts +5 -0
- package/dist/Select/index.js +26 -41
- package/dist/Select/style/index.less +96 -76
- package/dist/Select/style/layout.less +41 -0
- package/dist/Select/style/option.less +42 -0
- package/dist/Select/style/selectDropdown.less +17 -0
- package/dist/Select/style/size.less +95 -82
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +9 -16
- package/dist/Spin/CustomIcon/index.d.ts +3 -0
- package/dist/Spin/CustomIcon/index.js +20 -15
- package/dist/Spin/CustomIcon/index.less +32 -105
- package/dist/Spin/index.d.ts +2 -0
- package/dist/Spin/index.js +8 -2
- package/dist/Spin/style/index.less +9 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/style/index.less +16 -8
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +4 -4
- package/dist/Tabs/style/index.less +20 -16
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +25 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +9 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/style/var.less +1 -1
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.less +1 -0
- package/dist/message/index.js +15 -14
- package/dist/message/style/color.less +22 -41
- package/dist/message/style/index.less +15 -16
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +18 -18
- package/dist/notification/style/index.less +12 -6
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +3 -3
- package/dist/style/themes/default/scrollBar.less +1 -1
- package/dist/style/var/default.css +1334 -0
- package/package.json +4 -3
- package/dist/Icon/components/Icon.d.ts +0 -32
- package/dist/Icon/components/Icon.js +0 -25
- package/dist/Input/components/Group/index.d.ts +0 -18
- package/dist/Input/components/Group/index.js +0 -19
- package/dist/Menu/style/dropdown.less +0 -61
- package/dist/Select/style/multiple.less +0 -55
- package/dist/Select/style/single.less +0 -44
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
.ald-modal.ald-modal {
|
|
2
|
+
animation-duration: 10ms !important;
|
|
3
|
+
// 移除缩放效果
|
|
4
|
+
&.ant-zoom-enter,
|
|
5
|
+
&.ant-zoom-leave {
|
|
6
|
+
animation-duration: 10ms !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ant-modal-content {
|
|
10
|
+
padding: 0;
|
|
11
|
+
border-radius: var(--alias-radius-75, 6px);
|
|
12
|
+
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
13
|
+
box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.04),
|
|
14
|
+
0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
.ant-modal-close {
|
|
18
|
+
width: 24px;
|
|
19
|
+
height: 24px;
|
|
20
|
+
top: var(--alias-spacing-200, 16px);
|
|
21
|
+
right: var(--alias-spacing-250, 20px);
|
|
22
|
+
|
|
23
|
+
.ant-modal-close-x {
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ant-modal-header {
|
|
29
|
+
padding: var(--alias-spacing-200, 16px) var(--alias-spacing-250, 20px);
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
border-bottom: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
32
|
+
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
33
|
+
|
|
34
|
+
.ant-modal-title {
|
|
35
|
+
width: 95%;
|
|
36
|
+
color: var(--alias-colors-text-strong, #111827);
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
line-height: 24px;
|
|
40
|
+
|
|
41
|
+
.ald-modal-title-container {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--alias-spacing-100, 8px);
|
|
45
|
+
|
|
46
|
+
.ald-modal-text-container {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1;
|
|
50
|
+
gap: 4px;
|
|
51
|
+
|
|
52
|
+
.ald-modal-text-title {
|
|
53
|
+
color: var(--alias-colors-text-strong, #111827);
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
font-size: 18px;
|
|
56
|
+
line-height: 28px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ald-modal-text-sub-title {
|
|
60
|
+
color: var(--alias-colors-text-subtle, #4b5563);
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
line-height: 16px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-modal-body {
|
|
71
|
+
min-height: 130px;
|
|
72
|
+
max-height: 68vh;
|
|
73
|
+
line-height: 20px;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
overflow-y: auto;
|
|
76
|
+
padding: var(--alias-spacing-200, 16px) var(--alias-spacing-250, 20px);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ant-modal-footer {
|
|
80
|
+
position: relative;
|
|
81
|
+
margin-top: 0;
|
|
82
|
+
padding: var(--alias-spacing-150, 12px) var(--alias-padding-300, 24px);
|
|
83
|
+
border-top: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
84
|
+
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
85
|
+
|
|
86
|
+
.ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
margin-left: 8px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.ald-modal-virtual-scroll-bar {
|
|
94
|
+
.ant-modal-body {
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
padding: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ald-modal-body-wrap {
|
|
100
|
+
.ald-modal-body-wrap-inner {
|
|
101
|
+
max-height: 68vh;
|
|
102
|
+
padding: 0 23px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.ald-modal-padding-less {
|
|
108
|
+
.ant-modal-body {
|
|
109
|
+
padding: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.ald-modal-hide-header-bottom-border {
|
|
114
|
+
.ant-modal-content {
|
|
115
|
+
.ant-modal-header {
|
|
116
|
+
border-bottom: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ald-modal-padding-less {
|
|
123
|
+
.ant-modal-content {
|
|
124
|
+
.ant-modal-body {
|
|
125
|
+
.ald-modal-body-wrap {
|
|
126
|
+
.ald-modal-body-wrap-inner {
|
|
127
|
+
padding: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
//
|
|
2
|
+
.ald-modal.ant-modal-confirm {
|
|
3
|
+
.ant-modal-content {
|
|
4
|
+
.ant-modal-body {
|
|
5
|
+
padding-bottom: 12px !important;
|
|
6
|
+
|
|
7
|
+
.ant-modal-confirm-body-wrapper {
|
|
8
|
+
.ant-modal-confirm-body {
|
|
9
|
+
display: block;
|
|
10
|
+
|
|
11
|
+
.anticon {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-modal-confirm-title {
|
|
16
|
+
.ald-modal-title-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--alias-spacing-200, 16px);
|
|
20
|
+
|
|
21
|
+
.ald-modal-icon-container {
|
|
22
|
+
display: grid;
|
|
23
|
+
place-items: center;
|
|
24
|
+
width: 40px;
|
|
25
|
+
height: 40px;
|
|
26
|
+
border-radius: var(--global-grid-250, 20px);
|
|
27
|
+
|
|
28
|
+
&.ald-modal-cion-info-container {
|
|
29
|
+
background: var(
|
|
30
|
+
--alias-colors-bg-accent-blue-subtle-default,
|
|
31
|
+
#d4e7fd
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.ald-modal-cion-warning-container {
|
|
36
|
+
background: var(
|
|
37
|
+
--alias-colors-bg-accent-yellow-subtle-default,
|
|
38
|
+
#fef9c3
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.ald-modal-cion-success-container {
|
|
43
|
+
background: var(
|
|
44
|
+
--alias-colors-bg-accent-green-subtle-default,
|
|
45
|
+
#dcfce7
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.ald-modal-cion-confirm-container {
|
|
50
|
+
background: var(
|
|
51
|
+
--alias-colors-bg-accent-blue-subtle-default,
|
|
52
|
+
#d4e7fd
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.ald-modal-cion-error-container {
|
|
57
|
+
background: var(
|
|
58
|
+
--alias-colors-bg-accent-red-subtle-default,
|
|
59
|
+
#fee2e2
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ald-modal-text-container {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
gap: var(--alias-spacing-100, 8px);
|
|
69
|
+
flex: 1 0 0;
|
|
70
|
+
|
|
71
|
+
.ald-modal-text-title {
|
|
72
|
+
color: var(--alias-colors-text-strong, #111827);
|
|
73
|
+
font-size: 18px;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
line-height: 28px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ald-modal-text-sub-title {
|
|
79
|
+
color: var(--alias-colors-text-subtle, #4b5563);
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
line-height: 20px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-modal-confirm-content {
|
|
89
|
+
margin-top: var(--alias-spacing-100, 8px);
|
|
90
|
+
margin-left: 56px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ant-modal-confirm-btns {
|
|
95
|
+
margin-block-start: 16px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
package/dist/Pagination/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import classnames from 'classnames';
|
|
|
12
12
|
import _ from 'lodash';
|
|
13
13
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
14
14
|
import Button from "../Button";
|
|
15
|
-
import { ChevronLeftLine, ChevronRightLine } from "../Icon";
|
|
15
|
+
import { ChevronLeftLine, ChevronRightLine, Ellipsis } from "../Icon";
|
|
16
16
|
function Pagination(props) {
|
|
17
17
|
var _props$current = props.current,
|
|
18
18
|
currPage = _props$current === void 0 ? 1 : _props$current,
|
|
@@ -54,7 +54,9 @@ function Pagination(props) {
|
|
|
54
54
|
return /*#__PURE__*/React.createElement("span", {
|
|
55
55
|
key: index,
|
|
56
56
|
className: prefixCls('ellipsis')
|
|
57
|
-
},
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Ellipsis, {
|
|
58
|
+
size: 20
|
|
59
|
+
}));
|
|
58
60
|
}
|
|
59
61
|
return /*#__PURE__*/React.createElement(Button, {
|
|
60
62
|
key: index,
|
|
@@ -11,16 +11,23 @@
|
|
|
11
11
|
&,
|
|
12
12
|
&:focus,
|
|
13
13
|
&:hover {
|
|
14
|
-
border: 1px solid
|
|
15
|
-
|
|
14
|
+
border: 1px solid
|
|
15
|
+
var(--alias-colors-border-accent-blue-subtle-default, #7fb6f8);
|
|
16
|
+
color: var(--alias-colors-border-accent-blue-subtle-default, #7fb6f8);
|
|
17
|
+
background-color: var(--alias-colors-bg-selected-default, #e8f2fe);
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.ald-pagination-ellipsis {
|
|
20
22
|
border: none;
|
|
21
|
-
|
|
23
|
+
width: 32px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
.ald-btn.ald-btn.ald-btn-secondary.ald-pagination-button {
|
|
25
|
-
font-
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 500;
|
|
26
33
|
}
|
package/dist/Popconfirm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["okButtonProps", "cancelButtonProps", "okType", "icon"];
|
|
1
|
+
var _excluded = ["okButtonProps", "cancelButtonProps", "okType", "rootClassName", "icon"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
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; }
|
|
@@ -6,19 +6,19 @@ import { Popconfirm } from 'antd';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
|
|
9
|
-
import {
|
|
10
|
-
import themeColor from "../style/themes/default/themeColor.module.less";
|
|
9
|
+
import { AlertTriangleLine } from "../Icon";
|
|
11
10
|
function MyPopconfirm(props) {
|
|
12
11
|
var _props$okButtonProps = props.okButtonProps,
|
|
13
12
|
okButtonProps = _props$okButtonProps === void 0 ? {} : _props$okButtonProps,
|
|
14
13
|
_props$cancelButtonPr = props.cancelButtonProps,
|
|
15
14
|
cancelButtonProps = _props$cancelButtonPr === void 0 ? {} : _props$cancelButtonPr,
|
|
16
15
|
okType = props.okType,
|
|
16
|
+
rootClassName = props.rootClassName,
|
|
17
17
|
_props$icon = props.icon,
|
|
18
|
-
icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(
|
|
19
|
-
size:
|
|
20
|
-
color:
|
|
21
|
-
fill:
|
|
18
|
+
icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AlertTriangleLine, {
|
|
19
|
+
size: 20,
|
|
20
|
+
color: "#D64343",
|
|
21
|
+
fill: "#fff"
|
|
22
22
|
}) : _props$icon,
|
|
23
23
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
24
24
|
function getButtonProps(buttonProps, defaultBtnType) {
|
|
@@ -42,6 +42,7 @@ function MyPopconfirm(props) {
|
|
|
42
42
|
}
|
|
43
43
|
return /*#__PURE__*/React.createElement(Popconfirm, _extends({}, restProps, {
|
|
44
44
|
icon: icon,
|
|
45
|
+
rootClassName: classNames('ald-pop-confirm', rootClassName),
|
|
45
46
|
okButtonProps: getButtonProps(okButtonProps, 'dangerous'),
|
|
46
47
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
|
|
47
48
|
description: null
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
@import '../../Button/style/index.less';
|
|
3
3
|
|
|
4
|
-
.ant-popover.ant-popover .ant-popover-inner {
|
|
5
|
-
padding:
|
|
6
|
-
border-radius:
|
|
4
|
+
.ald-pop-confirm.ant-popover.ant-popover .ant-popover-inner {
|
|
5
|
+
padding: 12px;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08),
|
|
8
|
+
0 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
7
9
|
|
|
8
10
|
.ant-popover-inner-content {
|
|
9
11
|
.ant-popconfirm-message {
|
|
10
|
-
padding-bottom:
|
|
12
|
+
padding-bottom: 12px;
|
|
11
13
|
margin-bottom: 0;
|
|
12
14
|
align-items: center;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.ant-popconfirm-buttons {
|
|
16
|
-
padding-top:
|
|
18
|
+
padding-top: 12px;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -29,7 +31,15 @@
|
|
|
29
31
|
font-weight: 400;
|
|
30
32
|
font-size: 13px;
|
|
31
33
|
line-height: 20px;
|
|
32
|
-
color:
|
|
34
|
+
color: var(--colors-gray-900, #171717);
|
|
33
35
|
margin-inline-start: 4px;
|
|
36
|
+
margin-left: 4px !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ald-pop-confirm.ant-popover.ant-popover .ant-popover-arrow {
|
|
41
|
+
&::after {
|
|
42
|
+
box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08),
|
|
43
|
+
0 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
34
44
|
}
|
|
35
45
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
.ald-popover.ald-popover {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
// .ald-popover.ald-popover {
|
|
4
|
+
// .ant-popover-title {
|
|
5
|
+
// min-width: 312px;
|
|
6
|
+
// height: 24px;
|
|
7
|
+
// min-height: 24px;
|
|
8
|
+
// padding: 0;
|
|
9
|
+
// color: @NL0;
|
|
10
|
+
// font-weight: 600;
|
|
11
|
+
// font-size: 16px;
|
|
12
|
+
// font-family: 'PingFang SC', sans-serif;
|
|
13
|
+
// font-style: normal;
|
|
14
|
+
// line-height: 24px;
|
|
15
|
+
// border-bottom-width: 0;
|
|
16
|
+
// }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
// .ant-popover-inner-content {
|
|
19
|
+
// min-height: 112px;
|
|
20
|
+
// padding: 24px 0 0;
|
|
21
|
+
// color: @NL0;
|
|
22
|
+
// font-weight: 400;
|
|
23
|
+
// font-size: 14px;
|
|
24
|
+
// font-family: 'PingFang SC', sans-serif;
|
|
25
|
+
// font-style: normal;
|
|
26
|
+
// line-height: 20px;
|
|
27
|
+
// }
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
29
|
+
// .ant-popover-inner {
|
|
30
|
+
// padding: 16px 24px;
|
|
31
|
+
// border-radius: 8px;
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
@@ -16,7 +16,7 @@ export var RadioGroupContext = /*#__PURE__*/createContext({});
|
|
|
16
16
|
export default function RadioGroup(props) {
|
|
17
17
|
var children = props.children,
|
|
18
18
|
_props$radioGroupStyl = props.radioGroupStyle,
|
|
19
|
-
radioGroupStyle = _props$radioGroupStyl === void 0 ? '
|
|
19
|
+
radioGroupStyle = _props$radioGroupStyl === void 0 ? 'filled' : _props$radioGroupStyl,
|
|
20
20
|
_props$size = props.size,
|
|
21
21
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
22
22
|
_props$type = props.type,
|
|
@@ -64,10 +64,8 @@ export default function RadioGroup(props) {
|
|
|
64
64
|
}
|
|
65
65
|
}, /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: getWrapperClass()
|
|
67
|
-
}, children,
|
|
68
|
-
className: classNames('ald-radio-filled-slider
|
|
69
|
-
'ald-radio-filled-slider-filter': radioGroupStyle === 'filter'
|
|
70
|
-
}),
|
|
67
|
+
}, children, type !== 'radio' ? /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: classNames('ald-radio-filled-slider'),
|
|
71
69
|
ref: sliderRef
|
|
72
70
|
}) : null));
|
|
73
71
|
}
|
|
@@ -9,6 +9,7 @@ import _ from 'lodash';
|
|
|
9
9
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
10
10
|
import { getUUID } from "../../../_utils/hooks/useId";
|
|
11
11
|
import { RadioGroupContext } from "../Group";
|
|
12
|
+
var FILL_BUTTON_MARGIN = 4;
|
|
12
13
|
export default function Radio(props) {
|
|
13
14
|
var groupContext = useContext(RadioGroupContext);
|
|
14
15
|
var labelRef = useRef(null);
|
|
@@ -63,7 +64,7 @@ export default function Radio(props) {
|
|
|
63
64
|
var _groupContext$sliderR;
|
|
64
65
|
if (radioProps.checked && groupContext !== null && groupContext !== void 0 && (_groupContext$sliderR = groupContext.sliderRef) !== null && _groupContext$sliderR !== void 0 && _groupContext$sliderR.current && labelRef !== null && labelRef !== void 0 && labelRef.current) {
|
|
65
66
|
groupContext.sliderRef.current.style.left = "".concat(labelRef.current.offsetLeft, "px");
|
|
66
|
-
groupContext.sliderRef.current.style.width = "".concat(labelRef.current.offsetWidth, "px");
|
|
67
|
+
groupContext.sliderRef.current.style.width = "".concat(labelRef.current.offsetWidth - FILL_BUTTON_MARGIN, "px");
|
|
67
68
|
}
|
|
68
69
|
}, [groupContext.sliderRef, radioProps.checked]);
|
|
69
70
|
var onChange = function onChange() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type TRadioGroupStyle = '
|
|
2
|
+
export type TRadioGroupStyle = 'filled';
|
|
3
3
|
export type TRadioSize = 'large' | 'middle' | 'small' | 'default';
|
|
4
4
|
export type TRadioType = 'radio' | 'button' | 'iconButton';
|
|
5
5
|
export interface IRadioGroupProps {
|