@qsxy/element-plus-react 1.0.0-next.5 → 1.0.0-next.7
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/Cascader/Cascader.js +147 -182
- package/dist/Cascader/CascaderContext.d.ts +4 -10
- package/dist/Cascader/CascaderContext.js +2 -6
- package/dist/Cascader/CascaderDropdown.js +1 -1
- package/dist/Cascader/CascaderMenu.d.ts +0 -7
- package/dist/Cascader/CascaderMenu.js +4 -77
- package/dist/Cascader/Utils.d.ts +0 -2
- package/dist/Cascader/Utils.js +0 -44
- package/dist/Cascader/index.d.ts +1 -1
- package/dist/Cascader/typings.d.ts +2 -18
- package/dist/Cascader/useCascader.d.ts +1 -15
- package/dist/Cascader/useCascader.js +14 -41
- package/dist/DatePicker/DatePicker.js +5 -5
- package/dist/Empty/ImgEmpty.js +1 -1
- package/dist/Tree/DirectoryTree.d.ts +6 -13
- package/dist/Tree/DirectoryTree.js +32 -81
- package/dist/Tree/DropIndicator.d.ts +4 -2
- package/dist/Tree/DropIndicator.js +7 -2
- package/dist/Tree/Indent.d.ts +2 -2
- package/dist/Tree/Indent.js +4 -4
- package/dist/Tree/MotionTreeNode.d.ts +4 -5
- package/dist/Tree/MotionTreeNode.js +69 -52
- package/dist/Tree/NodeList.d.ts +15 -11
- package/dist/Tree/NodeList.js +38 -29
- package/dist/Tree/RCTree.d.ts +77 -75
- package/dist/Tree/RCTree.js +199 -188
- package/dist/Tree/Tree.d.ts +3 -3
- package/dist/Tree/Tree.js +27 -27
- package/dist/Tree/TreeNode.d.ts +5 -90
- package/dist/Tree/TreeNode.js +320 -422
- package/dist/Tree/contextTypes.d.ts +36 -30
- package/dist/Tree/contextTypes.js +17 -4
- package/dist/Tree/index.d.ts +2 -2
- package/dist/Tree/typings.d.ts +60 -19
- package/dist/Tree/typings.js +1 -13
- package/dist/Tree/typings.tsx--bak +245 -0
- package/dist/Tree/useUnmount.d.ts +5 -0
- package/dist/{VirtualList/index.js → Tree/useUnmount.js} +25 -10
- package/dist/Tree/util.d.ts +17 -21
- package/dist/Tree/util.js +21 -52
- package/dist/Tree/utils/conductUtil.d.ts +2 -2
- package/dist/Tree/utils/conductUtil.js +14 -3
- package/dist/Tree/utils/dictUtil.d.ts +7 -3
- package/dist/Tree/utils/dictUtil.js +49 -32
- package/dist/Tree/utils/diffUtil.d.ts +4 -3
- package/dist/Tree/utils/keyUtil.d.ts +2 -0
- package/dist/{VirtualList/utils/isFirefox.js → Tree/utils/keyUtil.js} +8 -7
- package/dist/Tree/utils/motion.js +6 -5
- package/dist/Tree/utils/treeUtil.d.ts +16 -18
- package/dist/Tree/utils/treeUtil.js +35 -14
- package/dist/TreeSelect/Utils.d.ts +1 -1
- package/dist/Util/base.d.ts +1 -1
- package/dist/Util/base.js +14 -2
- package/dist/index.css +6 -4
- package/dist/index.d.ts +3 -5
- package/dist/index.js +0 -5
- package/dist/theme-chalk/calendar/month-table.scss +1 -1
- package/dist/theme-chalk/input/input.scss +5 -3
- package/package.json +2 -1
- package/dist/Tree/utils/KeyCode.d.ts +0 -436
- package/dist/Tree/utils/KeyCode.js +0 -550
- package/dist/VirtualList/Filler.d.ts +0 -16
- package/dist/VirtualList/Filler.js +0 -78
- package/dist/VirtualList/Item.d.ts +0 -7
- package/dist/VirtualList/Item.js +0 -37
- package/dist/VirtualList/ScrollBar.d.ts +0 -43
- package/dist/VirtualList/ScrollBar.js +0 -216
- package/dist/VirtualList/VirtualList.d.ts +0 -36
- package/dist/VirtualList/VirtualList.js +0 -280
- package/dist/VirtualList/hooks/useChildren.d.ts +0 -3
- package/dist/VirtualList/hooks/useChildren.js +0 -46
- package/dist/VirtualList/hooks/useDiffItem.d.ts +0 -2
- package/dist/VirtualList/hooks/useDiffItem.js +0 -39
- package/dist/VirtualList/hooks/useFrameWheel.d.ts +0 -6
- package/dist/VirtualList/hooks/useFrameWheel.js +0 -72
- package/dist/VirtualList/hooks/useHeights.d.ts +0 -3
- package/dist/VirtualList/hooks/useHeights.js +0 -83
- package/dist/VirtualList/hooks/useLayoutEffect.d.ts +0 -6
- package/dist/VirtualList/hooks/useLayoutEffect.js +0 -30
- package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +0 -2
- package/dist/VirtualList/hooks/useMobileTouchMove.js +0 -92
- package/dist/VirtualList/hooks/useOriginScroll.d.ts +0 -2
- package/dist/VirtualList/hooks/useOriginScroll.js +0 -56
- package/dist/VirtualList/hooks/useScrollTo.d.ts +0 -5
- package/dist/VirtualList/hooks/useScrollTo.js +0 -111
- package/dist/VirtualList/index.d.ts +0 -2
- package/dist/VirtualList/interface.d.ts +0 -8
- package/dist/VirtualList/interface.js +0 -17
- package/dist/VirtualList/mock.d.ts +0 -6
- package/dist/VirtualList/mock.js +0 -29
- package/dist/VirtualList/utils/CacheMap.d.ts +0 -7
- package/dist/VirtualList/utils/CacheMap.js +0 -36
- package/dist/VirtualList/utils/algorithmUtil.d.ts +0 -23
- package/dist/VirtualList/utils/algorithmUtil.js +0 -81
- package/dist/VirtualList/utils/findDOMNode.d.ts +0 -5
- package/dist/VirtualList/utils/findDOMNode.js +0 -30
- package/dist/VirtualList/utils/isFirefox.d.ts +0 -2
- package/dist/VirtualList/utils/raf.d.ts +0 -5
- package/dist/VirtualList/utils/raf.js +0 -57
- package/dist/theme-chalk/bak/common/popup.scss +0 -47
- package/dist/theme-chalk/bak/common/transition.scss +0 -118
- package/dist/theme-chalk/bak/common/var.scss +0 -1476
- package/dist/theme-chalk/bak/mixins/_button.scss +0 -224
- package/dist/theme-chalk/bak/mixins/_col.scss +0 -38
- package/dist/theme-chalk/bak/mixins/_var.scss +0 -55
- package/dist/theme-chalk/bak/mixins/config.scss +0 -5
- package/dist/theme-chalk/bak/mixins/function.scss +0 -85
- package/dist/theme-chalk/bak/mixins/mixins.scss +0 -215
- package/dist/theme-chalk/bak/mixins/utils.scss +0 -39
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
@use '../mixins/var' as *;
|
|
2
|
-
@use '../mixins/function' as *;
|
|
3
|
-
@use '../common/var' as *;
|
|
4
|
-
|
|
5
|
-
@mixin button-plain($type) {
|
|
6
|
-
$button-color-types: (
|
|
7
|
-
'': (
|
|
8
|
-
'text-color': (
|
|
9
|
-
'color',
|
|
10
|
-
$type,
|
|
11
|
-
),
|
|
12
|
-
'bg-color': (
|
|
13
|
-
'color',
|
|
14
|
-
$type,
|
|
15
|
-
'light-9',
|
|
16
|
-
),
|
|
17
|
-
'border-color': (
|
|
18
|
-
'color',
|
|
19
|
-
$type,
|
|
20
|
-
'light-5',
|
|
21
|
-
),
|
|
22
|
-
),
|
|
23
|
-
'hover': (
|
|
24
|
-
'text-color': (
|
|
25
|
-
'color',
|
|
26
|
-
'white',
|
|
27
|
-
),
|
|
28
|
-
'bg-color': (
|
|
29
|
-
'color',
|
|
30
|
-
$type,
|
|
31
|
-
),
|
|
32
|
-
'border-color': (
|
|
33
|
-
'color',
|
|
34
|
-
$type,
|
|
35
|
-
),
|
|
36
|
-
),
|
|
37
|
-
'active': (
|
|
38
|
-
'text-color': (
|
|
39
|
-
'color',
|
|
40
|
-
'white',
|
|
41
|
-
),
|
|
42
|
-
),
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
@each $type, $typeMap in $button-color-types {
|
|
46
|
-
@each $typeColor, $list in $typeMap {
|
|
47
|
-
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.is-disabled {
|
|
52
|
-
&,
|
|
53
|
-
&:hover,
|
|
54
|
-
&:focus,
|
|
55
|
-
&:active {
|
|
56
|
-
color: getCssVar('color', $type, 'light-5');
|
|
57
|
-
background-color: getCssVar('color', $type, 'light-9');
|
|
58
|
-
border-color: getCssVar('color', $type, 'light-8');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@mixin button-variant($type) {
|
|
64
|
-
$button-color-types: (
|
|
65
|
-
'': (
|
|
66
|
-
'text-color': (
|
|
67
|
-
'color',
|
|
68
|
-
'white',
|
|
69
|
-
),
|
|
70
|
-
'bg-color': (
|
|
71
|
-
'color',
|
|
72
|
-
$type,
|
|
73
|
-
),
|
|
74
|
-
'border-color': (
|
|
75
|
-
'color',
|
|
76
|
-
$type,
|
|
77
|
-
),
|
|
78
|
-
'outline-color': (
|
|
79
|
-
'color',
|
|
80
|
-
$type,
|
|
81
|
-
'light-5',
|
|
82
|
-
),
|
|
83
|
-
'active-color': (
|
|
84
|
-
'color',
|
|
85
|
-
$type,
|
|
86
|
-
'dark-2',
|
|
87
|
-
),
|
|
88
|
-
),
|
|
89
|
-
'hover': (
|
|
90
|
-
'text-color': (
|
|
91
|
-
'color',
|
|
92
|
-
'white',
|
|
93
|
-
),
|
|
94
|
-
'link-text-color': (
|
|
95
|
-
'color',
|
|
96
|
-
$type,
|
|
97
|
-
'light-5',
|
|
98
|
-
),
|
|
99
|
-
'bg-color': (
|
|
100
|
-
'color',
|
|
101
|
-
$type,
|
|
102
|
-
'light-3',
|
|
103
|
-
),
|
|
104
|
-
'border-color': (
|
|
105
|
-
'color',
|
|
106
|
-
$type,
|
|
107
|
-
'light-3',
|
|
108
|
-
),
|
|
109
|
-
),
|
|
110
|
-
'active': (
|
|
111
|
-
'bg-color': (
|
|
112
|
-
'color',
|
|
113
|
-
$type,
|
|
114
|
-
'dark-2',
|
|
115
|
-
),
|
|
116
|
-
'border-color': (
|
|
117
|
-
'color',
|
|
118
|
-
$type,
|
|
119
|
-
'dark-2',
|
|
120
|
-
),
|
|
121
|
-
),
|
|
122
|
-
'disabled': (
|
|
123
|
-
'text-color': (
|
|
124
|
-
'color',
|
|
125
|
-
'white',
|
|
126
|
-
),
|
|
127
|
-
'bg-color': (
|
|
128
|
-
'color',
|
|
129
|
-
$type,
|
|
130
|
-
'light-5',
|
|
131
|
-
),
|
|
132
|
-
'border-color': (
|
|
133
|
-
'color',
|
|
134
|
-
$type,
|
|
135
|
-
'light-5',
|
|
136
|
-
),
|
|
137
|
-
),
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
@each $type, $typeMap in $button-color-types {
|
|
141
|
-
@each $typeColor, $list in $typeMap {
|
|
142
|
-
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.is-plain,
|
|
147
|
-
&.is-text,
|
|
148
|
-
&.is-link {
|
|
149
|
-
@include button-plain($type);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&.is-dashed {
|
|
153
|
-
@include button-dashed($type);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@mixin button-dashed($type) {
|
|
158
|
-
$button-color-types: (
|
|
159
|
-
'': (
|
|
160
|
-
'text-color': (
|
|
161
|
-
'color',
|
|
162
|
-
$type,
|
|
163
|
-
),
|
|
164
|
-
'bg-color': (
|
|
165
|
-
'fill-color-blank',
|
|
166
|
-
),
|
|
167
|
-
'border-color': (
|
|
168
|
-
'color',
|
|
169
|
-
$type,
|
|
170
|
-
),
|
|
171
|
-
),
|
|
172
|
-
'hover': (
|
|
173
|
-
'text-color': (
|
|
174
|
-
'color',
|
|
175
|
-
$type,
|
|
176
|
-
'light-3',
|
|
177
|
-
),
|
|
178
|
-
'bg-color': (
|
|
179
|
-
'fill-color-blank',
|
|
180
|
-
),
|
|
181
|
-
'border-color': (
|
|
182
|
-
'color',
|
|
183
|
-
$type,
|
|
184
|
-
'light-3',
|
|
185
|
-
),
|
|
186
|
-
),
|
|
187
|
-
'active': (
|
|
188
|
-
'text-color': (
|
|
189
|
-
'color',
|
|
190
|
-
$type,
|
|
191
|
-
),
|
|
192
|
-
'border-color': (
|
|
193
|
-
'color',
|
|
194
|
-
$type,
|
|
195
|
-
),
|
|
196
|
-
),
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
@each $type, $typeMap in $button-color-types {
|
|
200
|
-
@each $typeColor, $list in $typeMap {
|
|
201
|
-
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&.is-disabled {
|
|
206
|
-
&,
|
|
207
|
-
&:hover,
|
|
208
|
-
&:focus,
|
|
209
|
-
&:active {
|
|
210
|
-
color: getCssVar('color', $type, 'light-5');
|
|
211
|
-
background-color: var(--el-fill-color-blank);
|
|
212
|
-
border-color: getCssVar('color', $type, 'light-8');
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
|
218
|
-
padding: $padding-vertical $padding-horizontal;
|
|
219
|
-
font-size: $font-size;
|
|
220
|
-
border-radius: $border-radius;
|
|
221
|
-
&.is-round {
|
|
222
|
-
padding: $padding-vertical $padding-horizontal;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
@use '../common/var' as *;
|
|
4
|
-
@use './mixins' as *;
|
|
5
|
-
|
|
6
|
-
@mixin col-size($size) {
|
|
7
|
-
@include res($size) {
|
|
8
|
-
.#{$namespace}-col-#{$size}-0 {
|
|
9
|
-
display: none;
|
|
10
|
-
@include when(guttered) {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
@for $i from 0 through 24 {
|
|
15
|
-
.#{$namespace}-col-#{$size}-#{$i} {
|
|
16
|
-
@if $i != 0 {
|
|
17
|
-
display: block;
|
|
18
|
-
}
|
|
19
|
-
max-width: (math.div(1, 24) * $i * 100) * 1%;
|
|
20
|
-
flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.#{$namespace}-col-#{$size}-offset-#{$i} {
|
|
24
|
-
margin-left: (math.div(1, 24) * $i * 100) * 1%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.#{$namespace}-col-#{$size}-pull-#{$i} {
|
|
28
|
-
position: relative;
|
|
29
|
-
right: (math.div(1, 24) * $i * 100) * 1%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.#{$namespace}-col-#{$size}-push-#{$i} {
|
|
33
|
-
position: relative;
|
|
34
|
-
left: (math.div(1, 24) * $i * 100) * 1%;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use 'config';
|
|
4
|
-
@use 'function' as *;
|
|
5
|
-
@use '../common/var' as *;
|
|
6
|
-
|
|
7
|
-
// set css var value, because we need translate value to string
|
|
8
|
-
// for example:
|
|
9
|
-
// @include set-css-var-value(('color', 'primary'), red);
|
|
10
|
-
// --el-color-primary: red;
|
|
11
|
-
@mixin set-css-var-value($name, $value) {
|
|
12
|
-
#{joinVarName($name)}: #{$value};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// @include set-css-var-type('color', 'primary', $map);
|
|
16
|
-
// --el-color-primary: #{map.get($map, 'primary')};
|
|
17
|
-
@mixin set-css-var-type($name, $type, $variables) {
|
|
18
|
-
#{getCssVarName($name, $type)}: #{map.get($variables, $type)};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin set-css-color-type($colors, $type) {
|
|
22
|
-
@include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
|
|
23
|
-
|
|
24
|
-
@each $i in (3, 5, 7, 8, 9) {
|
|
25
|
-
@include set-css-var-value(('color', $type, 'light', $i), map.get($colors, $type, 'light-#{$i}'));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@include set-css-var-value(('color', $type, 'dark-2'), map.get($colors, $type, 'dark-2'));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// set all css var for component by map
|
|
32
|
-
@mixin set-component-css-var($name, $variables) {
|
|
33
|
-
@each $attribute, $value in $variables {
|
|
34
|
-
@if $attribute == 'default' {
|
|
35
|
-
#{getCssVarName($name)}: #{$value};
|
|
36
|
-
} @else {
|
|
37
|
-
#{getCssVarName($name, $attribute)}: #{$value};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@mixin set-css-color-rgb($type) {
|
|
43
|
-
$color: map.get($colors, $type, 'base');
|
|
44
|
-
@include set-css-var-value(('color', $type, 'rgb'), #{red($color), green($color), blue($color)});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// generate css var from existing css var
|
|
48
|
-
// for example:
|
|
49
|
-
// @include css-var-from-global(('button', 'text-color'), ('color', $type))
|
|
50
|
-
// --el-button-text-color: var(--el-color-#{$type});
|
|
51
|
-
@mixin css-var-from-global($var, $gVar) {
|
|
52
|
-
$varName: joinVarName($var);
|
|
53
|
-
$gVarName: joinVarName($gVar);
|
|
54
|
-
#{$varName}: var(#{$gVarName});
|
|
55
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
@use 'config';
|
|
2
|
-
|
|
3
|
-
// BEM support Func
|
|
4
|
-
@function selectorToString($selector) {
|
|
5
|
-
$selector: inspect($selector);
|
|
6
|
-
$selector: str-slice($selector, 2, -2);
|
|
7
|
-
@return $selector;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@function containsModifier($selector) {
|
|
11
|
-
$selector: selectorToString($selector);
|
|
12
|
-
|
|
13
|
-
@if str-index($selector, config.$modifier-separator) {
|
|
14
|
-
@return true;
|
|
15
|
-
} @else {
|
|
16
|
-
@return false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@function containWhenFlag($selector) {
|
|
21
|
-
$selector: selectorToString($selector);
|
|
22
|
-
|
|
23
|
-
@if str-index($selector, '.' + config.$state-prefix) {
|
|
24
|
-
@return true;
|
|
25
|
-
} @else {
|
|
26
|
-
@return false;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@function containPseudoClass($selector) {
|
|
31
|
-
$selector: selectorToString($selector);
|
|
32
|
-
|
|
33
|
-
@if str-index($selector, ':') {
|
|
34
|
-
@return true;
|
|
35
|
-
} @else {
|
|
36
|
-
@return false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@function hitAllSpecialNestRule($selector) {
|
|
41
|
-
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// join var name
|
|
45
|
-
// joinVarName(('button', 'text-color')) => '--el-button-text-color'
|
|
46
|
-
@function joinVarName($list) {
|
|
47
|
-
$name: '--' + config.$namespace;
|
|
48
|
-
@each $item in $list {
|
|
49
|
-
@if $item != '' {
|
|
50
|
-
$name: $name + '-' + $item;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
@return $name;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// getCssVarName('button', 'text-color') => '--el-button-text-color'
|
|
57
|
-
@function getCssVarName($args...) {
|
|
58
|
-
@return joinVarName($args);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// getCssVar('button', 'text-color') => var(--el-button-text-color)
|
|
62
|
-
@function getCssVar($args...) {
|
|
63
|
-
@return var(#{joinVarName($args)});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// getCssVarWithDefault(('button', 'text-color'), red) => var(--el-button-text-color, red)
|
|
67
|
-
@function getCssVarWithDefault($args, $default) {
|
|
68
|
-
@return var(#{joinVarName($args)}, #{$default});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// bem('block', 'element', 'modifier') => 'el-block__element--modifier'
|
|
72
|
-
@function bem($block, $element: '', $modifier: '') {
|
|
73
|
-
$name: config.$namespace + config.$common-separator + $block;
|
|
74
|
-
|
|
75
|
-
@if $element != '' {
|
|
76
|
-
$name: $name + config.$element-separator + $element;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@if $modifier != '' {
|
|
80
|
-
$name: $name + config.$modifier-separator + $modifier;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// @debug $name;
|
|
84
|
-
@return $name;
|
|
85
|
-
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
@use 'function' as *;
|
|
2
|
-
@use '../common/var' as *;
|
|
3
|
-
// forward mixins
|
|
4
|
-
@forward 'config';
|
|
5
|
-
@forward 'function';
|
|
6
|
-
@forward '_var';
|
|
7
|
-
@use 'config' as *;
|
|
8
|
-
|
|
9
|
-
// Break-points
|
|
10
|
-
@mixin res($key, $map: $breakpoints) {
|
|
11
|
-
// loop breakpoint Map, return if present
|
|
12
|
-
@if map-has-key($map, $key) {
|
|
13
|
-
@media only screen and #{unquote(map-get($map, $key))} {
|
|
14
|
-
@content;
|
|
15
|
-
}
|
|
16
|
-
} @else {
|
|
17
|
-
@warn "Undefined points: `#{$map}`";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Scrollbar
|
|
22
|
-
@mixin scroll-bar {
|
|
23
|
-
$scrollbar-thumb-background: getCssVar('text-color', 'disabled');
|
|
24
|
-
$scrollbar-track-background: getCssVar('fill-color', 'blank');
|
|
25
|
-
|
|
26
|
-
&::-webkit-scrollbar {
|
|
27
|
-
z-index: 11;
|
|
28
|
-
width: 6px;
|
|
29
|
-
|
|
30
|
-
&:horizontal {
|
|
31
|
-
height: 6px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-thumb {
|
|
35
|
-
border-radius: 5px;
|
|
36
|
-
width: 6px;
|
|
37
|
-
background: $scrollbar-thumb-background;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-corner {
|
|
41
|
-
background: $scrollbar-track-background;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-track {
|
|
45
|
-
background: $scrollbar-track-background;
|
|
46
|
-
|
|
47
|
-
&-piece {
|
|
48
|
-
background: $scrollbar-track-background;
|
|
49
|
-
width: 6px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// BEM
|
|
56
|
-
@mixin b($block) {
|
|
57
|
-
$B: $namespace + $common-separator + $block !global;
|
|
58
|
-
|
|
59
|
-
.#{$B} {
|
|
60
|
-
@content;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin e($element) {
|
|
65
|
-
$E: $element !global;
|
|
66
|
-
$selector: &;
|
|
67
|
-
$currentSelector: '';
|
|
68
|
-
@each $unit in $element {
|
|
69
|
-
$currentSelector: #{$currentSelector + '.' + $B + $element-separator + $unit + ','};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@if hitAllSpecialNestRule($selector) {
|
|
73
|
-
@at-root {
|
|
74
|
-
#{$selector} {
|
|
75
|
-
#{$currentSelector} {
|
|
76
|
-
@content;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
} @else {
|
|
81
|
-
@at-root {
|
|
82
|
-
#{$currentSelector} {
|
|
83
|
-
@content;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@mixin m($modifier) {
|
|
90
|
-
$selector: &;
|
|
91
|
-
$currentSelector: '';
|
|
92
|
-
@each $unit in $modifier {
|
|
93
|
-
$currentSelector: #{$currentSelector + $selector + $modifier-separator + $unit + ','};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@at-root {
|
|
97
|
-
#{$currentSelector} {
|
|
98
|
-
@content;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@mixin configurable-m($modifier, $E-flag: false) {
|
|
104
|
-
$selector: &;
|
|
105
|
-
$interpolation: '';
|
|
106
|
-
|
|
107
|
-
@if $E-flag {
|
|
108
|
-
$interpolation: $element-separator + $E-flag;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@at-root {
|
|
112
|
-
#{$selector} {
|
|
113
|
-
.#{$B + $interpolation + $modifier-separator + $modifier} {
|
|
114
|
-
@content;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
|
|
121
|
-
$modifierCombo: '';
|
|
122
|
-
|
|
123
|
-
@if $modifier {
|
|
124
|
-
$modifierCombo: $modifier-separator + $modifier;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@at-root {
|
|
128
|
-
#{&}#{$specSelector}.#{$block + $element-separator + $element + $modifierCombo} {
|
|
129
|
-
@content;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@mixin meb($modifier: false, $element: $E, $block: $B) {
|
|
135
|
-
$selector: &;
|
|
136
|
-
$modifierCombo: '';
|
|
137
|
-
|
|
138
|
-
@if $modifier {
|
|
139
|
-
$modifierCombo: $modifier-separator + $modifier;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@at-root {
|
|
143
|
-
#{$selector} {
|
|
144
|
-
.#{$block + $element-separator + $element + $modifierCombo} {
|
|
145
|
-
@content;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@mixin when($state) {
|
|
152
|
-
@at-root {
|
|
153
|
-
&.#{$state-prefix + $state} {
|
|
154
|
-
@content;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@mixin extend-rule($name) {
|
|
160
|
-
@extend #{'%shared-' + $name} !optional;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@mixin share-rule($name) {
|
|
164
|
-
$rule-name: '%shared-' + $name;
|
|
165
|
-
|
|
166
|
-
@at-root #{$rule-name} {
|
|
167
|
-
@content;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@mixin pseudo($pseudo) {
|
|
172
|
-
@at-root #{&}#{':#{$pseudo}'} {
|
|
173
|
-
@content;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@mixin picker-popper($background, $border, $box-shadow) {
|
|
178
|
-
&.#{$namespace}-popper {
|
|
179
|
-
background: $background;
|
|
180
|
-
border: $border;
|
|
181
|
-
box-shadow: $box-shadow;
|
|
182
|
-
|
|
183
|
-
.#{$namespace}-popper__arrow {
|
|
184
|
-
&::before {
|
|
185
|
-
border: $border;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@each $placement, $adjacency in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top') {
|
|
190
|
-
&[data-popper-placement^='#{$placement}'] {
|
|
191
|
-
.#{$namespace}-popper__arrow::before {
|
|
192
|
-
border-#{$placement}-color: transparent;
|
|
193
|
-
border-#{$adjacency}-color: transparent;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// dark
|
|
201
|
-
@mixin dark($block) {
|
|
202
|
-
html.dark {
|
|
203
|
-
@include b($block) {
|
|
204
|
-
@content;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@mixin inset-input-border($color, $important: false) {
|
|
210
|
-
@if $important == true {
|
|
211
|
-
box-shadow: 0 0 0 1px $color inset !important;
|
|
212
|
-
} @else {
|
|
213
|
-
box-shadow: 0 0 0 1px $color inset;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@mixin utils-clearfix {
|
|
2
|
-
$selector: &;
|
|
3
|
-
|
|
4
|
-
@at-root {
|
|
5
|
-
#{$selector}::before,
|
|
6
|
-
#{$selector}::after {
|
|
7
|
-
display: table;
|
|
8
|
-
content: '';
|
|
9
|
-
}
|
|
10
|
-
#{$selector}::after {
|
|
11
|
-
clear: both;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin utils-vertical-center {
|
|
17
|
-
$selector: &;
|
|
18
|
-
|
|
19
|
-
@at-root {
|
|
20
|
-
#{$selector}::after {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
content: '';
|
|
23
|
-
height: 100%;
|
|
24
|
-
vertical-align: middle;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin utils-ellipsis {
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
text-overflow: ellipsis;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin utils-inline-flex-center {
|
|
36
|
-
display: inline-flex;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
align-items: center;
|
|
39
|
-
}
|