tiny-ui 1.0.2 → 1.0.3

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 (371) hide show
  1. package/dist/styles/index.css +2 -2
  2. package/dist/styles/index.css.map +1 -1
  3. package/dist/styles/index.min.css +1 -1
  4. package/dist/styles/index.min.css.map +1 -1
  5. package/dist/tiny.min.js +1 -1
  6. package/dist/tiny.min.js.map +1 -1
  7. package/es/alert/style/_index.scss +72 -0
  8. package/es/alert/style/_mixin.scss +5 -0
  9. package/es/alert/style/css.js +2 -0
  10. package/es/anchor/style/_index.scss +83 -0
  11. package/es/anchor/style/css.js +3 -0
  12. package/es/aspect-ratio/style/_index.scss +22 -0
  13. package/es/aspect-ratio/style/css.js +2 -0
  14. package/es/auto-complete/style/_index.scss +58 -0
  15. package/es/auto-complete/style/css.js +2 -0
  16. package/es/avatar/style/_index.scss +80 -0
  17. package/es/avatar/style/css.js +2 -0
  18. package/es/back-top/style/_index.scss +25 -0
  19. package/es/back-top/style/css.js +2 -0
  20. package/es/badge/style/_index.scss +60 -0
  21. package/es/badge/style/_mixin.scss +11 -0
  22. package/es/badge/style/css.js +2 -0
  23. package/es/breadcrumb/style/_index.scss +38 -0
  24. package/es/breadcrumb/style/css.js +2 -0
  25. package/es/button/style/_index.scss +215 -0
  26. package/es/button/style/_mixin.scss +45 -0
  27. package/es/button/style/css.js +2 -0
  28. package/es/calendar/style/_index.scss +190 -0
  29. package/es/calendar/style/css.js +2 -0
  30. package/es/card/style/_index.scss +57 -0
  31. package/es/card/style/_mixin.scss +4 -0
  32. package/es/card/style/css.js +2 -0
  33. package/es/carousel/style/_index.scss +158 -0
  34. package/es/carousel/style/css.js +2 -0
  35. package/es/cascader/style/_index.scss +162 -0
  36. package/es/cascader/style/css.js +2 -0
  37. package/es/checkbox/style/_index.scss +139 -0
  38. package/es/checkbox/style/css.js +2 -0
  39. package/es/collapse/style/_index.scss +101 -0
  40. package/es/collapse/style/css.js +2 -0
  41. package/es/collapse-transition/style/_index.scss +4 -0
  42. package/es/collapse-transition/style/css.js +2 -0
  43. package/es/color-picker/style/_index.scss +196 -0
  44. package/es/color-picker/style/css.js +2 -0
  45. package/es/date-picker/style/_index.scss +272 -0
  46. package/es/date-picker/style/css.js +2 -0
  47. package/es/descriptions/style/_index.scss +116 -0
  48. package/es/descriptions/style/css.js +2 -0
  49. package/es/divider/style/_index.scss +80 -0
  50. package/es/divider/style/css.js +2 -0
  51. package/es/drawer/style/_index.scss +152 -0
  52. package/es/drawer/style/css.js +4 -0
  53. package/es/dropdown/style/_index.scss +37 -0
  54. package/es/dropdown/style/css.js +4 -0
  55. package/es/empty/style/_index.scss +26 -0
  56. package/es/empty/style/css.js +2 -0
  57. package/es/flex/style/_index.scss +5 -0
  58. package/es/flex/style/css.js +2 -0
  59. package/es/flip/style/_index.scss +61 -0
  60. package/es/flip/style/css.js +2 -0
  61. package/es/form/style/_index.scss +93 -0
  62. package/es/form/style/css.js +3 -0
  63. package/es/grid/style/_index.scss +90 -0
  64. package/es/grid/style/css.js +2 -0
  65. package/es/icon/style/_index.scss +16 -0
  66. package/es/icon/style/css.js +2 -0
  67. package/es/image/style/_index.scss +9 -0
  68. package/es/image/style/css.js +2 -0
  69. package/es/input/style/_index.scss +180 -0
  70. package/es/input/style/_mixin.scss +38 -0
  71. package/es/input/style/css.js +2 -0
  72. package/es/input-number/style/_index.scss +142 -0
  73. package/es/input-number/style/css.js +3 -0
  74. package/es/input-password/style/_index.scss +20 -0
  75. package/es/input-password/style/css.js +3 -0
  76. package/es/keyboard/style/_index.scss +23 -0
  77. package/es/keyboard/style/css.js +2 -0
  78. package/es/layout/style/_index.scss +82 -0
  79. package/es/layout/style/css.js +2 -0
  80. package/es/link/style/_index.scss +17 -0
  81. package/es/link/style/css.js +2 -0
  82. package/es/list/style/_index.scss +141 -0
  83. package/es/list/style/css.js +2 -0
  84. package/es/loader/style/_index.scss +142 -0
  85. package/es/loader/style/css.js +2 -0
  86. package/es/loading-bar/style/_index.scss +17 -0
  87. package/es/loading-bar/style/css.js +2 -0
  88. package/es/menu/style/_index.scss +183 -0
  89. package/es/menu/style/_mixin.scss +16 -0
  90. package/es/menu/style/css.js +4 -0
  91. package/es/message/style/_index.scss +59 -0
  92. package/es/message/style/css.js +2 -0
  93. package/es/modal/style/_index.scss +116 -0
  94. package/es/modal/style/css.js +5 -0
  95. package/es/native-select/style/_index.scss +65 -0
  96. package/es/native-select/style/_mixin.scss +4 -0
  97. package/es/native-select/style/css.js +2 -0
  98. package/es/notification/style/_index.scss +66 -0
  99. package/es/notification/style/css.js +2 -0
  100. package/es/overlay/style/_index.scss +51 -0
  101. package/es/overlay/style/css.js +2 -0
  102. package/es/pagination/style/_index.scss +143 -0
  103. package/es/pagination/style/css.js +2 -0
  104. package/es/pop-confirm/style/_index.scss +25 -0
  105. package/es/pop-confirm/style/css.js +5 -0
  106. package/es/popover/style/_index.scss +42 -0
  107. package/es/popover/style/css.js +4 -0
  108. package/es/popup/style/_index.scss +84 -0
  109. package/es/popup/style/css.js +4 -0
  110. package/es/progress/style/_index.scss +170 -0
  111. package/es/progress/style/css.js +2 -0
  112. package/es/radio/style/_index.scss +86 -0
  113. package/es/radio/style/css.js +2 -0
  114. package/es/rate/style/_index.scss +31 -0
  115. package/es/rate/style/css.js +2 -0
  116. package/es/result/style/_index.scss +48 -0
  117. package/es/result/style/css.js +2 -0
  118. package/es/scroll-indicator/style/_index.scss +15 -0
  119. package/es/scroll-indicator/style/css.js +2 -0
  120. package/es/segmented/style/_index.scss +93 -0
  121. package/es/segmented/style/css.js +2 -0
  122. package/es/select/style/_index.scss +313 -0
  123. package/es/select/style/css.js +4 -0
  124. package/es/skeleton/style/_index.scss +42 -0
  125. package/es/skeleton/style/css.js +2 -0
  126. package/es/slider/style/_index.scss +177 -0
  127. package/es/slider/style/css.js +4 -0
  128. package/es/space/style/_index.scss +25 -0
  129. package/es/space/style/css.js +2 -0
  130. package/es/speed-dial/style/_index.scss +230 -0
  131. package/es/speed-dial/style/css.js +2 -0
  132. package/es/split/style/_index.scss +98 -0
  133. package/es/split/style/css.js +2 -0
  134. package/es/split-button/style/_index.scss +9 -0
  135. package/es/split-button/style/css.js +5 -0
  136. package/es/statistic/style/_index.scss +31 -0
  137. package/es/statistic/style/css.js +2 -0
  138. package/es/steps/style/_index.scss +208 -0
  139. package/es/steps/style/css.js +2 -0
  140. package/es/sticky/style/_index.scss +8 -0
  141. package/es/sticky/style/css.js +2 -0
  142. package/es/strength-indicator/style/_index.scss +46 -0
  143. package/es/strength-indicator/style/css.js +2 -0
  144. package/es/style/_animation.scss +31 -0
  145. package/es/style/_component.scss +78 -0
  146. package/es/style/_font.scss +981 -0
  147. package/es/style/_mixins.scss +13 -0
  148. package/es/style/_normalise.scss +405 -0
  149. package/es/style/_theme.scss +26 -0
  150. package/es/style/_tokens.scss +61 -0
  151. package/es/style/_variables.scss +266 -0
  152. package/es/style/fonts/iconfont.eot +0 -0
  153. package/es/style/fonts/iconfont.svg +752 -0
  154. package/es/style/fonts/iconfont.ttf +0 -0
  155. package/es/style/fonts/iconfont.woff +0 -0
  156. package/es/style/index.css +10048 -0
  157. package/es/style/index.scss +7 -0
  158. package/es/style/themes/_dark.scss +380 -0
  159. package/es/style/themes/_light.scss +380 -0
  160. package/es/switch/style/_index.scss +144 -0
  161. package/es/switch/style/_mixin.scss +16 -0
  162. package/es/switch/style/css.js +2 -0
  163. package/es/table/style/_index.scss +143 -0
  164. package/es/table/style/css.js +2 -0
  165. package/es/tabs/style/css.js +2 -0
  166. package/es/tabs/style/index.css +241 -0
  167. package/es/tabs/style/index.scss +315 -0
  168. package/es/tag/style/_index.scss +119 -0
  169. package/es/tag/style/css.js +2 -0
  170. package/es/textarea/style/_index.scss +28 -0
  171. package/es/textarea/style/css.js +4 -0
  172. package/es/time-picker/style/_index.scss +212 -0
  173. package/es/time-picker/style/css.js +2 -0
  174. package/es/timeline/style/_index.scss +91 -0
  175. package/es/timeline/style/css.js +2 -0
  176. package/es/tooltip/style/_index.scss +41 -0
  177. package/es/tooltip/style/css.js +4 -0
  178. package/es/transfer/style/_index.scss +98 -0
  179. package/es/transfer/style/css.js +6 -0
  180. package/es/transition/style/_index.scss +20 -0
  181. package/es/transition/style/_mixin.scss +58 -0
  182. package/es/transition/style/css.js +2 -0
  183. package/es/tree/style/_index.scss +66 -0
  184. package/es/tree/style/css.js +4 -0
  185. package/es/typography/style/_index.scss +126 -0
  186. package/es/typography/style/css.js +2 -0
  187. package/es/upload/style/_index.scss +99 -0
  188. package/es/upload/style/css.js +4 -0
  189. package/lib/alert/style/_index.scss +72 -0
  190. package/lib/alert/style/_mixin.scss +5 -0
  191. package/lib/alert/style/css.js +4 -0
  192. package/lib/anchor/style/_index.scss +83 -0
  193. package/lib/anchor/style/css.js +5 -0
  194. package/lib/aspect-ratio/style/_index.scss +22 -0
  195. package/lib/aspect-ratio/style/css.js +4 -0
  196. package/lib/auto-complete/style/_index.scss +58 -0
  197. package/lib/auto-complete/style/css.js +4 -0
  198. package/lib/avatar/style/_index.scss +80 -0
  199. package/lib/avatar/style/css.js +4 -0
  200. package/lib/back-top/style/_index.scss +25 -0
  201. package/lib/back-top/style/css.js +4 -0
  202. package/lib/badge/style/_index.scss +60 -0
  203. package/lib/badge/style/_mixin.scss +11 -0
  204. package/lib/badge/style/css.js +4 -0
  205. package/lib/breadcrumb/style/_index.scss +38 -0
  206. package/lib/breadcrumb/style/css.js +4 -0
  207. package/lib/button/style/_index.scss +215 -0
  208. package/lib/button/style/_mixin.scss +45 -0
  209. package/lib/button/style/css.js +4 -0
  210. package/lib/calendar/style/_index.scss +190 -0
  211. package/lib/calendar/style/css.js +4 -0
  212. package/lib/card/style/_index.scss +57 -0
  213. package/lib/card/style/_mixin.scss +4 -0
  214. package/lib/card/style/css.js +4 -0
  215. package/lib/carousel/style/_index.scss +158 -0
  216. package/lib/carousel/style/css.js +4 -0
  217. package/lib/cascader/style/_index.scss +162 -0
  218. package/lib/cascader/style/css.js +4 -0
  219. package/lib/checkbox/style/_index.scss +139 -0
  220. package/lib/checkbox/style/css.js +4 -0
  221. package/lib/collapse/style/_index.scss +101 -0
  222. package/lib/collapse/style/css.js +4 -0
  223. package/lib/collapse-transition/style/_index.scss +4 -0
  224. package/lib/collapse-transition/style/css.js +4 -0
  225. package/lib/color-picker/style/_index.scss +196 -0
  226. package/lib/color-picker/style/css.js +4 -0
  227. package/lib/date-picker/style/_index.scss +272 -0
  228. package/lib/date-picker/style/css.js +4 -0
  229. package/lib/descriptions/style/_index.scss +116 -0
  230. package/lib/descriptions/style/css.js +4 -0
  231. package/lib/divider/style/_index.scss +80 -0
  232. package/lib/divider/style/css.js +4 -0
  233. package/lib/drawer/style/_index.scss +152 -0
  234. package/lib/drawer/style/css.js +6 -0
  235. package/lib/dropdown/style/_index.scss +37 -0
  236. package/lib/dropdown/style/css.js +6 -0
  237. package/lib/empty/style/_index.scss +26 -0
  238. package/lib/empty/style/css.js +4 -0
  239. package/lib/flex/style/_index.scss +5 -0
  240. package/lib/flex/style/css.js +4 -0
  241. package/lib/flip/style/_index.scss +61 -0
  242. package/lib/flip/style/css.js +4 -0
  243. package/lib/form/style/_index.scss +93 -0
  244. package/lib/form/style/css.js +5 -0
  245. package/lib/grid/style/_index.scss +90 -0
  246. package/lib/grid/style/css.js +4 -0
  247. package/lib/icon/style/_index.scss +16 -0
  248. package/lib/icon/style/css.js +4 -0
  249. package/lib/image/style/_index.scss +9 -0
  250. package/lib/image/style/css.js +4 -0
  251. package/lib/input/style/_index.scss +180 -0
  252. package/lib/input/style/_mixin.scss +38 -0
  253. package/lib/input/style/css.js +4 -0
  254. package/lib/input-number/style/_index.scss +142 -0
  255. package/lib/input-number/style/css.js +5 -0
  256. package/lib/input-password/style/_index.scss +20 -0
  257. package/lib/input-password/style/css.js +5 -0
  258. package/lib/keyboard/style/_index.scss +23 -0
  259. package/lib/keyboard/style/css.js +4 -0
  260. package/lib/layout/style/_index.scss +82 -0
  261. package/lib/layout/style/css.js +4 -0
  262. package/lib/link/style/_index.scss +17 -0
  263. package/lib/link/style/css.js +4 -0
  264. package/lib/list/style/_index.scss +141 -0
  265. package/lib/list/style/css.js +4 -0
  266. package/lib/loader/style/_index.scss +142 -0
  267. package/lib/loader/style/css.js +4 -0
  268. package/lib/loading-bar/style/_index.scss +17 -0
  269. package/lib/loading-bar/style/css.js +4 -0
  270. package/lib/menu/style/_index.scss +183 -0
  271. package/lib/menu/style/_mixin.scss +16 -0
  272. package/lib/menu/style/css.js +6 -0
  273. package/lib/message/style/_index.scss +59 -0
  274. package/lib/message/style/css.js +4 -0
  275. package/lib/modal/style/_index.scss +116 -0
  276. package/lib/modal/style/css.js +7 -0
  277. package/lib/native-select/style/_index.scss +65 -0
  278. package/lib/native-select/style/_mixin.scss +4 -0
  279. package/lib/native-select/style/css.js +4 -0
  280. package/lib/notification/style/_index.scss +66 -0
  281. package/lib/notification/style/css.js +4 -0
  282. package/lib/overlay/style/_index.scss +51 -0
  283. package/lib/overlay/style/css.js +4 -0
  284. package/lib/pagination/style/_index.scss +143 -0
  285. package/lib/pagination/style/css.js +4 -0
  286. package/lib/pop-confirm/style/_index.scss +25 -0
  287. package/lib/pop-confirm/style/css.js +7 -0
  288. package/lib/popover/style/_index.scss +42 -0
  289. package/lib/popover/style/css.js +6 -0
  290. package/lib/popup/style/_index.scss +84 -0
  291. package/lib/popup/style/css.js +6 -0
  292. package/lib/progress/style/_index.scss +170 -0
  293. package/lib/progress/style/css.js +4 -0
  294. package/lib/radio/style/_index.scss +86 -0
  295. package/lib/radio/style/css.js +4 -0
  296. package/lib/rate/style/_index.scss +31 -0
  297. package/lib/rate/style/css.js +4 -0
  298. package/lib/result/style/_index.scss +48 -0
  299. package/lib/result/style/css.js +4 -0
  300. package/lib/scroll-indicator/style/_index.scss +15 -0
  301. package/lib/scroll-indicator/style/css.js +4 -0
  302. package/lib/segmented/style/_index.scss +93 -0
  303. package/lib/segmented/style/css.js +4 -0
  304. package/lib/select/style/_index.scss +313 -0
  305. package/lib/select/style/css.js +6 -0
  306. package/lib/skeleton/style/_index.scss +42 -0
  307. package/lib/skeleton/style/css.js +4 -0
  308. package/lib/slider/style/_index.scss +177 -0
  309. package/lib/slider/style/css.js +6 -0
  310. package/lib/space/style/_index.scss +25 -0
  311. package/lib/space/style/css.js +4 -0
  312. package/lib/speed-dial/style/_index.scss +230 -0
  313. package/lib/speed-dial/style/css.js +4 -0
  314. package/lib/split/style/_index.scss +98 -0
  315. package/lib/split/style/css.js +4 -0
  316. package/lib/split-button/style/_index.scss +9 -0
  317. package/lib/split-button/style/css.js +7 -0
  318. package/lib/statistic/style/_index.scss +31 -0
  319. package/lib/statistic/style/css.js +4 -0
  320. package/lib/steps/style/_index.scss +208 -0
  321. package/lib/steps/style/css.js +4 -0
  322. package/lib/sticky/style/_index.scss +8 -0
  323. package/lib/sticky/style/css.js +4 -0
  324. package/lib/strength-indicator/style/_index.scss +46 -0
  325. package/lib/strength-indicator/style/css.js +4 -0
  326. package/lib/style/_animation.scss +31 -0
  327. package/lib/style/_component.scss +78 -0
  328. package/lib/style/_font.scss +981 -0
  329. package/lib/style/_mixins.scss +13 -0
  330. package/lib/style/_normalise.scss +405 -0
  331. package/lib/style/_theme.scss +26 -0
  332. package/lib/style/_tokens.scss +61 -0
  333. package/lib/style/_variables.scss +266 -0
  334. package/lib/style/fonts/iconfont.eot +0 -0
  335. package/lib/style/fonts/iconfont.svg +752 -0
  336. package/lib/style/fonts/iconfont.ttf +0 -0
  337. package/lib/style/fonts/iconfont.woff +0 -0
  338. package/lib/style/index.css +10048 -0
  339. package/lib/style/index.scss +7 -0
  340. package/lib/style/themes/_dark.scss +380 -0
  341. package/lib/style/themes/_light.scss +380 -0
  342. package/lib/switch/style/_index.scss +144 -0
  343. package/lib/switch/style/_mixin.scss +16 -0
  344. package/lib/switch/style/css.js +4 -0
  345. package/lib/table/style/_index.scss +143 -0
  346. package/lib/table/style/css.js +4 -0
  347. package/lib/tabs/style/css.js +4 -0
  348. package/lib/tabs/style/index.css +241 -0
  349. package/lib/tabs/style/index.scss +315 -0
  350. package/lib/tag/style/_index.scss +119 -0
  351. package/lib/tag/style/css.js +4 -0
  352. package/lib/textarea/style/_index.scss +28 -0
  353. package/lib/textarea/style/css.js +6 -0
  354. package/lib/time-picker/style/_index.scss +212 -0
  355. package/lib/time-picker/style/css.js +4 -0
  356. package/lib/timeline/style/_index.scss +91 -0
  357. package/lib/timeline/style/css.js +4 -0
  358. package/lib/tooltip/style/_index.scss +41 -0
  359. package/lib/tooltip/style/css.js +6 -0
  360. package/lib/transfer/style/_index.scss +98 -0
  361. package/lib/transfer/style/css.js +8 -0
  362. package/lib/transition/style/_index.scss +20 -0
  363. package/lib/transition/style/_mixin.scss +58 -0
  364. package/lib/transition/style/css.js +4 -0
  365. package/lib/tree/style/_index.scss +66 -0
  366. package/lib/tree/style/css.js +6 -0
  367. package/lib/typography/style/_index.scss +126 -0
  368. package/lib/typography/style/css.js +4 -0
  369. package/lib/upload/style/_index.scss +99 -0
  370. package/lib/upload/style/css.js +6 -0
  371. package/package.json +1 -1
