@tiny-design/react 1.3.0 → 1.5.0

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.
Files changed (190) hide show
  1. package/es/alert/style/_index.scss +2 -2
  2. package/es/alert/style/index.css +2 -2
  3. package/es/auto-complete/style/_index.scss +4 -5
  4. package/es/auto-complete/style/index.css +4 -5
  5. package/es/breadcrumb/style/index.css +1 -1
  6. package/es/breadcrumb/types.d.ts +1 -1
  7. package/es/button/style/_index.scss +16 -11
  8. package/es/button/style/index.css +40 -19
  9. package/es/calendar/style/_index.scss +9 -9
  10. package/es/calendar/style/index.css +9 -9
  11. package/es/card/style/index.css +3 -3
  12. package/es/cascader/style/_index.scss +9 -9
  13. package/es/cascader/style/index.css +9 -9
  14. package/es/checkbox/style/_index.scss +9 -12
  15. package/es/checkbox/style/index.css +9 -12
  16. package/es/collapse/style/index.css +3 -3
  17. package/es/color-picker/style/_index.scss +7 -7
  18. package/es/color-picker/style/index.css +4 -4
  19. package/es/date-picker/style/_index.scss +1 -1
  20. package/es/date-picker/style/index.css +1 -1
  21. package/es/descriptions/style/_index.scss +5 -6
  22. package/es/descriptions/style/index.css +6 -6
  23. package/es/empty/style/_index.scss +1 -1
  24. package/es/empty/style/index.css +1 -1
  25. package/es/form/style/_index.scss +5 -6
  26. package/es/form/style/index.css +4 -4
  27. package/es/index.d.ts +2 -1
  28. package/es/index.js +2 -1
  29. package/es/input/style/_index.scss +5 -4
  30. package/es/input/style/_mixin.scss +1 -1
  31. package/es/input/style/index.css +21 -20
  32. package/es/input-number/input-number.js +11 -5
  33. package/es/input-number/input-number.js.map +1 -1
  34. package/es/input-number/style/_index.scss +5 -3
  35. package/es/input-number/style/index.css +13 -11
  36. package/es/input-otp/style/_index.scss +1 -1
  37. package/es/input-otp/style/index.css +8 -8
  38. package/es/list/style/_index.scss +3 -3
  39. package/es/list/style/index.css +3 -3
  40. package/es/marquee/index.d.ts +1 -0
  41. package/es/marquee/index.js +9 -0
  42. package/es/marquee/index.js.map +1 -0
  43. package/es/marquee/marquee.d.ts +8 -0
  44. package/es/marquee/marquee.js +42 -0
  45. package/es/marquee/marquee.js.map +1 -0
  46. package/es/marquee/style/_index.scss +77 -0
  47. package/es/marquee/style/index.css +64 -0
  48. package/es/marquee/style/index.d.ts +1 -0
  49. package/es/marquee/style/index.js +1 -0
  50. package/es/marquee/types.d.ts +21 -0
  51. package/es/native-select/style/index.css +4 -4
  52. package/es/notification/style/_index.scss +1 -1
  53. package/es/notification/style/index.css +1 -1
  54. package/es/pop-confirm/style/_index.scss +5 -1
  55. package/es/pop-confirm/style/index.css +5 -1
  56. package/es/popup/style/_index.scss +9 -9
  57. package/es/popup/style/index.css +10 -10
  58. package/es/radio/style/_index.scss +5 -8
  59. package/es/radio/style/index.css +5 -8
  60. package/es/segmented/style/_index.scss +10 -10
  61. package/es/segmented/style/index.css +9 -9
  62. package/es/select/style/_index.scss +16 -17
  63. package/es/select/style/index.css +15 -16
  64. package/es/slider/style/_index.scss +1 -9
  65. package/es/slider/style/index.css +1 -6
  66. package/es/speed-dial/style/_index.scss +8 -9
  67. package/es/speed-dial/style/index.css +7 -7
  68. package/es/statistic/style/_index.scss +2 -2
  69. package/es/statistic/style/index.css +2 -2
  70. package/es/style/_component.scss +1 -0
  71. package/es/style/base.css +81 -3
  72. package/es/table/style/_index.scss +6 -6
  73. package/es/table/style/index.css +5 -5
  74. package/es/tag/style/_index.scss +24 -0
  75. package/es/tag/style/index.css +21 -1
  76. package/es/tag/types.d.ts +2 -1
  77. package/es/tag/types.js +7 -2
  78. package/es/tag/types.js.map +1 -1
  79. package/es/textarea/style/index.css +2 -2
  80. package/es/time-picker/style/_index.scss +14 -1
  81. package/es/time-picker/style/index.css +11 -1
  82. package/es/time-picker/time-panel.js +28 -28
  83. package/es/time-picker/time-panel.js.map +1 -1
  84. package/es/time-picker/time-picker.js +50 -29
  85. package/es/time-picker/time-picker.js.map +1 -1
  86. package/es/timeline/style/_index.scss +3 -3
  87. package/es/timeline/style/index.css +3 -3
  88. package/es/tooltip/style/index.css +1 -1
  89. package/es/transfer/style/_index.scss +4 -4
  90. package/es/transfer/style/index.css +4 -4
  91. package/es/tree/style/index.css +1 -1
  92. package/es/typography/style/_index.scss +2 -2
  93. package/es/typography/style/index.css +2 -2
  94. package/es/upload/style/_index.scss +4 -4
  95. package/es/upload/style/index.css +4 -4
  96. package/lib/alert/style/_index.scss +2 -2
  97. package/lib/alert/style/index.css +2 -2
  98. package/lib/auto-complete/style/_index.scss +4 -5
  99. package/lib/auto-complete/style/index.css +4 -5
  100. package/lib/breadcrumb/style/index.css +1 -1
  101. package/lib/breadcrumb/types.d.ts +1 -1
  102. package/lib/button/style/_index.scss +16 -11
  103. package/lib/button/style/index.css +40 -19
  104. package/lib/calendar/style/_index.scss +9 -9
  105. package/lib/calendar/style/index.css +9 -9
  106. package/lib/card/style/index.css +3 -3
  107. package/lib/cascader/style/_index.scss +9 -9
  108. package/lib/cascader/style/index.css +9 -9
  109. package/lib/checkbox/style/_index.scss +9 -12
  110. package/lib/checkbox/style/index.css +9 -12
  111. package/lib/collapse/style/index.css +3 -3
  112. package/lib/color-picker/style/_index.scss +7 -7
  113. package/lib/color-picker/style/index.css +4 -4
  114. package/lib/date-picker/style/_index.scss +1 -1
  115. package/lib/date-picker/style/index.css +1 -1
  116. package/lib/descriptions/style/_index.scss +5 -6
  117. package/lib/descriptions/style/index.css +6 -6
  118. package/lib/empty/style/_index.scss +1 -1
  119. package/lib/empty/style/index.css +1 -1
  120. package/lib/form/style/_index.scss +5 -6
  121. package/lib/form/style/index.css +4 -4
  122. package/lib/index.d.ts +2 -1
  123. package/lib/index.js +76 -74
  124. package/lib/input/style/_index.scss +5 -4
  125. package/lib/input/style/_mixin.scss +1 -1
  126. package/lib/input/style/index.css +21 -20
  127. package/lib/input-number/input-number.js +11 -5
  128. package/lib/input-number/input-number.js.map +1 -1
  129. package/lib/input-number/style/_index.scss +5 -3
  130. package/lib/input-number/style/index.css +13 -11
  131. package/lib/input-otp/style/_index.scss +1 -1
  132. package/lib/input-otp/style/index.css +8 -8
  133. package/lib/list/style/_index.scss +3 -3
  134. package/lib/list/style/index.css +3 -3
  135. package/lib/marquee/index.js +8 -0
  136. package/lib/marquee/index.js.map +1 -0
  137. package/lib/marquee/marquee.d.ts +8 -0
  138. package/lib/marquee/marquee.js +45 -0
  139. package/lib/marquee/marquee.js.map +1 -0
  140. package/lib/marquee/style/_index.scss +77 -0
  141. package/lib/marquee/style/index.css +64 -0
  142. package/lib/marquee/style/index.d.ts +1 -0
  143. package/lib/marquee/style/index.js +1 -0
  144. package/lib/marquee/types.d.ts +21 -0
  145. package/lib/native-select/style/index.css +4 -4
  146. package/lib/notification/style/_index.scss +1 -1
  147. package/lib/notification/style/index.css +1 -1
  148. package/lib/pop-confirm/style/_index.scss +5 -1
  149. package/lib/pop-confirm/style/index.css +5 -1
  150. package/lib/popup/style/_index.scss +9 -9
  151. package/lib/popup/style/index.css +10 -10
  152. package/lib/radio/style/_index.scss +5 -8
  153. package/lib/radio/style/index.css +5 -8
  154. package/lib/segmented/style/_index.scss +10 -10
  155. package/lib/segmented/style/index.css +9 -9
  156. package/lib/select/style/_index.scss +16 -17
  157. package/lib/select/style/index.css +15 -16
  158. package/lib/slider/style/_index.scss +1 -9
  159. package/lib/slider/style/index.css +1 -6
  160. package/lib/speed-dial/style/_index.scss +8 -9
  161. package/lib/speed-dial/style/index.css +7 -7
  162. package/lib/statistic/style/_index.scss +2 -2
  163. package/lib/statistic/style/index.css +2 -2
  164. package/lib/style/_component.scss +1 -0
  165. package/lib/style/base.css +81 -3
  166. package/lib/table/style/_index.scss +6 -6
  167. package/lib/table/style/index.css +5 -5
  168. package/lib/tag/style/_index.scss +24 -0
  169. package/lib/tag/style/index.css +21 -1
  170. package/lib/tag/types.d.ts +2 -1
  171. package/lib/tag/types.js +7 -2
  172. package/lib/tag/types.js.map +1 -1
  173. package/lib/textarea/style/index.css +2 -2
  174. package/lib/time-picker/style/_index.scss +14 -1
  175. package/lib/time-picker/style/index.css +11 -1
  176. package/lib/time-picker/time-panel.js +28 -28
  177. package/lib/time-picker/time-panel.js.map +1 -1
  178. package/lib/time-picker/time-picker.js +50 -29
  179. package/lib/time-picker/time-picker.js.map +1 -1
  180. package/lib/timeline/style/_index.scss +3 -3
  181. package/lib/timeline/style/index.css +3 -3
  182. package/lib/tooltip/style/index.css +1 -1
  183. package/lib/transfer/style/_index.scss +4 -4
  184. package/lib/transfer/style/index.css +4 -4
  185. package/lib/tree/style/index.css +1 -1
  186. package/lib/typography/style/_index.scss +2 -2
  187. package/lib/typography/style/index.css +2 -2
  188. package/lib/upload/style/_index.scss +4 -4
  189. package/lib/upload/style/index.css +4 -4
  190. package/package.json +3 -3
