@progress/kendo-theme-core 12.2.0 → 12.2.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/meta/sassdoc-data.json +1199 -3962
  3. package/dist/meta/sassdoc-raw-data.json +1047 -3754
  4. package/package.json +3 -3
  5. package/scss/border-radii/{index.import.scss → index.scss} +1 -1
  6. package/scss/color-system/{_functions.import.scss → _functions.scss} +3 -3
  7. package/scss/color-system/{index.import.scss → index.scss} +1 -2
  8. package/scss/components/action-buttons/_layout.scss +0 -5
  9. package/scss/components/action-buttons/_theme.scss +1 -6
  10. package/scss/components/action-sheet/_layout.scss +2 -7
  11. package/scss/components/action-sheet/_theme.scss +1 -6
  12. package/scss/components/adaptive/_layout.scss +1 -6
  13. package/scss/components/adaptive/_theme.scss +2 -7
  14. package/scss/components/appbar/_layout.scss +1 -6
  15. package/scss/components/appbar/_theme.scss +3 -8
  16. package/scss/components/autocomplete/_layout.scss +0 -5
  17. package/scss/components/autocomplete/_theme.scss +0 -5
  18. package/scss/components/avatar/_layout.scss +0 -5
  19. package/scss/components/avatar/_theme.scss +2 -7
  20. package/scss/components/badge/_layout.scss +2 -7
  21. package/scss/components/badge/_theme.scss +2 -7
  22. package/scss/components/bottom-navigation/_layout.scss +1 -6
  23. package/scss/components/bottom-navigation/_theme.scss +3 -8
  24. package/scss/components/breadcrumb/_layout.scss +2 -7
  25. package/scss/components/breadcrumb/_theme.scss +1 -6
  26. package/scss/components/bubble/_layout.scss +2 -4
  27. package/scss/components/bubble/_theme.scss +3 -8
  28. package/scss/components/button/_layout.scss +2 -7
  29. package/scss/components/button/_theme.scss +3 -8
  30. package/scss/components/calendar/_layout.scss +2 -7
  31. package/scss/components/calendar/_theme.scss +2 -7
  32. package/scss/components/captcha/_layout.scss +0 -5
  33. package/scss/components/captcha/_theme.scss +1 -6
  34. package/scss/components/card/_layout.scss +3 -8
  35. package/scss/components/card/_theme.scss +3 -8
  36. package/scss/components/chart-wizard/_layout.scss +0 -5
  37. package/scss/components/chart-wizard/_theme.scss +0 -5
  38. package/scss/components/chat/_layout.scss +4 -10
  39. package/scss/components/chat/_theme.scss +2 -8
  40. package/scss/components/checkbox/_layout.scss +2 -8
  41. package/scss/components/checkbox/_theme.scss +1 -6
  42. package/scss/components/chip/_layout.scss +0 -5
  43. package/scss/components/chip/_theme.scss +3 -8
  44. package/scss/components/color-preview/_layout.scss +1 -6
  45. package/scss/components/color-preview/_theme.scss +1 -6
  46. package/scss/components/coloreditor/_layout.scss +2 -7
  47. package/scss/components/coloreditor/_theme.scss +1 -6
  48. package/scss/components/colorgradient/_layout.scss +2 -7
  49. package/scss/components/colorgradient/_theme.scss +1 -6
  50. package/scss/components/colorpalette/_layout.scss +1 -6
  51. package/scss/components/colorpalette/_theme.scss +1 -6
  52. package/scss/components/colorpicker/_layout.scss +0 -5
  53. package/scss/components/column-menu/_layout.scss +2 -2
  54. package/scss/components/column-menu/_theme.scss +0 -1
  55. package/scss/components/combobox/_layout.scss +0 -5
  56. package/scss/components/combobox/_theme.scss +0 -5
  57. package/scss/components/dataviz/_layout.scss +6 -11
  58. package/scss/components/dataviz/_theme.scss +2 -7
  59. package/scss/components/dateinput/_layout.scss +0 -5
  60. package/scss/components/dateinput/_theme.scss +0 -5
  61. package/scss/components/datepicker/_theme.scss +0 -5
  62. package/scss/components/daterangepicker/_layout.scss +1 -6
  63. package/scss/components/daterangepicker/_theme.scss +0 -5
  64. package/scss/components/datetimepicker/_layout.scss +0 -5
  65. package/scss/components/datetimepicker/_theme.scss +0 -5
  66. package/scss/components/dialog/_layout.scss +2 -7
  67. package/scss/components/dialog/_theme.scss +3 -8
  68. package/scss/components/dock-manager/_layout.scss +2 -2
  69. package/scss/components/dock-manager/_theme.scss +1 -1
  70. package/scss/components/draggable/_layout.scss +2 -7
  71. package/scss/components/draggable/_theme.scss +1 -6
  72. package/scss/components/drawer/_layout.scss +1 -6
  73. package/scss/components/drawer/_theme.scss +1 -6
  74. package/scss/components/dropdowngrid/_layout.scss +0 -5
  75. package/scss/components/dropdowngrid/_theme.scss +0 -5
  76. package/scss/components/dropdownlist/_layout.scss +0 -5
  77. package/scss/components/dropdownlist/_theme.scss +0 -5
  78. package/scss/components/dropdowntree/_layout.scss +0 -5
  79. package/scss/components/dropdowntree/_theme.scss +0 -5
  80. package/scss/components/dropzone/_layout.scss +0 -5
  81. package/scss/components/dropzone/_theme.scss +1 -6
  82. package/scss/components/editor/_layout.scss +4 -9
  83. package/scss/components/editor/_theme.scss +2 -7
  84. package/scss/components/expansion-panel/_layout.scss +0 -5
  85. package/scss/components/expansion-panel/_theme.scss +1 -6
  86. package/scss/components/fab/_layout.scss +1 -6
  87. package/scss/components/fab/_theme.scss +3 -8
  88. package/scss/components/filemanager/_layout.scss +1 -6
  89. package/scss/components/filemanager/_theme.scss +1 -6
  90. package/scss/components/filter/_layout.scss +0 -5
  91. package/scss/components/filter/_theme.scss +2 -7
  92. package/scss/components/floating-label/_layout.scss +0 -5
  93. package/scss/components/floating-label/_theme.scss +2 -7
  94. package/scss/components/forms/_layout.scss +2 -7
  95. package/scss/components/forms/_theme.scss +2 -7
  96. package/scss/components/gantt/_layout.scss +4 -9
  97. package/scss/components/gantt/_theme.scss +2 -7
  98. package/scss/components/grid/_layout.scss +5 -9
  99. package/scss/components/grid/_theme.scss +3 -8
  100. package/scss/components/icons/_layout.scss +0 -5
  101. package/scss/components/icons/_theme.scss +0 -5
  102. package/scss/components/imageeditor/_layout.scss +0 -5
  103. package/scss/components/imageeditor/_theme.scss +1 -6
  104. package/scss/components/input/_layout.scss +2 -7
  105. package/scss/components/input/_theme.scss +2 -7
  106. package/scss/components/list/_layout.scss +0 -5
  107. package/scss/components/list/_theme.scss +2 -8
  108. package/scss/components/listbox/_layout.scss +0 -5
  109. package/scss/components/listbox/_theme.scss +2 -7
  110. package/scss/components/listgroup/_layout.scss +1 -6
  111. package/scss/components/listgroup/_theme.scss +1 -6
  112. package/scss/components/listview/_layout.scss +0 -5
  113. package/scss/components/listview/_theme.scss +1 -6
  114. package/scss/components/loader/_layout.scss +1 -1
  115. package/scss/components/loader/_theme.scss +1 -6
  116. package/scss/components/map/_layout.scss +2 -7
  117. package/scss/components/map/_theme.scss +1 -6
  118. package/scss/components/marquee/_layout.scss +1 -6
  119. package/scss/components/marquee/_theme.scss +0 -5
  120. package/scss/components/maskedtextbox/_layout.scss +0 -5
  121. package/scss/components/maskedtextbox/_theme.scss +0 -5
  122. package/scss/components/mediaplayer/_layout.scss +1 -6
  123. package/scss/components/mediaplayer/_theme.scss +2 -7
  124. package/scss/components/menu/_layout.scss +1 -6
  125. package/scss/components/menu/_theme.scss +1 -6
  126. package/scss/components/menu-button/_layout.scss +0 -5
  127. package/scss/components/menu-button/_theme.scss +0 -5
  128. package/scss/components/messagebox/_layout.scss +0 -5
  129. package/scss/components/messagebox/_theme.scss +3 -8
  130. package/scss/components/multiselect/_layout.scss +0 -5
  131. package/scss/components/multiselect/_theme.scss +0 -5
  132. package/scss/components/no-data/_theme.scss +0 -5
  133. package/scss/components/notification/_layout.scss +2 -7
  134. package/scss/components/notification/_theme.scss +1 -6
  135. package/scss/components/numerictextbox/_layout.scss +0 -5
  136. package/scss/components/numerictextbox/_theme.scss +0 -5
  137. package/scss/components/orgchart/_layout.scss +2 -7
  138. package/scss/components/orgchart/_theme.scss +1 -6
  139. package/scss/components/overlay/_layout.scss +1 -6
  140. package/scss/components/overlay/_theme.scss +0 -5
  141. package/scss/components/pager/_layout.scss +1 -6
  142. package/scss/components/pager/_theme.scss +1 -6
  143. package/scss/components/panel/_layout.scss +1 -1
  144. package/scss/components/panel/_theme.scss +2 -2
  145. package/scss/components/panelbar/_layout.scss +1 -6
  146. package/scss/components/panelbar/_theme.scss +1 -6
  147. package/scss/components/pdf-viewer/_layout.scss +1 -6
  148. package/scss/components/pdf-viewer/_theme.scss +1 -6
  149. package/scss/components/pivotgrid/_layout.scss +3 -8
  150. package/scss/components/pivotgrid/_theme.scss +2 -7
  151. package/scss/components/popover/_layout.scss +2 -7
  152. package/scss/components/popover/_theme.scss +1 -6
  153. package/scss/components/popup/_layout.scss +3 -8
  154. package/scss/components/popup/_theme.scss +1 -6
  155. package/scss/components/progressbar/_layout.scss +3 -8
  156. package/scss/components/progressbar/_theme.scss +3 -8
  157. package/scss/components/prompt/_layout.scss +1 -6
  158. package/scss/components/prompt/_theme.scss +1 -6
  159. package/scss/components/radio/_layout.scss +3 -8
  160. package/scss/components/radio/_theme.scss +1 -6
  161. package/scss/components/rating/_layout.scss +0 -5
  162. package/scss/components/rating/_theme.scss +1 -6
  163. package/scss/components/responsivepanel/_layout.scss +0 -5
  164. package/scss/components/responsivepanel/_theme.scss +0 -5
  165. package/scss/components/ripple/_layout.scss +1 -6
  166. package/scss/components/ripple/_theme.scss +0 -5
  167. package/scss/components/scheduler/_layout.scss +4 -9
  168. package/scss/components/scheduler/_theme.scss +3 -8
  169. package/scss/components/scroller/_layout.scss +1 -6
  170. package/scss/components/scroller/_theme.scss +0 -5
  171. package/scss/components/scrollview/_layout.scss +0 -5
  172. package/scss/components/scrollview/_theme.scss +1 -6
  173. package/scss/components/searchbox/_layout.scss +0 -5
  174. package/scss/components/searchbox/_theme.scss +0 -5
  175. package/scss/components/signature/_layout.scss +1 -6
  176. package/scss/components/signature/_theme.scss +0 -5
  177. package/scss/components/skeleton/_layout.scss +0 -5
  178. package/scss/components/skeleton/_theme.scss +1 -6
  179. package/scss/components/slider/_layout.scss +0 -5
  180. package/scss/components/slider/_theme.scss +3 -8
  181. package/scss/components/split-button/_layout.scss +0 -5
  182. package/scss/components/split-button/_theme.scss +1 -6
  183. package/scss/components/splitter/_layout.scss +1 -6
  184. package/scss/components/splitter/_theme.scss +1 -6
  185. package/scss/components/spreadsheet/_layout.scss +4 -9
  186. package/scss/components/spreadsheet/_theme.scss +2 -2
  187. package/scss/components/stepper/_layout.scss +3 -8
  188. package/scss/components/stepper/_theme.scss +2 -7
  189. package/scss/components/suggestion/_layout.scss +4 -6
  190. package/scss/components/suggestion/_theme.scss +5 -10
  191. package/scss/components/switch/_layout.scss +0 -5
  192. package/scss/components/switch/_theme.scss +1 -6
  193. package/scss/components/table/_layout.scss +0 -5
  194. package/scss/components/table/_theme.scss +1 -6
  195. package/scss/components/tabstrip/_layout.scss +40 -15
  196. package/scss/components/tabstrip/_theme.scss +4 -6
  197. package/scss/components/taskboard/_layout.scss +2 -7
  198. package/scss/components/taskboard/_theme.scss +1 -6
  199. package/scss/components/textarea/_layout.scss +0 -5
  200. package/scss/components/textarea/_theme.scss +0 -5
  201. package/scss/components/textbox/_layout.scss +0 -5
  202. package/scss/components/textbox/_theme.scss +0 -5
  203. package/scss/components/tilelayout/_layout.scss +2 -7
  204. package/scss/components/tilelayout/_theme.scss +1 -6
  205. package/scss/components/time-marker/_theme.scss +0 -5
  206. package/scss/components/timedurationpicker/_layout.scss +0 -5
  207. package/scss/components/timedurationpicker/_theme.scss +0 -5
  208. package/scss/components/timeline/_layout.scss +2 -7
  209. package/scss/components/timeline/_theme.scss +2 -7
  210. package/scss/components/timepicker/_layout.scss +0 -5
  211. package/scss/components/timepicker/_theme.scss +0 -5
  212. package/scss/components/timeselector/_layout.scss +2 -7
  213. package/scss/components/timeselector/_theme.scss +2 -7
  214. package/scss/components/toolbar/_layout.scss +4 -9
  215. package/scss/components/toolbar/_theme.scss +1 -6
  216. package/scss/components/tooltip/_layout.scss +2 -7
  217. package/scss/components/tooltip/_theme.scss +1 -6
  218. package/scss/components/treelist/_layout.scss +1 -6
  219. package/scss/components/treelist/_theme.scss +0 -5
  220. package/scss/components/treeview/_layout.scss +3 -8
  221. package/scss/components/treeview/_theme.scss +1 -6
  222. package/scss/components/typography/_layout.scss +1 -6
  223. package/scss/components/typography/_theme.scss +2 -7
  224. package/scss/components/upload/_layout.scss +2 -7
  225. package/scss/components/upload/_theme.scss +2 -7
  226. package/scss/components/validator/_layout.scss +1 -6
  227. package/scss/components/validator/_theme.scss +0 -5
  228. package/scss/components/virtual-scroller/_layout.scss +1 -6
  229. package/scss/components/virtual-scroller/_theme.scss +0 -5
  230. package/scss/components/window/_layout.scss +2 -7
  231. package/scss/components/window/_theme.scss +3 -8
  232. package/scss/components/wizard/_layout.scss +0 -5
  233. package/scss/components/wizard/_theme.scss +0 -5
  234. package/scss/functions/{_color.import.scss → _color.scss} +1 -48
  235. package/scss/functions/_list.scss +36 -0
  236. package/scss/functions/_map.scss +99 -0
  237. package/scss/functions/_math.scss +75 -0
  238. package/scss/functions/_meta.scss +163 -0
  239. package/scss/functions/_string.scss +82 -0
  240. package/scss/functions/index.scss +7 -0
  241. package/scss/index.scss +18 -18
  242. package/scss/mixins/_box-shadow.scss +2 -1
  243. package/scss/mixins/_focus-indicator.scss +2 -1
  244. package/scss/spacing/{index.import.scss → index.scss} +1 -1
  245. package/scss/styles/_base.scss +1 -1
  246. package/scss/styles/{index.import.scss → index.scss} +1 -1
  247. package/scss/color-system/_mixins.import.scss +0 -13
  248. package/scss/components/action-buttons/_index.scss +0 -19
  249. package/scss/components/action-sheet/_index.scss +0 -24
  250. package/scss/components/adaptive/_index.scss +0 -26
  251. package/scss/components/appbar/_index.scss +0 -16
  252. package/scss/components/autocomplete/_index.scss +0 -26
  253. package/scss/components/avatar/_index.scss +0 -16
  254. package/scss/components/badge/_index.scss +0 -18
  255. package/scss/components/bottom-navigation/_index.scss +0 -20
  256. package/scss/components/breadcrumb/_index.scss +0 -23
  257. package/scss/components/bubble/_index.scss +0 -16
  258. package/scss/components/button/_index.scss +0 -20
  259. package/scss/components/calendar/_index.scss +0 -26
  260. package/scss/components/captcha/_index.scss +0 -29
  261. package/scss/components/card/_index.scss +0 -26
  262. package/scss/components/chart-wizard/_index.scss +0 -37
  263. package/scss/components/chat/_index.scss +0 -40
  264. package/scss/components/checkbox/_index.scss +0 -16
  265. package/scss/components/chip/_index.scss +0 -20
  266. package/scss/components/color-preview/_index.scss +0 -16
  267. package/scss/components/coloreditor/_index.scss +0 -24
  268. package/scss/components/colorgradient/_index.scss +0 -30
  269. package/scss/components/colorpalette/_index.scss +0 -16
  270. package/scss/components/colorpicker/_index.scss +0 -26
  271. package/scss/components/column-menu/_index.scss +0 -16
  272. package/scss/components/combobox/_index.scss +0 -26
  273. package/scss/components/dataviz/_index.scss +0 -20
  274. package/scss/components/dateinput/_index.scss +0 -18
  275. package/scss/components/datepicker/_index.scss +0 -22
  276. package/scss/components/daterangepicker/_index.scss +0 -24
  277. package/scss/components/datetimepicker/_index.scss +0 -30
  278. package/scss/components/dialog/_index.scss +0 -18
  279. package/scss/components/dock-manager/_index.scss +0 -22
  280. package/scss/components/draggable/_index.scss +0 -16
  281. package/scss/components/drawer/_index.scss +0 -22
  282. package/scss/components/dropdowngrid/_index.scss +0 -26
  283. package/scss/components/dropdownlist/_index.scss +0 -24
  284. package/scss/components/dropdowntree/_index.scss +0 -30
  285. package/scss/components/dropzone/_index.scss +0 -16
  286. package/scss/components/editor/_index.scss +0 -32
  287. package/scss/components/expansion-panel/_index.scss +0 -22
  288. package/scss/components/fab/_index.scss +0 -26
  289. package/scss/components/filemanager/_index.scss +0 -38
  290. package/scss/components/filter/_index.scss +0 -30
  291. package/scss/components/floating-label/_index.scss +0 -16
  292. package/scss/components/forms/_index.scss +0 -24
  293. package/scss/components/gantt/_index.scss +0 -37
  294. package/scss/components/grid/_index.scss +0 -66
  295. package/scss/components/gridlayout/_index.scss +0 -19
  296. package/scss/components/icons/_index.scss +0 -20
  297. package/scss/components/imageeditor/_index.scss +0 -26
  298. package/scss/components/input/_index.scss +0 -18
  299. package/scss/components/list/_index.scss +0 -16
  300. package/scss/components/listbox/_index.scss +0 -24
  301. package/scss/components/listgroup/_index.scss +0 -18
  302. package/scss/components/listview/_index.scss +0 -25
  303. package/scss/components/loader/_index.scss +0 -20
  304. package/scss/components/map/_index.scss +0 -22
  305. package/scss/components/marquee/_index.scss +0 -16
  306. package/scss/components/maskedtextbox/_index.scss +0 -22
  307. package/scss/components/mediaplayer/_index.scss +0 -22
  308. package/scss/components/menu/_index.scss +0 -24
  309. package/scss/components/menu-button/_index.scss +0 -20
  310. package/scss/components/messagebox/_index.scss +0 -18
  311. package/scss/components/multiselect/_index.scss +0 -30
  312. package/scss/components/no-data/_index.scss +0 -16
  313. package/scss/components/notification/_index.scss +0 -20
  314. package/scss/components/numerictextbox/_index.scss +0 -22
  315. package/scss/components/orgchart/_index.scss +0 -37
  316. package/scss/components/otp/_index.scss +0 -18
  317. package/scss/components/overlay/_index.scss +0 -16
  318. package/scss/components/pager/_index.scss +0 -22
  319. package/scss/components/panel/_index.scss +0 -17
  320. package/scss/components/panelbar/_index.scss +0 -20
  321. package/scss/components/pdf-viewer/_index.scss +0 -33
  322. package/scss/components/pivotgrid/_index.scss +0 -30
  323. package/scss/components/popover/_index.scss +0 -20
  324. package/scss/components/popup/_index.scss +0 -16
  325. package/scss/components/progressbar/_index.scss +0 -16
  326. package/scss/components/prompt/_index.scss +0 -20
  327. package/scss/components/radio/_index.scss +0 -16
  328. package/scss/components/rating/_index.scss +0 -18
  329. package/scss/components/responsivepanel/_index.scss +0 -18
  330. package/scss/components/ripple/_index.scss +0 -16
  331. package/scss/components/scheduler/_index.scss +0 -34
  332. package/scss/components/scroller/_index.scss +0 -18
  333. package/scss/components/scrollview/_index.scss +0 -20
  334. package/scss/components/searchbox/_index.scss +0 -22
  335. package/scss/components/signature/_index.scss +0 -20
  336. package/scss/components/skeleton/_index.scss +0 -16
  337. package/scss/components/slider/_index.scss +0 -22
  338. package/scss/components/speech-to-text-button/_index.scss +0 -18
  339. package/scss/components/split-button/_index.scss +0 -24
  340. package/scss/components/splitter/_index.scss +0 -22
  341. package/scss/components/spreadsheet/_index.scss +0 -48
  342. package/scss/components/stacklayout/_index.scss +0 -19
  343. package/scss/components/stepper/_index.scss +0 -20
  344. package/scss/components/suggestion/_index.scss +0 -16
  345. package/scss/components/switch/_index.scss +0 -16
  346. package/scss/components/table/_index.scss +0 -16
  347. package/scss/components/tabstrip/_index.scss +0 -25
  348. package/scss/components/taskboard/_index.scss +0 -32
  349. package/scss/components/textarea/_index.scss +0 -27
  350. package/scss/components/textbox/_index.scss +0 -20
  351. package/scss/components/tilelayout/_index.scss +0 -24
  352. package/scss/components/time-marker/_index.scss +0 -16
  353. package/scss/components/timedurationpicker/_index.scss +0 -28
  354. package/scss/components/timeline/_index.scss +0 -22
  355. package/scss/components/timepicker/_index.scss +0 -26
  356. package/scss/components/timeselector/_index.scss +0 -22
  357. package/scss/components/toolbar/_index.scss +0 -27
  358. package/scss/components/tooltip/_index.scss +0 -22
  359. package/scss/components/treelist/_index.scss +0 -20
  360. package/scss/components/treeview/_index.scss +0 -20
  361. package/scss/components/typography/_index.scss +0 -18
  362. package/scss/components/upload/_index.scss +0 -28
  363. package/scss/components/utils/_index.scss +0 -1
  364. package/scss/components/validator/_index.scss +0 -24
  365. package/scss/components/virtual-scroller/_index.scss +0 -20
  366. package/scss/components/window/_index.scss +0 -26
  367. package/scss/components/wizard/_index.scss +0 -24
  368. package/scss/functions/_custom-properties.import.scss +0 -37
  369. package/scss/functions/_list.import.scss +0 -138
  370. package/scss/functions/_map.import.scss +0 -138
  371. package/scss/functions/_math.import.scss +0 -223
  372. package/scss/functions/_meta.import.scss +0 -245
  373. package/scss/functions/_string.import.scss +0 -176
  374. package/scss/functions/index.import.scss +0 -8
  375. /package/scss/elevation/{index.import.scss → index.scss} +0 -0
  376. /package/scss/functions/{_lang.import.scss → _lang.scss} +0 -0
  377. /package/scss/mixins/{index.import.scss → index.scss} +0 -0
  378. /package/scss/motion/{index.import.scss → index.scss} +0 -0
  379. /package/scss/typography/{index.import.scss → index.scss} +0 -0
  380. /package/scss/z-index/{index.import.scss → index.scss} +0 -0