@@ -0,0 +1,72 @@
1
+ @use '../../style/variables' as *;
2
+ @use './mixin' as *;
3
+
4
+ .#{$prefix}-alert {
5
+ border: 1px solid;
6
+ border-radius: $alert-border-radius;
7
+ box-sizing: border-box;
8
+ padding: 10px 30px 10px 13px;
9
+ position: relative;
10
+ font-weight: $font-weight;
11
+ opacity: 1;
12
+ font-size: $font-size-base;
13
+ transition: all 300ms;
14
+ transform-origin: center top;
15
+ overflow: hidden;
16
+ display: flex;
17
+ align-items: flex-start;
18
+
19
+ & + & {
20
+ margin-top: 14px;
21
+ }
22
+
23
+ &__title {
24
+ box-sizing: border-box;
25
+ margin: 0 0 5px;
26
+ font-size: 18px;
27
+ font-weight: 500;
28
+ }
29
+
30
+ &__desc {
31
+ box-sizing: border-box;
32
+ line-height: 16px;
33
+ }
34
+
35
+ &__icon {
36
+ line-height: 16px;
37
+ margin-right: 7px;
38
+ position: relative;
39
+ top: 1px;
40
+ }
41
+
42
+ &__close-btn {
43
+ position: absolute;
44
+ top: 10px;
45
+ right: 13px;
46
+ cursor: pointer;
47
+ float: right;
48
+ user-select: none;
49
+ background: none;
50
+ border: none;
51
+ padding: 0;
52
+ color: inherit;
53
+ font-size: inherit;
54
+ line-height: inherit;
55
+ }
56
+
57
+ &_error {
58
+ @include alert-mixin(var(--ty-color-danger-text), var(--ty-color-danger-border), var(--ty-color-danger-bg));
59
+ }
60
+
61
+ &_warning {
62
+ @include alert-mixin(var(--ty-color-warning-text), var(--ty-color-warning-border), var(--ty-color-warning-bg));
63
+ }
64
+
65
+ &_success {
66
+ @include alert-mixin(var(--ty-color-success-text), var(--ty-color-success-border), var(--ty-color-success-bg));
67
+ }
68
+
69
+ &_info {
70
+ @include alert-mixin(var(--ty-color-info-text), var(--ty-color-info-border), var(--ty-color-info-bg));
71
+ }
72
+ }
@@ -0,0 +1,5 @@
1
+ @mixin alert-mixin($fontColor, $borderColor, $bgColor) {
2
+ border-color: $borderColor;
3
+ background-color: $bgColor;
4
+ color: $fontColor;
5
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,83 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-anchor {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ display: flex;
8
+ flex-direction: column;
9
+ list-style: none;
10
+ position: relative;
11
+ background-color: var(--ty-anchor-bg);
12
+
13
+ &__ink {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ height: 100%;
18
+
19
+ &:before {
20
+ content: '';
21
+ position: relative;
22
+ display: block;
23
+ width: 2px;
24
+ height: 100%;
25
+ margin: 0 auto;
26
+ background-color: var(--ty-anchor-ink-bg);
27
+ }
28
+ }
29
+
30
+ &__ink-ball {
31
+ position: absolute;
32
+ left: 50%;
33
+ width: 8px;
34
+ height: 8px;
35
+ background-color: var(--ty-anchor-ball-bg);
36
+ border: 2px solid var(--ty-color-primary);
37
+ border-radius: 8px;
38
+ transform: translateX(-50%);
39
+ transition: top .3s ease-in-out;
40
+ }
41
+
42
+ &__link {
43
+ padding: 7px 0 7px 16px;
44
+
45
+ .#{$prefix}-anchor {
46
+ border: 0;
47
+ }
48
+
49
+ &_active {
50
+ & > a {
51
+ color: var(--ty-color-primary);
52
+ }
53
+ }
54
+ }
55
+
56
+ &__link-title {
57
+ display: block;
58
+ overflow: hidden;
59
+ color: var(--ty-color-text-secondary);
60
+ white-space: nowrap;
61
+ text-overflow: ellipsis;
62
+ border-left: 2px solid transparent;
63
+
64
+ &:hover {
65
+ color: var(--ty-color-primary);
66
+ text-decoration: none;
67
+ }
68
+
69
+ &:not(:only-child) {
70
+ margin-bottom: 5px;
71
+ }
72
+ }
73
+
74
+ &_line {
75
+ .#{$prefix}-anchor__ink-ball {
76
+ width: 2px;
77
+ border: 0;
78
+ border-radius: 0;
79
+ background-color: var(--ty-color-primary);
80
+ transition: top .3s ease-in-out, height .3s ease-in-out;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+ import '../../sticky/style/index.css';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,22 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-aspect-ratio {
4
+ box-sizing: border-box;
5
+ position: relative;
6
+ display: inline-block;
7
+
8
+ &__padding {
9
+ display: block;
10
+ height: 0;
11
+ }
12
+
13
+ &__inside {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ }
22
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,58 @@
1
+ @use "../../style/variables" as *;
2
+
3
+ .#{$prefix}-auto-complete {
4
+ position: relative;
5
+ display: inline-block;
6
+ width: 100%;
7
+
8
+ &_disabled {
9
+ cursor: not-allowed;
10
+ opacity: 0.6;
11
+ }
12
+
13
+ // Dropdown
14
+ &__dropdown {
15
+ width: 100%;
16
+ margin: 0;
17
+ padding: 4px 0;
18
+ list-style-type: none;
19
+ background-color: var(--ty-select-dropdown-bg);
20
+ box-sizing: border-box;
21
+ overflow-x: hidden;
22
+ overflow-y: auto;
23
+ z-index: 10;
24
+ box-shadow: var(--ty-shadow-popup);
25
+ border-radius: $border-radius;
26
+ font-size: $font-size-base;
27
+ max-height: $select-dropdown-max-height;
28
+ }
29
+
30
+ // Empty state
31
+ &__empty {
32
+ padding: 16px;
33
+ text-align: center;
34
+ color: var(--ty-color-text-quaternary);
35
+ font-size: $font-size-sm;
36
+ }
37
+ }
38
+
39
+ // Option
40
+ .#{$prefix}-auto-complete-option {
41
+ display: flex;
42
+ align-items: center;
43
+ padding: 7px 12px;
44
+ font-size: 14px;
45
+ line-height: 22px;
46
+ cursor: pointer;
47
+ color: var(--ty-color-text);
48
+ transition: background-color 0.2s;
49
+
50
+ &_active {
51
+ background-color: var(--ty-select-option-active-bg);
52
+ }
53
+
54
+ &_disabled {
55
+ cursor: not-allowed;
56
+ opacity: 0.5;
57
+ }
58
+ }
@@ -0,0 +1,2 @@
1
+ import './_index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,80 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-avatar {
4
+ box-sizing: border-box;
5
+ display: inline-flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ text-align: center;
9
+ background: $avatar-bg;
10
+ color: $avatar-color;
11
+ white-space: nowrap;
12
+ position: relative;
13
+ vertical-align: middle;
14
+ user-select: none;
15
+ border: 2px solid var(--ty-avatar-border);
16
+
17
+ &__img {
18
+ width: 100%;
19
+ height: 100%;
20
+ }
21
+
22
+ &__text {
23
+ position: absolute;
24
+ left: 50%;
25
+ transform-origin: 0 center;
26
+ transform: translateX(-50%);
27
+ }
28
+
29
+ &__presence {
30
+ position: absolute;
31
+ bottom: 0;
32
+ right: 0;
33
+ border-radius: 50%;
34
+ box-shadow: var(--ty-avatar-presence-shadow);
35
+ height: 0.4em;
36
+ width: 0.4em;
37
+
38
+ &_online {
39
+ background-color: var(--ty-color-success);
40
+ }
41
+
42
+ &_busy {
43
+ background-color: var(--ty-color-danger);
44
+ }
45
+
46
+ &_away {
47
+ background-color: var(--ty-color-warning);
48
+ }
49
+
50
+ &_offline {
51
+ background-color: $gray-400;
52
+ }
53
+ }
54
+
55
+ &_circle {
56
+ border-radius: 50%;
57
+
58
+ .#{$prefix}-avatar__img {
59
+ border-radius: 50%;
60
+ }
61
+ }
62
+
63
+ &_square {
64
+ border-radius: $avatar-border-radius;
65
+ }
66
+
67
+ &_clickable {
68
+ cursor: pointer;
69
+ }
70
+
71
+ &-group {
72
+ .#{$prefix}-avatar {
73
+ z-index: 1;
74
+
75
+ &:hover {
76
+ z-index: 2;
77
+ }
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,25 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-back-top {
4
+ position: fixed;
5
+ right: 40px;
6
+ bottom: 30px;
7
+ background-color: var(--ty-back-top-bg);
8
+ width: 45px;
9
+ height: 45px;
10
+ border-radius: 50%;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ cursor: pointer;
15
+ border: none;
16
+ padding: 0;
17
+ transition: opacity 200ms linear 0s, visibility;
18
+
19
+ &_custom {
20
+ background: none;
21
+ width: auto;
22
+ height: auto;
23
+ border-radius: 0;
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,60 @@
1
+ @use '../../style/variables' as *;
2
+ @use '../../style/animation' as *;
3
+ @use './mixin' as *;
4
+
5
+ .#{$prefix}-badge {
6
+ position: relative;
7
+ display: inline-block;
8
+ vertical-align: middle;
9
+ line-height: 1;
10
+
11
+ &__count {
12
+ @include badge-base();
13
+ min-width: $badge-size;
14
+ min-height: $badge-size;
15
+ line-height: $badge-size;
16
+ padding: 0 5px;
17
+ color: #fff;
18
+ font-weight: normal;
19
+ font-size: $badge-font-size;
20
+ white-space: nowrap;
21
+ text-align: center;
22
+ }
23
+
24
+ &__custom {
25
+ position: absolute;
26
+ right: 0;
27
+ top: 0;
28
+ transform: translateX(50%) translateY(-50%);
29
+ }
30
+
31
+ &__dot {
32
+ @include badge-base();
33
+ width: $badge-dot-size;
34
+ height: $badge-dot-size;
35
+ line-height: $badge-dot-size;
36
+
37
+ &_wave {
38
+ &:after {
39
+ content: '';
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ width: 100%;
44
+ height: 100%;
45
+ border-radius: 50%;
46
+ background-color: inherit;
47
+ animation: ty-processing 1.2s infinite ease-in-out;
48
+ }
49
+ }
50
+ }
51
+
52
+ &_no-wrap {
53
+ .#{$prefix}-badge__count,
54
+ .#{$prefix}-badge__dot {
55
+ display: block;
56
+ transform: none;
57
+ position: relative;
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,11 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ @mixin badge-base {
4
+ box-sizing: border-box;
5
+ display: inline-block;
6
+ z-index: 10;
7
+ position: absolute;
8
+ transform: translateX(-50%) translateY(-50%);
9
+ border-radius: $badge-size;
10
+ box-shadow: var(--ty-badge-shadow);
11
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,38 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-breadcrumb {
4
+ &__ol {
5
+ margin: 0;
6
+ padding: 0;
7
+ list-style-type: none;
8
+ display: flex;
9
+ align-items: center;
10
+ color: var(--ty-color-text-tertiary);
11
+ font-size: $breadcrumb-font-size;
12
+ }
13
+
14
+ &-item {
15
+ &__separator {
16
+ margin: 0 8px;
17
+ }
18
+
19
+ a {
20
+ color: var(--ty-color-text-tertiary);
21
+ transition: all 300ms;
22
+
23
+ &:hover {
24
+ color: var(--ty-color-primary);
25
+ }
26
+ }
27
+
28
+ &:last-child {
29
+ color: var(--ty-color-text);
30
+
31
+ .#{$prefix}-breadcrumb-item {
32
+ &__separator {
33
+ display: none;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,215 @@
1
+ @use '../../style/variables' as *;
2
+ @use '../../style/mixins' as *;
3
+ @use './mixin' as *;
4
+
5
+ $btn-prefix: #{$prefix}-btn;
6
+
7
+ .#{$btn-prefix} {
8
+ box-sizing: border-box;
9
+ border: 1px solid var(--ty-color-border-btn-default);
10
+ outline: none;
11
+ letter-spacing: 0;
12
+ text-align: center;
13
+ cursor: pointer;
14
+ display: inline-flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ min-width: 50px;
18
+ vertical-align: middle;
19
+ text-decoration: none;
20
+ white-space: nowrap;
21
+ user-select: none;
22
+ border-radius: $btn-border-radius;
23
+ transition: $btn-transition;
24
+ line-height: $btn-line-height;
25
+
26
+ &__loader {
27
+ @include loader();
28
+ }
29
+
30
+ &__icon-container, &__loader {
31
+ display: inline-block;
32
+ pointer-events: none;
33
+ line-height: $btn-line-height;
34
+ vertical-align: middle;
35
+
36
+ & + span {
37
+ margin-left: .3em;
38
+ }
39
+ }
40
+
41
+ &__children {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ }
46
+
47
+ // Types
48
+ &_default {
49
+ @include button-style(
50
+ var(--ty-btn-default-color), var(--ty-btn-default-bg), var(--ty-btn-default-border),
51
+ var(--ty-btn-default-hover-bg), var(--ty-btn-default-hover-border), var(--ty-btn-default-hover-color),
52
+ var(--ty-btn-default-active-bg), var(--ty-btn-default-active-border), var(--ty-btn-default-active-color)
53
+ );
54
+ }
55
+
56
+ &_primary {
57
+ @include button-style(#fff, var(--ty-color-primary), var(--ty-color-primary),
58
+ var(--ty-color-primary-hover), var(--ty-color-primary-hover), #fff,
59
+ var(--ty-color-primary-active), var(--ty-color-primary-active), #fff);
60
+ }
61
+
62
+ &_outline {
63
+ @include button-style(var(--ty-color-primary), var(--ty-btn-default-bg), var(--ty-color-primary),
64
+ var(--ty-btn-outline-hover-bg), var(--ty-color-primary-hover), var(--ty-color-primary),
65
+ var(--ty-btn-outline-active-bg));
66
+ }
67
+
68
+ &_ghost {
69
+ @include button-style(var(--ty-color-primary), transparent, transparent,
70
+ var(--ty-btn-ghost-hover-bg), transparent, var(--ty-color-primary),
71
+ var(--ty-btn-ghost-active-bg), transparent, var(--ty-color-primary));
72
+
73
+ &:disabled {
74
+ border: 0;
75
+ }
76
+ }
77
+
78
+ &_link {
79
+ @include button-style(var(--ty-color-primary), transparent, transparent);
80
+
81
+ &:hover {
82
+ text-decoration-line: underline;
83
+ }
84
+
85
+ &:disabled {
86
+ color: var(--ty-btn-link-disabled-color);
87
+ background-color: transparent;
88
+ border-color: transparent;
89
+ text-decoration-line: none;
90
+ }
91
+ }
92
+
93
+ &_info {
94
+ @include button-style(#fff, var(--ty-color-info), var(--ty-color-info));
95
+ }
96
+
97
+ &_success {
98
+ @include button-style(#fff, var(--ty-color-success), var(--ty-color-success));
99
+ }
100
+
101
+ &_warning {
102
+ @include button-style(#fff, var(--ty-color-warning), var(--ty-color-warning));
103
+ }
104
+
105
+ &_danger {
106
+ @include button-style(#fff, var(--ty-color-danger), var(--ty-color-danger));
107
+ }
108
+
109
+ // Sizes
110
+ &_sm {
111
+ @include btn-size($btn-padding-sm, $btn-font-size-sm, $btn-height-sm);
112
+ }
113
+
114
+ &_md {
115
+ @include btn-size($btn-padding-md, $btn-font-size-md, $btn-height-md);
116
+ }
117
+
118
+ &_lg {
119
+ @include btn-size($btn-padding-lg, $btn-font-size-lg, $btn-height-lg);
120
+ }
121
+
122
+ &_block {
123
+ width: 100%;
124
+
125
+ & + & {
126
+ margin: 0;
127
+ }
128
+ }
129
+
130
+ &_round {
131
+ border-radius: $btn-height-lg;
132
+ }
133
+
134
+ &_loading {
135
+ position: relative;
136
+ pointer-events: none;
137
+
138
+ &:before {
139
+ content: '';
140
+ position: absolute;
141
+ top: -1px;
142
+ right: -1px;
143
+ bottom: -1px;
144
+ left: -1px;
145
+ z-index: 1;
146
+ display: block;
147
+ background: var(--ty-btn-loading-bg);
148
+ border-radius: inherit;
149
+ opacity: $btn-loading-opacity;
150
+ transition: opacity .2s;
151
+ }
152
+ }
153
+
154
+ &_disabled {
155
+ cursor: not-allowed;
156
+ }
157
+ }
158
+
159
+ .#{$btn-prefix}-group {
160
+ display: inline-block;
161
+
162
+ & + .#{$btn-prefix}-group {
163
+ margin-left: 10px;
164
+ }
165
+
166
+ .#{$btn-prefix} {
167
+ position: relative;
168
+ border-radius: 0;
169
+ float: left;
170
+
171
+ & + .#{$btn-prefix} {
172
+ margin-left: -1px;
173
+ }
174
+
175
+ &:hover {
176
+ z-index: 1;
177
+ }
178
+
179
+ &:first-child {
180
+ border-top-left-radius: $btn-border-radius;
181
+ border-bottom-left-radius: $btn-border-radius;
182
+ }
183
+
184
+ &:last-child {
185
+ border-top-right-radius: $btn-border-radius;
186
+ border-bottom-right-radius: $btn-border-radius;
187
+ }
188
+ }
189
+
190
+ &_round {
191
+ .#{$btn-prefix} {
192
+ &:first-child {
193
+ border-top-left-radius: 30px;
194
+ border-bottom-left-radius: 30px;
195
+ }
196
+
197
+ &:last-child {
198
+ border-top-right-radius: 30px;
199
+ border-bottom-right-radius: 30px;
200
+ }
201
+ }
202
+ }
203
+
204
+ &_primary,
205
+ &_info,
206
+ &_success,
207
+ &_warning,
208
+ &_danger {
209
+ .#{$btn-prefix} {
210
+ &:not(:first-child) {
211
+ border-left-color: rgba(255, 255, 255, 0.2);
212
+ }
213
+ }
214
+ }
215
+ }