@progress/kendo-theme-fluent 12.2.4-dev.1 → 12.3.0-dev.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.
@@ -1,2 +1,174 @@
1
- // Default transition
2
- $kendo-transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out, opacity .2s ease-in-out, width .2s ease-in-out, height .2s ease-in-out !default;
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $default-easings: (
5
+ linear: cubic-bezier(0, 0, 1, 1),
6
+ accelerate: cubic-bezier(0.42, 0, 1, 1),
7
+ decelerate: cubic-bezier(0, 0, 0.58, 1),
8
+ standard: cubic-bezier(0.42, 0, 0.58, 1),
9
+ sharp: cubic-bezier(0.75, 0, 0.25, 1),
10
+ bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55),
11
+ elastic: cubic-bezier(0.5, -0.5, 0.5, 1.5),
12
+ ) !default;
13
+
14
+ $default-durations: (
15
+ instant: 0ms,
16
+ immediate: 50ms,
17
+ brief: 100ms,
18
+ quick: 150ms,
19
+ rapid: 200ms,
20
+ swift: 250ms,
21
+ speedy: 300ms,
22
+ brisk: 350ms,
23
+ prompt: 400ms,
24
+ timely: 450ms,
25
+ moderate: 500ms,
26
+ measured: 550ms,
27
+ steady: 600ms,
28
+ leisurely: 700ms,
29
+ slow: 800ms,
30
+ languid: 900ms,
31
+ sluggish: 1000ms
32
+ ) !default;
33
+
34
+ $default-transitions: (
35
+ instant: (
36
+ duration: var(--kendo-duration-instant),
37
+ easing: var(--kendo-easing-linear),
38
+ ),
39
+ rapid: (
40
+ duration: var(--kendo-duration-quick),
41
+ easing: var(--kendo-easing-decelerate),
42
+ ),
43
+ snappy: (
44
+ duration: var(--kendo-duration-swift),
45
+ easing: var(--kendo-easing-decelerate),
46
+ ),
47
+ energetic: (
48
+ duration: var(--kendo-duration-swift),
49
+ easing: var(--kendo-easing-elastic),
50
+ ),
51
+ bouncy: (
52
+ duration: var(--kendo-duration-speedy),
53
+ easing: var(--kendo-easing-bounce),
54
+ ),
55
+ subtle: (
56
+ duration: var(--kendo-duration-brisk),
57
+ easing: var(--kendo-easing-standard),
58
+ ),
59
+ gentle: (
60
+ duration: var(--kendo-duration-prompt),
61
+ easing: var(--kendo-easing-accelerate),
62
+ ),
63
+ enter: (
64
+ duration: var(--kendo-duration-speedy),
65
+ easing: var(--kendo-easing-decelerate),
66
+ ),
67
+ exit: (
68
+ duration: var(--kendo-duration-rapid),
69
+ easing: var(--kendo-easing-accelerate),
70
+ ),
71
+ settle: (
72
+ duration: var(--kendo-duration-brisk),
73
+ easing: var(--kendo-easing-decelerate),
74
+ ),
75
+ scale-out: (
76
+ duration: var(--kendo-duration-quick),
77
+ easing: var(--kendo-easing-accelerate),
78
+ ),
79
+ scale-in: (
80
+ duration: var(--kendo-duration-rapid),
81
+ easing: var(--kendo-easing-decelerate),
82
+ ),
83
+ fade-out: (
84
+ duration: var(--kendo-duration-rapid),
85
+ easing: var(--kendo-easing-standard),
86
+ ),
87
+ fade-in: (
88
+ duration: var(--kendo-duration-swift),
89
+ easing: var(--kendo-easing-standard),
90
+ ),
91
+ slide-out: (
92
+ duration: var(--kendo-duration-swift),
93
+ easing: var(--kendo-easing-accelerate),
94
+ ),
95
+ slide-in: (
96
+ duration: var(--kendo-duration-speedy),
97
+ easing: var(--kendo-easing-decelerate),
98
+ ),
99
+ emphasis: (
100
+ duration: var(--kendo-duration-quick),
101
+ easing: var(--kendo-easing-sharp),
102
+ ),
103
+ collapse: (
104
+ duration: var(--kendo-duration-speedy),
105
+ easing: var(--kendo-easing-accelerate),
106
+ ),
107
+ expand: (
108
+ duration: var(--kendo-duration-prompt),
109
+ easing: var(--kendo-easing-standard),
110
+ ),
111
+ shrink: (
112
+ duration: var(--kendo-duration-brisk),
113
+ easing: var(--kendo-easing-accelerate),
114
+ ),
115
+ grow: (
116
+ duration: var(--kendo-duration-prompt),
117
+ easing: var(--kendo-easing-standard),
118
+ ),
119
+ pulse: (
120
+ duration: var(--kendo-duration-brisk),
121
+ easing: var(--kendo-easing-standard),
122
+ ),
123
+ smooth: (
124
+ duration: var(--kendo-duration-moderate),
125
+ easing: var(--kendo-easing-standard),
126
+ ),
127
+ flip: (
128
+ duration: var(--kendo-duration-measured),
129
+ easing: var(--kendo-easing-standard),
130
+ ),
131
+ fluid: (
132
+ duration: var(--kendo-duration-steady),
133
+ easing: var(--kendo-easing-standard),
134
+ ),
135
+ deliberate: (
136
+ duration: var(--kendo-duration-slow),
137
+ easing: var(--kendo-easing-standard),
138
+ ),
139
+ ) !default;
140
+
141
+ /// The global map of motion easing tokens.
142
+ /// @group motion
143
+ $kendo-easings: $default-easings !default;
144
+ $kendo-easings: map.merge($default-easings, $kendo-easings);
145
+
146
+ /// The global map of motion duration tokens.
147
+ /// @group motion
148
+ $kendo-durations: $default-durations !default;
149
+ $kendo-durations: map.merge($default-durations, $kendo-durations);
150
+
151
+ /// The global map of motion transition tokens.
152
+ /// @group motion
153
+ ///
154
+ /// @subgroup {fast}
155
+ /// [instant, rapid, snappy, energetic]
156
+ /// Speed and Responsiveness
157
+ ///
158
+ /// @subgroup {expressive}
159
+ /// [emphasis, bouncy, pulse, flip]
160
+ /// Personality and Playfulness
161
+ ///
162
+ /// @subgroup {calm}
163
+ /// [subtle, gentle, settle, smooth, fluid, deliberate]
164
+ /// Subtle & Natural
165
+ ///
166
+ /// @subgroup {visibility}
167
+ /// [slide-in, slide-out, fade-in, fade-out, enter, exit]
168
+ /// Visibility & Movement Change
169
+ ///
170
+ /// @subgroup {size}
171
+ /// [scale-in, scale-out, grow, shrink, expand, collapse]
172
+ /// Size & Scale Adjustments
173
+ $kendo-transitions: $default-transitions !default;
174
+ $kendo-transitions: map.merge($default-transitions, $kendo-transitions);
@@ -210,7 +210,7 @@ $kendo-chart-tooltip-font-size: var( --kendo-chart-tooltip-font-size, var( --ken
210
210
  $kendo-chart-tooltip-line-height: var( --kendo-chart-tooltip-line-height, var( --kendo-line-height-sm, normal ) ) !default;
211
211
  /// The transition of the tooltip of the chart component.
212
212
  /// @group charts
213
- $kendo-chart-tooltip-transition: left ease-in 80ms, top ease-in 80ms !default;
213
+ $kendo-chart-tooltip-transition: left k-transition(fade-in), top k-transition(fade-in) !default;
214
214
 
215
215
  /// The font-size of the label of the chart component.
216
216
  /// @group chart
@@ -31,7 +31,7 @@
31
31
  transform: translateY(-50%);
32
32
  z-index: k-z-index("base", 2);
33
33
  opacity: 0;
34
- transition: opacity .3s;
34
+ transition: opacity k-transition(snappy);
35
35
  pointer-events: none;
36
36
  }
37
37
 
@@ -43,7 +43,7 @@ $kendo-floating-label-focus-offset-y: var(--kendo-floating-label-focus-offset-y,
43
43
 
44
44
  /// The transition of the Floating Label.
45
45
  /// @group floating-label
46
- $kendo-floating-label-transition: var(--kendo-floating-label-transition, .2s ease-out) !default;
46
+ $kendo-floating-label-transition: var(--kendo-floating-label-transition, k-transition(scale-in)) !default;
47
47
 
48
48
  /// The background color of the Floating Label.
49
49
  /// @group floating-label
package/scss/index.scss CHANGED
@@ -307,9 +307,6 @@
307
307
  // Typography
308
308
  @include kendo-typography--styles();
309
309
 
310
- // Transitions
311
- @include kendo-transition--styles();
312
-
313
310
  // Generic content
314
311
  @include kendo-icon--styles();
315
312
  @include kendo-messagebox--styles();
@@ -20,7 +20,6 @@
20
20
  position: relative;
21
21
  overflow: hidden;
22
22
  outline: 0;
23
- transition: color 200ms ease-out 0s;
24
23
 
25
24
  * {
26
25
  pointer-events: none;
@@ -8,7 +8,7 @@
8
8
  .k-searchbox {
9
9
 
10
10
  .k-input-icon {
11
- transition: var( --kendo-transition, none );
11
+ transition: width k-transition(rapid), opacity k-transition(rapid);
12
12
  }
13
13
 
14
14
  &:focus,
@@ -17,7 +17,6 @@
17
17
  .k-input-icon {
18
18
  width: 0;
19
19
  opacity: 0;
20
- transition: var( --kendo-transition, none );
21
20
  }
22
21
  }
23
22
  }
@@ -125,16 +125,6 @@
125
125
  .k-slider-thumb-end {
126
126
  inset-inline-start: calc( var( --kendo-slider-end, 0) * 1% );
127
127
  }
128
-
129
- // Transitions
130
- &.k-slider-transitions {
131
- .k-slider-selection {
132
- transition: width $kendo-slider-transition-speed $kendo-slider-transition-function;
133
- }
134
- .k-slider-thumb {
135
- transition: inset-inline-start $kendo-slider-transition-speed $kendo-slider-transition-function, background-color $kendo-slider-transition-speed $kendo-slider-transition-function, transform $kendo-slider-thumb-transition-speed $kendo-slider-thumb-transition-function;
136
- }
137
- }
138
128
  }
139
129
 
140
130
  // Aliases - fluent specific thumb classes
@@ -123,17 +123,19 @@ $kendo-slider-thumb-disabled-border: var( --kendo-slider-thumb-disabled-border,
123
123
 
124
124
  /// The transition speed of the Slider.
125
125
  /// @group slider
126
- $kendo-slider-transition-speed: var( --kendo-slider-transition-speed, .3s ) !default;
126
+ $kendo-slider-transition-speed: var( --kendo-slider-transition-speed, k-duration(brisk) ) !default;
127
127
  /// The transition function of the Slider.
128
128
  /// @group slider
129
- $kendo-slider-transition-function: var( --kendo-slider-transition-function, ease-out ) !default;
129
+ $kendo-slider-transition-function: var( --kendo-slider-transition-function, k-easing(standard) ) !default;
130
130
 
131
131
  /// The transition speed of the Slider thumb.
132
132
  /// @group slider
133
- $kendo-slider-thumb-transition-speed: var( --kendo-slider-thumb-transition-speed, .4s ) !default;
133
+ $kendo-slider-thumb-transition-speed: var( --kendo-slider-thumb-transition-speed, k-duration(quick) ) !default;
134
+ $kendo-slider-draghandle-transition-speed: $kendo-slider-thumb-transition-speed !default;
134
135
  /// The transition function of the Slider thumb.
135
136
  /// @group slider
136
- $kendo-slider-thumb-transition-function: var( --kendo-slider-thumb-transition-function, cubic-bezier(.25, .8, .25, 1) ) !default;
137
+ $kendo-slider-thumb-transition-function: var( --kendo-slider-thumb-transition-function, k-easing(decelerate) ) !default;
138
+ $kendo-slider-draghandle-transition-function: $kendo-slider-thumb-transition-function !default;
137
139
 
138
140
  /// The background image of the horizontal Slider tick.
139
141
  /// @group slider
@@ -150,6 +152,8 @@ $kendo-slider-tick-v-image: "data:image/gif;base64,R0lGODlhtAABAIABALi4uAAAACH5B
150
152
  $kendo-slider-line-height: $kendo-slider-line-height,
151
153
  $kendo-slider-transition-speed: $kendo-slider-transition-speed,
152
154
  $kendo-slider-transition-function: $kendo-slider-transition-function,
155
+ $kendo-slider-draghandle-transition-speed: $kendo-slider-draghandle-transition-speed,
156
+ $kendo-slider-draghandle-transition-function: $kendo-slider-draghandle-transition-function,
153
157
  $kendo-slider-track-bg: $kendo-slider-track-bg,
154
158
  $kendo-slider-selection-bg: $kendo-slider-selection-bg,
155
159
  $kendo-slider-tick-horizontal-image: $kendo-slider-tick-h-image,
@@ -198,10 +198,10 @@ $kendo-stepper-progressbar-size: var( --kendo-stepper-progressbar-size, k-spacin
198
198
  $kendo-stepper-content-transition-property: var( --kendo-stepper-content-transition-property, none ) !default;
199
199
  /// The duration of the Stepper transition.
200
200
  /// @group stepper
201
- $kendo-stepper-content-transition-duration: var( --kendo-stepper-content-transition-duration, 300ms ) !default;
201
+ $kendo-stepper-content-transition-duration: var( --kendo-stepper-content-transition-duration, k-duration(speedy) ) !default;
202
202
  /// The timing function of the Stepper transition.
203
203
  /// @group stepper
204
- $kendo-stepper-content-transition-timing-function: var( --kendo-stepper-content-transition-timing-function, cubic-bezier(.4, 0, .2, 1) 0ms ) !default;
204
+ $kendo-stepper-content-transition-timing-function: var( --kendo-stepper-content-transition-timing-function, k-easing(standard) ) !default;
205
205
 
206
206
  @forward "@progress/kendo-theme-core/scss/components/stepper/_variables.scss" with (
207
207
  $kendo-stepper-label-margin-x: $kendo-stepper-label-margin-x,
@@ -17,15 +17,4 @@
17
17
  border-radius: k-border-radius(md);
18
18
  }
19
19
  }
20
-
21
- .k-switch-track {
22
- transition: all 100ms ease-in-out;
23
- }
24
-
25
- .k-switch-thumb-wrap {
26
- transition: inset-inline-start 100ms ease-in-out;
27
- }
28
- .k-switch-thumb {
29
- transition: all 100ms ease-in-out;
30
- }
31
20
  }