@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.10
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/Avatar/component/Avatar/index.js +9 -7
- package/dist/Avatar/style/index.less +8 -1
- 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 +236 -48
- package/dist/Checkbox/index.js +10 -4
- package/dist/Checkbox/style/index.less +117 -108
- package/dist/Checkbox/type.d.ts +11 -0
- package/dist/ColorPicker/style/index.less +1 -2
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/style/index.less +11 -11
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +71 -107
- package/dist/Empty/image/Search.js +2 -2
- package/dist/Empty/image/SearchSmall.js +2 -2
- package/dist/Empty/index.js +2 -1
- package/dist/Empty/style/index.less +2 -1
- package/dist/Form/style/index.less +27 -6
- 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/CloseCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseCircleLightLine.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/components/User.d.ts +11 -0
- package/dist/Icon/components/User.js +41 -0
- package/dist/Icon/components/UserGroup.d.ts +11 -0
- package/dist/Icon/components/UserGroup.js +39 -0
- package/dist/Icon/index.d.ts +19 -3
- package/dist/Icon/index.js +19 -2
- package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
- 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/Icon/svg/user.svg +4 -0
- package/dist/Icon/svg/userGroup.svg +7 -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/InputNumber/style/index.less +12 -9
- package/dist/MemberPicker/components/MultipleOption.js +4 -3
- package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
- package/dist/MemberPicker/components/NickLabel.js +8 -2
- package/dist/MemberPicker/components/Panel.js +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
- package/dist/MemberPicker/components/SingleOption.js +1 -0
- package/dist/MemberPicker/index.js +2 -0
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +38 -30
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +71 -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/Navigator/style/index.less +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +11 -3
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +58 -12
- 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/ScrollArea/index.d.ts +1 -0
- package/dist/ScrollArea/index.js +5 -2
- package/dist/ScrollArea/style/index.less +5 -0
- 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 +28 -40
- package/dist/Select/style/index.less +109 -77
- package/dist/Select/style/layout.less +43 -0
- package/dist/Select/style/option.less +42 -3
- package/dist/Select/style/selectDropdown.less +16 -0
- package/dist/Select/style/size.less +316 -84
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +13 -17
- package/dist/Skeleton/style/index.less +84 -4
- 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 +10 -5
- package/dist/Spin/style/index.less +17 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +18 -3
- package/dist/Table/style/index.less +24 -10
- package/dist/Table/types.d.ts +1 -0
- package/dist/Tabs/index.d.ts +7 -2
- package/dist/Tabs/index.js +9 -6
- package/dist/Tabs/style/index.less +29 -18
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +26 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +14 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/DirectoryTree.js +0 -12
- package/dist/Tree/Tree.js +2 -2
- package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
- package/dist/Tree/demo/directoryTree/index.js +44 -0
- package/dist/Tree/style/index.less +31 -12
- package/dist/Tree/style/mixin.less +3 -5
- package/dist/Tree/style/reset.less +15 -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/footer.d.ts +3 -0
- package/dist/notification/demo/footer.js +44 -0
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +84 -55
- package/dist/notification/style/index.less +53 -9
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +4 -4
- 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,82 @@
|
|
|
1
|
+
// size===large
|
|
2
|
+
@input-height-large: 36px;
|
|
3
|
+
@input-padding-large: var(--alias-padding-75-minus-1, 6px)
|
|
4
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
5
|
+
@input-font-size-large: 16px;
|
|
6
|
+
@input-border-radius-large: 8px;
|
|
7
|
+
@input-prefix-margin-right-large: var(--alias-spacing-100, 8px);
|
|
8
|
+
@input-clear-icon-large: 20px;
|
|
9
|
+
// size===middle
|
|
10
|
+
@input-height-middle: 32px;
|
|
11
|
+
@input-padding-middle: var(--alias-padding-75-minus-1, 6px)
|
|
12
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
13
|
+
@input-font-size-middle: 14px;
|
|
14
|
+
@input-border-radius-middle: var(--alias-radius-75, 6px);
|
|
15
|
+
@input-prefix-margin-right-middle: var(--alias-spacing-75, 6px);
|
|
16
|
+
@input-clear-icon-middle: 20px;
|
|
17
|
+
// size===small
|
|
18
|
+
@input-height-small: 28px;
|
|
19
|
+
@input-padding-small: var(--alias-padding-75-minus-1, 6px)
|
|
20
|
+
var(--alias-padding-150-minus-1, 12px);
|
|
21
|
+
@input-font-size-small: 12px;
|
|
22
|
+
@input-border-radius-small: var(--alias-radius-50, 4px);
|
|
23
|
+
@input-prefix-margin-right-small: var(--alias-spacing-50, 4px);
|
|
24
|
+
@input-clear-icon-small: 20px;
|
|
25
|
+
|
|
26
|
+
.ald-input-wrap {
|
|
27
|
+
&.ald-input-small {
|
|
28
|
+
height: @input-height-small;
|
|
29
|
+
padding: @input-padding-small;
|
|
30
|
+
font-size: @input-font-size-small;
|
|
31
|
+
border-radius: @input-border-radius-small;
|
|
32
|
+
|
|
33
|
+
.ant-input-prefix {
|
|
34
|
+
margin-right: @input-prefix-margin-right-small;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ant-input-suffix .ant-input-clear-icon {
|
|
38
|
+
font-size: @input-clear-icon-small;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.ald-input-middle {
|
|
43
|
+
height: @input-height-middle;
|
|
44
|
+
padding: @input-padding-middle;
|
|
45
|
+
font-size: @input-font-size-middle;
|
|
46
|
+
border-radius: @input-border-radius-middle;
|
|
47
|
+
|
|
48
|
+
.ant-input-prefix {
|
|
49
|
+
margin-right: @input-prefix-margin-right-middle;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-input-suffix .ant-input-clear-icon {
|
|
53
|
+
font-size: @input-clear-icon-middle;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.ald-input-large {
|
|
58
|
+
height: @input-height-large;
|
|
59
|
+
padding: @input-padding-large;
|
|
60
|
+
font-size: @input-font-size-large;
|
|
61
|
+
border-radius: @input-border-radius-large;
|
|
62
|
+
|
|
63
|
+
.ant-input-prefix {
|
|
64
|
+
margin-right: @input-prefix-margin-right-large;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ant-input-suffix .ant-input-clear-icon {
|
|
68
|
+
font-size: @input-clear-icon-small;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ald-input.ald-input {
|
|
74
|
+
// 带有其他内容的输入框,比如带 allowClear图标、prefix、suffix、密码图标等。
|
|
75
|
+
&.ant-input-affix-wrapper {
|
|
76
|
+
.ald-input-wrap();
|
|
77
|
+
}
|
|
78
|
+
// 纯input 输入框,比如普通的<Input /> <Input.textarea />
|
|
79
|
+
&:not(.ant-input-affix-wrapper) {
|
|
80
|
+
.ald-input-wrap();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// 光标颜色
|
|
2
|
+
@input-caret-color: var(
|
|
3
|
+
--alias-colors-border-accent-gray-stronger-default,
|
|
4
|
+
#4b5563
|
|
5
|
+
);
|
|
6
|
+
// color enabled
|
|
7
|
+
@input-enabled-border-color: var(
|
|
8
|
+
--alias-colors-border-accent-gray-subtle-default,
|
|
9
|
+
#d1d5db
|
|
10
|
+
);
|
|
11
|
+
@input-enabled-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
12
|
+
@input-enabled-text-color: var(--alias-colors-text-default, #1f2937);
|
|
13
|
+
@input-enabled-placeholder-color: var(--alias-colors-text-subtlest, #9ca3af);
|
|
14
|
+
// color hover
|
|
15
|
+
@input-hover-border-color: var(
|
|
16
|
+
--alias-colors-border-accent-gray-subtle-hover,
|
|
17
|
+
#9ca3af
|
|
18
|
+
);
|
|
19
|
+
@input-hover-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
20
|
+
@input-hover-text-color: var(--alias-colors-text-default, #1f2937);
|
|
21
|
+
@input-hover-placeholder-color: var(--alias-colors-text-subtlest, #9ca3af);
|
|
22
|
+
|
|
23
|
+
//color focus
|
|
24
|
+
@input-focus-border-color: var(--alias-colors-border-selected, #126fdd);
|
|
25
|
+
@input-focus-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
26
|
+
@input-focus-text-color: var(--alias-colors-text-default, #1f2937);
|
|
27
|
+
@input-focus-placeholder-color: var(--alias-colors-text-subtlest, #9ca3af);
|
|
28
|
+
|
|
29
|
+
//color disabled
|
|
30
|
+
@input-disabled-border-color: var(
|
|
31
|
+
--alias-colors-border-disabled,
|
|
32
|
+
rgba(0, 0, 0, 0.1)
|
|
33
|
+
);
|
|
34
|
+
@input-disabled-bg-color: var(--alias-colors-bg-transp, rgba(0, 0, 0, 0));
|
|
35
|
+
@input-disabled-text-color: var(
|
|
36
|
+
--alias-colors-text-disabled,
|
|
37
|
+
rgba(0, 0, 0, 0.25)
|
|
38
|
+
);
|
|
39
|
+
@input-disabled-placeholder-color: var(
|
|
40
|
+
--alias-colors-text-disabled,
|
|
41
|
+
rgba(0, 0, 0, 0.25)
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
.input-color(@border-color,@text-color,@bg-color,@placeholder-color) {
|
|
45
|
+
border-color: @border-color;
|
|
46
|
+
color: @text-color;
|
|
47
|
+
background-color: @bg-color;
|
|
48
|
+
|
|
49
|
+
&::placeholder {
|
|
50
|
+
color: @placeholder-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ald-input.ald-input {
|
|
55
|
+
// 纯input 输入框,比如普通的<Input /> <Input.textarea />
|
|
56
|
+
&:not(.ant-input-affix-wrapper) {
|
|
57
|
+
.input-color(@input-enabled-border-color,@input-enabled-text-color,@input-enabled-bg-color,@input-enabled-placeholder-color);
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
.input-color(@input-hover-border-color,@input-hover-text-color,@input-hover-bg-color,@input-hover-placeholder-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:focus {
|
|
64
|
+
.input-color(@input-focus-border-color,@input-focus-text-color,@input-focus-bg-color,@input-focus-placeholder-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.ald-input-disabled {
|
|
68
|
+
cursor: default;
|
|
69
|
+
.input-color(@input-disabled-border-color,@input-disabled-text-color,@input-disabled-bg-color,@input-disabled-placeholder-color);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// 带有其他内容的输入框,比如带 allowClear图标、prefix、suffix、密码图标等。
|
|
73
|
+
&.ant-input-affix-wrapper {
|
|
74
|
+
// 纯input 输入框,比如普通的<Input /> <Input.textarea />
|
|
75
|
+
.input-color(@input-enabled-border-color,@input-enabled-text-color,@input-enabled-bg-color,@input-enabled-placeholder-color);
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
.input-color(@input-hover-border-color,@input-hover-text-color,@input-hover-bg-color,@input-hover-placeholder-color);
|
|
79
|
+
}
|
|
80
|
+
// 激活状态
|
|
81
|
+
&.ant-input-affix-wrapper-focused,
|
|
82
|
+
&:active {
|
|
83
|
+
.input-color(@input-focus-border-color,@input-focus-text-color,@input-focus-bg-color,@input-focus-placeholder-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.ald-input-disabled {
|
|
87
|
+
cursor: default;
|
|
88
|
+
.input-color(@input-disabled-border-color,@input-disabled-text-color,@input-disabled-bg-color,@input-disabled-placeholder-color);
|
|
89
|
+
|
|
90
|
+
.ant-input-disabled {
|
|
91
|
+
cursor: default;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// 前缀
|
|
95
|
+
.ant-input-prefix {
|
|
96
|
+
color: var(--alias-colors-text-subtle, #4b5563);
|
|
97
|
+
}
|
|
98
|
+
// 后缀
|
|
99
|
+
.ant-input-suffix {
|
|
100
|
+
.ant-input-clear-icon {
|
|
101
|
+
color: var(--alias-colors-icon-subtle, #6b7280);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -3,27 +3,30 @@
|
|
|
3
3
|
|
|
4
4
|
@inputNumber-height-large: 36px;
|
|
5
5
|
@inputNumber-font-size-large: 16px;
|
|
6
|
-
@inputNumber-border-radius-large:
|
|
6
|
+
@inputNumber-border-radius-large: 8px;
|
|
7
7
|
@inputNumber-padding-large: 0 11px;
|
|
8
8
|
|
|
9
9
|
@inputNumber-height-middle: 32px;
|
|
10
|
-
@inputNumber-font-size-middle:
|
|
11
|
-
@inputNumber-border-radius-middle:
|
|
10
|
+
@inputNumber-font-size-middle: 14px;
|
|
11
|
+
@inputNumber-border-radius-middle: 6px;
|
|
12
12
|
@inputNumber-padding-middle: 0 7px;
|
|
13
13
|
|
|
14
14
|
@inputNumber-height-small: 28px;
|
|
15
15
|
@inputNumber-font-size-small: 12px;
|
|
16
|
-
@inputNumber-border-radius-small:
|
|
16
|
+
@inputNumber-border-radius-small: 4px;
|
|
17
17
|
@inputNumber-padding-small: 0 7px;
|
|
18
18
|
|
|
19
19
|
//默认
|
|
20
|
-
@inputNumber-bg-color:
|
|
21
|
-
@inputNumber-border-color:
|
|
22
|
-
|
|
20
|
+
@inputNumber-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
21
|
+
@inputNumber-border-color: var(
|
|
22
|
+
--alias-colors-border-accent-gray-subtle-default,
|
|
23
|
+
#d1d5db
|
|
24
|
+
);
|
|
25
|
+
@inputNumber-color: var(--alias-colors-text-default, #1f2937);
|
|
23
26
|
@inputNumber-wrapper-bg-color: @BG95;
|
|
24
27
|
//激活
|
|
25
|
-
@inputNumber-active-bg-color:
|
|
26
|
-
@inputNumber-active-border-color:
|
|
28
|
+
@inputNumber-active-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
29
|
+
@inputNumber-active-border-color: var(--alias-colors-border-selected, #126fdd);
|
|
27
30
|
|
|
28
31
|
//disable
|
|
29
32
|
@inputNumber-disabled-bg-color: @BG90;
|
|
@@ -4,8 +4,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
4
4
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import Button from "../../Button";
|
|
8
7
|
import Checkbox from "../../Checkbox";
|
|
8
|
+
import TextLink from "../../TextLink/index";
|
|
9
9
|
import { getAccount, getId, getPhoto } from "../utils";
|
|
10
10
|
import { isUserGroup } from "../utils/getUsersWithUserId";
|
|
11
11
|
import NickLabel from "./NickLabel";
|
|
@@ -32,13 +32,14 @@ export default function MultipleList(params) {
|
|
|
32
32
|
checked: selected,
|
|
33
33
|
disabled: disabled
|
|
34
34
|
}), /*#__PURE__*/React.createElement(NickLabel, {
|
|
35
|
+
type: user.type,
|
|
35
36
|
id: getId(user),
|
|
36
37
|
name: user.name,
|
|
37
38
|
photo: getPhoto(user),
|
|
38
39
|
account: getAccount(user)
|
|
39
|
-
})), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(
|
|
40
|
-
type: "link",
|
|
40
|
+
})), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(TextLink, {
|
|
41
41
|
className: "ald-member-picker-btn",
|
|
42
|
+
size: "small",
|
|
42
43
|
onClick: function onClick(e) {
|
|
43
44
|
onNextLevel === null || onNextLevel === void 0 ? void 0 : onNextLevel(user);
|
|
44
45
|
e.stopPropagation();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { EUserType } from "../../ConfigProvider/getUserList";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
interface INickLabelProps {
|
|
3
4
|
name?: string;
|
|
4
5
|
id: string;
|
|
5
6
|
photo?: React.ReactNode;
|
|
6
7
|
account?: string;
|
|
8
|
+
type: EUserType;
|
|
7
9
|
}
|
|
8
10
|
declare const _default: React.NamedExoticComponent<INickLabelProps>;
|
|
9
11
|
export default _default;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import { EUserType } from "../../ConfigProvider/getUserList";
|
|
2
|
+
import { UserGroup } from "../../Icon";
|
|
1
3
|
import React, { memo } from 'react';
|
|
2
4
|
import Avatar from "../../Avatar";
|
|
3
5
|
var NickLabel = function NickLabel(_ref) {
|
|
4
6
|
var photo = _ref.photo,
|
|
5
7
|
name = _ref.name,
|
|
6
8
|
id = _ref.id,
|
|
7
|
-
account = _ref.account
|
|
9
|
+
account = _ref.account,
|
|
10
|
+
type = _ref.type;
|
|
8
11
|
var innerName = name || id;
|
|
12
|
+
var photoSrc = !photo && type === EUserType.USER_GROUP ? /*#__PURE__*/React.createElement(UserGroup, {
|
|
13
|
+
size: 20
|
|
14
|
+
}) : photo;
|
|
9
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
16
|
className: "ald-member-picker-nick-label"
|
|
11
17
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
12
18
|
key: innerName,
|
|
13
|
-
src:
|
|
19
|
+
src: photoSrc,
|
|
14
20
|
size: 20
|
|
15
21
|
}, innerName), /*#__PURE__*/React.createElement("div", {
|
|
16
22
|
className: "ald-member-picker-nick-label-name",
|
|
@@ -86,7 +86,7 @@ export default function Panel(props) {
|
|
|
86
86
|
var userSelection = /*#__PURE__*/React.createElement(MemberSelection, {
|
|
87
87
|
className: 'ald-member-picker-member-selection-multiple',
|
|
88
88
|
userList: dataList.filter(isUser),
|
|
89
|
-
width: (panelWidth -
|
|
89
|
+
width: (panelWidth - 6) / 2,
|
|
90
90
|
selectedUsers: selectedUsers.filter(isUser),
|
|
91
91
|
onChange: onSelectionChange,
|
|
92
92
|
onSearchValueChange: onSearchValueChange,
|
|
@@ -97,7 +97,7 @@ export default function Panel(props) {
|
|
|
97
97
|
var userGroupSelection = /*#__PURE__*/React.createElement(UserGroupSelection, {
|
|
98
98
|
className: 'ald-member-picker-member-selection-multiple',
|
|
99
99
|
userGroupList: dataList.filter(isUserGroup),
|
|
100
|
-
width: (panelWidth -
|
|
100
|
+
width: (panelWidth - 6) / 2,
|
|
101
101
|
selectedUsersGroup: selectedUsers.filter(isUserGroup),
|
|
102
102
|
onChange: onSelectionChange,
|
|
103
103
|
onSearchValueChange: onSearchValueChange,
|
|
@@ -43,12 +43,15 @@ export default function SelectedMemberTags(props) {
|
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: 'ald-member-picker-selected-member-tag',
|
|
45
45
|
key: getId(user)
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: 'ald-member-picker-selected-member-tag-user'
|
|
46
48
|
}, /*#__PURE__*/React.createElement(NickLabel, {
|
|
49
|
+
type: user.type,
|
|
47
50
|
id: getId(user),
|
|
48
51
|
name: user.name,
|
|
49
52
|
photo: getPhoto(user),
|
|
50
53
|
account: getAccount(user)
|
|
51
|
-
}), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
|
|
54
|
+
})), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
|
|
52
55
|
size: 20,
|
|
53
56
|
className: 'ald-member-picker-close',
|
|
54
57
|
color: "#98A2B3",
|
|
@@ -21,6 +21,7 @@ export default function SingleOption(params) {
|
|
|
21
21
|
className: classnames('ald-member-picker-option', className, 'ald-member-picker-singleOption', _defineProperty({}, 'ald-member-picker-single-option-selected', selected)),
|
|
22
22
|
onClick: onClick
|
|
23
23
|
}, /*#__PURE__*/React.createElement(NickLabel, {
|
|
24
|
+
type: user.type,
|
|
24
25
|
id: getId(user),
|
|
25
26
|
name: user.name,
|
|
26
27
|
photo: getPhoto(user),
|
|
@@ -35,6 +35,7 @@ var Component = function Component(_ref) {
|
|
|
35
35
|
disabled = _ref.disabled,
|
|
36
36
|
_onClear = _ref.onClear,
|
|
37
37
|
size = _ref.size,
|
|
38
|
+
selectType = _ref.selectType,
|
|
38
39
|
_ref$lockedIds = _ref.lockedIds,
|
|
39
40
|
lockedIds = _ref$lockedIds === void 0 ? [] : _ref$lockedIds;
|
|
40
41
|
var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
|
|
@@ -185,6 +186,7 @@ var Component = function Component(_ref) {
|
|
|
185
186
|
return /*#__PURE__*/React.createElement(Select, {
|
|
186
187
|
prefix: prefix,
|
|
187
188
|
size: size,
|
|
189
|
+
type: selectType,
|
|
188
190
|
className: classNames('ald-member-picker-select', className),
|
|
189
191
|
value: selectedUserList.map(function (item) {
|
|
190
192
|
if (item.type === EUserType.USER_GROUP) {
|
|
@@ -15,6 +15,7 @@ export interface IBaseMemberSelectorProps extends Pick<ISelectProps, 'allowClear
|
|
|
15
15
|
open?: boolean;
|
|
16
16
|
onOpenChange?: (open: boolean) => void;
|
|
17
17
|
type?: EMemberPicker;
|
|
18
|
+
selectType?: ISelectProps['type'];
|
|
18
19
|
lockedIds?: Array<TUserValue | TUserGroupValue>;
|
|
19
20
|
}
|
|
20
21
|
export interface IMultipleMemberSelectorProps extends IBaseMemberSelectorProps {
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
@import '../../Empty/style/index.less';
|
|
7
7
|
@import '../../message/style/index.less';
|
|
8
8
|
@import '../../Spin/style/index.less';
|
|
9
|
+
@import '../../TextLink/style/index.less';
|
|
9
10
|
|
|
10
11
|
@btnWidth: 30px;
|
|
11
12
|
|
|
12
13
|
.ald-member-picker-wrapper {
|
|
13
14
|
box-sizing: border-box;
|
|
14
15
|
border: 1px solid var(--colors-gray-400, #dbdbdb);
|
|
15
|
-
background: var(--colors-
|
|
16
|
-
box-shadow: 0
|
|
17
|
-
0 8px 8px -4px rgb(16 24 40 / 0.03);
|
|
16
|
+
background: var(--global-colors-base-white-950a, #fff);
|
|
17
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
18
18
|
|
|
19
19
|
&.ald-member-picker-multiple {
|
|
20
20
|
display: flex;
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
// .memberSelection {
|
|
24
24
|
// }
|
|
25
|
-
.ald-member-picker-selected-member-tags {
|
|
26
|
-
border-left: 1px solid var(--colors-gray-400, #dbdbdb);
|
|
27
|
-
}
|
|
28
25
|
|
|
29
26
|
.ald-member-picker-selector-footer {
|
|
30
27
|
grid-column: 1 / 3;
|
|
@@ -34,6 +31,7 @@
|
|
|
34
31
|
|
|
35
32
|
.ald-member-picker-member-selection-wrapper {
|
|
36
33
|
width: 50%;
|
|
34
|
+
border-right: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
.ald-member-picker-member-list-wrap {
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
.ald-member-picker-search-input.ald-member-picker-search-input {
|
|
52
50
|
border: none;
|
|
53
51
|
border-bottom: 1px solid var(--colors-gray-300, #e8e8e8) !important;
|
|
54
|
-
border-radius: 0;
|
|
52
|
+
border-radius: 0 !important;
|
|
55
53
|
flex: 0 0 32px;
|
|
56
54
|
|
|
57
55
|
&.ant-input-affix-wrapper-focused {
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
.ald-member-picker-member-list {
|
|
75
|
-
height:
|
|
73
|
+
height: 300px;
|
|
76
74
|
|
|
77
75
|
&.ald-member-picker-member-list-null {
|
|
78
76
|
display: none;
|
|
@@ -82,6 +80,7 @@
|
|
|
82
80
|
|
|
83
81
|
.ald-member-picker-selected-member-tags-wrap {
|
|
84
82
|
width: 50%;
|
|
83
|
+
height: 100%;
|
|
85
84
|
max-height: 320px;
|
|
86
85
|
padding: 8px;
|
|
87
86
|
|
|
@@ -102,19 +101,21 @@
|
|
|
102
101
|
|
|
103
102
|
.ald-member-picker-selected-member-tag {
|
|
104
103
|
display: flex;
|
|
105
|
-
padding: 1px 5px;
|
|
106
104
|
justify-content: center;
|
|
107
|
-
|
|
108
|
-
border-radius: var(--
|
|
109
|
-
border: 1px solid
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
align-items: center;
|
|
106
|
+
border-radius: var(--alias-radius-50, 4px);
|
|
107
|
+
border: 1px solid
|
|
108
|
+
var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
|
|
109
|
+
background: var(--alias-colors-bg-accent-gray-subtler-default, #f9fafb);
|
|
110
|
+
color: var(--alias-colors-text-accent-gray-default, #374151);
|
|
111
|
+
text-align: center;
|
|
112
|
+
font-size: 14px;
|
|
112
113
|
font-weight: 400;
|
|
113
|
-
line-height: 20px;
|
|
114
|
-
height: 24px;
|
|
115
|
-
max-width: 100%;
|
|
114
|
+
line-height: 20px; /* 142.857% */
|
|
116
115
|
|
|
117
116
|
.ald-member-picker-close {
|
|
117
|
+
border-left: 1px solid
|
|
118
|
+
var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
|
|
118
119
|
cursor: pointer;
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -130,18 +131,18 @@
|
|
|
130
131
|
align-items: center;
|
|
131
132
|
gap: var(--global-number-spacing-spacing-sm, 12px);
|
|
132
133
|
align-self: stretch;
|
|
133
|
-
border-top: 1px solid var(--colors-
|
|
134
|
-
background: var(--colors-
|
|
134
|
+
border-top: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
135
|
+
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.ald-member-picker-option {
|
|
138
|
-
padding: 0
|
|
139
|
+
padding: 0 12px;
|
|
139
140
|
display: flex;
|
|
140
141
|
align-items: center;
|
|
141
142
|
box-sizing: border-box;
|
|
142
|
-
height:
|
|
143
|
+
height: 36px;
|
|
143
144
|
line-height: 20px;
|
|
144
|
-
gap:
|
|
145
|
+
gap: 6px;
|
|
145
146
|
cursor: pointer;
|
|
146
147
|
justify-content: space-between;
|
|
147
148
|
|
|
@@ -192,7 +193,7 @@
|
|
|
192
193
|
width: auto;
|
|
193
194
|
height: 32px;
|
|
194
195
|
box-sizing: border-box;
|
|
195
|
-
background: var(--colors-
|
|
196
|
+
background: var(--global-colors-base-white-950a, #fff);
|
|
196
197
|
justify-content: space-between;
|
|
197
198
|
min-width: 0;
|
|
198
199
|
|
|
@@ -231,8 +232,13 @@
|
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
|
|
235
|
+
.ald-member-picker-selected-member-tag-user {
|
|
236
|
+
padding: 2px 6px;
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
}
|
|
240
|
+
|
|
234
241
|
.ald-member-picker-nick-label {
|
|
235
|
-
font-size: 0;
|
|
236
242
|
display: inline-flex;
|
|
237
243
|
gap: 4px;
|
|
238
244
|
flex-wrap: nowrap;
|
|
@@ -246,15 +252,14 @@
|
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
.ald-member-picker-nick-label-name {
|
|
249
|
-
color: var(--colors-
|
|
250
|
-
font-size:
|
|
251
|
-
font-style: normal;
|
|
255
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
256
|
+
font-size: 14px;
|
|
252
257
|
font-weight: 400;
|
|
253
|
-
line-height: 20px;
|
|
258
|
+
line-height: 20px; /* 142.857% */
|
|
254
259
|
white-space: nowrap;
|
|
255
260
|
text-overflow: ellipsis;
|
|
256
261
|
overflow: hidden;
|
|
257
|
-
max-width:
|
|
262
|
+
max-width: 130px;
|
|
258
263
|
}
|
|
259
264
|
}
|
|
260
265
|
|
|
@@ -308,8 +313,11 @@
|
|
|
308
313
|
align-items: center;
|
|
309
314
|
}
|
|
310
315
|
|
|
311
|
-
.ald-select-popup.ald-member-picker-popup.ald-member-picker-popup {
|
|
316
|
+
.ald-select-popup.ald-member-picker-popup.ald-member-picker-popup.ald-member-picker-popup {
|
|
312
317
|
border: none;
|
|
313
318
|
background-color: transparent;
|
|
314
319
|
overflow: hidden;
|
|
320
|
+
padding: 0;
|
|
321
|
+
box-shadow: none;
|
|
322
|
+
border-radius: 0;
|
|
315
323
|
}
|
package/dist/Menu/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "
|
|
1
|
+
var _excluded = ["className", "items"];
|
|
2
2
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
3
|
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); }
|
|
4
4
|
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; }
|
|
@@ -12,7 +12,6 @@ import { Menu as AntdMenu } from 'antd';
|
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { ChevronRightLine } from "../Icon";
|
|
15
|
-
import theme from "../style/themes/default/themeColor.module.less";
|
|
16
15
|
import Divider from "./Divider";
|
|
17
16
|
import MenuItem from "./MenuItem";
|
|
18
17
|
import SubMenu from "./SubMenu";
|
|
@@ -30,7 +29,10 @@ export function addPopupOffset(items) {
|
|
|
30
29
|
return _objectSpread(_objectSpread({
|
|
31
30
|
popupOffset: [OFFSET_WIDTH, OFFSET_HEIGHT]
|
|
32
31
|
}, item), {}, {
|
|
33
|
-
children: addPopupOffset(item.children)
|
|
32
|
+
children: addPopupOffset(item.children),
|
|
33
|
+
expandIcon: /*#__PURE__*/React.createElement(ChevronRightLine, {
|
|
34
|
+
size: 16
|
|
35
|
+
})
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
return item;
|
|
@@ -38,15 +40,10 @@ export function addPopupOffset(items) {
|
|
|
38
40
|
}
|
|
39
41
|
export default function Menu(props) {
|
|
40
42
|
var className = props.className,
|
|
41
|
-
expandIcon = props.expandIcon,
|
|
42
43
|
items = props.items,
|
|
43
44
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
44
45
|
return /*#__PURE__*/React.createElement(AntdMenu, _extends({
|
|
45
|
-
className: classNames(className, 'ald-menu')
|
|
46
|
-
expandIcon: expandIcon || /*#__PURE__*/React.createElement(ChevronRightLine, {
|
|
47
|
-
color: theme.NL50,
|
|
48
|
-
size: 16
|
|
49
|
-
})
|
|
46
|
+
className: classNames(className, 'ald-menu')
|
|
50
47
|
}, otherProps, {
|
|
51
48
|
items: addPopupOffset(items),
|
|
52
49
|
theme: "light"
|