@@ -4,16 +4,13 @@
4
4
  position: relative;
5
5
  display: inline-flex;
6
6
  align-items: center;
7
- font-size: $font-size-base;
7
+ font-size: var(--ty-font-size-base);
8
8
  margin-right: 8px;
9
9
  color: var(--ty-color-text);
10
10
 
11
11
  &__native {
12
12
  position: absolute;
13
- top: 0;
14
- right: 0;
15
- bottom: 0;
16
- left: 0;
13
+ inset: 0;
17
14
  width: 100%;
18
15
  height: 100%;
19
16
  z-index: 1;
@@ -34,7 +31,7 @@
34
31
  align-items: center;
35
32
  justify-content: center;
36
33
 
37
- &:after {
34
+ &::after {
38
35
  box-sizing: border-box;
39
36
  display: inline-block;
40
37
  content: '';
@@ -54,7 +51,7 @@
54
51
 
55
52
  &_checked {
56
53
  .#{$prefix}-radio {
57
- &__inner:after {
54
+ &__inner::after {
58
55
  transform: scale(1);
59
56
  }
60
57
  }
@@ -69,7 +66,7 @@
69
66
  &__inner {
70
67
  border-color: var(--ty-radio-disabled-border);
71
68
 
72
- &:after {
69
+ &::after {
73
70
  background-color: var(--ty-radio-disabled-dot);
74
71
  }
75
72
 
@@ -2,16 +2,13 @@
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  align-items: center;
5
- font-size: 1rem;
5
+ font-size: var(--ty-font-size-base);
6
6
  margin-right: 8px;
7
7
  color: var(--ty-color-text);
8
8
  }
9
9
  .ty-radio__native {
10
10
  position: absolute;
11
- top: 0;
12
- right: 0;
13
- bottom: 0;
14
- left: 0;
11
+ inset: 0;
15
12
  width: 100%;
16
13
  height: 100%;
17
14
  z-index: 1;
@@ -31,7 +28,7 @@
31
28
  align-items: center;
32
29
  justify-content: center;
33
30
  }
34
- .ty-radio__inner:after {
31
+ .ty-radio__inner::after {
35
32
  box-sizing: border-box;
36
33
  display: inline-block;
37
34
  content: "";
@@ -46,7 +43,7 @@
46
43
  padding: 0 5px;
47
44
  line-height: 16px;
48
45
  }
49
- .ty-radio_checked .ty-radio__inner:after {
46
+ .ty-radio_checked .ty-radio__inner::after {
50
47
  transform: scale(1);
51
48
  }
52
49
  .ty-radio_disabled .ty-radio__native {
@@ -55,7 +52,7 @@
55
52
  .ty-radio_disabled .ty-radio__inner {
56
53
  border-color: var(--ty-radio-disabled-border);
57
54
  }
58
- .ty-radio_disabled .ty-radio__inner:after {
55
+ .ty-radio_disabled .ty-radio__inner::after {
59
56
  background-color: var(--ty-radio-disabled-dot);
60
57
  }
61
58
  .ty-radio_disabled .ty-radio__inner + span {
@@ -5,7 +5,7 @@
5
5
  align-items: center;
6
6
  padding: 2px;
7
7
  background: var(--ty-segmented-bg, #{$gray-200});
8
- border-radius: $border-radius;
8
+ border-radius: var(--ty-border-radius);
9
9
  box-sizing: border-box;
10
10
 
11
11
  &_block {
@@ -30,20 +30,20 @@
30
30
 
31
31
  &_sm .#{$prefix}-segmented__item {
32
32
  padding: 0 8px;
33
- height: calc(#{$height-sm} - 4px);
34
- font-size: $font-size-sm;
33
+ height: calc(var(--ty-height-sm) - 4px);
34
+ font-size: var(--ty-font-size-sm);
35
35
  }
36
36
 
37
37
  &_md .#{$prefix}-segmented__item {
38
38
  padding: 0 12px;
39
- height: calc(#{$height-md} - 4px);
40
- font-size: $font-size-base;
39
+ height: calc(var(--ty-height-md) - 4px);
40
+ font-size: var(--ty-font-size-base);
41
41
  }
42
42
 
43
43
  &_lg .#{$prefix}-segmented__item {
44
44
  padding: 0 16px;
45
- height: calc(#{$height-lg} - 4px);
46
- font-size: $font-size-lg;
45
+ height: calc(var(--ty-height-lg) - 4px);
46
+ font-size: var(--ty-font-size-lg);
47
47
  }
48
48
 
49
49
  &__item {
@@ -52,19 +52,19 @@
52
52
  align-items: center;
53
53
  gap: 4px;
54
54
  cursor: pointer;
55
- border-radius: $border-radius;
55
+ border-radius: var(--ty-border-radius);
56
56
  transition: all 0.2s;
57
57
  user-select: none;
58
58
  white-space: nowrap;
59
59
 
60
- &:hover:not(&_active):not(&_disabled) {
60
+ &:hover:not(&_active, &_disabled) {
61
61
  color: var(--ty-color-text, #{$gray-900});
62
62
  }
63
63
 
64
64
  &_active {
65
65
  background: var(--ty-segmented-active-bg, #fff);
66
66
  color: var(--ty-color-text, #{$gray-900});
67
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
67
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 6%), 0 1px 3px 0 rgb(0 0 0 / 10%);
68
68
  font-weight: 500;
69
69
  }
70
70
 
@@ -3,7 +3,7 @@
3
3
  align-items: center;
4
4
  padding: 2px;
5
5
  background: var(--ty-segmented-bg, #e9ecef);
6
- border-radius: 2px;
6
+ border-radius: var(--ty-border-radius);
7
7
  box-sizing: border-box;
8
8
  }
9
9
  .ty-segmented_block {
@@ -24,18 +24,18 @@
24
24
  }
25
25
  .ty-segmented_sm .ty-segmented__item {
26
26
  padding: 0 8px;
27
- height: calc(24px - 4px);
28
- font-size: 0.875rem;
27
+ height: calc(var(--ty-height-sm) - 4px);
28
+ font-size: var(--ty-font-size-sm);
29
29
  }
30
30
  .ty-segmented_md .ty-segmented__item {
31
31
  padding: 0 12px;
32
- height: calc(32px - 4px);
33
- font-size: 1rem;
32
+ height: calc(var(--ty-height-md) - 4px);
33
+ font-size: var(--ty-font-size-base);
34
34
  }
35
35
  .ty-segmented_lg .ty-segmented__item {
36
36
  padding: 0 16px;
37
- height: calc(42px - 4px);
38
- font-size: 1.25rem;
37
+ height: calc(var(--ty-height-lg) - 4px);
38
+ font-size: var(--ty-font-size-lg);
39
39
  }
40
40
  .ty-segmented__item {
41
41
  position: relative;
@@ -43,14 +43,14 @@
43
43
  align-items: center;
44
44
  gap: 4px;
45
45
  cursor: pointer;
46
- border-radius: 2px;
46
+ border-radius: var(--ty-border-radius);
47
47
  transition: all 0.2s;
48
48
  -webkit-user-select: none;
49
49
  -moz-user-select: none;
50
50
  user-select: none;
51
51
  white-space: nowrap;
52
52
  }
53
- .ty-segmented__item:hover:not(.ty-segmented__item_active):not(.ty-segmented__item_disabled) {
53
+ .ty-segmented__item:hover:not(.ty-segmented__item_active, .ty-segmented__item_disabled) {
54
54
  color: var(--ty-color-text, #212529);
55
55
  }
56
56
  .ty-segmented__item_active {
@@ -4,7 +4,7 @@
4
4
  position: relative;
5
5
  display: inline-block;
6
6
  width: 100%;
7
- font-size: $font-size-base;
7
+ font-size: var(--ty-font-size-base);
8
8
  cursor: pointer;
9
9
  outline: none;
10
10
 
@@ -20,20 +20,20 @@
20
20
 
21
21
  // Sizes
22
22
  &_sm .#{$prefix}-select__selector {
23
- min-height: $height-sm;
24
- font-size: $font-size-sm;
23
+ min-height: var(--ty-height-sm);
24
+ font-size: var(--ty-font-size-sm);
25
25
  padding: 0 24px 0 8px;
26
26
  }
27
27
 
28
28
  &_md .#{$prefix}-select__selector {
29
- min-height: $height-md;
30
- font-size: $font-size-base;
29
+ min-height: var(--ty-height-md);
30
+ font-size: var(--ty-font-size-base);
31
31
  padding: 0 28px 0 10px;
32
32
  }
33
33
 
34
34
  &_lg .#{$prefix}-select__selector {
35
- min-height: $height-lg;
36
- font-size: $font-size-lg;
35
+ min-height: var(--ty-height-lg);
36
+ font-size: var(--ty-font-size-lg);
37
37
  padding: 0 32px 0 12px;
38
38
  }
39
39
 
@@ -62,7 +62,7 @@
62
62
  align-items: center;
63
63
  width: 100%;
64
64
  border: $border-width solid var(--ty-input-border);
65
- border-radius: $border-radius;
65
+ border-radius: var(--ty-border-radius);
66
66
  background-color: var(--ty-input-bg);
67
67
  box-sizing: border-box;
68
68
  transition: all 0.3s;
@@ -173,9 +173,9 @@
173
173
  max-width: 100%;
174
174
  height: 22px;
175
175
  padding: 0 4px 0 8px;
176
- border-radius: $border-radius;
176
+ border-radius: var(--ty-border-radius);
177
177
  background-color: var(--ty-color-fill-secondary);
178
- font-size: $font-size-sm;
178
+ font-size: var(--ty-font-size-sm);
179
179
  line-height: 20px;
180
180
  color: var(--ty-color-text);
181
181
  box-sizing: border-box;
@@ -212,12 +212,11 @@
212
212
  list-style-type: none;
213
213
  background-color: var(--ty-select-dropdown-bg);
214
214
  box-sizing: border-box;
215
- overflow-x: hidden;
216
- overflow-y: auto;
215
+ overflow: hidden auto;
217
216
  z-index: 10;
218
217
  box-shadow: var(--ty-shadow-popup);
219
- border-radius: $border-radius;
220
- font-size: $font-size-base;
218
+ border-radius: var(--ty-border-radius);
219
+ font-size: var(--ty-font-size-base);
221
220
  max-height: $select-dropdown-max-height;
222
221
  }
223
222
 
@@ -238,7 +237,7 @@
238
237
  padding: 16px;
239
238
  text-align: center;
240
239
  color: var(--ty-color-text-quaternary);
241
- font-size: $font-size-sm;
240
+ font-size: var(--ty-font-size-sm);
242
241
  }
243
242
  }
244
243
 
@@ -284,9 +283,8 @@
284
283
  }
285
284
 
286
285
  .#{$prefix}-select-group {
287
-
288
286
  &__title {
289
- font-size: $font-size-sm;
287
+ font-size: var(--ty-font-size-sm);
290
288
  cursor: default;
291
289
  color: $gray-600;
292
290
  padding: 7px 12px;
@@ -307,6 +305,7 @@
307
305
  from {
308
306
  transform: rotate(0deg);
309
307
  }
308
+
310
309
  to {
311
310
  transform: rotate(360deg);
312
311
  }
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  display: inline-block;
4
4
  width: 100%;
5
- font-size: 1rem;
5
+ font-size: var(--ty-font-size-base);
6
6
  cursor: pointer;
7
7
  outline: none;
8
8
  }
@@ -15,18 +15,18 @@
15
15
  cursor: not-allowed;
16
16
  }
17
17
  .ty-select_sm .ty-select__selector {
18
- min-height: 24px;
19
- font-size: 0.875rem;
18
+ min-height: var(--ty-height-sm);
19
+ font-size: var(--ty-font-size-sm);
20
20
  padding: 0 24px 0 8px;
21
21
  }
22
22
  .ty-select_md .ty-select__selector {
23
- min-height: 32px;
24
- font-size: 1rem;
23
+ min-height: var(--ty-height-md);
24
+ font-size: var(--ty-font-size-base);
25
25
  padding: 0 28px 0 10px;
26
26
  }
27
27
  .ty-select_lg .ty-select__selector {
28
- min-height: 42px;
29
- font-size: 1.25rem;
28
+ min-height: var(--ty-height-lg);
29
+ font-size: var(--ty-font-size-lg);
30
30
  padding: 0 32px 0 12px;
31
31
  }
32
32
  .ty-select_multiple .ty-select__selector {
@@ -46,7 +46,7 @@
46
46
  align-items: center;
47
47
  width: 100%;
48
48
  border: 1px solid var(--ty-input-border);
49
- border-radius: 2px;
49
+ border-radius: var(--ty-border-radius);
50
50
  background-color: var(--ty-input-bg);
51
51
  box-sizing: border-box;
52
52
  transition: all 0.3s;
@@ -143,9 +143,9 @@
143
143
  max-width: 100%;
144
144
  height: 22px;
145
145
  padding: 0 4px 0 8px;
146
- border-radius: 2px;
146
+ border-radius: var(--ty-border-radius);
147
147
  background-color: var(--ty-color-fill-secondary);
148
- font-size: 0.875rem;
148
+ font-size: var(--ty-font-size-sm);
149
149
  line-height: 20px;
150
150
  color: var(--ty-color-text);
151
151
  box-sizing: border-box;
@@ -176,12 +176,11 @@
176
176
  list-style-type: none;
177
177
  background-color: var(--ty-select-dropdown-bg);
178
178
  box-sizing: border-box;
179
- overflow-x: hidden;
180
- overflow-y: auto;
179
+ overflow: hidden auto;
181
180
  z-index: 10;
182
181
  box-shadow: var(--ty-shadow-popup);
183
- border-radius: 2px;
184
- font-size: 1rem;
182
+ border-radius: var(--ty-border-radius);
183
+ font-size: var(--ty-font-size-base);
185
184
  max-height: 300px;
186
185
  }
187
186
  .ty-select__loading {
@@ -197,7 +196,7 @@
197
196
  padding: 16px;
198
197
  text-align: center;
199
198
  color: var(--ty-color-text-quaternary);
200
- font-size: 0.875rem;
199
+ font-size: var(--ty-font-size-sm);
201
200
  }
202
201
 
203
202
  .ty-select-option {
@@ -236,7 +235,7 @@
236
235
  }
237
236
 
238
237
  .ty-select-group__title {
239
- font-size: 0.875rem;
238
+ font-size: var(--ty-font-size-sm);
240
239
  cursor: default;
241
240
  color: #8898aa;
242
241
  padding: 7px 12px;
@@ -5,21 +5,13 @@
5
5
  box-sizing: border-box;
6
6
  cursor: pointer;
7
7
 
8
- &_horizontal.#{$prefix}-slider {
9
- margin-bottom: $slider-margin-bottom-with-marks;
10
- }
11
-
12
- &_vertical.#{$prefix}-slider {
13
- margin-right: $slider-margin-bottom-with-marks;
14
- }
15
-
16
8
  &_horizontal {
9
+ width: 100%;
17
10
  min-height: $slider-size;
18
11
  margin: 13px 7px;
19
12
  padding: 4px 0;
20
13
 
21
14
  .#{$prefix}-slider {
22
-
23
15
  &__rail {
24
16
  width: 100%;
25
17
  height: $slider-track-size;
@@ -3,13 +3,8 @@
3
3
  box-sizing: border-box;
4
4
  cursor: pointer;
5
5
  }
6
- .ty-slider_horizontal.ty-slider {
7
- margin-bottom: 30px;
8
- }
9
- .ty-slider_vertical.ty-slider {
10
- margin-right: 30px;
11
- }
12
6
  .ty-slider_horizontal {
7
+ width: 100%;
13
8
  min-height: 12px;
14
9
  margin: 13px 7px;
15
10
  padding: 4px 0;
@@ -1,5 +1,4 @@
1
1
  @use "../../style/variables" as *;
2
- @use "sass:color";
3
2
 
4
3
  $speed-dial-fab-size: 56px;
5
4
  $speed-dial-action-size: 40px;
@@ -18,8 +17,8 @@ $speed-dial-actions-gap: 16px;
18
17
  height: $speed-dial-fab-size;
19
18
  border-radius: 50%;
20
19
  border: none;
21
- background-color: var(--ty-speed-dial-bg, #{$primary-color});
22
- color: var(--ty-speed-dial-color, #{$white-color});
20
+ background-color: var(--ty-speed-dial-bg, var(--ty-color-primary));
21
+ color: var(--ty-speed-dial-color, #fff);
23
22
  font-size: 24px;
24
23
  cursor: pointer;
25
24
  box-shadow: $box-shadow;
@@ -27,11 +26,11 @@ $speed-dial-actions-gap: 16px;
27
26
  outline: none;
28
27
 
29
28
  &:hover:not(.#{$prefix}-speed-dial__button_disabled) {
30
- background-color: var(--ty-speed-dial-bg-hover, #{color.adjust($primary-color, $lightness: -8%)});
29
+ background-color: var(--ty-speed-dial-bg-hover, var(--ty-color-primary-active));
31
30
  }
32
31
 
33
32
  &:focus-visible {
34
- box-shadow: 0 0 0 3px rgba($primary-color, 0.3), $box-shadow;
33
+ box-shadow: 0 0 0 3px var(--ty-input-focus-shadow, rgb(110 65 191 / 20%)), $box-shadow;
35
34
  }
36
35
 
37
36
  &_open {
@@ -59,7 +58,7 @@ $speed-dial-actions-gap: 16px;
59
58
  position: absolute;
60
59
  top: 50%;
61
60
  left: 50%;
62
- background-color: currentColor;
61
+ background-color: currentcolor;
63
62
  border-radius: 1px;
64
63
  translate: -50% -50%;
65
64
  }
@@ -183,7 +182,7 @@ $speed-dial-actions-gap: 16px;
183
182
  }
184
183
 
185
184
  &:focus-visible {
186
- box-shadow: 0 0 0 3px rgba($primary-color, 0.3), $box-shadow-sm;
185
+ box-shadow: 0 0 0 3px var(--ty-input-focus-shadow, rgb(110 65 191 / 20%)), $box-shadow-sm;
187
186
  }
188
187
 
189
188
  &_disabled {
@@ -198,9 +197,9 @@ $speed-dial-actions-gap: 16px;
198
197
  white-space: nowrap;
199
198
  background-color: var(--ty-speed-dial-tooltip-bg, #{$gray-800});
200
199
  color: var(--ty-speed-dial-tooltip-color, #{$white-color});
201
- font-size: $font-size-sm;
200
+ font-size: var(--ty-font-size-sm);
202
201
  padding: 4px 8px;
203
- border-radius: $border-radius;
202
+ border-radius: var(--ty-border-radius);
204
203
  pointer-events: none;
205
204
 
206
205
  &_left {
@@ -10,7 +10,7 @@
10
10
  height: 56px;
11
11
  border-radius: 50%;
12
12
  border: none;
13
- background-color: var(--ty-speed-dial-bg, #6e41bf);
13
+ background-color: var(--ty-speed-dial-bg, var(--ty-color-primary));
14
14
  color: var(--ty-speed-dial-color, #fff);
15
15
  font-size: 24px;
16
16
  cursor: pointer;
@@ -19,10 +19,10 @@
19
19
  outline: none;
20
20
  }
21
21
  .ty-speed-dial__button:hover:not(.ty-speed-dial__button_disabled) {
22
- background-color: var(--ty-speed-dial-bg-hover, rgb(92.3496062992, 54.2236220472, 160.9763779528));
22
+ background-color: var(--ty-speed-dial-bg-hover, var(--ty-color-primary-active));
23
23
  }
24
24
  .ty-speed-dial__button:focus-visible {
25
- box-shadow: 0 0 0 3px rgba(110, 65, 191, 0.3), 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
25
+ box-shadow: 0 0 0 3px var(--ty-input-focus-shadow, rgba(110, 65, 191, 0.2)), 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
26
26
  }
27
27
  .ty-speed-dial__button_open .ty-speed-dial__icon-default {
28
28
  transform: rotate(45deg);
@@ -43,7 +43,7 @@
43
43
  position: absolute;
44
44
  top: 50%;
45
45
  left: 50%;
46
- background-color: currentColor;
46
+ background-color: currentcolor;
47
47
  border-radius: 1px;
48
48
  translate: -50% -50%;
49
49
  }
@@ -145,7 +145,7 @@
145
145
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
146
146
  }
147
147
  .ty-speed-dial__action:focus-visible {
148
- box-shadow: 0 0 0 3px rgba(110, 65, 191, 0.3), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
148
+ box-shadow: 0 0 0 3px var(--ty-input-focus-shadow, rgba(110, 65, 191, 0.2)), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
149
149
  }
150
150
  .ty-speed-dial__action_disabled {
151
151
  opacity: 0.5;
@@ -156,9 +156,9 @@
156
156
  white-space: nowrap;
157
157
  background-color: var(--ty-speed-dial-tooltip-bg, #32325d);
158
158
  color: var(--ty-speed-dial-tooltip-color, #fff);
159
- font-size: 0.875rem;
159
+ font-size: var(--ty-font-size-sm);
160
160
  padding: 4px 8px;
161
- border-radius: 2px;
161
+ border-radius: var(--ty-border-radius);
162
162
  pointer-events: none;
163
163
  }
164
164
  .ty-speed-dial__action-tooltip_left {
@@ -4,7 +4,7 @@
4
4
  &__title {
5
5
  margin-bottom: 4px;
6
6
  color: var(--ty-color-text-secondary, #{$gray-600});
7
- font-size: $font-size-sm;
7
+ font-size: var(--ty-font-size-sm);
8
8
  }
9
9
 
10
10
  &__content {
@@ -24,7 +24,7 @@
24
24
 
25
25
  &__suffix {
26
26
  margin-left: 4px;
27
- font-size: $font-size-base;
27
+ font-size: var(--ty-font-size-base);
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  }
@@ -1,7 +1,7 @@
1
1
  .ty-statistic__title {
2
2
  margin-bottom: 4px;
3
3
  color: var(--ty-color-text-secondary, #8898aa);
4
- font-size: 0.875rem;
4
+ font-size: var(--ty-font-size-sm);
5
5
  }
6
6
  .ty-statistic__content {
7
7
  display: flex;
@@ -18,7 +18,7 @@
18
18
  }
19
19
  .ty-statistic__suffix {
20
20
  margin-left: 4px;
21
- font-size: 1rem;
21
+ font-size: var(--ty-font-size-base);
22
22
  display: inline-flex;
23
23
  align-items: center;
24
24
  }
@@ -36,6 +36,7 @@
36
36
  @use "../loader/style/index" as *;
37
37
  @use "../loading-bar/style/index" as *;
38
38
  @use "../keyboard/style/index" as *;
39
+ @use "../marquee/style/index" as *;
39
40
  @use "../menu/style/index" as *;
40
41
  @use "../message/style/index" as *;
41
42
  @use "../modal/style/index" as *;