@@ -1,138 +0,0 @@
1
- @use "sass:list";
2
-
3
- /// Returns a copy of `$list` with `$val` appended to the end.
4
- /// @param {List} $list - The list to process.
5
- /// @param {Any} $val - The value to append to `$list`.
6
- /// @param {String} $separator - The separator to use between `$list` and `$val`.
7
- /// @return {List} - A copy of `$list` with `$val` appended to the end.
8
- ///
9
- /// @example scss - Usage
10
- /// @debug k-list-append( ( "foo", "bar" ), "baz" ); // => "foo, bar, baz"
11
- @function k-list-append( $list, $val, $separator: auto ) {
12
- @return list.append( $list, $val, $separator );
13
- }
14
-
15
- /// Checks whether `$list` contains `$value`.
16
- /// @param {List} $list - The list to check.
17
- /// @param {Any} $value - The value to check for.
18
- /// @return {Boolean} - Whether `$list` contains `$value`.
19
- ///
20
- /// @example scss - Usage
21
- /// @debug k-list-includes( ( "foo", "bar" ), "foo" ); // => true
22
- /// @debug k-list-includes( ( "foo", "bar" ), "baz" ); // => false
23
- @function k-list-includes( $list, $value ) {
24
- @return k-list-index( $list, $value ) != null;
25
- }
26
-
27
- /// Returns the index of `$value` in `$list`.
28
- /// @param {List} $list - The list to check.
29
- /// @param {Any} $value - The value to check for.
30
- /// @return {Number} - The index of `$value` in `$list`.
31
- ///
32
- /// @example scss - Usage
33
- /// @debug k-list-index( ( "foo", "bar" ), "foo" ); // => 1
34
- @function k-list-index( $list, $value ) {
35
- @return list.index( $list, $value );
36
- }
37
-
38
- /// Returns whether `$list` is bracketed.
39
- /// @param {List} $list - The list to check.
40
- /// @return {Boolean} - Whether `$list` is bracketed.
41
- ///
42
- /// @example scss - Usage
43
- /// @debug k-list-is-bracketed( ( "foo", "bar" ) ); // => false
44
- /// @debug k-list-is-bracketed( [ "foo", "bar" ] ); // => true
45
- @function k-list-is-bracketed( $list ) {
46
- @return list.is-bracketed( $list );
47
- }
48
-
49
- /// Joins two lists together.
50
- /// @param {List} $list1 - The first list to join.
51
- /// @param {List} $list2 - The second list to join.
52
- /// @param {String} $separator - The separator to use between `$list1` and `$list2`.
53
- /// @param {Boolean} $bracketed - Whether the result should be bracketed.
54
- /// @return {List} - The joined list.
55
- ///
56
- /// @example scss - Usage
57
- /// @debug k-list-join( ( "foo", "bar" ), ( "baz", "qux" ) ); // => "foo, bar, baz, qux"
58
- /// @debug k-list-join( ( "foo", "bar" ), ( "baz", "qux" ), " " ); // => "foo bar baz qux"
59
- @function k-list-join( $list1, $list2, $separator: auto, $bracketed: auto ) {
60
- @return list.join( $list1, $list2, $separator, $bracketed );
61
- }
62
-
63
- /// Returns the length of `$list`.
64
- /// @param {List} $list - The list to check.
65
- /// @return {Number} - The length of `$list`.
66
- ///
67
- /// @example scss - Usage
68
- /// @debug k-list-length( ( "foo", "bar" ) ); // => 2
69
- @function k-list-length( $list ) {
70
- @return list.length( $list );
71
- }
72
-
73
- /// Returns the nth item in `$list`.
74
- /// @param {List} $list - The list to check.
75
- /// @param {Number} $n - The index of the item to return.
76
- /// @return {Any} - The nth item in `$list`.
77
- ///
78
- /// @example scss - Usage
79
- /// @debug k-list-nth( ( "foo", "bar" ), 1 ); // => "foo"
80
- @function k-list-nth( $list, $n ) {
81
- @return list.nth( $list, $n );
82
- }
83
-
84
- /// Reverse the order of items in `$list`.
85
- /// @param {List} $list - The list to reverse.
86
- /// @return {List} - The reversed list.
87
- ///
88
- /// @example scss - Usage
89
- /// @debug k-list-reverse( ( "foo", "bar" ) ); // => "bar, foo"
90
- @function k-list-reverse( $list: null ) {
91
- $result: ();
92
-
93
- @if ($list) {
94
- $len: k-list-length( $list );
95
-
96
- @for $i from $len through 1 {
97
- $result: k-list-append( $result, k-list-nth( $list, $i ) );
98
- }
99
-
100
- @return $result;
101
- }
102
-
103
- @warn "No list passed.";
104
- @return $result;
105
- }
106
-
107
- /// Returns the separator of `$list`.
108
- /// @param {List} $list - The list to check.
109
- /// @return {String} - The separator of `$list`.
110
- ///
111
- /// @example scss - Usage
112
- /// @debug k-list-separator( ( "foo", "bar" ) ); // => ","
113
- @function k-list-separator( $list ) {
114
- @return list.list-separator( $list );
115
- }
116
-
117
- /// Returns a copy of `$list` with `$val` inserted at `$n`.
118
- /// @param {List} $list - The list to process.
119
- /// @param {Number} $n - The index at which to insert `$val`.
120
- /// @param {Any} $val - The value to insert.
121
- /// @return {List} - A copy of `$list` with `$val` inserted at `$n`.
122
- ///
123
- /// @example scss - Usage
124
- /// @debug k-list-set-nth( ( "foo", "bar" ), 1, "baz" ); // => "baz, bar"
125
- @function k-list-set-nth( $list, $n, $value ) {
126
- @return list.set-nth( $list, $n, $value );
127
- }
128
-
129
- /// Combines two lists into a single list of two-item lists.
130
- /// @param {List} $list1 - The first list to combine.
131
- /// @param {List} $list2 - The second list to combine.
132
- /// @return {List} - A list of two-item lists.
133
- ///
134
- /// @example scss - Usage
135
- /// @debug k-list-zip( ( "foo", "bar" ), ( "baz", "qux" ) ); // => ((foo, baz), (bar, qux))
136
- @function k-list-zip( $lists... ) {
137
- @return list.zip( $lists... );
138
- }
@@ -1,138 +0,0 @@
1
- @use "sass:meta";
2
- @use "sass:map";
3
-
4
- /// Returns the value at `$key` in `$map`.
5
- /// @param {Map} $map - The map to get the value from.
6
- /// @param {Any} $key - The key to get the value for.
7
- ///
8
- /// @example scss - Usage
9
- /// @debug k-map-get( ( "foo": "bar" ), "foo" ); // => "bar"
10
- @function k-map-get( $map, $keys... ) {
11
- @each $key in $keys {
12
- $map: map.get( $map, $key ); // stylelint-disable-line
13
- }
14
- @return $map;
15
- }
16
-
17
- /// Returns whether `$map` has a value at `$key`.
18
- /// @param {Map} $map - The map to check.
19
- /// @param {Any} $key - The key to check.
20
- /// @return {Boolean} - Whether `$map` has a value at `$key`.
21
- ///
22
- /// @example scss - Usage
23
- /// @debug k-map-has( ( "foo": "bar" ), "foo" ); // => true
24
- /// @debug k-map-has( ( "foo": "bar" ), "bar" ); // => false
25
- @function k-map-has-key( $map, $key ) {
26
- @return map.has-key( $map, $key );
27
- }
28
-
29
- /// Returns a comma separated list of the keys in `$map`.
30
- /// @param {Map} $map - The map to get the keys from.
31
- /// @return {List} - A comma separated list of the keys in `$map`.
32
- ///
33
- /// @example scss - Usage
34
- /// @debug k-map-keys( ( "foo": "bar", "baz": "qux" ) ); // => "foo, baz"
35
- @function k-map-keys( $map ) {
36
- @return map.keys( $map );
37
- }
38
-
39
- /// Returns a map with the keys and values from `$map` and `$args`.
40
- /// @param {Map} $map - The map to merge.
41
- /// @param {Map} $args - The map to merge into `$map`.
42
- /// @return {Map} - A map with the keys and values from `$map` and `$args`.
43
- ///
44
- /// @example scss - Usage
45
- /// @debug k-map-merge( ( "foo": "bar" ), ( "baz": "qux" ) ); // => ( "foo": "bar", "baz": "qux" )
46
- @function k-map-merge( $map, $args... ) {
47
- @each $arg in $args {
48
- $map: map.merge( $map, $arg ); // stylelint-disable-line
49
- }
50
- @return $map;
51
- }
52
-
53
- /// Returns a deep-map with the keys and values from `$map` and `$args`.
54
- /// @param {Map} $maps - The maps to deep-merge.
55
- /// @return {Map} - A map with the keys and values from `$map` and `$args`.
56
- ///
57
- /// @example scss - Usage
58
- /// @debug k-map-deep-merge( ( "foo": ("bar": "baz", "baz": "qux" ) ), ( "foo": ("bar": "foo") ) ); // => ( "foo": ("bar": "foo", "baz": "qux" ))
59
- @function k-map-deep-merge($maps...) {
60
- $merged: ();
61
-
62
- @each $map in $maps {
63
- @each $key, $val in $map {
64
- @if (meta.type-of($val) == 'map') {
65
- $current: k-map-get($merged, $key);
66
- @if (meta.type-of($current) == 'map') {
67
- $val: k-map-deep-merge($current, $val);
68
- $map: k-map-merge(
69
- $map,
70
- (
71
- $key: $val
72
- )
73
- );
74
- }
75
- }
76
- }
77
- $merged: k-map-merge($merged, $map);
78
- }
79
-
80
- @return $merged;
81
- }
82
-
83
- /// Returns a map with the keys and values from `$map` except for `$keys`.
84
- /// @param {Map} $map - The map to remove keys from.
85
- /// @param {Any} $keys - The keys to remove from `$map`.
86
- /// @return {Map} - A map with the keys and values from `$map` except for `$keys`.
87
- ///
88
- /// @example scss - Usage
89
- /// @debug k-map-remove( ( "foo": "bar", "baz": "qux" ), "foo" ); // => ( "baz": "qux" )
90
- @function k-map-remove( $map, $keys... ) {
91
- @return map.remove( $map, $keys... );
92
- }
93
-
94
- /// Sets a single key and value in `$map`.
95
- /// @param {Map} $map - The map to set the value in.
96
- /// @param {Any} $key - The key to set the value for.
97
- /// @param {Any} $value - The value to set.
98
- /// @return {Map} - A map with the key and value set.
99
- ///
100
- /// @example scss - Usage
101
- /// @debug k-map-set( ( "foo": "bar" ), "baz", "qux" ); // => ( "foo": "bar", "baz": "qux" )
102
- @function k-map-set( $map, $key, $value ) {
103
- @return k-map-merge( $map, ( $key: $value ) );
104
- }
105
-
106
- /// Returns a comma separated list of the values in `$map`.
107
- /// @param {Map} $map - The map to get the values from.
108
- /// @return {List} - A comma separated list of the values in `$map`.
109
- ///
110
- /// @example scss - Usage
111
- /// @debug k-map-values( ( "foo": "bar", "baz": "qux" ) ); // => "bar, qux"
112
- @function k-map-values( $map ) {
113
- @return map.values( $map );
114
- }
115
-
116
- /// Returns negative values of a number or numbers in a list.
117
- /// @param {Map} $map - The map to get the values from.
118
- /// @return {Map} - A comma separated list of the values in `$map`.
119
- ///
120
- /// @example scss - Usage
121
- /// @debug k-map-negate( ( 0: 0, 1: 1px, 2: 2px ) ); // => ("-1": -1px, "-2": -2px)
122
- @function k-map-negate($map) {
123
- $_map-neg: ();
124
-
125
- @if( meta.type-of($map) != map ) {
126
- @error "expected type of #{$map} is map, was #{meta.type-of($map)}";
127
- };
128
- @each $key, $value in $map {
129
- $_key-neg: "-" + $key;
130
-
131
- @if( meta.type-of($value) == number and $value != 0 and $_key-neg != "-0" ) {
132
- $_map-neg: k-map-set($_map-neg, $_key-neg, -1 * $value );
133
- }
134
- }
135
-
136
- @return $_map-neg;
137
-
138
- }
@@ -1,223 +0,0 @@
1
- @use "sass:math";
2
-
3
- /// Returns the absolute value of a number.
4
- /// @param {Number} $number - The number to get the absolute value of.
5
- /// @return {Number} - The absolute value of `$number`.
6
- ///
7
- /// @example scss - Usage
8
- /// @debug k-math-abs( -10 ); // => 10
9
- @function k-math-abs( $number ) {
10
- @return math.abs( $number );
11
- }
12
-
13
- /// Returns the smallest integer greater than or equal to a number.
14
- /// @param {Number} $number - The number to get the ceiling of.
15
- /// @return {Number} - The ceiling of `$number`.
16
- ///
17
- /// @example scss - Usage
18
- /// @debug k-math-ceil( 10.1 ); // => 11
19
- @function k-math-ceil( $number ) {
20
- @return math.ceil( $number );
21
- }
22
-
23
- /// Returns the largest integer less than or equal to a number.
24
- /// @param {Number} $number - The number to get the floor of.
25
- /// @return {Number} - The floor of `$number`.
26
- ///
27
- /// @example scss - Usage
28
- /// @debug k-math-floor( 10.9 ); // => 10
29
- @function k-math-floor( $number ) {
30
- @return math.floor( $number );
31
- }
32
-
33
- /// Restricts `$number` to the range between `$min` and `$max`. If `$number` is
34
- /// less than `$min`, `$min` is returned. If `$number` is greater than `$max`,
35
- /// `$max` is returned. Otherwise, `$number` is returned.
36
- /// @param {Number} $number - The number to clamp.
37
- /// @param {Number} $min - The minimum value.
38
- /// @param {Number} $max - The maximum value.
39
- /// @return {Number} - The clamped number.
40
- ///
41
- /// @example scss - Usage
42
- /// @debug k-math-clamp( 10, 0, 5 ); // => 5
43
- @function k-math-clamp( $number, $min, $max ) {
44
- @return k-math-max( $min, k-math-min( $max, $number ) );
45
- }
46
-
47
- /// Returns whether two numbers have compatible units.
48
- /// @param {Number} $a - The first number.
49
- /// @param {Number} $b - The second number.
50
- /// @return {Boolean} - Whether the numbers have compatible units.
51
- ///
52
- /// @example scss - Usage
53
- /// @debug k-math-compatible( 10px, 10px ); // => true
54
- /// @debug k-math-compatible( 10px, 10em ); // => false
55
- @function k-math-compatible( $a, $b ) {
56
- @return math.comparable( $a, $b );
57
- }
58
-
59
- /// Returns the quotient of two numbers.
60
- /// @param {Number} $a - The dividend.
61
- /// @param {Number} $b - The divisor.
62
- /// @return {Number} - The quotient of `$a` and `$b`.
63
- ///
64
- /// @example scss - Usage
65
- /// @debug k-math-div( 10, 2 ); // => 5
66
- /// @debug k-math-div( 10px, 2 ); // => 5px
67
- @function k-math-div( $a, $b ) {
68
- @return math.div( $a, $b );
69
- }
70
-
71
- /// Returns whether `$number` has no units.
72
- /// @param {Number} $number - The number to check.
73
- /// @return {Boolean} - Whether `$number` has no units.
74
- ///
75
- /// @example scss - Usage
76
- /// @debug k-math-is-unitless( 10 ); // => true
77
- /// @debug k-math-is-unitless( 10px ); // => false
78
- @function k-math-is-unitless( $number ) {
79
- @return math.unitless( $number );
80
- }
81
-
82
- /// Returns the larger of two numbers.
83
- /// @param {Number} $a - The first number.
84
- /// @param {Number} $b - The second number.
85
- /// @return {Number} - The larger of `$a` and `$b`.
86
- ///
87
- /// @example scss - Usage
88
- /// @debug k-math-max( 10, 20 ); // => 20
89
- /// @debug k-math-max( 10px, 20px ); // => 20px
90
- @function k-math-max( $a, $b ) {
91
- @return math.max( $a, $b );
92
- }
93
-
94
- /// Returns the smaller of two numbers.
95
- /// @param {Number} $a - The first number.
96
- /// @param {Number} $b - The second number.
97
- /// @return {Number} - The smaller of `$a` and `$b`.
98
- ///
99
- /// @example scss - Usage
100
- /// @debug k-math-min( 10, 20 ); // => 10
101
- /// @debug k-math-min( 10px, 20px ); // => 10px
102
- @function k-math-min( $a, $b ) {
103
- @return math.min( $a, $b );
104
- }
105
-
106
- /// Returns the remainder of two numbers.
107
- /// @param {Number} $a - The dividend.
108
- /// @param {Number} $b - The divisor.
109
- /// @return {Number} - The remainder of `$a` and `$b`.
110
- ///
111
- /// @example scss - Usage
112
- /// @debug k-math-mod( 10, 3 ); // => 1
113
- /// @debug k-math-mod( 10px, 3 ); // => 1px
114
- @function k-math-mod( $a, $b ) {
115
- @return ( $a % $b );
116
- }
117
-
118
- /// Returns the product of two numbers.
119
- /// @param {Number} $a - The first number.
120
- /// @param {Number} $b - The second number.
121
- /// @return {Number} - The product of `$a` and `$b`.
122
- ///
123
- /// @example scss - Usage
124
- /// @debug k-math-mul( 10, 2 ); // => 20
125
- /// @debug k-math-mul( 10px, 2 ); // => 20px
126
- @function k-math-mul( $a, $b ) {
127
- @return ( $a * $b );
128
- }
129
-
130
- /// Converts a unitless number to a percentage.
131
- /// @param {Number} $number - The number to convert.
132
- /// @return {Number} - The percentage.
133
- ///
134
- /// @example scss - Usage
135
- /// @debug k-math-percentage( 0.5 ); // => 50%
136
- @function k-math-percentage( $number ) {
137
- @return math.percentage( $number );
138
- }
139
-
140
- /// Returns the result of raising `$x` to the power of `$n`.
141
- /// @param {Number} $x - The base.
142
- /// @param {Number} $n - The exponent.
143
- /// @return {Number} - The result of raising `$x` to the power of `$n`.
144
- ///
145
- /// @example scss - Usage
146
- /// @debug k-math-pow( 2, 3 ); // => 8
147
- @function k-math-pow( $x, $n ) {
148
- $ret: 1;
149
-
150
- @if ( $n == 0 ) {
151
- @return $ret;
152
- }
153
-
154
- @if ( $n > 0 ) {
155
- @for $i from 1 through $n {
156
- $ret: $ret * $x;
157
- }
158
- @return $ret;
159
- }
160
-
161
- @for $i from $n to 0 {
162
- $ret: k-math-div( $ret, $x );
163
- }
164
- @return $ret;
165
-
166
- }
167
-
168
- /// Returns a random number between 0 and 1.
169
- /// @param {Number} $limit - The upper limit of the random number.
170
- /// @return {Number} - A random number between 0 and 1.
171
- ///
172
- /// @example scss - Usage
173
- /// @debug k-math-random(); // => 0.123456789
174
- @function k-math-random( $limit: null ) {
175
- @if ( $limit == null ) { // stylelint-disable-line
176
- @return math.random();
177
- }
178
-
179
- @return math.random( $limit );
180
- }
181
-
182
- /// Returns the result of rounding `$number` to the nearest integer
183
- /// using the specified `$precision`.
184
- /// @param {Number} $number - The number to round.
185
- /// @param {Number} $precision - The number of decimal places to round to.
186
- /// @return {Number} - The rounded number.
187
- ///
188
- /// @example scss - Usage
189
- /// @debug k-math-round( 10.123456789, 3 ); // => 10.123
190
- @function k-math-round( $number, $precision: 0 ) {
191
-
192
- @if ( $precision == 0 ) {
193
- @return math.round( $number );
194
- }
195
-
196
- $pow: k-math-pow( 10, $precision );
197
-
198
- @return k-math-div( round( $number * $pow ), $pow );
199
- }
200
-
201
- /// Returns a string representation of `$number`'s unit.
202
- /// @param {Number} $number - The number to get the unit of.
203
- /// @return {String} - The unit of `$number`.
204
- ///
205
- /// @example scss - Usage
206
- /// @debug k-math-unit( 10px ); // => px
207
- @function k-math-unit( $number ) {
208
- @return math.unit( $number );
209
- }
210
-
211
- /// Remove the unit from a number.
212
- /// @param {Number} $number - The number to remove the unit from.
213
- /// @return {Number} - The unitless number.
214
- ///
215
- /// @example scss - Usage
216
- /// @debug k-math-strip-unit( 10px ); // => 10
217
- @function k-math-strip-unit($number) {
218
- @if ( k-meta-type-of( $number ) == "number" ) and not k-math-is-unitless( $number ) {
219
- @return k-math-div( $number, 1 * k-math-unit( $number) );
220
- }
221
-
222
- @return $number;
223
- }