@jesscss/fns 1.0.8-alpha.8 → 2.0.0-alpha.2

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 (625) hide show
  1. package/README.md +15 -5
  2. package/lib/__tests__/color-adjustments.test.d.ts +1 -0
  3. package/lib/__tests__/color-adjustments.test.js +137 -0
  4. package/lib/__tests__/color-adjustments.test.js.map +1 -0
  5. package/lib/__tests__/color-components.test.d.ts +1 -0
  6. package/lib/__tests__/color-components.test.js +76 -0
  7. package/lib/__tests__/color-components.test.js.map +1 -0
  8. package/lib/__tests__/color.test.d.ts +1 -0
  9. package/lib/__tests__/color.test.js +41 -0
  10. package/lib/__tests__/color.test.js.map +1 -0
  11. package/lib/__tests__/floor.test.d.ts +1 -0
  12. package/lib/__tests__/floor.test.js +38 -0
  13. package/lib/__tests__/floor.test.js.map +1 -0
  14. package/lib/__tests__/iif.d.ts +1 -0
  15. package/lib/__tests__/iif.js +38 -0
  16. package/lib/__tests__/iif.test.d.ts +1 -0
  17. package/lib/__tests__/iif.test.js +34 -0
  18. package/lib/__tests__/iif.test.js.map +1 -0
  19. package/lib/__tests__/math.d.ts +1 -0
  20. package/lib/__tests__/math.js +45 -0
  21. package/lib/__tests__/math.test.d.ts +1 -0
  22. package/lib/__tests__/math.test.js +46 -0
  23. package/lib/__tests__/math.test.js.map +1 -0
  24. package/lib/conversions.d.ts +46 -0
  25. package/lib/conversions.js +142 -0
  26. package/lib/conversions.js.map +1 -0
  27. package/lib/index.d.ts +1 -5
  28. package/lib/index.js +3 -17
  29. package/lib/index.js.map +1 -0
  30. package/lib/less/__tests__/advanced-blend-modes.test.d.ts +1 -0
  31. package/lib/less/__tests__/advanced-blend-modes.test.js +29 -0
  32. package/lib/less/__tests__/advanced-blend-modes.test.js.map +1 -0
  33. package/lib/less/__tests__/alpha-adjustments.test.d.ts +1 -0
  34. package/lib/less/__tests__/alpha-adjustments.test.js +36 -0
  35. package/lib/less/__tests__/alpha-adjustments.test.js.map +1 -0
  36. package/lib/less/__tests__/argb.test.d.ts +1 -0
  37. package/lib/less/__tests__/argb.test.js +15 -0
  38. package/lib/less/__tests__/argb.test.js.map +1 -0
  39. package/lib/less/__tests__/blend-modes.test.d.ts +1 -0
  40. package/lib/less/__tests__/blend-modes.test.js +27 -0
  41. package/lib/less/__tests__/blend-modes.test.js.map +1 -0
  42. package/lib/less/__tests__/contrast.test.d.ts +1 -0
  43. package/lib/less/__tests__/contrast.test.js +29 -0
  44. package/lib/less/__tests__/contrast.test.js.map +1 -0
  45. package/lib/less/__tests__/convert.test.d.ts +1 -0
  46. package/lib/less/__tests__/convert.test.js +25 -0
  47. package/lib/less/__tests__/convert.test.js.map +1 -0
  48. package/lib/less/__tests__/e.test.d.ts +1 -0
  49. package/lib/less/__tests__/e.test.js +12 -0
  50. package/lib/less/__tests__/e.test.js.map +1 -0
  51. package/lib/less/__tests__/extract.test.d.ts +1 -0
  52. package/lib/less/__tests__/extract.test.js +32 -0
  53. package/lib/less/__tests__/extract.test.js.map +1 -0
  54. package/lib/less/__tests__/format.test.d.ts +1 -0
  55. package/lib/less/__tests__/format.test.js +20 -0
  56. package/lib/less/__tests__/format.test.js.map +1 -0
  57. package/lib/less/__tests__/get-unit.test.d.ts +1 -0
  58. package/lib/less/__tests__/get-unit.test.js +15 -0
  59. package/lib/less/__tests__/get-unit.test.js.map +1 -0
  60. package/lib/less/__tests__/hsl-branches.test.d.ts +1 -0
  61. package/lib/less/__tests__/hsl-branches.test.js +27 -0
  62. package/lib/less/__tests__/hsl-branches.test.js.map +1 -0
  63. package/lib/less/__tests__/hsl-relative-errors.test.d.ts +1 -0
  64. package/lib/less/__tests__/hsl-relative-errors.test.js +97 -0
  65. package/lib/less/__tests__/hsl-relative-errors.test.js.map +1 -0
  66. package/lib/less/__tests__/hsla-fallback.test.d.ts +1 -0
  67. package/lib/less/__tests__/hsla-fallback.test.js +29 -0
  68. package/lib/less/__tests__/hsla-fallback.test.js.map +1 -0
  69. package/lib/less/__tests__/hsv-family.test.d.ts +1 -0
  70. package/lib/less/__tests__/hsv-family.test.js +43 -0
  71. package/lib/less/__tests__/hsv-family.test.js.map +1 -0
  72. package/lib/less/__tests__/isdefined.test.d.ts +1 -0
  73. package/lib/less/__tests__/isdefined.test.js +18 -0
  74. package/lib/less/__tests__/isdefined.test.js.map +1 -0
  75. package/lib/less/__tests__/isruleset.test.d.ts +1 -0
  76. package/lib/less/__tests__/isruleset.test.js +22 -0
  77. package/lib/less/__tests__/isruleset.test.js.map +1 -0
  78. package/lib/less/__tests__/length.test.d.ts +1 -0
  79. package/lib/less/__tests__/length.test.js +16 -0
  80. package/lib/less/__tests__/length.test.js.map +1 -0
  81. package/lib/less/__tests__/luma-luminance-hsv-channels.test.d.ts +1 -0
  82. package/lib/less/__tests__/luma-luminance-hsv-channels.test.js +35 -0
  83. package/lib/less/__tests__/luma-luminance-hsv-channels.test.js.map +1 -0
  84. package/lib/less/__tests__/max.test.d.ts +1 -0
  85. package/lib/less/__tests__/max.test.js +35 -0
  86. package/lib/less/__tests__/max.test.js.map +1 -0
  87. package/lib/less/__tests__/min.test.d.ts +1 -0
  88. package/lib/less/__tests__/min.test.js +37 -0
  89. package/lib/less/__tests__/min.test.js.map +1 -0
  90. package/lib/less/__tests__/mix.test.d.ts +1 -0
  91. package/lib/less/__tests__/mix.test.js +25 -0
  92. package/lib/less/__tests__/mix.test.js.map +1 -0
  93. package/lib/less/__tests__/mod.test.d.ts +1 -0
  94. package/lib/less/__tests__/mod.test.js +11 -0
  95. package/lib/less/__tests__/mod.test.js.map +1 -0
  96. package/lib/less/__tests__/percentage.test.d.ts +1 -0
  97. package/lib/less/__tests__/percentage.test.js +12 -0
  98. package/lib/less/__tests__/percentage.test.js.map +1 -0
  99. package/lib/less/__tests__/pow.test.d.ts +1 -0
  100. package/lib/less/__tests__/pow.test.js +11 -0
  101. package/lib/less/__tests__/pow.test.js.map +1 -0
  102. package/lib/less/__tests__/reexports-smoke.test.d.ts +1 -0
  103. package/lib/less/__tests__/reexports-smoke.test.js +26 -0
  104. package/lib/less/__tests__/reexports-smoke.test.js.map +1 -0
  105. package/lib/less/__tests__/replace.test.d.ts +1 -0
  106. package/lib/less/__tests__/replace.test.js +22 -0
  107. package/lib/less/__tests__/replace.test.js.map +1 -0
  108. package/lib/less/__tests__/rgb-relative-errors.test.d.ts +1 -0
  109. package/lib/less/__tests__/rgb-relative-errors.test.js +98 -0
  110. package/lib/less/__tests__/rgb-relative-errors.test.js.map +1 -0
  111. package/lib/less/__tests__/rgb-rgba-branches.test.d.ts +1 -0
  112. package/lib/less/__tests__/rgb-rgba-branches.test.js +49 -0
  113. package/lib/less/__tests__/rgb-rgba-branches.test.js.map +1 -0
  114. package/lib/less/__tests__/rgba-fallback.test.d.ts +1 -0
  115. package/lib/less/__tests__/rgba-fallback.test.js +29 -0
  116. package/lib/less/__tests__/rgba-fallback.test.js.map +1 -0
  117. package/lib/less/__tests__/shade.test.d.ts +1 -0
  118. package/lib/less/__tests__/shade.test.js +19 -0
  119. package/lib/less/__tests__/shade.test.js.map +1 -0
  120. package/lib/less/__tests__/spin.test.d.ts +1 -0
  121. package/lib/less/__tests__/spin.test.js +26 -0
  122. package/lib/less/__tests__/spin.test.js.map +1 -0
  123. package/lib/less/__tests__/tint.test.d.ts +1 -0
  124. package/lib/less/__tests__/tint.test.js +19 -0
  125. package/lib/less/__tests__/tint.test.js.map +1 -0
  126. package/lib/less/__tests__/types.test.d.ts +1 -0
  127. package/lib/less/__tests__/types.test.js +28 -0
  128. package/lib/less/__tests__/types.test.js.map +1 -0
  129. package/lib/less/__tests__/unit.test.d.ts +1 -0
  130. package/lib/less/__tests__/unit.test.js +17 -0
  131. package/lib/less/__tests__/unit.test.js.map +1 -0
  132. package/lib/less/abs.d.ts +7 -0
  133. package/lib/less/abs.js +8 -0
  134. package/lib/less/abs.js.map +1 -0
  135. package/lib/less/acos.d.ts +440 -0
  136. package/lib/less/acos.js +3 -0
  137. package/lib/less/acos.js.map +1 -0
  138. package/lib/less/alpha.d.ts +7 -0
  139. package/lib/less/alpha.js +8 -0
  140. package/lib/less/alpha.js.map +1 -0
  141. package/lib/less/argb.d.ts +441 -0
  142. package/lib/less/argb.js +17 -0
  143. package/lib/less/argb.js.map +1 -0
  144. package/lib/less/asin.d.ts +440 -0
  145. package/lib/less/asin.js +3 -0
  146. package/lib/less/asin.js.map +1 -0
  147. package/lib/less/atan.d.ts +440 -0
  148. package/lib/less/atan.js +3 -0
  149. package/lib/less/atan.js.map +1 -0
  150. package/lib/less/average.d.ts +601 -0
  151. package/lib/less/average.js +17 -0
  152. package/lib/less/average.js.map +1 -0
  153. package/lib/less/blue.d.ts +7 -0
  154. package/lib/less/blue.js +8 -0
  155. package/lib/less/blue.js.map +1 -0
  156. package/lib/less/ceil.d.ts +7 -0
  157. package/lib/less/ceil.js +8 -0
  158. package/lib/less/ceil.js.map +1 -0
  159. package/lib/less/color.d.ts +441 -0
  160. package/lib/less/color.js +33 -0
  161. package/lib/less/color.js.map +1 -0
  162. package/lib/less/contrast.d.ts +1427 -0
  163. package/lib/less/contrast.js +57 -0
  164. package/lib/less/contrast.js.map +1 -0
  165. package/lib/less/convert.d.ts +600 -0
  166. package/lib/less/convert.js +45 -0
  167. package/lib/less/convert.js.map +1 -0
  168. package/lib/less/cos.d.ts +440 -0
  169. package/lib/less/cos.js +3 -0
  170. package/lib/less/cos.js.map +1 -0
  171. package/lib/less/darken.d.ts +980 -0
  172. package/lib/less/darken.js +29 -0
  173. package/lib/less/darken.js.map +1 -0
  174. package/lib/less/desaturate.d.ts +980 -0
  175. package/lib/less/desaturate.js +29 -0
  176. package/lib/less/desaturate.js.map +1 -0
  177. package/lib/less/difference.d.ts +601 -0
  178. package/lib/less/difference.js +18 -0
  179. package/lib/less/difference.js.map +1 -0
  180. package/lib/less/e.d.ts +444 -0
  181. package/lib/less/e.js +17 -0
  182. package/lib/less/e.js.map +1 -0
  183. package/lib/less/each.d.ts +615 -0
  184. package/lib/less/each.js +64 -0
  185. package/lib/less/each.js.map +1 -0
  186. package/lib/less/exclusion.d.ts +601 -0
  187. package/lib/less/exclusion.js +18 -0
  188. package/lib/less/exclusion.js.map +1 -0
  189. package/lib/less/extract.d.ts +625 -0
  190. package/lib/less/extract.js +43 -0
  191. package/lib/less/extract.js.map +1 -0
  192. package/lib/less/fade.d.ts +600 -0
  193. package/lib/less/fade.js +28 -0
  194. package/lib/less/fade.js.map +1 -0
  195. package/lib/less/fadein.d.ts +980 -0
  196. package/lib/less/fadein.js +37 -0
  197. package/lib/less/fadein.js.map +1 -0
  198. package/lib/less/fadeout.d.ts +980 -0
  199. package/lib/less/fadeout.js +36 -0
  200. package/lib/less/fadeout.js.map +1 -0
  201. package/lib/less/floor.d.ts +7 -0
  202. package/lib/less/floor.js +8 -0
  203. package/lib/less/floor.js.map +1 -0
  204. package/lib/less/format.d.ts +1821 -0
  205. package/lib/less/format.js +44 -0
  206. package/lib/less/format.js.map +1 -0
  207. package/lib/less/get-unit.d.ts +441 -0
  208. package/lib/less/get-unit.js +11 -0
  209. package/lib/less/get-unit.js.map +1 -0
  210. package/lib/less/green.d.ts +7 -0
  211. package/lib/less/green.js +8 -0
  212. package/lib/less/green.js.map +1 -0
  213. package/lib/less/greyscale.d.ts +441 -0
  214. package/lib/less/greyscale.js +18 -0
  215. package/lib/less/greyscale.js.map +1 -0
  216. package/lib/less/hardlight.d.ts +601 -0
  217. package/lib/less/hardlight.js +19 -0
  218. package/lib/less/hardlight.js.map +1 -0
  219. package/lib/less/hsl.d.ts +1063 -0
  220. package/lib/less/hsl.js +257 -0
  221. package/lib/less/hsl.js.map +1 -0
  222. package/lib/less/hsla.d.ts +354 -0
  223. package/lib/less/hsla.js +31 -0
  224. package/lib/less/hsla.js.map +1 -0
  225. package/lib/less/hsv.d.ts +723 -0
  226. package/lib/less/hsv.js +20 -0
  227. package/lib/less/hsv.js.map +1 -0
  228. package/lib/less/hsva.d.ts +991 -0
  229. package/lib/less/hsva.js +53 -0
  230. package/lib/less/hsva.js.map +1 -0
  231. package/lib/less/hsvhue.d.ts +441 -0
  232. package/lib/less/hsvhue.js +11 -0
  233. package/lib/less/hsvhue.js.map +1 -0
  234. package/lib/less/hsvsaturation.d.ts +441 -0
  235. package/lib/less/hsvsaturation.js +12 -0
  236. package/lib/less/hsvsaturation.js.map +1 -0
  237. package/lib/less/hsvvalue.d.ts +441 -0
  238. package/lib/less/hsvvalue.js +11 -0
  239. package/lib/less/hsvvalue.js.map +1 -0
  240. package/lib/less/hue.d.ts +441 -0
  241. package/lib/less/hue.js +11 -0
  242. package/lib/less/hue.js.map +1 -0
  243. package/lib/less/iif.d.ts +1033 -0
  244. package/lib/less/iif.js +30 -0
  245. package/lib/less/iif.js.map +1 -0
  246. package/lib/less/index.d.ts +75 -0
  247. package/lib/less/index.js +76 -0
  248. package/lib/less/index.js.map +1 -0
  249. package/lib/less/isdefined.d.ts +466 -0
  250. package/lib/less/isdefined.js +21 -0
  251. package/lib/less/isdefined.js.map +1 -0
  252. package/lib/less/isruleset.d.ts +466 -0
  253. package/lib/less/isruleset.js +24 -0
  254. package/lib/less/isruleset.js.map +1 -0
  255. package/lib/less/length.d.ts +441 -0
  256. package/lib/less/length.js +21 -0
  257. package/lib/less/length.js.map +1 -0
  258. package/lib/less/lighten.d.ts +980 -0
  259. package/lib/less/lighten.js +29 -0
  260. package/lib/less/lighten.js.map +1 -0
  261. package/lib/less/lightness.d.ts +441 -0
  262. package/lib/less/lightness.js +11 -0
  263. package/lib/less/lightness.js.map +1 -0
  264. package/lib/less/luma.d.ts +441 -0
  265. package/lib/less/luma.js +14 -0
  266. package/lib/less/luma.js.map +1 -0
  267. package/lib/less/luminance.d.ts +441 -0
  268. package/lib/less/luminance.js +16 -0
  269. package/lib/less/luminance.js.map +1 -0
  270. package/lib/less/math-factory.d.ts +774 -0
  271. package/lib/less/math-factory.js +18 -0
  272. package/lib/less/math-factory.js.map +1 -0
  273. package/lib/less/mathv1.d.ts +0 -0
  274. package/lib/less/mathv1.js +209 -0
  275. package/lib/less/mathv1.js.map +1 -0
  276. package/lib/less/max.d.ts +466 -0
  277. package/lib/less/max.js +85 -0
  278. package/lib/less/max.js.map +1 -0
  279. package/lib/less/min.d.ts +466 -0
  280. package/lib/less/min.js +85 -0
  281. package/lib/less/min.js.map +1 -0
  282. package/lib/less/mix.d.ts +980 -0
  283. package/lib/less/mix.js +39 -0
  284. package/lib/less/mix.js.map +1 -0
  285. package/lib/less/mod.d.ts +600 -0
  286. package/lib/less/mod.js +16 -0
  287. package/lib/less/mod.js.map +1 -0
  288. package/lib/less/multiply.d.ts +601 -0
  289. package/lib/less/multiply.js +18 -0
  290. package/lib/less/multiply.js.map +1 -0
  291. package/lib/less/negation.d.ts +601 -0
  292. package/lib/less/negation.js +18 -0
  293. package/lib/less/negation.js.map +1 -0
  294. package/lib/less/overlay.d.ts +601 -0
  295. package/lib/less/overlay.js +23 -0
  296. package/lib/less/overlay.js.map +1 -0
  297. package/lib/less/percentage.d.ts +441 -0
  298. package/lib/less/percentage.js +11 -0
  299. package/lib/less/percentage.js.map +1 -0
  300. package/lib/less/pi.d.ts +332 -0
  301. package/lib/less/pi.js +3 -0
  302. package/lib/less/pi.js.map +1 -0
  303. package/lib/less/pow.d.ts +600 -0
  304. package/lib/less/pow.js +16 -0
  305. package/lib/less/pow.js.map +1 -0
  306. package/lib/less/range.d.ts +1038 -0
  307. package/lib/less/range.js +40 -0
  308. package/lib/less/range.js.map +1 -0
  309. package/lib/less/red.d.ts +7 -0
  310. package/lib/less/red.js +8 -0
  311. package/lib/less/red.js.map +1 -0
  312. package/lib/less/replace.d.ts +1264 -0
  313. package/lib/less/replace.js +32 -0
  314. package/lib/less/replace.js.map +1 -0
  315. package/lib/less/rgb.d.ts +1063 -0
  316. package/lib/less/rgb.js +266 -0
  317. package/lib/less/rgb.js.map +1 -0
  318. package/lib/less/rgba.d.ts +354 -0
  319. package/lib/less/rgba.js +31 -0
  320. package/lib/less/rgba.js.map +1 -0
  321. package/lib/less/round.d.ts +7 -0
  322. package/lib/less/round.js +8 -0
  323. package/lib/less/round.js.map +1 -0
  324. package/lib/less/saturate.d.ts +980 -0
  325. package/lib/less/saturate.js +29 -0
  326. package/lib/less/saturate.js.map +1 -0
  327. package/lib/less/saturation.d.ts +441 -0
  328. package/lib/less/saturation.js +12 -0
  329. package/lib/less/saturation.js.map +1 -0
  330. package/lib/less/screen.d.ts +601 -0
  331. package/lib/less/screen.js +18 -0
  332. package/lib/less/screen.js.map +1 -0
  333. package/lib/less/shade.d.ts +600 -0
  334. package/lib/less/shade.js +26 -0
  335. package/lib/less/shade.js.map +1 -0
  336. package/lib/less/sin.d.ts +440 -0
  337. package/lib/less/sin.js +3 -0
  338. package/lib/less/sin.js.map +1 -0
  339. package/lib/less/softlight.d.ts +601 -0
  340. package/lib/less/softlight.js +25 -0
  341. package/lib/less/softlight.js.map +1 -0
  342. package/lib/less/spin.d.ts +600 -0
  343. package/lib/less/spin.js +22 -0
  344. package/lib/less/spin.js.map +1 -0
  345. package/lib/less/sqrt.d.ts +440 -0
  346. package/lib/less/sqrt.js +3 -0
  347. package/lib/less/sqrt.js.map +1 -0
  348. package/lib/less/tan.d.ts +440 -0
  349. package/lib/less/tan.js +3 -0
  350. package/lib/less/tan.js.map +1 -0
  351. package/lib/less/tint.d.ts +600 -0
  352. package/lib/less/tint.js +26 -0
  353. package/lib/less/tint.js.map +1 -0
  354. package/lib/less/types.d.ts +4112 -0
  355. package/lib/less/types.js +53 -0
  356. package/lib/less/types.js.map +1 -0
  357. package/lib/less/unit.d.ts +753 -0
  358. package/lib/less/unit.js +20 -0
  359. package/lib/less/unit.js.map +1 -0
  360. package/lib/sass/__tests__/hsl-channels.test.d.ts +1 -0
  361. package/lib/sass/__tests__/hsl-channels.test.js +85 -0
  362. package/lib/sass/__tests__/hsl-channels.test.js.map +1 -0
  363. package/lib/sass/__tests__/list-advanced.test.d.ts +1 -0
  364. package/lib/sass/__tests__/list-advanced.test.js +157 -0
  365. package/lib/sass/__tests__/list-advanced.test.js.map +1 -0
  366. package/lib/sass/__tests__/list-functions.test.d.ts +1 -0
  367. package/lib/sass/__tests__/list-functions.test.js +153 -0
  368. package/lib/sass/__tests__/list-functions.test.js.map +1 -0
  369. package/lib/sass/__tests__/map-functions.test.d.ts +1 -0
  370. package/lib/sass/__tests__/map-functions.test.js +208 -0
  371. package/lib/sass/__tests__/map-functions.test.js.map +1 -0
  372. package/lib/sass/__tests__/math-functions.test.d.ts +1 -0
  373. package/lib/sass/__tests__/math-functions.test.js +73 -0
  374. package/lib/sass/__tests__/math-functions.test.js.map +1 -0
  375. package/lib/sass/__tests__/math-remaining.test.d.ts +1 -0
  376. package/lib/sass/__tests__/math-remaining.test.js +113 -0
  377. package/lib/sass/__tests__/math-remaining.test.js.map +1 -0
  378. package/lib/sass/__tests__/opacity.test.d.ts +1 -0
  379. package/lib/sass/__tests__/opacity.test.js +53 -0
  380. package/lib/sass/__tests__/opacity.test.js.map +1 -0
  381. package/lib/sass/__tests__/string-functions.test.d.ts +1 -0
  382. package/lib/sass/__tests__/string-functions.test.js +109 -0
  383. package/lib/sass/__tests__/string-functions.test.js.map +1 -0
  384. package/lib/sass/__tests__/string-remaining.test.d.ts +1 -0
  385. package/lib/sass/__tests__/string-remaining.test.js +131 -0
  386. package/lib/sass/__tests__/string-remaining.test.js.map +1 -0
  387. package/lib/sass/adjust-hue.d.ts +10 -0
  388. package/lib/sass/adjust-hue.js +11 -0
  389. package/lib/sass/adjust-hue.js.map +1 -0
  390. package/lib/sass/color/index.d.ts +22 -0
  391. package/lib/sass/color/index.js +43 -0
  392. package/lib/sass/color/index.js.map +1 -0
  393. package/lib/sass/color/red.d.ts +7 -0
  394. package/lib/sass/color/red.js +8 -0
  395. package/lib/sass/color/red.js.map +1 -0
  396. package/lib/sass/compatible.d.ts +610 -0
  397. package/lib/sass/compatible.js +62 -0
  398. package/lib/sass/compatible.js.map +1 -0
  399. package/lib/sass/complement.d.ts +450 -0
  400. package/lib/sass/complement.js +28 -0
  401. package/lib/sass/complement.js.map +1 -0
  402. package/lib/sass/fade-in.d.ts +10 -0
  403. package/lib/sass/fade-in.js +11 -0
  404. package/lib/sass/fade-in.js.map +1 -0
  405. package/lib/sass/fade-out.d.ts +10 -0
  406. package/lib/sass/fade-out.js +11 -0
  407. package/lib/sass/fade-out.js.map +1 -0
  408. package/lib/sass/grayscale.d.ts +10 -0
  409. package/lib/sass/grayscale.js +11 -0
  410. package/lib/sass/grayscale.js.map +1 -0
  411. package/lib/sass/hue.d.ts +450 -0
  412. package/lib/sass/hue.js +24 -0
  413. package/lib/sass/hue.js.map +1 -0
  414. package/lib/sass/ie-hex-str.d.ts +10 -0
  415. package/lib/sass/ie-hex-str.js +11 -0
  416. package/lib/sass/ie-hex-str.js.map +1 -0
  417. package/lib/sass/index.d.ts +64 -0
  418. package/lib/sass/index.js +90 -0
  419. package/lib/sass/index.js.map +1 -0
  420. package/lib/sass/invert.d.ts +813 -0
  421. package/lib/sass/invert.js +36 -0
  422. package/lib/sass/invert.js.map +1 -0
  423. package/lib/sass/lightness.d.ts +450 -0
  424. package/lib/sass/lightness.js +24 -0
  425. package/lib/sass/lightness.js.map +1 -0
  426. package/lib/sass/list/append.d.ts +989 -0
  427. package/lib/sass/list/append.js +54 -0
  428. package/lib/sass/list/append.js.map +1 -0
  429. package/lib/sass/list/index.d.ts +21 -0
  430. package/lib/sass/list/index.js +24 -0
  431. package/lib/sass/list/index.js.map +1 -0
  432. package/lib/sass/list/is-bracketed.d.ts +450 -0
  433. package/lib/sass/list/is-bracketed.js +30 -0
  434. package/lib/sass/list/is-bracketed.js.map +1 -0
  435. package/lib/sass/list/join.d.ts +1354 -0
  436. package/lib/sass/list/join.js +66 -0
  437. package/lib/sass/list/join.js.map +1 -0
  438. package/lib/sass/list/length.d.ts +450 -0
  439. package/lib/sass/list/length.js +22 -0
  440. package/lib/sass/list/length.js.map +1 -0
  441. package/lib/sass/list/list-index.d.ts +609 -0
  442. package/lib/sass/list/list-index.js +49 -0
  443. package/lib/sass/list/list-index.js.map +1 -0
  444. package/lib/sass/list/nth.d.ts +634 -0
  445. package/lib/sass/list/nth.js +36 -0
  446. package/lib/sass/list/nth.js.map +1 -0
  447. package/lib/sass/list/separator.d.ts +451 -0
  448. package/lib/sass/list/separator.js +36 -0
  449. package/lib/sass/list/separator.js.map +1 -0
  450. package/lib/sass/list/set-nth.d.ts +756 -0
  451. package/lib/sass/list/set-nth.js +42 -0
  452. package/lib/sass/list/set-nth.js.map +1 -0
  453. package/lib/sass/list/zip.d.ts +474 -0
  454. package/lib/sass/list/zip.js +46 -0
  455. package/lib/sass/list/zip.js.map +1 -0
  456. package/lib/sass/map/get.d.ts +757 -0
  457. package/lib/sass/map/get.js +79 -0
  458. package/lib/sass/map/get.js.map +1 -0
  459. package/lib/sass/map/has-key.d.ts +757 -0
  460. package/lib/sass/map/has-key.js +76 -0
  461. package/lib/sass/map/has-key.js.map +1 -0
  462. package/lib/sass/map/index.d.ts +19 -0
  463. package/lib/sass/map/index.js +23 -0
  464. package/lib/sass/map/index.js.map +1 -0
  465. package/lib/sass/map/keys.d.ts +449 -0
  466. package/lib/sass/map/keys.js +39 -0
  467. package/lib/sass/map/keys.js.map +1 -0
  468. package/lib/sass/map/merge.d.ts +608 -0
  469. package/lib/sass/map/merge.js +54 -0
  470. package/lib/sass/map/merge.js.map +1 -0
  471. package/lib/sass/map/remove.d.ts +633 -0
  472. package/lib/sass/map/remove.js +41 -0
  473. package/lib/sass/map/remove.js.map +1 -0
  474. package/lib/sass/map/set.d.ts +731 -0
  475. package/lib/sass/map/set.js +72 -0
  476. package/lib/sass/map/set.js.map +1 -0
  477. package/lib/sass/map/values.d.ts +449 -0
  478. package/lib/sass/map/values.js +30 -0
  479. package/lib/sass/map/values.js.map +1 -0
  480. package/lib/sass/math/abs.d.ts +7 -0
  481. package/lib/sass/math/abs.js +8 -0
  482. package/lib/sass/math/abs.js.map +1 -0
  483. package/lib/sass/math/index.d.ts +18 -0
  484. package/lib/sass/math/index.js +43 -0
  485. package/lib/sass/math/index.js.map +1 -0
  486. package/lib/sass/opacify.d.ts +11 -0
  487. package/lib/sass/opacify.js +12 -0
  488. package/lib/sass/opacify.js.map +1 -0
  489. package/lib/sass/opacity.d.ts +451 -0
  490. package/lib/sass/opacity.js +33 -0
  491. package/lib/sass/opacity.js.map +1 -0
  492. package/lib/sass/percentage.d.ts +449 -0
  493. package/lib/sass/percentage.js +26 -0
  494. package/lib/sass/percentage.js.map +1 -0
  495. package/lib/sass/quote.d.ts +449 -0
  496. package/lib/sass/quote.js +27 -0
  497. package/lib/sass/quote.js.map +1 -0
  498. package/lib/sass/random.d.ts +534 -0
  499. package/lib/sass/random.js +37 -0
  500. package/lib/sass/random.js.map +1 -0
  501. package/lib/sass/saturation.d.ts +450 -0
  502. package/lib/sass/saturation.js +24 -0
  503. package/lib/sass/saturation.js.map +1 -0
  504. package/lib/sass/str-index.d.ts +609 -0
  505. package/lib/sass/str-index.js +34 -0
  506. package/lib/sass/str-index.js.map +1 -0
  507. package/lib/sass/str-insert.d.ts +756 -0
  508. package/lib/sass/str-insert.js +61 -0
  509. package/lib/sass/str-insert.js.map +1 -0
  510. package/lib/sass/str-slice.d.ts +1039 -0
  511. package/lib/sass/str-slice.js +95 -0
  512. package/lib/sass/str-slice.js.map +1 -0
  513. package/lib/sass/string/index.d.ts +18 -0
  514. package/lib/sass/string/index.js +25 -0
  515. package/lib/sass/string/index.js.map +1 -0
  516. package/lib/sass/string/length.d.ts +450 -0
  517. package/lib/sass/string/length.js +32 -0
  518. package/lib/sass/string/length.js.map +1 -0
  519. package/lib/sass/to-lower-case.d.ts +449 -0
  520. package/lib/sass/to-lower-case.js +23 -0
  521. package/lib/sass/to-lower-case.js.map +1 -0
  522. package/lib/sass/to-upper-case.d.ts +449 -0
  523. package/lib/sass/to-upper-case.js +23 -0
  524. package/lib/sass/to-upper-case.js.map +1 -0
  525. package/lib/sass/transparentize.d.ts +11 -0
  526. package/lib/sass/transparentize.js +12 -0
  527. package/lib/sass/transparentize.js.map +1 -0
  528. package/lib/sass/unique-id.d.ts +341 -0
  529. package/lib/sass/unique-id.js +23 -0
  530. package/lib/sass/unique-id.js.map +1 -0
  531. package/lib/sass/unit.d.ts +762 -0
  532. package/lib/sass/unit.js +37 -0
  533. package/lib/sass/unit.js.map +1 -0
  534. package/lib/sass/unitless.d.ts +450 -0
  535. package/lib/sass/unitless.js +23 -0
  536. package/lib/sass/unitless.js.map +1 -0
  537. package/lib/sass/unquote.d.ts +449 -0
  538. package/lib/sass/unquote.js +27 -0
  539. package/lib/sass/unquote.js.map +1 -0
  540. package/lib/shared/color/alpha.d.ts +441 -0
  541. package/lib/shared/color/alpha.js +10 -0
  542. package/lib/shared/color/alpha.js.map +1 -0
  543. package/lib/shared/color/blue.d.ts +441 -0
  544. package/lib/shared/color/blue.js +10 -0
  545. package/lib/shared/color/blue.js.map +1 -0
  546. package/lib/shared/color/green.d.ts +441 -0
  547. package/lib/shared/color/green.js +10 -0
  548. package/lib/shared/color/green.js.map +1 -0
  549. package/lib/shared/color/red.d.ts +441 -0
  550. package/lib/shared/color/red.js +10 -0
  551. package/lib/shared/color/red.js.map +1 -0
  552. package/lib/shared/index.d.ts +16 -0
  553. package/lib/shared/index.js +19 -0
  554. package/lib/shared/index.js.map +1 -0
  555. package/lib/shared/math/__tests__/max.test.d.ts +1 -0
  556. package/lib/shared/math/__tests__/max.test.js +12 -0
  557. package/lib/shared/math/__tests__/max.test.js.map +1 -0
  558. package/lib/shared/math/__tests__/min.test.d.ts +1 -0
  559. package/lib/shared/math/__tests__/min.test.js +12 -0
  560. package/lib/shared/math/__tests__/min.test.js.map +1 -0
  561. package/lib/shared/math/__tests__/round.test.d.ts +1 -0
  562. package/lib/shared/math/__tests__/round.test.js +10 -0
  563. package/lib/shared/math/__tests__/round.test.js.map +1 -0
  564. package/lib/shared/math/abs.d.ts +441 -0
  565. package/lib/shared/math/abs.js +11 -0
  566. package/lib/shared/math/abs.js.map +1 -0
  567. package/lib/shared/math/ceil.d.ts +441 -0
  568. package/lib/shared/math/ceil.js +11 -0
  569. package/lib/shared/math/ceil.js.map +1 -0
  570. package/lib/shared/math/floor.d.ts +441 -0
  571. package/lib/shared/math/floor.js +11 -0
  572. package/lib/shared/math/floor.js.map +1 -0
  573. package/lib/shared/math/max.d.ts +469 -0
  574. package/lib/shared/math/max.js +22 -0
  575. package/lib/shared/math/max.js.map +1 -0
  576. package/lib/shared/math/min.d.ts +469 -0
  577. package/lib/shared/math/min.js +22 -0
  578. package/lib/shared/math/min.js.map +1 -0
  579. package/lib/shared/math/round.d.ts +778 -0
  580. package/lib/shared/math/round.js +17 -0
  581. package/lib/shared/math/round.js.map +1 -0
  582. package/lib/util/colorHelper.d.ts +2 -0
  583. package/lib/util/colorHelper.js +32 -0
  584. package/lib/util/colorHelper.js.map +1 -0
  585. package/lib/util/get-color-func-values.d.ts +5 -0
  586. package/lib/util/get-color-func-values.js +28 -0
  587. package/lib/util/get-color-func-values.js.map +1 -0
  588. package/lib/util/get-hsla.d.ts +10 -0
  589. package/lib/util/get-hsla.js +38 -0
  590. package/lib/util/get-hsla.js.map +1 -0
  591. package/lib/util/get-luma.d.ts +2 -0
  592. package/lib/util/get-luma.js +10 -0
  593. package/lib/util/get-luma.js.map +1 -0
  594. package/lib/util/index.d.ts +5 -0
  595. package/lib/util/index.js +17 -0
  596. package/lib/util/index.js.map +1 -0
  597. package/lib/util/mathHelper.d.ts +4 -0
  598. package/lib/util/mathHelper.js +45 -0
  599. package/lib/util/mathHelper.js.map +1 -0
  600. package/lib/util/number.d.ts +4 -0
  601. package/lib/util/number.js +23 -0
  602. package/lib/util/number.js.map +1 -0
  603. package/lib/util/relative-color.d.ts +54 -0
  604. package/lib/util/relative-color.js +268 -0
  605. package/lib/util/relative-color.js.map +1 -0
  606. package/lib/util/serialize-node.d.ts +2 -0
  607. package/lib/util/serialize-node.js +8 -0
  608. package/lib/util/serialize-node.js.map +1 -0
  609. package/lib/util/to-hsl.d.ts +7 -0
  610. package/lib/util/to-hsl.js +6 -0
  611. package/lib/util/to-hsl.js.map +1 -0
  612. package/lib/util/to-hsv.d.ts +7 -0
  613. package/lib/util/to-hsv.js +73 -0
  614. package/lib/util/to-hsv.js.map +1 -0
  615. package/package.json +39 -16
  616. package/lib/color-blending.d.ts +0 -9
  617. package/lib/color-blending.js +0 -83
  618. package/lib/color.d.ts +0 -42
  619. package/lib/color.js +0 -407
  620. package/lib/each.d.ts +0 -14
  621. package/lib/each.js +0 -35
  622. package/lib/iif.d.ts +0 -4
  623. package/lib/iif.js +0 -10
  624. package/lib/math.d.ts +0 -13
  625. package/lib/math.js +0 -199
