@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21
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/README.md +12 -39
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
- package/dist/Switch/Switch.js +50 -17
- package/dist/Switch/typings.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -2
- package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
- package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
- package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
- package/theme-chalk/build.scss +1 -1
- package/theme-chalk/button/_mixins.scss +3 -3
- package/theme-chalk/button/button-group.scss +1 -1
- package/theme-chalk/button/button.scss +2 -2
- package/theme-chalk/button/index.scss +2 -2
- package/theme-chalk/button--bak/_mixins.scss +317 -0
- package/theme-chalk/button--bak/button-group.scss +83 -0
- package/theme-chalk/button--bak/button.scss +382 -0
- package/theme-chalk/button--bak/index.scss +2 -0
- package/theme-chalk/button-group.scss +80 -0
- package/theme-chalk/button.scss +304 -0
- package/theme-chalk/calendar/date-picker.scss +1 -1
- package/theme-chalk/calendar/date-range-picker.scss +1 -1
- package/theme-chalk/calendar/date-table.scss +164 -156
- package/theme-chalk/calendar/date-table.scss--bak +156 -0
- package/theme-chalk/calendar/index.scss +6 -6
- package/theme-chalk/calendar/month-table.scss +1 -1
- package/theme-chalk/calendar/picker-panel.scss +1 -1
- package/theme-chalk/calendar/year-table.scss +1 -1
- package/theme-chalk/{card/index.scss → card.scss} +1 -1
- package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
- package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
- package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
- package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
- package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
- package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
- package/theme-chalk/col/_mixins.scss +5 -3
- package/theme-chalk/col/index.scss +2 -2
- package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
- package/theme-chalk/color/index.scss +20 -0
- package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
- package/theme-chalk/common/index.scss +127 -178
- package/theme-chalk/common/var.scss +1632 -0
- package/theme-chalk/dark/css-vars.scss +39 -0
- package/theme-chalk/dark/var.scss +225 -0
- package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
- package/theme-chalk/dev.scss +2 -2
- package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
- package/theme-chalk/display.scss +1 -1
- package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
- package/theme-chalk/doc.scss +2 -2
- package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
- package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
- package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
- package/theme-chalk/{form/index.scss → form.scss} +1 -1
- package/theme-chalk/icon/fonts.scss +9 -9
- package/theme-chalk/icon/index.scss +1 -1
- package/theme-chalk/icon/scss/_animated.scss +1 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
- package/theme-chalk/icon/scss/_core.scss +2 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
- package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
- package/theme-chalk/icon/scss/_functions.scss +2 -1
- package/theme-chalk/icon/scss/_icons.scss +3 -4
- package/theme-chalk/icon/scss/_list.scss +1 -0
- package/theme-chalk/icon/scss/_mixins.scss +10 -7
- package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
- package/theme-chalk/icon/scss/_shims.scss +292 -290
- package/theme-chalk/icon/scss/_sizing.scss +2 -0
- package/theme-chalk/icon/scss/_stacked.scss +1 -0
- package/theme-chalk/icon/scss/brands.scss +8 -6
- package/theme-chalk/icon/scss/duotone.scss +6 -5
- package/theme-chalk/icon/scss/fontawesome.scss +13 -13
- package/theme-chalk/icon/scss/index.scss +12 -15
- package/theme-chalk/icon/scss/light.scss +3 -2
- package/theme-chalk/icon/scss/regular.scss +3 -2
- package/theme-chalk/icon/scss/solid.scss +3 -2
- package/theme-chalk/icon/scss/thin.scss +3 -2
- package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
- package/theme-chalk/index.scss +63 -57
- package/theme-chalk/input/_mixins.scss +1 -1
- package/theme-chalk/input/index.scss +2 -3
- package/theme-chalk/input/input-range.scss +2 -1
- package/theme-chalk/input/input.scss +2 -1
- package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
- package/theme-chalk/{link/index.scss → link.scss} +1 -1
- package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
- package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
- package/theme-chalk/{message/index.scss → message.scss} +2 -1
- package/theme-chalk/mixins/_button.scss +224 -0
- package/theme-chalk/mixins/_col.scss +33 -0
- package/theme-chalk/mixins/_var.scss +67 -0
- package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
- package/theme-chalk/mixins/function.scss +99 -0
- package/theme-chalk/mixins/mixins.scss +240 -0
- package/theme-chalk/mixins/utils.scss +39 -0
- package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
- package/theme-chalk/pagination.scss +303 -0
- package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
- package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
- package/theme-chalk/popper.scss +104 -0
- package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
- package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
- package/theme-chalk/radio-button.scss +169 -0
- package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
- package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
- package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
- package/theme-chalk/{row/index.scss → row.scss} +1 -1
- package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
- package/theme-chalk/select/index.scss +1 -1
- package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
- package/theme-chalk/switch.scss +300 -0
- package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
- package/theme-chalk/{table/index.scss → table.scss} +1 -1
- package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
- package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
- package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
- package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
- package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
- package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
- package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
- package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
- package/theme-chalk/tree/_directory.scss +1 -1
- package/theme-chalk/tree/_tree.scss +1 -1
- package/theme-chalk/tree/index.scss +2 -2
- package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
- package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
- package/theme-chalk/var.scss +83 -0
- package/theme-chalk/cascader/index.scss +0 -2
- package/theme-chalk/common/index.ts +0 -1
- package/theme-chalk/date-time-picker/index.scss +0 -3
- package/theme-chalk/descriptions/index.scss +0 -2
- package/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/theme-chalk/pagination/index.scss +0 -303
- package/theme-chalk/placeholder/index.scss +0 -120
- package/theme-chalk/radio/index.scss +0 -2
- package/theme-chalk/time-line/index.scss +0 -2
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
@use '../mixins/config' as *;
|
|
2
|
+
|
|
3
|
+
.#{$namespace}-date-table {
|
|
4
|
+
font-size: 12px;
|
|
5
|
+
user-select: none;
|
|
6
|
+
|
|
7
|
+
&.is-week-mode {
|
|
8
|
+
.#{$namespace}-date-table__row {
|
|
9
|
+
&:hover {
|
|
10
|
+
.#{$namespace}-date-table-cell {
|
|
11
|
+
background-color: #f2f6fc;
|
|
12
|
+
}
|
|
13
|
+
td.available:hover {
|
|
14
|
+
color: #606266;
|
|
15
|
+
}
|
|
16
|
+
td:first-child .#{$namespace}-date-table-cell {
|
|
17
|
+
margin-left: 5px;
|
|
18
|
+
border-top-left-radius: 15px;
|
|
19
|
+
border-bottom-left-radius: 15px;
|
|
20
|
+
}
|
|
21
|
+
td:last-child .#{$namespace}-date-table-cell {
|
|
22
|
+
margin-right: 5px;
|
|
23
|
+
border-top-right-radius: 15px;
|
|
24
|
+
border-bottom-right-radius: 15px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.current .#{$namespace}-date-table-cell {
|
|
29
|
+
background-color: #f2f6fc;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
td {
|
|
35
|
+
width: 32px;
|
|
36
|
+
height: 30px;
|
|
37
|
+
padding: 4px 0;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
text-align: center;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
position: relative;
|
|
42
|
+
|
|
43
|
+
.#{$namespace}-date-table-cell {
|
|
44
|
+
height: 30px;
|
|
45
|
+
padding: 3px 0;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
.#{$namespace}-date-table-cell__text {
|
|
48
|
+
width: 24px;
|
|
49
|
+
height: 24px;
|
|
50
|
+
display: block;
|
|
51
|
+
margin: 0 auto;
|
|
52
|
+
line-height: 24px;
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: 50%;
|
|
55
|
+
transform: translateX(-50%);
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.next-month,
|
|
62
|
+
&.prev-month {
|
|
63
|
+
color: var(--#{$namespace}-datepicker-off-text-color);
|
|
64
|
+
|
|
65
|
+
&:hover .#{$namespace}-date-table-cell__text {
|
|
66
|
+
background: var(--#{$namespace}-fill-color-light);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.today {
|
|
71
|
+
position: relative;
|
|
72
|
+
|
|
73
|
+
.#{$namespace}-date-table-cell__text {
|
|
74
|
+
color: var(--#{$namespace}-color-primary);
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
}
|
|
77
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
78
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
79
|
+
color: #ffffff;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.available:hover .#{$namespace}-date-table-cell__text {
|
|
84
|
+
color: var(--#{$namespace}-datepicker-hover-text-color);
|
|
85
|
+
background: var(--#{$namespace}-fill-color-light);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.in-range .#{$namespace}-date-table-cell {
|
|
89
|
+
background-color: var(--#{$namespace}-datepicker-inrange-bg-color);
|
|
90
|
+
&:hover {
|
|
91
|
+
background-color: var(--#{$namespace}-datepicker-inrange-bg-color);
|
|
92
|
+
color: var(--#{$namespace}-datepicker-hover-text-color);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.current:not(.disabled) .#{$namespace}-date-table-cell__text {
|
|
97
|
+
color: #ffffff;
|
|
98
|
+
background: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.start-date .#{$namespace}-date-table-cell__text,
|
|
102
|
+
&.end-date .#{$namespace}-date-table-cell__text {
|
|
103
|
+
background: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary)) !important;
|
|
104
|
+
color: #ffffff !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.start-date .#{$namespace}-date-table-cell {
|
|
108
|
+
margin-left: 5px;
|
|
109
|
+
border-top-left-radius: 15px;
|
|
110
|
+
border-bottom-left-radius: 15px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.end-date .#{$namespace}-date-table-cell {
|
|
114
|
+
margin-right: 5px;
|
|
115
|
+
border-top-right-radius: 15px;
|
|
116
|
+
border-bottom-right-radius: 15px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.disabled .#{$namespace}-date-table-cell {
|
|
120
|
+
background-color: var(--#{$namespace}-fill-color-light);
|
|
121
|
+
opacity: 1;
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
color: var(--#{$namespace}-datepicker-off-text-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.selected .#{$namespace}-date-table-cell {
|
|
127
|
+
margin-left: 5px;
|
|
128
|
+
margin-right: 5px;
|
|
129
|
+
background-color: #f2f6fc;
|
|
130
|
+
border-radius: 15px;
|
|
131
|
+
&:hover {
|
|
132
|
+
background-color: #f2f6fc;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.selected .#{$namespace}-date-table-cell__text {
|
|
137
|
+
background: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
|
|
138
|
+
color: #ffffff;
|
|
139
|
+
border-radius: 15px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.week {
|
|
143
|
+
font-size: 80%;
|
|
144
|
+
color: #606266;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
th {
|
|
149
|
+
padding: 5px;
|
|
150
|
+
color: var(--#{$namespace}-datepicker-header-text-color);
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
font-weight: 600;
|
|
153
|
+
border-bottom: solid 1px var(--#{$namespace}-border-color-light);
|
|
154
|
+
text-align: center;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
1
|
+
@use './date-picker';
|
|
2
|
+
@use './picker-panel';
|
|
3
|
+
@use './year-table';
|
|
4
|
+
@use './month-table';
|
|
5
|
+
@use './date-table';
|
|
6
|
+
@use './date-range-picker';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
@use '
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use '../mixins/config' as *;
|
|
3
5
|
|
|
4
6
|
// Break-point
|
|
5
7
|
$sm: 768px !default;
|
|
@@ -18,8 +20,8 @@ $breakpoints: (
|
|
|
18
20
|
// Break-points
|
|
19
21
|
@mixin res($key, $map: $breakpoints) {
|
|
20
22
|
// loop breakpoint Map, return if present
|
|
21
|
-
@if map
|
|
22
|
-
@media only screen and #{unquote(map
|
|
23
|
+
@if map.has-key($map, $key) {
|
|
24
|
+
@media only screen and #{string.unquote(map.get($map, $key))} {
|
|
23
25
|
@content;
|
|
24
26
|
}
|
|
25
27
|
} @else {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
@function rgb2hex($color) {
|
|
5
|
+
@return string.unquote('#' + #{string.slice(color.ie-hex-str($color), 4)});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// rgba color above solid color
|
|
9
|
+
@function mix-overlay-color($upper, $lower) {
|
|
10
|
+
$opacity: color.alpha($upper);
|
|
11
|
+
|
|
12
|
+
$red: color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') *
|
|
13
|
+
(1 - $opacity);
|
|
14
|
+
$green: color.channel($upper, 'green') * $opacity +
|
|
15
|
+
color.channel($lower, 'green') * (1 - $opacity);
|
|
16
|
+
$blue: color.channel($upper, 'blue') * $opacity +
|
|
17
|
+
color.channel($lower, 'blue') * (1 - $opacity);
|
|
18
|
+
|
|
19
|
+
@return rgb2hex(rgb($red, $green, $blue));
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use './mixins/config' as *;
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
$color-picker-size: () !default;
|
|
@@ -233,8 +233,8 @@ $color-picker-size: (
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.#{$namespace}-color-picker__mask {
|
|
236
|
-
height: map.get($color-picker-size, $size)-2px;
|
|
237
|
-
width: map.get($color-picker-size, $size)-2px;
|
|
236
|
+
height: calc(map.get($color-picker-size, $size) - 2px);
|
|
237
|
+
width: calc(map.get($color-picker-size, $size) - 2px);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
}
|