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,196 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-color-picker {
4
+ display: inline-block;
5
+ position: relative;
6
+
7
+ &_disabled {
8
+ opacity: 0.5;
9
+ cursor: not-allowed;
10
+
11
+ .#{$prefix}-color-picker__trigger,
12
+ .#{$prefix}-color-picker__swatch {
13
+ cursor: not-allowed;
14
+ pointer-events: none;
15
+ }
16
+ }
17
+
18
+ &__trigger {
19
+ cursor: pointer;
20
+ display: inline-flex;
21
+ }
22
+
23
+ &__swatch {
24
+ width: 32px;
25
+ height: 32px;
26
+ border-radius: $border-radius;
27
+ border: 1px solid var(--ty-color-picker-border, #{$gray-300});
28
+ padding: 3px;
29
+ cursor: pointer;
30
+ }
31
+
32
+ &__swatch-inner {
33
+ width: 100%;
34
+ height: 100%;
35
+ border-radius: 2px;
36
+ }
37
+
38
+ &__panel {
39
+ padding: 12px;
40
+ background: var(--ty-color-picker-bg, #fff);
41
+ border-radius: 8px;
42
+ box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
43
+ width: 240px;
44
+ }
45
+
46
+ &__spectrum {
47
+ position: relative;
48
+ width: 100%;
49
+ height: 150px;
50
+ border-radius: 4px;
51
+ cursor: crosshair;
52
+ overflow: hidden;
53
+ }
54
+
55
+ &__spectrum-white {
56
+ position: absolute;
57
+ inset: 0;
58
+ background: linear-gradient(to right, #fff, transparent);
59
+ }
60
+
61
+ &__spectrum-black {
62
+ position: absolute;
63
+ inset: 0;
64
+ background: linear-gradient(to bottom, transparent, #000);
65
+ }
66
+
67
+ &__spectrum-handle {
68
+ position: absolute;
69
+ width: 12px;
70
+ height: 12px;
71
+ border-radius: 50%;
72
+ border: 2px solid #fff;
73
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
74
+ transform: translate(-50%, -50%);
75
+ pointer-events: none;
76
+ }
77
+
78
+ &__controls {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: 8px;
82
+ margin-top: 12px;
83
+ }
84
+
85
+ &__preview {
86
+ width: 28px;
87
+ height: 28px;
88
+ border-radius: 50%;
89
+ border: 1px solid var(--ty-color-picker-border, #{$gray-300});
90
+ flex-shrink: 0;
91
+ }
92
+
93
+ &__sliders {
94
+ flex: 1;
95
+ display: flex;
96
+ flex-direction: column;
97
+ gap: 8px;
98
+ }
99
+
100
+ &__hue {
101
+ position: relative;
102
+ height: 12px;
103
+ border-radius: 6px;
104
+ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
105
+ cursor: pointer;
106
+ }
107
+
108
+ &__alpha {
109
+ position: relative;
110
+ height: 12px;
111
+ border-radius: 6px;
112
+ cursor: pointer;
113
+
114
+ &::before {
115
+ content: '';
116
+ position: absolute;
117
+ inset: 0;
118
+ border-radius: 6px;
119
+ background: repeating-conic-gradient(#{$gray-300} 0% 25%, transparent 0% 50%) 0 0 / 8px 8px;
120
+ z-index: -1;
121
+ }
122
+ }
123
+
124
+ &__slider-handle {
125
+ position: absolute;
126
+ top: 50%;
127
+ width: 14px;
128
+ height: 14px;
129
+ border-radius: 50%;
130
+ border: 2px solid #fff;
131
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
132
+ transform: translate(-50%, -50%);
133
+ pointer-events: none;
134
+ background: transparent;
135
+ }
136
+
137
+ &__input-row {
138
+ display: flex;
139
+ gap: 6px;
140
+ margin-top: 12px;
141
+ align-items: center;
142
+ }
143
+
144
+ &__format-btn {
145
+ border: 1px solid var(--ty-color-picker-border, #{$gray-300});
146
+ background: transparent;
147
+ border-radius: $border-radius;
148
+ padding: 2px 6px;
149
+ cursor: pointer;
150
+ font-size: 12px;
151
+ color: var(--ty-color-text, #{$gray-700});
152
+ white-space: nowrap;
153
+
154
+ &:hover {
155
+ border-color: var(--ty-color-primary, #{$primary-color});
156
+ }
157
+ }
158
+
159
+ &__hex-input {
160
+ flex: 1;
161
+ border: 1px solid var(--ty-color-picker-border, #{$gray-300});
162
+ border-radius: $border-radius;
163
+ padding: 2px 6px;
164
+ font-size: 12px;
165
+ font-family: $font-family-monospace;
166
+ color: var(--ty-color-text, #{$gray-800});
167
+ outline: none;
168
+ min-width: 0;
169
+
170
+ &:focus {
171
+ border-color: var(--ty-color-primary, #{$primary-color});
172
+ }
173
+ }
174
+
175
+ &__presets {
176
+ display: flex;
177
+ flex-wrap: wrap;
178
+ gap: 6px;
179
+ margin-top: 12px;
180
+ padding-top: 12px;
181
+ border-top: 1px solid var(--ty-color-picker-border, #{$gray-200});
182
+ }
183
+
184
+ &__preset {
185
+ width: 20px;
186
+ height: 20px;
187
+ border-radius: $border-radius;
188
+ cursor: pointer;
189
+ border: 1px solid var(--ty-color-picker-border, #{$gray-300});
190
+ transition: transform 0.15s;
191
+
192
+ &:hover {
193
+ transform: scale(1.2);
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("./index.css");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,272 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ $dp: #{$prefix}-date-picker;
4
+
5
+ .#{$dp} {
6
+ display: inline-flex;
7
+ position: relative;
8
+ font-family: $font-family;
9
+ font-size: $font-size-base;
10
+
11
+ // ---- Input ----
12
+ &__input {
13
+ display: inline-flex;
14
+ align-items: center;
15
+ width: 100%;
16
+ padding: 4px 11px;
17
+ border: 1px solid var(--ty-input-border);
18
+ border-radius: 6px;
19
+ background: var(--ty-picker-input-bg);
20
+ cursor: pointer;
21
+ transition: border-color 0.3s, box-shadow 0.3s;
22
+
23
+ &:hover {
24
+ border-color: var(--ty-color-primary);
25
+ }
26
+ }
27
+
28
+ &_open &__input {
29
+ border-color: var(--ty-color-primary);
30
+ box-shadow: var(--ty-input-focus-shadow);
31
+ }
32
+
33
+ &__input-field {
34
+ flex: 1;
35
+ border: none;
36
+ outline: none;
37
+ background: transparent;
38
+ font-size: inherit;
39
+ font-family: inherit;
40
+ color: var(--ty-color-text);
41
+ cursor: pointer;
42
+ min-width: 120px;
43
+
44
+ &::placeholder {
45
+ color: var(--ty-color-text-quaternary);
46
+ }
47
+
48
+ &:disabled {
49
+ cursor: not-allowed;
50
+ }
51
+ }
52
+
53
+ &__suffix {
54
+ position: relative;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ width: 14px;
59
+ height: 14px;
60
+ margin-left: 4px;
61
+ color: var(--ty-color-text-quaternary);
62
+ }
63
+
64
+ &__icon {
65
+ display: inline-flex;
66
+ font-size: 14px;
67
+ }
68
+
69
+ &__clear {
70
+ display: none;
71
+ position: absolute;
72
+ inset: 0;
73
+ align-items: center;
74
+ justify-content: center;
75
+ font-size: 14px;
76
+ color: var(--ty-color-text-quaternary);
77
+ background: var(--ty-picker-clear-bg);
78
+ cursor: pointer;
79
+ border: none;
80
+ padding: 0;
81
+
82
+ &:hover {
83
+ color: var(--ty-color-text-tertiary);
84
+ }
85
+ }
86
+
87
+ &_has-value:hover &__clear {
88
+ display: inline-flex;
89
+ }
90
+
91
+ // ---- Sizes ----
92
+ &_sm &__input {
93
+ padding: 0 7px;
94
+ font-size: 12px;
95
+ }
96
+
97
+ &_sm &__input-field {
98
+ min-width: 90px;
99
+ }
100
+
101
+ &_lg &__input {
102
+ padding: 6px 11px;
103
+ font-size: 16px;
104
+ }
105
+
106
+ &_lg &__input-field {
107
+ min-width: 140px;
108
+ }
109
+
110
+ // ---- Disabled ----
111
+ &_disabled {
112
+ opacity: 0.65;
113
+
114
+ .#{$dp}__input {
115
+ background: var(--ty-color-bg-disabled);
116
+ cursor: not-allowed;
117
+ border-color: var(--ty-input-border);
118
+
119
+ &:hover {
120
+ border-color: var(--ty-input-border);
121
+ }
122
+ }
123
+ }
124
+
125
+ // ---- Dropdown ----
126
+ &__dropdown {
127
+ background: var(--ty-picker-dropdown-bg);
128
+ border-radius: 8px;
129
+ box-shadow: var(--ty-shadow-popup);
130
+ width: 288px;
131
+ }
132
+
133
+ // ---- Header ----
134
+ &__header {
135
+ display: flex;
136
+ align-items: center;
137
+ padding: 8px 12px;
138
+ border-bottom: 1px solid var(--ty-color-border-light);
139
+ }
140
+
141
+ &__header-btn {
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ width: 24px;
146
+ height: 24px;
147
+ border: none;
148
+ background: transparent;
149
+ color: var(--ty-color-text-tertiary);
150
+ cursor: pointer;
151
+ font-size: 14px;
152
+ border-radius: 4px;
153
+ transition: color 0.2s;
154
+
155
+ &:hover {
156
+ color: var(--ty-color-primary);
157
+ }
158
+ }
159
+
160
+ &__header-caption {
161
+ flex: 1;
162
+ display: flex;
163
+ justify-content: center;
164
+ gap: 8px;
165
+ }
166
+
167
+ &__header-label {
168
+ font-weight: 500;
169
+ cursor: pointer;
170
+ padding: 0 4px;
171
+ border-radius: 4px;
172
+ transition: color 0.2s;
173
+
174
+ &:hover {
175
+ color: var(--ty-color-primary);
176
+ }
177
+ }
178
+
179
+ // ---- Body / Table ----
180
+ &__body {
181
+ padding: 8px 12px;
182
+ }
183
+
184
+ &__table {
185
+ width: 100%;
186
+ border-collapse: collapse;
187
+ table-layout: fixed;
188
+ text-align: center;
189
+ }
190
+
191
+ &__cell-header {
192
+ font-weight: 400;
193
+ color: var(--ty-color-text-secondary);
194
+ padding: 4px 0;
195
+ font-size: 12px;
196
+ }
197
+
198
+ // ---- Cell ----
199
+ &__cell {
200
+ padding: 2px 0;
201
+ cursor: pointer;
202
+
203
+ &_disabled {
204
+ cursor: not-allowed;
205
+ }
206
+ }
207
+
208
+ &__cell-inner {
209
+ display: inline-flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ width: 28px;
213
+ height: 28px;
214
+ border-radius: 6px;
215
+ transition: background 0.2s;
216
+ color: var(--ty-color-text-quaternary);
217
+ font-size: 13px;
218
+ }
219
+
220
+ &__cell_in-view &__cell-inner {
221
+ color: var(--ty-color-text);
222
+ }
223
+
224
+ &__cell:hover &__cell-inner {
225
+ background: var(--ty-picker-cell-hover-bg);
226
+ }
227
+
228
+ &__cell_today &__cell-inner {
229
+ border: 1px solid var(--ty-color-primary);
230
+ color: var(--ty-color-primary);
231
+ }
232
+
233
+ &__cell_selected &__cell-inner {
234
+ background: var(--ty-color-primary);
235
+ color: #fff;
236
+ font-weight: 500;
237
+ }
238
+
239
+ &__cell_selected:hover &__cell-inner {
240
+ background: var(--ty-picker-cell-selected-hover-bg);
241
+ }
242
+
243
+ &__cell_disabled &__cell-inner {
244
+ color: var(--ty-color-text-quaternary);
245
+ background: var(--ty-picker-cell-disabled-bg);
246
+ }
247
+
248
+ &__cell_disabled:hover &__cell-inner {
249
+ background: var(--ty-picker-cell-disabled-bg);
250
+ }
251
+
252
+ &__cell_dim &__cell-inner {
253
+ color: var(--ty-color-text-quaternary);
254
+ }
255
+
256
+ // ---- Footer ----
257
+ &__footer {
258
+ padding: 8px 12px;
259
+ border-top: 1px solid var(--ty-color-border-light);
260
+ text-align: center;
261
+ }
262
+
263
+ &__today-btn {
264
+ color: var(--ty-color-primary);
265
+ cursor: pointer;
266
+ font-size: 13px;
267
+
268
+ &:hover {
269
+ opacity: 0.8;
270
+ }
271
+ }
272
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("./index.css");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,116 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-descriptions {
4
+
5
+ &__body {
6
+ width: 100%;
7
+ overflow: hidden;
8
+
9
+ > table {
10
+ width: 100%;
11
+ border-collapse: collapse;
12
+ table-layout: fixed;
13
+ box-sizing: border-box;
14
+ text-align: left;
15
+ background-color: transparent;
16
+ }
17
+ }
18
+
19
+ &__title {
20
+ text-align: left;
21
+ margin-bottom: 20px;
22
+ color: var(--ty-color-text);
23
+ font-weight: 600;
24
+ font-size: 16px;
25
+ }
26
+
27
+ &__item_colon:after {
28
+ content: ':';
29
+ margin-left: 2px;
30
+ margin-right: 5px;
31
+ }
32
+
33
+ &__item-label {
34
+ color: var(--ty-color-text-label);
35
+ font-size: $font-size-base;
36
+ font-weight: 400;
37
+ line-height: $line-height-base;
38
+ }
39
+
40
+ &__item-content {
41
+ color: var(--ty-color-text-secondary);
42
+ font-size: $font-size-base;
43
+ line-height: $line-height-base;
44
+ }
45
+
46
+ &_bordered {
47
+ .#{$prefix}-descriptions {
48
+ &__body {
49
+ border: 1px solid var(--ty-descriptions-border);
50
+ border-radius: $description-border-radius;
51
+ }
52
+
53
+ &__row {
54
+ border-bottom: 1px solid var(--ty-descriptions-border);
55
+
56
+ &:last-child {
57
+ border-bottom: 0;
58
+ }
59
+ }
60
+
61
+ &__item-label {
62
+ background-color: var(--ty-descriptions-label-bg);
63
+ }
64
+
65
+ &__item-label, &__item-content {
66
+ border-right: 1px solid var(--ty-descriptions-border);
67
+
68
+ &:last-child {
69
+ border-right: 0;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ &_sm {
76
+ .#{$prefix}-descriptions__item {
77
+ padding-bottom: $description-sm-padding-vt;
78
+ }
79
+
80
+ &.#{$prefix}-descriptions_bordered {
81
+ .#{$prefix}-descriptions {
82
+ &__item-label, &__item-content {
83
+ padding: $description-sm-padding-vt $description-sm-padding-hr;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ &_md {
90
+ .#{$prefix}-descriptions__item {
91
+ padding-bottom: $description-md-padding-vt;
92
+ }
93
+
94
+ &.#{$prefix}-descriptions_bordered {
95
+ .#{$prefix}-descriptions {
96
+ &__item-label, &__item-content {
97
+ padding: $description-md-padding-vt $description-md-padding-hr;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ &_lg {
104
+ .#{$prefix}-descriptions__item {
105
+ padding-bottom: $description-lg-padding-vt;
106
+ }
107
+
108
+ &.#{$prefix}-descriptions_bordered {
109
+ .#{$prefix}-descriptions {
110
+ &__item-label, &__item-content {
111
+ padding: $description-lg-padding-vt $description-lg-padding-hr;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("./index.css");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,80 @@
1
+ @use '../../style/variables' as *;
2
+
3
+ .#{$prefix}-divider {
4
+ font-size: 16px;
5
+ line-height: 1.5;
6
+ box-sizing: border-box;
7
+ padding: 0;
8
+ list-style: none;
9
+
10
+ &_vertical {
11
+ margin: 0 8px;
12
+ display: inline-block;
13
+ height: 0.9em;
14
+ width: 1px;
15
+ vertical-align: middle;
16
+ position: relative;
17
+ top: -0.1em;
18
+ background: var(--ty-divider-color);
19
+
20
+ &-dashed {
21
+ background: none;
22
+ border-left: 1px dashed var(--ty-divider-color);
23
+ }
24
+ }
25
+
26
+ &_horizontal {
27
+ display: block;
28
+ height: 1px;
29
+ width: 100%;
30
+ margin: 16px 0;
31
+ background: var(--ty-divider-color);
32
+
33
+ &-dashed:not(.#{$prefix}-divider_text) {
34
+ background: none;
35
+ border-top: 1px dashed var(--ty-divider-color);
36
+ }
37
+ }
38
+
39
+ &_text {
40
+ display: table;
41
+ white-space: nowrap;
42
+ text-align: center;
43
+ background: transparent;
44
+ font-weight: 500;
45
+ color: var(--ty-divider-text-color);
46
+
47
+ &:before,
48
+ &:after {
49
+ content: '';
50
+ display: table-cell;
51
+ position: relative;
52
+ top: 50%;
53
+ width: 50%;
54
+ border-top: 1px solid var(--ty-divider-color);
55
+ transform: translateY(50%);
56
+ }
57
+ }
58
+
59
+ &_left:before,
60
+ &_right:after {
61
+ width: 5%;
62
+ }
63
+
64
+ &_left:after,
65
+ &_right:before {
66
+ width: 95%;
67
+ }
68
+
69
+ &_inner-text {
70
+ display: inline-block;
71
+ padding: 0 10px;
72
+ }
73
+
74
+ &_dashed {
75
+ &:before,
76
+ &:after {
77
+ border-top-style: dashed;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("./index.css");
4
+ //# sourceMappingURL=index.js.map