@@ -0,0 +1,600 @@
1
+ import { Color, Dimension } from '@jesscss/core';
2
+ declare const tint: {
3
+ (args_0: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
4
+ [x: string]: never;
5
+ readonly color: Dimension | Color;
6
+ readonly amount: Dimension | Color;
7
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
8
+ [x: string]: never;
9
+ readonly color: Dimension | Color;
10
+ readonly amount: Dimension | Color;
11
+ }>, never>), args_1: Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
12
+ [x: string]: never;
13
+ readonly color: Dimension | Color;
14
+ readonly amount: Dimension | Color;
15
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
16
+ [x: string]: never;
17
+ amount: Dimension;
18
+ }>, never>)): Color;
19
+ (record: {} & Omit<import("type-fest").OmitIndexSignature<{
20
+ [x: string]: never;
21
+ readonly color: Dimension | Color;
22
+ readonly amount: Dimension | Color;
23
+ }>, never>): Color;
24
+ name: string;
25
+ params: readonly [{
26
+ readonly name: "color";
27
+ readonly type: typeof Color;
28
+ }, {
29
+ readonly name: "amount";
30
+ readonly type: typeof Dimension;
31
+ }];
32
+ } & {
33
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
34
+ [x: string]: never;
35
+ readonly color: Dimension | Color;
36
+ readonly amount: Dimension | Color;
37
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
38
+ [x: string]: never;
39
+ readonly color: Dimension | Color;
40
+ readonly amount: Dimension | Color;
41
+ }>, never>)): Color;
42
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
43
+ [x: string]: never;
44
+ readonly color: Dimension | Color;
45
+ readonly amount: Dimension | Color;
46
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
47
+ [x: string]: never;
48
+ readonly color: Dimension | Color;
49
+ readonly amount: Dimension | Color;
50
+ }>, never>), arg2: Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
51
+ [x: string]: never;
52
+ readonly color: Dimension | Color;
53
+ readonly amount: Dimension | Color;
54
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
55
+ [x: string]: never;
56
+ amount: Dimension;
57
+ }>, never>)): Color;
58
+ } & {
59
+ call(thisArg: any, ...args: Parameters<{
60
+ (...args: [Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
61
+ [x: string]: never;
62
+ readonly color: Dimension | Color;
63
+ readonly amount: Dimension | Color;
64
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
65
+ [x: string]: never;
66
+ readonly color: Dimension | Color;
67
+ readonly amount: Dimension | Color;
68
+ }>, never>), Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
69
+ [x: string]: never;
70
+ readonly color: Dimension | Color;
71
+ readonly amount: Dimension | Color;
72
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
73
+ [x: string]: never;
74
+ amount: Dimension;
75
+ }>, never>)]): Color;
76
+ (record: {} & Omit<import("type-fest").OmitIndexSignature<{
77
+ [x: string]: never;
78
+ readonly color: Dimension | Color;
79
+ readonly amount: Dimension | Color;
80
+ }>, never>): Color;
81
+ name: string;
82
+ params: readonly [{
83
+ readonly name: "color";
84
+ readonly type: typeof Color;
85
+ }, {
86
+ readonly name: "amount";
87
+ readonly type: typeof Dimension;
88
+ }];
89
+ } & (readonly [{
90
+ readonly name: "color";
91
+ readonly type: typeof Color;
92
+ }, {
93
+ readonly name: "amount";
94
+ readonly type: typeof Dimension;
95
+ }] extends readonly [{
96
+ name: string;
97
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
98
+ optional: true;
99
+ }] ? {
100
+ (): Color;
101
+ (arg1: never): Color;
102
+ } : readonly [{
103
+ readonly name: "color";
104
+ readonly type: typeof Color;
105
+ }, {
106
+ readonly name: "amount";
107
+ readonly type: typeof Dimension;
108
+ }] extends readonly [{
109
+ name: string;
110
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
111
+ optional?: boolean;
112
+ }] ? (arg1: never) => Color : readonly [{
113
+ readonly name: "color";
114
+ readonly type: typeof Color;
115
+ }, {
116
+ readonly name: "amount";
117
+ readonly type: typeof Dimension;
118
+ }] extends readonly [{
119
+ name: string;
120
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
121
+ optional: true;
122
+ }, {
123
+ name: string;
124
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
125
+ optional: true;
126
+ }] ? {
127
+ (): Color;
128
+ (arg1: undefined): Color;
129
+ (arg1: undefined, arg2: undefined): Color;
130
+ } : readonly [{
131
+ readonly name: "color";
132
+ readonly type: typeof Color;
133
+ }, {
134
+ readonly name: "amount";
135
+ readonly type: typeof Dimension;
136
+ }] extends readonly [{
137
+ name: string;
138
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
139
+ optional?: boolean;
140
+ }, {
141
+ name: string;
142
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
143
+ optional: true;
144
+ }] ? {
145
+ (arg1: undefined): Color;
146
+ (arg1: undefined, arg2: undefined): Color;
147
+ } : readonly [{
148
+ readonly name: "color";
149
+ readonly type: typeof Color;
150
+ }, {
151
+ readonly name: "amount";
152
+ readonly type: typeof Dimension;
153
+ }] extends readonly [{
154
+ name: string;
155
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
156
+ optional?: boolean;
157
+ }, {
158
+ name: string;
159
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
160
+ optional?: boolean;
161
+ }] ? {
162
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
163
+ [x: string]: never;
164
+ readonly color: Dimension | Color;
165
+ readonly amount: Dimension | Color;
166
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
167
+ [x: string]: never;
168
+ readonly color: Dimension | Color;
169
+ readonly amount: Dimension | Color;
170
+ }>, never>)): Color;
171
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
172
+ [x: string]: never;
173
+ readonly color: Dimension | Color;
174
+ readonly amount: Dimension | Color;
175
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
176
+ [x: string]: never;
177
+ readonly color: Dimension | Color;
178
+ readonly amount: Dimension | Color;
179
+ }>, never>), arg2: Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
180
+ [x: string]: never;
181
+ readonly color: Dimension | Color;
182
+ readonly amount: Dimension | Color;
183
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
184
+ [x: string]: never;
185
+ amount: Dimension;
186
+ }>, never>)): Color;
187
+ } : readonly [{
188
+ readonly name: "color";
189
+ readonly type: typeof Color;
190
+ }, {
191
+ readonly name: "amount";
192
+ readonly type: typeof Dimension;
193
+ }] extends readonly [{
194
+ name: string;
195
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
196
+ optional?: boolean;
197
+ }, {
198
+ name: string;
199
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
200
+ optional?: boolean;
201
+ }, {
202
+ name: string;
203
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
204
+ optional: true;
205
+ }] ? {
206
+ (arg1: never, arg2: never): Color;
207
+ (arg1: never, arg2: never, arg3: never): Color;
208
+ } : readonly [{
209
+ readonly name: "color";
210
+ readonly type: typeof Color;
211
+ }, {
212
+ readonly name: "amount";
213
+ readonly type: typeof Dimension;
214
+ }] extends readonly [{
215
+ name: string;
216
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
217
+ optional?: boolean;
218
+ }, {
219
+ name: string;
220
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
221
+ optional?: boolean;
222
+ }, {
223
+ name: string;
224
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
225
+ optional?: boolean;
226
+ }] ? (arg1: never, arg2: never, arg3: never) => Color : readonly [{
227
+ readonly name: "color";
228
+ readonly type: typeof Color;
229
+ }, {
230
+ readonly name: "amount";
231
+ readonly type: typeof Dimension;
232
+ }] extends readonly [{
233
+ name: string;
234
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
235
+ optional?: boolean;
236
+ }, {
237
+ name: string;
238
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
239
+ optional?: boolean;
240
+ }, {
241
+ name: string;
242
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
243
+ optional?: boolean;
244
+ }, {
245
+ name: string;
246
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
247
+ optional: true;
248
+ }] ? {
249
+ (arg1: never, arg2: never, arg3: never): Color;
250
+ (arg1: never, arg2: never, arg3: never, arg4: never): Color;
251
+ } : readonly [{
252
+ readonly name: "color";
253
+ readonly type: typeof Color;
254
+ }, {
255
+ readonly name: "amount";
256
+ readonly type: typeof Dimension;
257
+ }] extends readonly [{
258
+ name: string;
259
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
260
+ optional?: boolean;
261
+ }, {
262
+ name: string;
263
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
264
+ optional?: boolean;
265
+ }, {
266
+ name: string;
267
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
268
+ optional?: boolean;
269
+ }, {
270
+ name: string;
271
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
272
+ optional?: boolean;
273
+ }] ? (arg1: never, arg2: never, arg3: never, arg4: never) => Color : readonly [{
274
+ readonly name: "color";
275
+ readonly type: typeof Color;
276
+ }, {
277
+ readonly name: "amount";
278
+ readonly type: typeof Dimension;
279
+ }] extends readonly [{
280
+ name: string;
281
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
282
+ optional?: boolean;
283
+ }, {
284
+ name: string;
285
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
286
+ optional?: boolean;
287
+ }, {
288
+ name: string;
289
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
290
+ optional?: boolean;
291
+ }, {
292
+ name: string;
293
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
294
+ optional?: boolean;
295
+ }, {
296
+ name: string;
297
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
298
+ optional: true;
299
+ }] ? {
300
+ (arg1: never, arg2: never, arg3: never, arg4: never): Color;
301
+ (arg1: never, arg2: never, arg3: never, arg4: never, arg5: never): Color;
302
+ } : readonly [{
303
+ readonly name: "color";
304
+ readonly type: typeof Color;
305
+ }, {
306
+ readonly name: "amount";
307
+ readonly type: typeof Dimension;
308
+ }] extends readonly [{
309
+ name: string;
310
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
311
+ optional?: boolean;
312
+ }, {
313
+ name: string;
314
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
315
+ optional?: boolean;
316
+ }, {
317
+ name: string;
318
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
319
+ optional?: boolean;
320
+ }, {
321
+ name: string;
322
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
323
+ optional?: boolean;
324
+ }, {
325
+ name: string;
326
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
327
+ optional?: boolean;
328
+ }] ? (arg1: never, arg2: never, arg3: never, arg4: never, arg5: never) => Color : 2 extends number ? 2 extends 0 | 1 | 2 | 3 | 4 | 5 ? {} : (...args: any[]) => Color : {}) & any>): Color;
329
+ apply(thisArg: any, args: Parameters<{
330
+ (...args: [Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
331
+ [x: string]: never;
332
+ readonly color: Dimension | Color;
333
+ readonly amount: Dimension | Color;
334
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
335
+ [x: string]: never;
336
+ readonly color: Dimension | Color;
337
+ readonly amount: Dimension | Color;
338
+ }>, never>), Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
339
+ [x: string]: never;
340
+ readonly color: Dimension | Color;
341
+ readonly amount: Dimension | Color;
342
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
343
+ [x: string]: never;
344
+ amount: Dimension;
345
+ }>, never>)]): Color;
346
+ (record: {} & Omit<import("type-fest").OmitIndexSignature<{
347
+ [x: string]: never;
348
+ readonly color: Dimension | Color;
349
+ readonly amount: Dimension | Color;
350
+ }>, never>): Color;
351
+ name: string;
352
+ params: readonly [{
353
+ readonly name: "color";
354
+ readonly type: typeof Color;
355
+ }, {
356
+ readonly name: "amount";
357
+ readonly type: typeof Dimension;
358
+ }];
359
+ } & (readonly [{
360
+ readonly name: "color";
361
+ readonly type: typeof Color;
362
+ }, {
363
+ readonly name: "amount";
364
+ readonly type: typeof Dimension;
365
+ }] extends readonly [{
366
+ name: string;
367
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
368
+ optional: true;
369
+ }] ? {
370
+ (): Color;
371
+ (arg1: never): Color;
372
+ } : readonly [{
373
+ readonly name: "color";
374
+ readonly type: typeof Color;
375
+ }, {
376
+ readonly name: "amount";
377
+ readonly type: typeof Dimension;
378
+ }] extends readonly [{
379
+ name: string;
380
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
381
+ optional?: boolean;
382
+ }] ? (arg1: never) => Color : readonly [{
383
+ readonly name: "color";
384
+ readonly type: typeof Color;
385
+ }, {
386
+ readonly name: "amount";
387
+ readonly type: typeof Dimension;
388
+ }] extends readonly [{
389
+ name: string;
390
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
391
+ optional: true;
392
+ }, {
393
+ name: string;
394
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
395
+ optional: true;
396
+ }] ? {
397
+ (): Color;
398
+ (arg1: undefined): Color;
399
+ (arg1: undefined, arg2: undefined): Color;
400
+ } : readonly [{
401
+ readonly name: "color";
402
+ readonly type: typeof Color;
403
+ }, {
404
+ readonly name: "amount";
405
+ readonly type: typeof Dimension;
406
+ }] extends readonly [{
407
+ name: string;
408
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
409
+ optional?: boolean;
410
+ }, {
411
+ name: string;
412
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
413
+ optional: true;
414
+ }] ? {
415
+ (arg1: undefined): Color;
416
+ (arg1: undefined, arg2: undefined): Color;
417
+ } : readonly [{
418
+ readonly name: "color";
419
+ readonly type: typeof Color;
420
+ }, {
421
+ readonly name: "amount";
422
+ readonly type: typeof Dimension;
423
+ }] extends readonly [{
424
+ name: string;
425
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
426
+ optional?: boolean;
427
+ }, {
428
+ name: string;
429
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
430
+ optional?: boolean;
431
+ }] ? {
432
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
433
+ [x: string]: never;
434
+ readonly color: Dimension | Color;
435
+ readonly amount: Dimension | Color;
436
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
437
+ [x: string]: never;
438
+ readonly color: Dimension | Color;
439
+ readonly amount: Dimension | Color;
440
+ }>, never>)): Color;
441
+ (arg1: Color | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
442
+ [x: string]: never;
443
+ readonly color: Dimension | Color;
444
+ readonly amount: Dimension | Color;
445
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
446
+ [x: string]: never;
447
+ readonly color: Dimension | Color;
448
+ readonly amount: Dimension | Color;
449
+ }>, never>), arg2: Dimension | (Partial<{} & Omit<import("type-fest").OmitIndexSignature<{
450
+ [x: string]: never;
451
+ readonly color: Dimension | Color;
452
+ readonly amount: Dimension | Color;
453
+ }>, never>> & {} & Omit<import("type-fest").OmitIndexSignature<{
454
+ [x: string]: never;
455
+ amount: Dimension;
456
+ }>, never>)): Color;
457
+ } : readonly [{
458
+ readonly name: "color";
459
+ readonly type: typeof Color;
460
+ }, {
461
+ readonly name: "amount";
462
+ readonly type: typeof Dimension;
463
+ }] extends readonly [{
464
+ name: string;
465
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
466
+ optional?: boolean;
467
+ }, {
468
+ name: string;
469
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
470
+ optional?: boolean;
471
+ }, {
472
+ name: string;
473
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
474
+ optional: true;
475
+ }] ? {
476
+ (arg1: never, arg2: never): Color;
477
+ (arg1: never, arg2: never, arg3: never): Color;
478
+ } : readonly [{
479
+ readonly name: "color";
480
+ readonly type: typeof Color;
481
+ }, {
482
+ readonly name: "amount";
483
+ readonly type: typeof Dimension;
484
+ }] extends readonly [{
485
+ name: string;
486
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
487
+ optional?: boolean;
488
+ }, {
489
+ name: string;
490
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
491
+ optional?: boolean;
492
+ }, {
493
+ name: string;
494
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
495
+ optional?: boolean;
496
+ }] ? (arg1: never, arg2: never, arg3: never) => Color : readonly [{
497
+ readonly name: "color";
498
+ readonly type: typeof Color;
499
+ }, {
500
+ readonly name: "amount";
501
+ readonly type: typeof Dimension;
502
+ }] extends readonly [{
503
+ name: string;
504
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
505
+ optional?: boolean;
506
+ }, {
507
+ name: string;
508
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
509
+ optional?: boolean;
510
+ }, {
511
+ name: string;
512
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
513
+ optional?: boolean;
514
+ }, {
515
+ name: string;
516
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
517
+ optional: true;
518
+ }] ? {
519
+ (arg1: never, arg2: never, arg3: never): Color;
520
+ (arg1: never, arg2: never, arg3: never, arg4: never): Color;
521
+ } : readonly [{
522
+ readonly name: "color";
523
+ readonly type: typeof Color;
524
+ }, {
525
+ readonly name: "amount";
526
+ readonly type: typeof Dimension;
527
+ }] extends readonly [{
528
+ name: string;
529
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
530
+ optional?: boolean;
531
+ }, {
532
+ name: string;
533
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
534
+ optional?: boolean;
535
+ }, {
536
+ name: string;
537
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
538
+ optional?: boolean;
539
+ }, {
540
+ name: string;
541
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
542
+ optional?: boolean;
543
+ }] ? (arg1: never, arg2: never, arg3: never, arg4: never) => Color : readonly [{
544
+ readonly name: "color";
545
+ readonly type: typeof Color;
546
+ }, {
547
+ readonly name: "amount";
548
+ readonly type: typeof Dimension;
549
+ }] extends readonly [{
550
+ name: string;
551
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
552
+ optional?: boolean;
553
+ }, {
554
+ name: string;
555
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
556
+ optional?: boolean;
557
+ }, {
558
+ name: string;
559
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
560
+ optional?: boolean;
561
+ }, {
562
+ name: string;
563
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
564
+ optional?: boolean;
565
+ }, {
566
+ name: string;
567
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
568
+ optional: true;
569
+ }] ? {
570
+ (arg1: never, arg2: never, arg3: never, arg4: never): Color;
571
+ (arg1: never, arg2: never, arg3: never, arg4: never, arg5: never): Color;
572
+ } : readonly [{
573
+ readonly name: "color";
574
+ readonly type: typeof Color;
575
+ }, {
576
+ readonly name: "amount";
577
+ readonly type: typeof Dimension;
578
+ }] extends readonly [{
579
+ name: string;
580
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
581
+ optional?: boolean;
582
+ }, {
583
+ name: string;
584
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
585
+ optional?: boolean;
586
+ }, {
587
+ name: string;
588
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
589
+ optional?: boolean;
590
+ }, {
591
+ name: string;
592
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
593
+ optional?: boolean;
594
+ }, {
595
+ name: string;
596
+ type: import("@jesscss/core").ArgType | readonly import("@jesscss/core").ArgType[];
597
+ optional?: boolean;
598
+ }] ? (arg1: never, arg2: never, arg3: never, arg4: never, arg5: never) => Color : 2 extends number ? 2 extends 0 | 1 | 2 | 3 | 4 | 5 ? {} : (...args: any[]) => Color : {}) & any>): Color;
599
+ };
600
+ export default tint;
@@ -0,0 +1,26 @@
1
+ import { Color, ColorFormat, Dimension, defineFunction } from '@jesscss/core';
2
+ import mix from './mix.js';
3
+ const tint = defineFunction('tint', function (color, amount) {
4
+ const white = new Color({
5
+ rgb: [255, 255, 255],
6
+ alpha: 1
7
+ }, {
8
+ format: ColorFormat.RGB
9
+ });
10
+ const out = mix.call(this, white, color, amount);
11
+ out.options.format = color.options.format;
12
+ if (Math.abs(out._alpha - 1) < 1e-12) {
13
+ out.alpha = 1;
14
+ }
15
+ return out;
16
+ }, {
17
+ params: [{
18
+ name: 'color',
19
+ type: Color
20
+ }, {
21
+ name: 'amount',
22
+ type: Dimension
23
+ }]
24
+ });
25
+ export default tint;
26
+ //# sourceMappingURL=tint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tint.js","sourceRoot":"","sources":["../../src/less/tint.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EAET,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,GAAG,MAAM,UAAU,CAAC;AAE3B,MAAM,IAAI,GAAG,cAAc,CACzB,MAAM,EACN,UAAwB,KAAY,EAAE,MAAiB;IACrD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;QACtB,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACpB,KAAK,EAAE,CAAC;KACT,EAAE;QACD,MAAM,EAAE,WAAW,CAAC,GAAG;KACxB,CAAC,CAAC;IACH,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACjD,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;IAC1C,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QACrC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;IAChB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,EACD;IACE,MAAM,EAAE,CAAC;YACP,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,KAAK;SACZ,EAAE;YACD,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;SAChB,CAAC;CACH,CACF,CAAC;AAEF,eAAe,IAAI,CAAC"}