@zkwq/business 0.0.46 → 0.0.48

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.
@@ -0,0 +1,65 @@
1
+ @keyframes linear-double {
2
+ 0% {
3
+ -webkit-transform: translateX(-56%);
4
+ transform: translateX(-56%)
5
+ }
6
+
7
+ to {
8
+ -webkit-transform: translateX(56%);
9
+ transform: translateX(56%)
10
+ }
11
+ }
12
+ @keyframes Bounce {
13
+ 0%,to {
14
+ -webkit-transform: translateY(-100%);
15
+ transform: translateY(-100%)
16
+ }
17
+ 50% {
18
+ -webkit-transform: translateY(100%);
19
+ transform: translateY(100%)
20
+ }
21
+ }
22
+ @keyframes BounceUp {
23
+ 25% {
24
+ transform: translateY(-3px)
25
+ }
26
+ 50% {
27
+ transform: translateY(0)
28
+ }
29
+ 75% {
30
+ transform: translateY(3px)
31
+ }
32
+ 100% {
33
+ transform: translateY(0)
34
+ }
35
+ }
36
+ .fade-enter-active, .fade-leave-active {
37
+ transition: opacity .5s;
38
+ }
39
+ .fade-enter, .fade-leave-to {
40
+ opacity: 0;
41
+ }
42
+ .fade-fast-enter-active, .fade-fast-leave-active {
43
+ transition: opacity .2s linear;
44
+ }
45
+ .fade-fast-enter, .fade-fast-leave-to {
46
+ opacity: 0;
47
+ }
48
+
49
+ @keyframes fadeInOut {
50
+ 0%{opacity:0}
51
+ 25%{opacity:.25}
52
+ to{opacity:1}
53
+ }
54
+ .fade-enter-active, .fade-leave-active {
55
+ transition: opacity .5s;
56
+ }
57
+ .fade-enter, .fade-leave-to {
58
+ opacity: 0;
59
+ }
60
+ .fade-fast-enter-active, .fade-fast-leave-active {
61
+ transition: opacity .2s linear;
62
+ }
63
+ .fade-fast-enter, .fade-fast-leave-to {
64
+ opacity: 0;
65
+ }
@@ -0,0 +1,4 @@
1
+ $namespace: 'base';
2
+ $element-separator: '__';
3
+ $modifier-separator: '--';
4
+ $state-prefix: 'is-';
@@ -0,0 +1,218 @@
1
+ @import "mixins";
2
+ @import "var";
3
+
4
+ @keyframes base-drawer-fade-in {
5
+ 0% {
6
+ opacity: 0;
7
+ }
8
+ 100% {
9
+ opacity: 1;
10
+ }
11
+ }
12
+
13
+ @mixin drawer-animation($direction) {
14
+
15
+ @keyframes #{$direction}-drawer-in {
16
+ 0% {
17
+
18
+ @if $direction == ltr {
19
+ transform: translate(-100%, 0px);
20
+ }
21
+
22
+ @if $direction == rtl {
23
+ transform: translate(100%, 0px);
24
+ }
25
+
26
+ @if $direction == ttb {
27
+ transform: translate(0px, -100%);
28
+ }
29
+
30
+ @if $direction == btt {
31
+ transform: translate(0px, 100%);
32
+ }
33
+ }
34
+
35
+ 100% {
36
+ @if $direction == ltr {
37
+ transform: translate(0px, 0px);
38
+ }
39
+
40
+ @if $direction == rtl {
41
+ transform: translate(0px, 0px);
42
+ }
43
+
44
+ @if $direction == ttb {
45
+ transform: translate(0px, 0px);
46
+ }
47
+
48
+ @if $direction == btt {
49
+ transform: translate(0px, 0px);
50
+ }
51
+ }
52
+ }
53
+
54
+ @keyframes #{$direction}-drawer-out {
55
+ 0% {
56
+ @if $direction == ltr {
57
+ transform: translate(0px, 0px);
58
+ }
59
+
60
+ @if $direction == rtl {
61
+ transform: translate(0px, 0px);;
62
+ }
63
+
64
+ @if $direction == ttb {
65
+ transform: translate(0px, 0px);
66
+ }
67
+
68
+ @if $direction == btt {
69
+ transform: translate(0px, 0);
70
+ }
71
+ }
72
+
73
+ 100% {
74
+ @if $direction == ltr {
75
+ transform: translate(-100%, 0px);
76
+ }
77
+
78
+ @if $direction == rtl {
79
+ transform: translate(100%, 0px);
80
+ }
81
+
82
+ @if $direction == ttb {
83
+ transform: translate(0px, -100%);
84
+ }
85
+
86
+ @if $direction == btt {
87
+ transform: translate(0px, 100%);
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ @mixin animation-in($direction) {
94
+ .base-drawer__open &.#{$direction} {
95
+ animation: #{$direction}-drawer-in .3s 1ms;
96
+ }
97
+ }
98
+
99
+ @mixin animation-out($direction) {
100
+ &.#{$direction} {
101
+ animation: #{$direction}-drawer-out .3s;
102
+ }
103
+ }
104
+
105
+ @include drawer-animation(rtl);
106
+ @include drawer-animation(ltr);
107
+ @include drawer-animation(ttb);
108
+ @include drawer-animation(btt);
109
+
110
+ $directions: rtl, ltr, ttb, btt;
111
+
112
+ @include b(drawer) {
113
+ position: absolute;
114
+ box-sizing: border-box;
115
+ background-color: $--dialog-background-color;
116
+ display: flex;
117
+ flex-direction: column;
118
+ box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2),
119
+ 0 16px 24px 2px rgba(0, 0, 0, 0.14),
120
+ 0 6px 30px 5px rgba(0, 0, 0, 0.12);
121
+ overflow: hidden;
122
+
123
+ @each $direction in $directions {
124
+ @include animation-out($direction);
125
+ @include animation-in($direction);
126
+ }
127
+
128
+ &__wrapper {
129
+ position: fixed;
130
+ top: 0;
131
+ right: 0;
132
+ bottom: 0;
133
+ left: 0;
134
+ overflow: hidden;
135
+ margin: 0;
136
+ }
137
+
138
+ &__header {
139
+ align-items: center;
140
+ color: $--color-text-primary;
141
+ display: flex;
142
+ margin-bottom: 28px;
143
+ padding: $--dialog-padding-primary;
144
+ padding-bottom: 0;
145
+ & > :first-child {
146
+ flex: 1;
147
+ }
148
+ }
149
+
150
+ &__title {
151
+ margin: 0;
152
+ flex: 1;
153
+ line-height: inherit;
154
+ font-size: 1rem;
155
+ }
156
+
157
+ &__close-btn {
158
+ border: none;
159
+ cursor: pointer;
160
+ font-size: $--font-size-extra-large;
161
+ color: $--color-text-secondary;
162
+ background-color: transparent;
163
+ }
164
+
165
+ &__body {
166
+ flex: 1;
167
+ padding-bottom: 60px;
168
+ & > * {
169
+ box-sizing: border-box;
170
+ }
171
+ }
172
+
173
+ &.ltr, &.rtl {
174
+ height: 100%;
175
+ top: 0;
176
+ bottom: 0;
177
+ }
178
+
179
+ &.ttb, &.btt {
180
+ width: 100%;
181
+ left: 0;
182
+ right: 0;
183
+ }
184
+
185
+ &.ltr {
186
+ left: 0;
187
+ }
188
+
189
+ &.rtl {
190
+ right: 0;
191
+ }
192
+
193
+ &.ttb {
194
+ top: 0;
195
+ }
196
+
197
+ &.btt {
198
+ bottom: 0;
199
+ }
200
+ }
201
+
202
+ .base-drawer__container {
203
+ position: relative;
204
+ left: 0;
205
+ right: 0;
206
+ top: 0;
207
+ bottom: 0;
208
+ height: 100%;
209
+ width: 100%;
210
+ }
211
+
212
+ .base-drawer-fade-enter-active {
213
+ animation: base-drawer-fade-in .3s;
214
+ }
215
+
216
+ .base-drawer-fade-leave-active {
217
+ animation: base-drawer-fade-in .3s reverse;
218
+ }
@@ -0,0 +1,43 @@
1
+ @import "config";
2
+
3
+
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, $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, '.' + $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
+
42
+ @return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
43
+ }
@@ -0,0 +1,196 @@
1
+ @import "function";
2
+ @import "var";
3
+
4
+ /* Break-points
5
+ -------------------------- */
6
+ @mixin res($key, $map: $--breakpoints) {
7
+ @if map-has-key($map, $key) {
8
+ @media only screen and #{inspect(map-get($map, $key))} {
9
+ @content;
10
+ }
11
+ } @else {
12
+ @warn "Undefeined points: `#{$map}`";
13
+ }
14
+ }
15
+
16
+ /* Scrollbar
17
+ -------------------------- */
18
+ @mixin scroll-bar {
19
+ $--scrollbar-thumb-background: #b4bccc;
20
+ $--scrollbar-track-background: #fff;
21
+
22
+ &::-webkit-scrollbar {
23
+ z-index: 11;
24
+ width: 6px;
25
+
26
+ &:horizontal {
27
+ height: 6px;
28
+ }
29
+
30
+ &-thumb {
31
+ border-radius: 5px;
32
+ width: 6px;
33
+ background: $--scrollbar-thumb-background;
34
+ }
35
+
36
+ &-corner {
37
+ background: $--scrollbar-track-background;
38
+ }
39
+
40
+ &-track {
41
+ background: $--scrollbar-track-background;
42
+
43
+ &-piece {
44
+ background: $--scrollbar-track-background;
45
+ width: 6px;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ /* Placeholder
52
+ -------------------------- */
53
+ @mixin placeholder {
54
+ &::-webkit-input-placeholder {
55
+ @content
56
+ }
57
+
58
+ &::-moz-placeholder {
59
+ @content
60
+ }
61
+
62
+ &:-ms-input-placeholder {
63
+ @content
64
+ }
65
+ }
66
+
67
+ /* BEM
68
+ -------------------------- */
69
+ @mixin b($block) {
70
+ $B: $namespace+'-'+$block !global;
71
+
72
+ .#{$B} {
73
+ @content;
74
+ }
75
+ }
76
+
77
+ @mixin e($element) {
78
+ $E: $element !global;
79
+ $selector: &;
80
+ $currentSelector: "";
81
+ @each $unit in $element {
82
+ $currentSelector: #{$currentSelector + "." + $B + $element-separator + $unit + ","};
83
+ }
84
+
85
+ @if hitAllSpecialNestRule($selector) {
86
+ @at-root {
87
+ #{$selector} {
88
+ #{$currentSelector} {
89
+ @content;
90
+ }
91
+ }
92
+ }
93
+ } @else {
94
+ @at-root {
95
+ #{$currentSelector} {
96
+ @content;
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ @mixin m($modifier) {
103
+ $selector: &;
104
+ $currentSelector: "";
105
+ @each $unit in $modifier {
106
+ $currentSelector: #{$currentSelector + & + $modifier-separator + $unit + ","};
107
+ }
108
+
109
+ @at-root {
110
+ #{$currentSelector} {
111
+ @content;
112
+ }
113
+ }
114
+ }
115
+
116
+ @mixin configurable-m($modifier, $E-flag: false) {
117
+ $selector: &;
118
+ $interpolation: '';
119
+
120
+ @if $E-flag {
121
+ $interpolation: $element-separator + $E-flag;
122
+ }
123
+
124
+ @at-root {
125
+ #{$selector} {
126
+ .#{$B+$interpolation+$modifier-separator+$modifier} {
127
+ @content;
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ @mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
134
+ $modifierCombo: '';
135
+
136
+ @if $modifier {
137
+ $modifierCombo: $modifier-separator + $modifier;
138
+ }
139
+
140
+ @at-root {
141
+ #{&}#{$specSelector}.#{$block+$element-separator+$element+$modifierCombo} {
142
+ @content
143
+ }
144
+ }
145
+ }
146
+
147
+ @mixin meb($modifier: false, $element: $E, $block: $B) {
148
+ $selector: &;
149
+ $modifierCombo: '';
150
+
151
+ @if $modifier {
152
+ $modifierCombo: $modifier-separator + $modifier;
153
+ }
154
+
155
+ @at-root {
156
+ #{$selector} {
157
+ .#{$block+$element-separator+$element+$modifierCombo} {
158
+ @content
159
+ }
160
+ }
161
+ }
162
+ }
163
+
164
+ @mixin when($state) {
165
+ @at-root {
166
+ &.#{$state-prefix + $state} {
167
+ @content;
168
+ }
169
+ }
170
+ }
171
+
172
+ @mixin must($state1, $state2) {
173
+ @at-root {
174
+ &.#{$state-prefix + $state1}.#{$state-prefix + $state2} {
175
+ @content;
176
+ }
177
+ }
178
+ }
179
+
180
+ @mixin extend-rule($name) {
181
+ @extend #{'%shared-'+$name};
182
+ }
183
+
184
+ @mixin share-rule($name) {
185
+ $rule-name: '%shared-'+$name;
186
+
187
+ @at-root #{$rule-name} {
188
+ @content
189
+ }
190
+ }
191
+
192
+ @mixin pseudo($pseudo) {
193
+ @at-root #{&}#{':#{$pseudo}'} {
194
+ @content
195
+ }
196
+ }
@@ -0,0 +1,138 @@
1
+ @import "var";
2
+
3
+ .fade-in-linear-enter-active,
4
+ .fade-in-linear-leave-active {
5
+ transition: $--fade-linear-transition;
6
+ }
7
+ .fade-in-linear-enter,
8
+ .fade-in-linear-leave,
9
+ .fade-in-linear-leave-active {
10
+ opacity: 0;
11
+ }
12
+
13
+ .base-fade-in-linear-enter-active,
14
+ .base-fade-in-linear-leave-active {
15
+ transition: $--fade-linear-transition;
16
+ }
17
+ .base-fade-in-linear-enter,
18
+ .base-fade-in-linear-leave,
19
+ .base-fade-in-linear-leave-active {
20
+ opacity: 0;
21
+ }
22
+
23
+ .base-fade-in-enter-active,
24
+ .base-fade-in-leave-active {
25
+ transition: all .3s cubic-bezier(.55,0,.1,1);
26
+ }
27
+ .base-fade-in-enter,
28
+ .base-fade-in-leave-active {
29
+ opacity: 0;
30
+ }
31
+
32
+ .base-zoom-in-center-enter-active,
33
+ .base-zoom-in-center-leave-active {
34
+ transition: all .3s cubic-bezier(.55,0,.1,1);
35
+ }
36
+ .base-zoom-in-center-enter,
37
+ .base-zoom-in-center-leave-active {
38
+ opacity: 0;
39
+ transform: scaleX(0);
40
+ }
41
+
42
+ .base-zoom-in-top-enter-active,
43
+ .base-zoom-in-top-leave-active {
44
+ opacity: 1;
45
+ transform: scaleY(1);
46
+ transition: $--md-fade-transition;
47
+ transform-origin: center top;
48
+ }
49
+ .base-zoom-in-top-enter,
50
+ .base-zoom-in-top-leave-active {
51
+ opacity: 0;
52
+ transform: scaleY(0);
53
+ }
54
+
55
+ .base-zoom-in-bottom-enter-active,
56
+ .base-zoom-in-bottom-leave-active {
57
+ opacity: 1;
58
+ transform: scaleY(1);
59
+ transition: $--md-fade-transition;
60
+ transform-origin: center bottom;
61
+ }
62
+ .base-zoom-in-bottom-enter,
63
+ .base-zoom-in-bottom-leave-active {
64
+ opacity: 0;
65
+ transform: scaleY(0);
66
+ }
67
+
68
+ .base-zoom-in-left-enter-active,
69
+ .base-zoom-in-left-leave-active {
70
+ opacity: 1;
71
+ transform: scale(1, 1);
72
+ transition: $--md-fade-transition;
73
+ transform-origin: top left;
74
+ }
75
+ .base-zoom-in-left-enter,
76
+ .base-zoom-in-left-leave-active {
77
+ opacity: 0;
78
+ transform: scale(.45, .45);
79
+ }
80
+
81
+ .base-tooltip-enter-active,
82
+ .base-tooltip-leave-active {
83
+ opacity: .9;
84
+ transform: scale(1, 1);
85
+ transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
86
+ }
87
+ .base-tooltip-enter,
88
+ .base-tooltip-leave-active {
89
+ opacity: 0;
90
+ transform: scale(0);
91
+ }
92
+ .base-tooltip-move {
93
+ transition: transform .6s
94
+ }
95
+
96
+ .collapse-transition {
97
+ transition: 0.3s height ease-in-out, 0.3s padding-top ease-in-out, 0.3s padding-bottom ease-in-out;
98
+ }
99
+ .horizontal-collapse-transition {
100
+ transition: 0.3s width ease-in-out, 0.3s padding-left ease-in-out, 0.3s padding-right ease-in-out;
101
+ }
102
+
103
+ .base-list-enter-active,
104
+ .base-list-leave-active {
105
+ transition: all 1s;
106
+ }
107
+ .base-list-enter, .base-list-leave-active {
108
+ opacity: 0;
109
+ transform: translateY(-30px);
110
+ }
111
+
112
+ .base-opacity-transition {
113
+ transition: opacity .3s cubic-bezier(.55,0,.1,1);
114
+ }
115
+
116
+ .base-slide-y-enter-active,
117
+ .base-slide-y-leave-active {
118
+ transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
119
+ }
120
+ .base-slide-y-move {
121
+ transition: transform .6s;
122
+ }
123
+ .base-slide-y-enter, .base-slide-y-leave-to {
124
+ opacity: 0;
125
+ transform: translateY(-15px);
126
+ }
127
+
128
+
129
+ .base-flip-list-enter, .base-flip-list-leave-to {
130
+ opacity: 0;
131
+ transform: translateY(30px);
132
+ }
133
+ .base-flip-list-leave-active {
134
+ position: absolute;
135
+ }
136
+ .base-flip-list-move {
137
+ transition: transform .6s;
138
+ }