@ixfx/components 0.2.4 → 0.2.6

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 (718) hide show
  1. package/bundle/index.d.ts +285 -159
  2. package/bundle/index.d.ts.map +1 -1
  3. package/bundle/index.js +3291 -2485
  4. package/bundle/index.js.map +1 -1
  5. package/dist/ac-text.d.ts +96 -0
  6. package/dist/ac-text.d.ts.map +1 -0
  7. package/dist/ac-text.js +484 -0
  8. package/dist/ac-text.js.map +1 -0
  9. package/dist/{button/button-styles.js → button-B9ztaKyl.js} +49 -3
  10. package/dist/button-B9ztaKyl.js.map +1 -0
  11. package/dist/button.d.ts +20 -0
  12. package/dist/button.d.ts.map +1 -0
  13. package/dist/button.js +3 -0
  14. package/dist/checkbox.d.ts +26 -57
  15. package/dist/checkbox.d.ts.map +1 -1
  16. package/dist/checkbox.js +74 -88
  17. package/dist/checkbox.js.map +1 -1
  18. package/dist/chunk-pbuEa-1d.js +13 -0
  19. package/dist/colour-C3MQIjFJ-BJV-QC-3.js +4138 -0
  20. package/dist/colour-C3MQIjFJ-BJV-QC-3.js.map +1 -0
  21. package/dist/colour-picker-BNqDz4wK.js +922 -0
  22. package/dist/colour-picker-BNqDz4wK.js.map +1 -0
  23. package/dist/colour-picker.d.ts +2 -0
  24. package/dist/colour-picker.js +2 -0
  25. package/dist/crumbs.d.ts +91 -0
  26. package/dist/crumbs.d.ts.map +1 -0
  27. package/dist/crumbs.js +789 -0
  28. package/dist/crumbs.js.map +1 -0
  29. package/dist/data-display.d.ts +22 -18
  30. package/dist/data-display.d.ts.map +1 -1
  31. package/dist/data-display.js +81 -108
  32. package/dist/data-display.js.map +1 -1
  33. package/dist/decorate-O4m1U4l3.js +25 -0
  34. package/dist/decorate-O4m1U4l3.js.map +1 -0
  35. package/dist/defaults-FEZaGiYZ.js +38 -0
  36. package/dist/defaults-FEZaGiYZ.js.map +1 -0
  37. package/dist/dist-By5URG0Y.js +1290 -0
  38. package/dist/dist-By5URG0Y.js.map +1 -0
  39. package/dist/dist-D7kJgnSE.js +1039 -0
  40. package/dist/dist-D7kJgnSE.js.map +1 -0
  41. package/dist/editable-label.d.ts +71 -0
  42. package/dist/editable-label.d.ts.map +1 -0
  43. package/dist/editable-label.js +279 -0
  44. package/dist/editable-label.js.map +1 -0
  45. package/dist/hex-editor-2_s0Ua5t.d.ts +130 -0
  46. package/dist/hex-editor-2_s0Ua5t.d.ts.map +1 -0
  47. package/dist/hex-editor-gH3mteMr.js +1147 -0
  48. package/dist/hex-editor-gH3mteMr.js.map +1 -0
  49. package/dist/hex.d.ts +2 -0
  50. package/dist/hex.js +2 -0
  51. package/dist/highlight-CAjwQ4GE.js +50 -0
  52. package/dist/highlight-CAjwQ4GE.js.map +1 -0
  53. package/dist/icon-CYACf6o8.js +100 -0
  54. package/dist/icon-CYACf6o8.js.map +1 -0
  55. package/dist/icon-CeTDJhC7.d.ts +35 -0
  56. package/dist/icon-CeTDJhC7.d.ts.map +1 -0
  57. package/dist/icons.d.ts +3 -0
  58. package/dist/icons.js +9 -0
  59. package/dist/icons.js.map +1 -0
  60. package/dist/incr-search-BZawvrfl.js +311 -0
  61. package/dist/incr-search-BZawvrfl.js.map +1 -0
  62. package/dist/incr-search.d.ts +2 -0
  63. package/dist/incr-search.js +3 -0
  64. package/dist/index-B1hNR7Z9.d.ts +36 -0
  65. package/dist/index-B1hNR7Z9.d.ts.map +1 -0
  66. package/dist/index-CnL9krsH.d.ts +1238 -0
  67. package/dist/index-CnL9krsH.d.ts.map +1 -0
  68. package/dist/index-CwGkb9s1.d.ts +395 -0
  69. package/dist/index-CwGkb9s1.d.ts.map +1 -0
  70. package/dist/index-DrQjA8Gs.d.ts +22 -0
  71. package/dist/index-DrQjA8Gs.d.ts.map +1 -0
  72. package/dist/index-V2cJorlA.d.ts +160 -0
  73. package/dist/index-V2cJorlA.d.ts.map +1 -0
  74. package/dist/index-kY5gxbkI.d.ts +182 -0
  75. package/dist/index-kY5gxbkI.d.ts.map +1 -0
  76. package/dist/index.d.ts +540 -53
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +6519 -54
  79. package/dist/index.js.map +1 -1
  80. package/dist/interaction-CQDQJf2Q.js +1 -0
  81. package/dist/keyboard-De_vOHLg.js +20 -0
  82. package/dist/keyboard-De_vOHLg.js.map +1 -0
  83. package/dist/labelled-input-base-BvgH7ldm.js +155 -0
  84. package/dist/labelled-input-base-BvgH7ldm.js.map +1 -0
  85. package/dist/labelled-input-base-D-Y7agky.d.ts +42 -0
  86. package/dist/labelled-input-base-D-Y7agky.d.ts.map +1 -0
  87. package/dist/labelled-radial-input.d.ts +33 -0
  88. package/dist/labelled-radial-input.d.ts.map +1 -0
  89. package/dist/labelled-radial-input.js +188 -0
  90. package/dist/labelled-radial-input.js.map +1 -0
  91. package/dist/labelled-range-input.d.ts +2 -0
  92. package/dist/{labelled-range-input/labelled-range-input.js → labelled-range-input.js} +40 -45
  93. package/dist/labelled-range-input.js.map +1 -0
  94. package/dist/led.d.ts +20 -16
  95. package/dist/led.d.ts.map +1 -1
  96. package/dist/led.js +71 -79
  97. package/dist/led.js.map +1 -1
  98. package/dist/menu-C3eANB5M.js +813 -0
  99. package/dist/menu-C3eANB5M.js.map +1 -0
  100. package/dist/menu-item-6IU5weHi.js +766 -0
  101. package/dist/menu-item-6IU5weHi.js.map +1 -0
  102. package/dist/menu-item-ClQF2DKN.d.ts +127 -0
  103. package/dist/menu-item-ClQF2DKN.d.ts.map +1 -0
  104. package/dist/menu.d.ts +3 -0
  105. package/dist/menu.js +3 -0
  106. package/dist/miller.d.ts +323 -0
  107. package/dist/miller.d.ts.map +1 -0
  108. package/dist/miller.js +1343 -0
  109. package/dist/miller.js.map +1 -0
  110. package/dist/narrowed-text.d.ts +71 -0
  111. package/dist/narrowed-text.d.ts.map +1 -0
  112. package/dist/narrowed-text.js +571 -0
  113. package/dist/narrowed-text.js.map +1 -0
  114. package/dist/panel.d.ts +42 -0
  115. package/dist/panel.d.ts.map +1 -0
  116. package/dist/{panel/panel.js → panel.js} +82 -91
  117. package/dist/panel.js.map +1 -0
  118. package/dist/plots.d.ts +2 -0
  119. package/dist/plots.js +2 -0
  120. package/dist/polar-pad.d.ts +66 -0
  121. package/dist/polar-pad.d.ts.map +1 -0
  122. package/dist/polar-pad.js +537 -0
  123. package/dist/polar-pad.js.map +1 -0
  124. package/dist/popup-Ddx9LCzY.js +24 -0
  125. package/dist/popup-Ddx9LCzY.js.map +1 -0
  126. package/dist/prominence-CreDBdCs.js +98 -0
  127. package/dist/prominence-CreDBdCs.js.map +1 -0
  128. package/dist/radial-input-Dbc6fgCK.js +849 -0
  129. package/dist/radial-input-Dbc6fgCK.js.map +1 -0
  130. package/dist/radial-input-LUSBEycd.d.ts +69 -0
  131. package/dist/radial-input-LUSBEycd.d.ts.map +1 -0
  132. package/dist/radial-input.d.ts +2 -0
  133. package/dist/radial-input.js +2 -0
  134. package/dist/range-input.d.ts +42 -0
  135. package/dist/range-input.d.ts.map +1 -0
  136. package/dist/{range-input/range-input.js → range-input.js} +155 -168
  137. package/dist/range-input.js.map +1 -0
  138. package/dist/range.d.ts +27 -0
  139. package/dist/range.d.ts.map +1 -0
  140. package/dist/range.js +136 -0
  141. package/dist/range.js.map +1 -0
  142. package/dist/registry-CZEB1YI9.js +21 -0
  143. package/dist/registry-CZEB1YI9.js.map +1 -0
  144. package/dist/selecthorizontal.d.ts +12 -8
  145. package/dist/selecthorizontal.d.ts.map +1 -1
  146. package/dist/selecthorizontal.js +20 -24
  147. package/dist/selecthorizontal.js.map +1 -1
  148. package/dist/snap-container.d.ts +49 -0
  149. package/dist/snap-container.d.ts.map +1 -0
  150. package/dist/snap-container.js +297 -0
  151. package/dist/snap-container.js.map +1 -0
  152. package/dist/{split-layout/split-layout.d.ts → split-layout.d.ts} +29 -25
  153. package/dist/split-layout.d.ts.map +1 -0
  154. package/dist/split-layout.js +545 -0
  155. package/dist/split-layout.js.map +1 -0
  156. package/dist/style.css +133 -0
  157. package/dist/swipe.d.ts +48 -0
  158. package/dist/swipe.d.ts.map +1 -0
  159. package/dist/swipe.js +204 -0
  160. package/dist/swipe.js.map +1 -0
  161. package/dist/tab-list-BnqISNvO.d.ts +65 -0
  162. package/dist/tab-list-BnqISNvO.d.ts.map +1 -0
  163. package/dist/tabs.d.ts +2 -0
  164. package/dist/tabs.js +203 -0
  165. package/dist/tabs.js.map +1 -0
  166. package/dist/tickled-controller-Cq1Va0rR.d.ts +218 -0
  167. package/dist/tickled-controller-Cq1Va0rR.d.ts.map +1 -0
  168. package/dist/tickled-styles-Bg3QbcrD.js +327 -0
  169. package/dist/tickled-styles-Bg3QbcrD.js.map +1 -0
  170. package/dist/timeline-B62Sz6J_.js +1748 -0
  171. package/dist/timeline-B62Sz6J_.js.map +1 -0
  172. package/dist/timeline.d.ts +2 -0
  173. package/dist/timeline.js +2 -0
  174. package/dist/tooltip-CwGfb4lp.d.ts +25 -0
  175. package/dist/tooltip-CwGfb4lp.d.ts.map +1 -0
  176. package/dist/{styles/tooltip.js → tooltip-DMxmBNky.js} +6 -2
  177. package/dist/tooltip-DMxmBNky.js.map +1 -0
  178. package/dist/tree-component-CQpoPo4s.d.ts +326 -0
  179. package/dist/tree-component-CQpoPo4s.d.ts.map +1 -0
  180. package/dist/tree-data-model-DGvRVOFY.js +190 -0
  181. package/dist/tree-data-model-DGvRVOFY.js.map +1 -0
  182. package/dist/tree.d.ts +99 -0
  183. package/dist/tree.d.ts.map +1 -0
  184. package/dist/tree.js +1144 -0
  185. package/dist/tree.js.map +1 -0
  186. package/dist/types-BKaqnpwx.d.ts +8 -0
  187. package/dist/types-BKaqnpwx.d.ts.map +1 -0
  188. package/dist/xy-axis-C7fNxDwY.js +6243 -0
  189. package/dist/xy-axis-C7fNxDwY.js.map +1 -0
  190. package/dist/xy-axis-D9uwpGTT.d.ts +140 -0
  191. package/dist/xy-axis-D9uwpGTT.d.ts.map +1 -0
  192. package/dist/xy-pad.d.ts +73 -110
  193. package/dist/xy-pad.d.ts.map +1 -1
  194. package/dist/xy-pad.js +300 -320
  195. package/dist/xy-pad.js.map +1 -1
  196. package/package.json +24 -28
  197. package/dist/ac-text/ac-text.d.ts +0 -99
  198. package/dist/ac-text/ac-text.d.ts.map +0 -1
  199. package/dist/ac-text/ac-text.js +0 -571
  200. package/dist/ac-text/ac-text.js.map +0 -1
  201. package/dist/button/button-styles.d.ts +0 -2
  202. package/dist/button/button-styles.d.ts.map +0 -1
  203. package/dist/button/button-styles.js.map +0 -1
  204. package/dist/button/button.d.ts +0 -16
  205. package/dist/button/button.d.ts.map +0 -1
  206. package/dist/button/button.js +0 -58
  207. package/dist/button/button.js.map +0 -1
  208. package/dist/button/radio-group.d.ts +0 -44
  209. package/dist/button/radio-group.d.ts.map +0 -1
  210. package/dist/button/radio-group.js +0 -385
  211. package/dist/button/radio-group.js.map +0 -1
  212. package/dist/button/split-button.d.ts +0 -59
  213. package/dist/button/split-button.d.ts.map +0 -1
  214. package/dist/button/split-button.js +0 -480
  215. package/dist/button/split-button.js.map +0 -1
  216. package/dist/button/types.d.ts +0 -18
  217. package/dist/button/types.d.ts.map +0 -1
  218. package/dist/button/types.js +0 -2
  219. package/dist/button/types.js.map +0 -1
  220. package/dist/colour-picker/colour-picker-popup.d.ts +0 -102
  221. package/dist/colour-picker/colour-picker-popup.d.ts.map +0 -1
  222. package/dist/colour-picker/colour-picker-popup.js +0 -399
  223. package/dist/colour-picker/colour-picker-popup.js.map +0 -1
  224. package/dist/colour-picker/colour-picker.d.ts +0 -100
  225. package/dist/colour-picker/colour-picker.d.ts.map +0 -1
  226. package/dist/colour-picker/colour-picker.js +0 -567
  227. package/dist/colour-picker/colour-picker.js.map +0 -1
  228. package/dist/colour-picker/index.d.ts +0 -4
  229. package/dist/colour-picker/index.d.ts.map +0 -1
  230. package/dist/colour-picker/index.js +0 -3
  231. package/dist/colour-picker/index.js.map +0 -1
  232. package/dist/colour-picker/styles.d.ts +0 -2
  233. package/dist/colour-picker/styles.d.ts.map +0 -1
  234. package/dist/colour-picker/styles.js +0 -139
  235. package/dist/colour-picker/styles.js.map +0 -1
  236. package/dist/colour-picker/types.d.ts +0 -33
  237. package/dist/colour-picker/types.d.ts.map +0 -1
  238. package/dist/colour-picker/types.js +0 -2
  239. package/dist/colour-picker/types.js.map +0 -1
  240. package/dist/colour-picker/util.d.ts +0 -15
  241. package/dist/colour-picker/util.d.ts.map +0 -1
  242. package/dist/colour-picker/util.js +0 -35
  243. package/dist/colour-picker/util.js.map +0 -1
  244. package/dist/common/searchable.d.ts +0 -9
  245. package/dist/common/searchable.d.ts.map +0 -1
  246. package/dist/common/searchable.js +0 -9
  247. package/dist/common/searchable.js.map +0 -1
  248. package/dist/common/tree-component.d.ts +0 -172
  249. package/dist/common/tree-component.d.ts.map +0 -1
  250. package/dist/common/tree-component.js +0 -8
  251. package/dist/common/tree-component.js.map +0 -1
  252. package/dist/common/tree-data-model.d.ts +0 -100
  253. package/dist/common/tree-data-model.d.ts.map +0 -1
  254. package/dist/common/tree-data-model.js +0 -207
  255. package/dist/common/tree-data-model.js.map +0 -1
  256. package/dist/common/tree-item.d.ts +0 -7
  257. package/dist/common/tree-item.d.ts.map +0 -1
  258. package/dist/common/tree-item.js +0 -2
  259. package/dist/common/tree-item.js.map +0 -1
  260. package/dist/common/types.d.ts +0 -69
  261. package/dist/common/types.d.ts.map +0 -1
  262. package/dist/common/types.js +0 -6
  263. package/dist/common/types.js.map +0 -1
  264. package/dist/crumbs/crumb-navigation.d.ts +0 -96
  265. package/dist/crumbs/crumb-navigation.d.ts.map +0 -1
  266. package/dist/crumbs/crumb-navigation.js +0 -911
  267. package/dist/crumbs/crumb-navigation.js.map +0 -1
  268. package/dist/crumbs/crumb-path-controller.d.ts +0 -18
  269. package/dist/crumbs/crumb-path-controller.d.ts.map +0 -1
  270. package/dist/crumbs/crumb-path-controller.js +0 -81
  271. package/dist/crumbs/crumb-path-controller.js.map +0 -1
  272. package/dist/crumbs/crumb-path.d.ts +0 -65
  273. package/dist/crumbs/crumb-path.d.ts.map +0 -1
  274. package/dist/crumbs/crumb-path.js +0 -691
  275. package/dist/crumbs/crumb-path.js.map +0 -1
  276. package/dist/editable-label/editable-label.d.ts +0 -98
  277. package/dist/editable-label/editable-label.d.ts.map +0 -1
  278. package/dist/editable-label/editable-label.js +0 -348
  279. package/dist/editable-label/editable-label.js.map +0 -1
  280. package/dist/editable-label/editable-number.d.ts +0 -96
  281. package/dist/editable-label/editable-number.d.ts.map +0 -1
  282. package/dist/editable-label/editable-number.js +0 -702
  283. package/dist/editable-label/editable-number.js.map +0 -1
  284. package/dist/hex/colour.d.ts +0 -6
  285. package/dist/hex/colour.d.ts.map +0 -1
  286. package/dist/hex/colour.js +0 -33
  287. package/dist/hex/colour.js.map +0 -1
  288. package/dist/hex/data.d.ts +0 -18
  289. package/dist/hex/data.d.ts.map +0 -1
  290. package/dist/hex/data.js +0 -61
  291. package/dist/hex/data.js.map +0 -1
  292. package/dist/hex/diff.d.ts +0 -14
  293. package/dist/hex/diff.d.ts.map +0 -1
  294. package/dist/hex/diff.js +0 -31
  295. package/dist/hex/diff.js.map +0 -1
  296. package/dist/hex/hex-editor.d.ts +0 -101
  297. package/dist/hex/hex-editor.d.ts.map +0 -1
  298. package/dist/hex/hex-editor.js +0 -894
  299. package/dist/hex/hex-editor.js.map +0 -1
  300. package/dist/hex/selection.d.ts +0 -11
  301. package/dist/hex/selection.d.ts.map +0 -1
  302. package/dist/hex/selection.js +0 -218
  303. package/dist/hex/selection.js.map +0 -1
  304. package/dist/hex/types.d.ts +0 -34
  305. package/dist/hex/types.d.ts.map +0 -1
  306. package/dist/hex/types.js +0 -4
  307. package/dist/hex/types.js.map +0 -1
  308. package/dist/icons/defaults.d.ts +0 -27
  309. package/dist/icons/defaults.d.ts.map +0 -1
  310. package/dist/icons/defaults.js +0 -34
  311. package/dist/icons/defaults.js.map +0 -1
  312. package/dist/icons/icon.d.ts +0 -31
  313. package/dist/icons/icon.d.ts.map +0 -1
  314. package/dist/icons/icon.js +0 -125
  315. package/dist/icons/icon.js.map +0 -1
  316. package/dist/icons/index.d.ts +0 -5
  317. package/dist/icons/index.d.ts.map +0 -1
  318. package/dist/icons/index.js +0 -6
  319. package/dist/icons/index.js.map +0 -1
  320. package/dist/icons/registry.d.ts +0 -11
  321. package/dist/icons/registry.d.ts.map +0 -1
  322. package/dist/icons/registry.js +0 -17
  323. package/dist/icons/registry.js.map +0 -1
  324. package/dist/incr-search/ac-adapter.d.ts +0 -18
  325. package/dist/incr-search/ac-adapter.d.ts.map +0 -1
  326. package/dist/incr-search/ac-adapter.js +0 -29
  327. package/dist/incr-search/ac-adapter.js.map +0 -1
  328. package/dist/incr-search/controller-miller.d.ts +0 -9
  329. package/dist/incr-search/controller-miller.d.ts.map +0 -1
  330. package/dist/incr-search/controller-miller.js +0 -8
  331. package/dist/incr-search/controller-miller.js.map +0 -1
  332. package/dist/incr-search/controller-tree.d.ts +0 -55
  333. package/dist/incr-search/controller-tree.d.ts.map +0 -1
  334. package/dist/incr-search/controller-tree.js +0 -106
  335. package/dist/incr-search/controller-tree.js.map +0 -1
  336. package/dist/incr-search/element-search.d.ts +0 -15
  337. package/dist/incr-search/element-search.d.ts.map +0 -1
  338. package/dist/incr-search/element-search.js +0 -82
  339. package/dist/incr-search/element-search.js.map +0 -1
  340. package/dist/incr-search/fuzzy.d.ts +0 -3
  341. package/dist/incr-search/fuzzy.d.ts.map +0 -1
  342. package/dist/incr-search/fuzzy.js +0 -37
  343. package/dist/incr-search/fuzzy.js.map +0 -1
  344. package/dist/incr-search/highlight.d.ts +0 -5
  345. package/dist/incr-search/highlight.d.ts.map +0 -1
  346. package/dist/incr-search/highlight.js +0 -54
  347. package/dist/incr-search/highlight.js.map +0 -1
  348. package/dist/incr-search/incr-search.d.ts +0 -3
  349. package/dist/incr-search/incr-search.d.ts.map +0 -1
  350. package/dist/incr-search/incr-search.js +0 -73
  351. package/dist/incr-search/incr-search.js.map +0 -1
  352. package/dist/incr-search/index.d.ts +0 -12
  353. package/dist/incr-search/index.d.ts.map +0 -1
  354. package/dist/incr-search/index.js +0 -8
  355. package/dist/incr-search/index.js.map +0 -1
  356. package/dist/incr-search/types.d.ts +0 -59
  357. package/dist/incr-search/types.d.ts.map +0 -1
  358. package/dist/incr-search/types.js +0 -2
  359. package/dist/incr-search/types.js.map +0 -1
  360. package/dist/interaction/index.d.ts +0 -10
  361. package/dist/interaction/index.d.ts.map +0 -1
  362. package/dist/interaction/index.js +0 -10
  363. package/dist/interaction/index.js.map +0 -1
  364. package/dist/interaction/tickled-controller.d.ts +0 -186
  365. package/dist/interaction/tickled-controller.d.ts.map +0 -1
  366. package/dist/interaction/tickled-controller.js +0 -256
  367. package/dist/interaction/tickled-controller.js.map +0 -1
  368. package/dist/interaction/tickled-styles.d.ts +0 -53
  369. package/dist/interaction/tickled-styles.d.ts.map +0 -1
  370. package/dist/interaction/tickled-styles.js +0 -106
  371. package/dist/interaction/tickled-styles.js.map +0 -1
  372. package/dist/interaction/tree-keyboard-controller.d.ts +0 -30
  373. package/dist/interaction/tree-keyboard-controller.d.ts.map +0 -1
  374. package/dist/interaction/tree-keyboard-controller.js +0 -105
  375. package/dist/interaction/tree-keyboard-controller.js.map +0 -1
  376. package/dist/keyboard.d.ts +0 -16
  377. package/dist/keyboard.d.ts.map +0 -1
  378. package/dist/keyboard.js +0 -22
  379. package/dist/keyboard.js.map +0 -1
  380. package/dist/labelled-radial-input/index.d.ts +0 -2
  381. package/dist/labelled-radial-input/index.d.ts.map +0 -1
  382. package/dist/labelled-radial-input/index.js +0 -2
  383. package/dist/labelled-radial-input/index.js.map +0 -1
  384. package/dist/labelled-radial-input/labelled-radial-input.d.ts +0 -77
  385. package/dist/labelled-radial-input/labelled-radial-input.d.ts.map +0 -1
  386. package/dist/labelled-radial-input/labelled-radial-input.js +0 -214
  387. package/dist/labelled-radial-input/labelled-radial-input.js.map +0 -1
  388. package/dist/labelled-range-input/index.d.ts +0 -2
  389. package/dist/labelled-range-input/index.d.ts.map +0 -1
  390. package/dist/labelled-range-input/index.js +0 -2
  391. package/dist/labelled-range-input/index.js.map +0 -1
  392. package/dist/labelled-range-input/labelled-range-input.d.ts +0 -80
  393. package/dist/labelled-range-input/labelled-range-input.d.ts.map +0 -1
  394. package/dist/labelled-range-input/labelled-range-input.js.map +0 -1
  395. package/dist/menu/index.d.ts +0 -14
  396. package/dist/menu/index.d.ts.map +0 -1
  397. package/dist/menu/index.js +0 -13
  398. package/dist/menu/index.js.map +0 -1
  399. package/dist/menu/menu-bar.d.ts +0 -23
  400. package/dist/menu/menu-bar.d.ts.map +0 -1
  401. package/dist/menu/menu-bar.js +0 -110
  402. package/dist/menu/menu-bar.js.map +0 -1
  403. package/dist/menu/menu-check-item.d.ts +0 -33
  404. package/dist/menu/menu-check-item.d.ts.map +0 -1
  405. package/dist/menu/menu-check-item.js +0 -175
  406. package/dist/menu/menu-check-item.js.map +0 -1
  407. package/dist/menu/menu-command-controller.d.ts +0 -14
  408. package/dist/menu/menu-command-controller.d.ts.map +0 -1
  409. package/dist/menu/menu-command-controller.js +0 -22
  410. package/dist/menu/menu-command-controller.js.map +0 -1
  411. package/dist/menu/menu-container.d.ts +0 -36
  412. package/dist/menu/menu-container.d.ts.map +0 -1
  413. package/dist/menu/menu-container.js +0 -351
  414. package/dist/menu/menu-container.js.map +0 -1
  415. package/dist/menu/menu-from-tree.d.ts +0 -17
  416. package/dist/menu/menu-from-tree.d.ts.map +0 -1
  417. package/dist/menu/menu-from-tree.js +0 -103
  418. package/dist/menu/menu-from-tree.js.map +0 -1
  419. package/dist/menu/menu-header.d.ts +0 -12
  420. package/dist/menu/menu-header.d.ts.map +0 -1
  421. package/dist/menu/menu-header.js +0 -36
  422. package/dist/menu/menu-header.js.map +0 -1
  423. package/dist/menu/menu-item.d.ts +0 -41
  424. package/dist/menu/menu-item.d.ts.map +0 -1
  425. package/dist/menu/menu-item.js +0 -240
  426. package/dist/menu/menu-item.js.map +0 -1
  427. package/dist/menu/menu-radio-group.d.ts +0 -24
  428. package/dist/menu/menu-radio-group.d.ts.map +0 -1
  429. package/dist/menu/menu-radio-group.js +0 -71
  430. package/dist/menu/menu-radio-group.js.map +0 -1
  431. package/dist/menu/menu-radio-item.d.ts +0 -22
  432. package/dist/menu/menu-radio-item.d.ts.map +0 -1
  433. package/dist/menu/menu-radio-item.js +0 -116
  434. package/dist/menu/menu-radio-item.js.map +0 -1
  435. package/dist/menu/menu-separator.d.ts +0 -11
  436. package/dist/menu/menu-separator.d.ts.map +0 -1
  437. package/dist/menu/menu-separator.js +0 -29
  438. package/dist/menu/menu-separator.js.map +0 -1
  439. package/dist/menu/menu-sub-trigger.d.ts +0 -46
  440. package/dist/menu/menu-sub-trigger.d.ts.map +0 -1
  441. package/dist/menu/menu-sub-trigger.js +0 -302
  442. package/dist/menu/menu-sub-trigger.js.map +0 -1
  443. package/dist/menu/menu-trigger.d.ts +0 -57
  444. package/dist/menu/menu-trigger.d.ts.map +0 -1
  445. package/dist/menu/menu-trigger.js +0 -351
  446. package/dist/menu/menu-trigger.js.map +0 -1
  447. package/dist/miller/index.d.ts +0 -5
  448. package/dist/miller/index.d.ts.map +0 -1
  449. package/dist/miller/index.js +0 -5
  450. package/dist/miller/index.js.map +0 -1
  451. package/dist/miller/miller-base.d.ts +0 -184
  452. package/dist/miller/miller-base.d.ts.map +0 -1
  453. package/dist/miller/miller-base.js +0 -1249
  454. package/dist/miller/miller-base.js.map +0 -1
  455. package/dist/miller/miller-list.d.ts +0 -30
  456. package/dist/miller/miller-list.d.ts.map +0 -1
  457. package/dist/miller/miller-list.js +0 -192
  458. package/dist/miller/miller-list.js.map +0 -1
  459. package/dist/miller/miller-tree-controller.d.ts +0 -58
  460. package/dist/miller/miller-tree-controller.d.ts.map +0 -1
  461. package/dist/miller/miller-tree-controller.js +0 -134
  462. package/dist/miller/miller-tree-controller.js.map +0 -1
  463. package/dist/miller/types.d.ts +0 -63
  464. package/dist/miller/types.d.ts.map +0 -1
  465. package/dist/miller/types.js +0 -6
  466. package/dist/miller/types.js.map +0 -1
  467. package/dist/mixins/labelled-input-base.d.ts +0 -38
  468. package/dist/mixins/labelled-input-base.d.ts.map +0 -1
  469. package/dist/mixins/labelled-input-base.js +0 -171
  470. package/dist/mixins/labelled-input-base.js.map +0 -1
  471. package/dist/mixins/labelled-input-util.d.ts +0 -3
  472. package/dist/mixins/labelled-input-util.d.ts.map +0 -1
  473. package/dist/mixins/labelled-input-util.js +0 -10
  474. package/dist/mixins/labelled-input-util.js.map +0 -1
  475. package/dist/my-element.d.ts +0 -14
  476. package/dist/my-element.d.ts.map +0 -1
  477. package/dist/my-element.js +0 -44
  478. package/dist/my-element.js.map +0 -1
  479. package/dist/narrowed-text/index.d.ts +0 -3
  480. package/dist/narrowed-text/index.d.ts.map +0 -1
  481. package/dist/narrowed-text/index.js +0 -3
  482. package/dist/narrowed-text/index.js.map +0 -1
  483. package/dist/narrowed-text/narrowed-text.d.ts +0 -48
  484. package/dist/narrowed-text/narrowed-text.d.ts.map +0 -1
  485. package/dist/narrowed-text/narrowed-text.js +0 -668
  486. package/dist/narrowed-text/narrowed-text.js.map +0 -1
  487. package/dist/narrowed-text/types.d.ts +0 -20
  488. package/dist/narrowed-text/types.d.ts.map +0 -1
  489. package/dist/narrowed-text/types.js +0 -2
  490. package/dist/narrowed-text/types.js.map +0 -1
  491. package/dist/panel/panel-group.d.ts +0 -23
  492. package/dist/panel/panel-group.d.ts.map +0 -1
  493. package/dist/panel/panel-group.js +0 -109
  494. package/dist/panel/panel-group.js.map +0 -1
  495. package/dist/panel/panel.d.ts +0 -39
  496. package/dist/panel/panel.d.ts.map +0 -1
  497. package/dist/panel/panel.js.map +0 -1
  498. package/dist/plots/colour-map.d.ts +0 -31
  499. package/dist/plots/colour-map.d.ts.map +0 -1
  500. package/dist/plots/colour-map.js +0 -133
  501. package/dist/plots/colour-map.js.map +0 -1
  502. package/dist/plots/data.d.ts +0 -27
  503. package/dist/plots/data.d.ts.map +0 -1
  504. package/dist/plots/data.js +0 -47
  505. package/dist/plots/data.js.map +0 -1
  506. package/dist/plots/single-axis.d.ts +0 -41
  507. package/dist/plots/single-axis.d.ts.map +0 -1
  508. package/dist/plots/single-axis.js +0 -428
  509. package/dist/plots/single-axis.js.map +0 -1
  510. package/dist/plots/svg-utils.d.ts +0 -12
  511. package/dist/plots/svg-utils.d.ts.map +0 -1
  512. package/dist/plots/svg-utils.js +0 -64
  513. package/dist/plots/svg-utils.js.map +0 -1
  514. package/dist/plots/xy-axis.d.ts +0 -42
  515. package/dist/plots/xy-axis.d.ts.map +0 -1
  516. package/dist/plots/xy-axis.js +0 -307
  517. package/dist/plots/xy-axis.js.map +0 -1
  518. package/dist/polar-pad/polar-pad.d.ts +0 -132
  519. package/dist/polar-pad/polar-pad.d.ts.map +0 -1
  520. package/dist/polar-pad/polar-pad.js +0 -598
  521. package/dist/polar-pad/polar-pad.js.map +0 -1
  522. package/dist/radial-input/radial-input.d.ts +0 -45
  523. package/dist/radial-input/radial-input.d.ts.map +0 -1
  524. package/dist/radial-input/radial-input.js +0 -692
  525. package/dist/radial-input/radial-input.js.map +0 -1
  526. package/dist/radial-input/svg-utils.d.ts +0 -147
  527. package/dist/radial-input/svg-utils.d.ts.map +0 -1
  528. package/dist/radial-input/svg-utils.js +0 -346
  529. package/dist/radial-input/svg-utils.js.map +0 -1
  530. package/dist/radial-input/types.d.ts +0 -25
  531. package/dist/radial-input/types.d.ts.map +0 -1
  532. package/dist/radial-input/types.js +0 -5
  533. package/dist/radial-input/types.js.map +0 -1
  534. package/dist/range/range-multi.d.ts +0 -62
  535. package/dist/range/range-multi.d.ts.map +0 -1
  536. package/dist/range/range-multi.js +0 -652
  537. package/dist/range/range-multi.js.map +0 -1
  538. package/dist/range/range.d.ts +0 -23
  539. package/dist/range/range.d.ts.map +0 -1
  540. package/dist/range/range.js +0 -153
  541. package/dist/range/range.js.map +0 -1
  542. package/dist/range-input/index.d.ts +0 -2
  543. package/dist/range-input/index.d.ts.map +0 -1
  544. package/dist/range-input/index.js +0 -2
  545. package/dist/range-input/index.js.map +0 -1
  546. package/dist/range-input/range-input.d.ts +0 -92
  547. package/dist/range-input/range-input.d.ts.map +0 -1
  548. package/dist/range-input/range-input.js.map +0 -1
  549. package/dist/snap-container/snap-container.d.ts +0 -45
  550. package/dist/snap-container/snap-container.d.ts.map +0 -1
  551. package/dist/snap-container/snap-container.js +0 -352
  552. package/dist/snap-container/snap-container.js.map +0 -1
  553. package/dist/split-layout/split-layout.d.ts.map +0 -1
  554. package/dist/split-layout/split-layout.js +0 -674
  555. package/dist/split-layout/split-layout.js.map +0 -1
  556. package/dist/styles/popup.d.ts +0 -11
  557. package/dist/styles/popup.d.ts.map +0 -1
  558. package/dist/styles/popup.js +0 -20
  559. package/dist/styles/popup.js.map +0 -1
  560. package/dist/styles/prominence.d.ts +0 -58
  561. package/dist/styles/prominence.d.ts.map +0 -1
  562. package/dist/styles/prominence.js +0 -94
  563. package/dist/styles/prominence.js.map +0 -1
  564. package/dist/styles/tooltip.d.ts +0 -2
  565. package/dist/styles/tooltip.d.ts.map +0 -1
  566. package/dist/styles/tooltip.js.map +0 -1
  567. package/dist/svg-edit-label.d.ts +0 -2
  568. package/dist/svg-edit-label.d.ts.map +0 -1
  569. package/dist/svg-edit-label.js +0 -110
  570. package/dist/svg-edit-label.js.map +0 -1
  571. package/dist/swipe/index.d.ts +0 -2
  572. package/dist/swipe/index.d.ts.map +0 -1
  573. package/dist/swipe/index.js +0 -2
  574. package/dist/swipe/index.js.map +0 -1
  575. package/dist/swipe/swipe.d.ts +0 -65
  576. package/dist/swipe/swipe.d.ts.map +0 -1
  577. package/dist/swipe/swipe.js +0 -229
  578. package/dist/swipe/swipe.js.map +0 -1
  579. package/dist/tabs/tab-layout-item.d.ts +0 -10
  580. package/dist/tabs/tab-layout-item.d.ts.map +0 -1
  581. package/dist/tabs/tab-layout-item.js +0 -20
  582. package/dist/tabs/tab-layout-item.js.map +0 -1
  583. package/dist/tabs/tab-layout.d.ts +0 -10
  584. package/dist/tabs/tab-layout.d.ts.map +0 -1
  585. package/dist/tabs/tab-layout.js +0 -25
  586. package/dist/tabs/tab-layout.js.map +0 -1
  587. package/dist/tabs/tab-list-item.d.ts +0 -34
  588. package/dist/tabs/tab-list-item.d.ts.map +0 -1
  589. package/dist/tabs/tab-list-item.js +0 -195
  590. package/dist/tabs/tab-list-item.js.map +0 -1
  591. package/dist/tabs/tab-list.d.ts +0 -31
  592. package/dist/tabs/tab-list.d.ts.map +0 -1
  593. package/dist/tabs/tab-list.js +0 -257
  594. package/dist/tabs/tab-list.js.map +0 -1
  595. package/dist/tabs/tab-panel.d.ts +0 -11
  596. package/dist/tabs/tab-panel.d.ts.map +0 -1
  597. package/dist/tabs/tab-panel.js +0 -30
  598. package/dist/tabs/tab-panel.js.map +0 -1
  599. package/dist/tabs/tab-panels.d.ts +0 -30
  600. package/dist/tabs/tab-panels.d.ts.map +0 -1
  601. package/dist/tabs/tab-panels.js +0 -80
  602. package/dist/tabs/tab-panels.js.map +0 -1
  603. package/dist/timeline/index.d.ts +0 -9
  604. package/dist/timeline/index.d.ts.map +0 -1
  605. package/dist/timeline/index.js +0 -8
  606. package/dist/timeline/index.js.map +0 -1
  607. package/dist/timeline/timeline-controller.d.ts +0 -48
  608. package/dist/timeline/timeline-controller.d.ts.map +0 -1
  609. package/dist/timeline/timeline-controller.js +0 -81
  610. package/dist/timeline/timeline-controller.js.map +0 -1
  611. package/dist/timeline/timeline-draw.d.ts +0 -28
  612. package/dist/timeline/timeline-draw.d.ts.map +0 -1
  613. package/dist/timeline/timeline-draw.js +0 -330
  614. package/dist/timeline/timeline-draw.js.map +0 -1
  615. package/dist/timeline/timeline-element.d.ts +0 -140
  616. package/dist/timeline/timeline-element.d.ts.map +0 -1
  617. package/dist/timeline/timeline-element.js +0 -888
  618. package/dist/timeline/timeline-element.js.map +0 -1
  619. package/dist/timeline/timeline-interactions.d.ts +0 -40
  620. package/dist/timeline/timeline-interactions.d.ts.map +0 -1
  621. package/dist/timeline/timeline-interactions.js +0 -393
  622. package/dist/timeline/timeline-interactions.js.map +0 -1
  623. package/dist/timeline/timeline-styles.d.ts +0 -2
  624. package/dist/timeline/timeline-styles.d.ts.map +0 -1
  625. package/dist/timeline/timeline-styles.js +0 -153
  626. package/dist/timeline/timeline-styles.js.map +0 -1
  627. package/dist/timeline/timeline-track-tabs.d.ts +0 -30
  628. package/dist/timeline/timeline-track-tabs.d.ts.map +0 -1
  629. package/dist/timeline/timeline-track-tabs.js +0 -204
  630. package/dist/timeline/timeline-track-tabs.js.map +0 -1
  631. package/dist/timeline/types.d.ts +0 -144
  632. package/dist/timeline/types.d.ts.map +0 -1
  633. package/dist/timeline/types.js +0 -3
  634. package/dist/timeline/types.js.map +0 -1
  635. package/dist/tree/index.d.ts +0 -5
  636. package/dist/tree/index.d.ts.map +0 -1
  637. package/dist/tree/index.js +0 -5
  638. package/dist/tree/index.js.map +0 -1
  639. package/dist/tree/tree-base.d.ts +0 -70
  640. package/dist/tree/tree-base.d.ts.map +0 -1
  641. package/dist/tree/tree-base.js +0 -1028
  642. package/dist/tree/tree-base.js.map +0 -1
  643. package/dist/tree/tree-controller.d.ts +0 -14
  644. package/dist/tree/tree-controller.d.ts.map +0 -1
  645. package/dist/tree/tree-controller.js +0 -96
  646. package/dist/tree/tree-controller.js.map +0 -1
  647. package/dist/tree/tree-list.d.ts +0 -20
  648. package/dist/tree/tree-list.d.ts.map +0 -1
  649. package/dist/tree/tree-list.js +0 -174
  650. package/dist/tree/tree-list.js.map +0 -1
  651. package/dist/tree/types.d.ts +0 -14
  652. package/dist/tree/types.d.ts.map +0 -1
  653. package/dist/tree/types.js +0 -7
  654. package/dist/tree/types.js.map +0 -1
  655. package/dist/util/checkbox.d.ts +0 -2
  656. package/dist/util/checkbox.d.ts.map +0 -1
  657. package/dist/util/checkbox.js +0 -69
  658. package/dist/util/checkbox.js.map +0 -1
  659. package/dist/util/circle-arc.d.ts +0 -34
  660. package/dist/util/circle-arc.d.ts.map +0 -1
  661. package/dist/util/circle-arc.js +0 -85
  662. package/dist/util/circle-arc.js.map +0 -1
  663. package/dist/util/clamp.d.ts +0 -4
  664. package/dist/util/clamp.d.ts.map +0 -1
  665. package/dist/util/clamp.js +0 -23
  666. package/dist/util/clamp.js.map +0 -1
  667. package/dist/util/compare.d.ts +0 -53
  668. package/dist/util/compare.d.ts.map +0 -1
  669. package/dist/util/compare.js +0 -91
  670. package/dist/util/compare.js.map +0 -1
  671. package/dist/util/content-editable.d.ts +0 -2
  672. package/dist/util/content-editable.d.ts.map +0 -1
  673. package/dist/util/content-editable.js +0 -13
  674. package/dist/util/content-editable.js.map +0 -1
  675. package/dist/util/coordinates.d.ts +0 -3
  676. package/dist/util/coordinates.d.ts.map +0 -1
  677. package/dist/util/coordinates.js +0 -11
  678. package/dist/util/coordinates.js.map +0 -1
  679. package/dist/util/drag.d.ts +0 -16
  680. package/dist/util/drag.d.ts.map +0 -1
  681. package/dist/util/drag.js +0 -20
  682. package/dist/util/drag.js.map +0 -1
  683. package/dist/util/is-numeric.d.ts +0 -2
  684. package/dist/util/is-numeric.d.ts.map +0 -1
  685. package/dist/util/is-numeric.js +0 -9
  686. package/dist/util/is-numeric.js.map +0 -1
  687. package/dist/util/key-value.d.ts +0 -5
  688. package/dist/util/key-value.d.ts.map +0 -1
  689. package/dist/util/key-value.js +0 -29
  690. package/dist/util/key-value.js.map +0 -1
  691. package/dist/util/near.d.ts +0 -2
  692. package/dist/util/near.d.ts.map +0 -1
  693. package/dist/util/near.js +0 -6
  694. package/dist/util/near.js.map +0 -1
  695. package/dist/util/primitive-types.d.ts +0 -6
  696. package/dist/util/primitive-types.d.ts.map +0 -1
  697. package/dist/util/primitive-types.js +0 -2
  698. package/dist/util/primitive-types.js.map +0 -1
  699. package/dist/util/svg-editable-text.d.ts +0 -26
  700. package/dist/util/svg-editable-text.d.ts.map +0 -1
  701. package/dist/util/svg-editable-text.js +0 -119
  702. package/dist/util/svg-editable-text.js.map +0 -1
  703. package/dist/util/time.d.ts +0 -2
  704. package/dist/util/time.d.ts.map +0 -1
  705. package/dist/util/time.js +0 -2
  706. package/dist/util/time.js.map +0 -1
  707. package/dist/util/tooltip-controller.d.ts +0 -10
  708. package/dist/util/tooltip-controller.d.ts.map +0 -1
  709. package/dist/util/tooltip-controller.js +0 -237
  710. package/dist/util/tooltip-controller.js.map +0 -1
  711. package/dist/util/tooltip.d.ts +0 -21
  712. package/dist/util/tooltip.d.ts.map +0 -1
  713. package/dist/util/tooltip.js +0 -98
  714. package/dist/util/tooltip.js.map +0 -1
  715. package/dist/util/value-drag.d.ts +0 -33
  716. package/dist/util/value-drag.d.ts.map +0 -1
  717. package/dist/util/value-drag.js +0 -154
  718. package/dist/util/value-drag.js.map +0 -1
@@ -0,0 +1,1238 @@
1
+ import { CSSResultGroup, LitElement, PropertyValues } from "lit";
2
+
3
+ //#region src/colour-picker/types.d.ts
4
+ /**
5
+ * OKLCH colour value representation
6
+ */
7
+ type OklchValue = {
8
+ readonly l: number;
9
+ readonly c: number;
10
+ readonly h: number;
11
+ readonly a?: number;
12
+ };
13
+ /**
14
+ * Event detail for colour picker input/change events
15
+ */
16
+ type ColourPickerEventDetail = OklchValue;
17
+ /**
18
+ * Colour picker custom events
19
+ */
20
+ type ColourPickerInputEvent = CustomEvent<ColourPickerEventDetail>;
21
+ type ColourPickerChangeEvent = CustomEvent<ColourPickerEventDetail>;
22
+ type Range = readonly [number, number];
23
+ type RangeInput = readonly [number, number] | readonly number[];
24
+ /**
25
+ * Augment HTMLElementTagNameMap for the custom element
26
+ */
27
+ declare global {
28
+ interface HTMLElementTagNameMap {
29
+ 'ixfx-colour-picker': ColourPicker;
30
+ }
31
+ } //# sourceMappingURL=types.d.ts.map
32
+ //#endregion
33
+ //#region node_modules/.pnpm/@ixfx+random@0.56.12/node_modules/@ixfx/random/dist/index.d.ts
34
+ //#region src/types.d.ts
35
+ /**
36
+ * A random source.
37
+ *
38
+ * Predefined sources: Math.random, {@link gaussianSource}, {@link weightedSource}
39
+ */
40
+ type RandomSource = () => number;
41
+ //#endregion
42
+ //#region node_modules/.pnpm/@ixfx+geometry@0.56.12/node_modules/@ixfx/geometry/dist/index.d.ts
43
+ type Angle = {
44
+ value: number;
45
+ unit: `deg` | `rad` | `turn` | `grad`;
46
+ };
47
+ /**
48
+ * Parses CSS-style angle strings into an 'Angle' type. By default assumes degrees.
49
+ *
50
+ * ```js
51
+ * angleParse(`100`); // { value: 100, unit: `deg` }
52
+ * angleParse(100); // { value: 100, unit: `deg` }
53
+ * angleParse(`100deg`); // { value: 100, unit: `deg` }
54
+ *
55
+ * // More exotic units:
56
+ * angleParse(`100rad`); // { value: 100, unit: `rad` }
57
+ * angleParse(`100turn`); // { value: 100, unit: `turn` }
58
+ * angleParse(`100grad`); // { value: 100, unit: `grad` }
59
+ * ```
60
+ *
61
+ * Once parsed in this format, use {@link angleConvert} to convert to
62
+ * a different unit.
63
+ * @param value
64
+ * @returns
65
+ */
66
+ //#endregion
67
+ //#region node_modules/.pnpm/@ixfx+visual@0.56.12/node_modules/@ixfx/visual/dist/index-a3KMyMEu.d.ts
68
+ //#region src/colour/types.d.ts
69
+ type HslBase = {
70
+ /**
71
+ * Hue
72
+ */
73
+ h: number;
74
+ /**
75
+ * Saturation
76
+ */
77
+ s: number;
78
+ /**
79
+ * Lightness
80
+ */
81
+ l: number;
82
+ /**
83
+ * Opacity
84
+ */
85
+ opacity?: number;
86
+ space?: `hsl`;
87
+ };
88
+ /**
89
+ * [YCbCr format](https://en.wikipedia.org/wiki/YCbCr)
90
+ */
91
+ type YCbCrBase = {
92
+ /**
93
+ * Luma
94
+ */
95
+ y: number;
96
+ /**
97
+ * Blue difference
98
+ */
99
+ cb: number;
100
+ /**
101
+ * Red difference
102
+ */
103
+ cr: number;
104
+ /**
105
+ * Opacity
106
+ */
107
+ opacity?: number;
108
+ space?: `ycbcr`;
109
+ };
110
+ /**
111
+ * Scalar values use 0..1 for each field
112
+ */
113
+ type YCbCrScalar = YCbCrBase & {
114
+ unit: `scalar`;
115
+ };
116
+ /**
117
+ * Absolute colour use 0..255 for each field
118
+ */
119
+ type YCbCr8bit = YCbCrBase & {
120
+ unit: `8bit`;
121
+ };
122
+ /**
123
+ * [YCbCr format](https://en.wikipedia.org/wiki/YCbCr).
124
+ *
125
+ * By default assumes scalar coordinates (0..1) for each field.
126
+ * Use '8bit' unit for 0..255 ranged values.
127
+ */
128
+ type YCbCr = YCbCrScalar | YCbCr8bit;
129
+ type ColourSpaces = `srgb` | `hsl` | `oklch` | `ycbcr`;
130
+ /**
131
+ * Scalar values use 0..1 for each field
132
+ */
133
+ type HslScalar = HslBase & {
134
+ unit: `scalar`;
135
+ };
136
+ /**
137
+ * Absolute values use hue:0..360, all other fields 0..100
138
+ */
139
+ type HslAbsolute = HslBase & {
140
+ unit: `absolute`;
141
+ };
142
+ /**
143
+ * HSL value.
144
+ * By default assumes scalar coordinates (0..1) for each field.
145
+ * Use 'absolute' unit for hue:0...360, all other fields on 0..100 scale.
146
+ */
147
+ type Hsl = HslScalar | HslAbsolute;
148
+ /**
149
+ * Rgb.
150
+ * Units determine how to interperet rgb values.
151
+ * 'scalar': 0..1 range for RGB & opacity
152
+ * '8bit': 0..255 range for RGB & opacity
153
+ */
154
+ type RgbBase = {
155
+ r: number;
156
+ g: number;
157
+ b: number;
158
+ opacity?: number;
159
+ space?: `srgb`;
160
+ };
161
+ type RgbScalar = RgbBase & {
162
+ unit: `scalar`;
163
+ };
164
+ /**
165
+ * RGB in 0...255 range, including opacity.
166
+ */
167
+ type Rgb8Bit = RgbBase & {
168
+ unit: `8bit`;
169
+ };
170
+ /**
171
+ * Rgb.
172
+ * Units determine how to interperet rgb values.
173
+ * 'scalar': 0..1 range for RGB & opacity
174
+ * '8bit': 0..255 range for RGB & opacity
175
+ */
176
+ type Rgb = RgbScalar | Rgb8Bit;
177
+ type LchBase = {
178
+ /**
179
+ * Lightness/perceived brightnes
180
+ */
181
+ l: number;
182
+ /**
183
+ * Chroma ('amount of colour')
184
+ */
185
+ c: number;
186
+ /**
187
+ * Hue
188
+ */
189
+ h: number;
190
+ /**
191
+ * Opacity on 0..1 scale
192
+ */
193
+ opacity?: number;
194
+ space: `lch` | `oklch`;
195
+ };
196
+ type ColourInterpolator<T extends Colour> = (amount: number) => T;
197
+ type OkLchBase = LchBase & {
198
+ space: `oklch`;
199
+ };
200
+ /**
201
+ * Oklch colour expressed in 0..1 scalar values for LCH & opacity
202
+ */
203
+ type OkLchScalar = OkLchBase & {
204
+ unit: `scalar`;
205
+ };
206
+ /**
207
+ * Oklch colour expressed with:
208
+ * l: 0..1
209
+ * c: 0..4
210
+ * h: 0..360 degrees
211
+ * opacity: 0..1
212
+ */
213
+ type OkLchAbsolute = OkLchBase & {
214
+ unit: `absolute`;
215
+ };
216
+ type OkLch = OkLchAbsolute | OkLchScalar;
217
+ type Colour = {
218
+ opacity?: number;
219
+ } & (Hsl | OkLch | Rgb | YCbCr);
220
+ /**
221
+ * A representation of colour. Eg: `blue`, `rgb(255,0,0)`, `hsl(20,100%,50%)`
222
+ */
223
+ type Colourish = Colour | string;
224
+ /**
225
+ * Options for interpolation
226
+ */
227
+ type ColourInterpolationOpts = {
228
+ direction: `longer` | `shorter`;
229
+ /**
230
+ * Space to do calculations in
231
+ */
232
+ space: ColourSpaces;
233
+ /**
234
+ * Destination of calculated colour
235
+ */
236
+ destination: ConvertDestinations;
237
+ };
238
+ type ColourStepOpts = ColourInterpolationOpts & {
239
+ /**
240
+ * If set, determines total number of steps, including colour stops.
241
+ * Use this _or_ `stepsBetween`.
242
+ */
243
+ stepsTotal?: number;
244
+ /**
245
+ * If set, determines number of steps between colour stops.
246
+ * Use this _or_ `stepsTotal`.
247
+ */
248
+ stepsBetween?: number;
249
+ };
250
+ type ParsingOptions<T> = Partial<{
251
+ scalar: boolean;
252
+ ensureSafe: boolean;
253
+ /**
254
+ * Value to use if input is invalid
255
+ */
256
+ fallbackString: string;
257
+ /**
258
+ * Fallback colour to use if value cannot be parsed
259
+ */
260
+ fallbackColour: T;
261
+ }>;
262
+ type ConvertDestinations = `hsl-scalar` | `hsl-absolute` | `oklch-scalar` | `oklch-absolute` | `srgb-8bit` | `srgb-scalar` | `ycbcr-scalar` | `ycbcr-8bit`; //#endregion
263
+ //#region ../../node_modules/.pnpm/colorizr@4.0.1/node_modules/colorizr/dist/index.d.mts
264
+ type ColorType = 'hex' | 'hsl' | 'oklab' | 'oklch' | 'rgb';
265
+ type HEX = `#${string}`;
266
+ interface Analysis {
267
+ brightnessDifference: number;
268
+ colorDifference: number;
269
+ compliant: number;
270
+ contrast: number;
271
+ largeAA: boolean;
272
+ largeAAA: boolean;
273
+ normalAA: boolean;
274
+ normalAAA: boolean;
275
+ }
276
+ interface HSL {
277
+ /** The alpha/opacity value (0-1). */
278
+ alpha?: number;
279
+ h: number;
280
+ l: number;
281
+ s: number;
282
+ }
283
+ interface LAB {
284
+ a: number;
285
+ /** The alpha/opacity value (0-1). */
286
+ alpha?: number;
287
+ b: number;
288
+ l: number;
289
+ }
290
+ interface LCH {
291
+ /** The alpha/opacity value (0-1). */
292
+ alpha?: number;
293
+ c: number;
294
+ h: number;
295
+ l: number;
296
+ }
297
+ interface RGB {
298
+ /** The alpha/opacity value (0-1). */
299
+ alpha?: number;
300
+ b: number;
301
+ g: number;
302
+ r: number;
303
+ }
304
+ interface ColorizrOptions {
305
+ /**
306
+ * Output color format.
307
+ *
308
+ * If not specified, the output will use the same format as the input color.
309
+ */
310
+ format?: ColorType;
311
+ }
312
+ declare class Colorizr {
313
+ /** The alpha/opacity value (0-1). */
314
+ alpha: number;
315
+ hex: HEX;
316
+ hsl: HSL;
317
+ oklab: LAB;
318
+ oklch: LCH;
319
+ rgb: RGB;
320
+ type: ColorType;
321
+ constructor(color: string | HSL | LAB | LCH | RGB, options?: ColorizrOptions);
322
+ /**
323
+ * Get CSS string
324
+ */
325
+ get css(): string;
326
+ /**
327
+ * Get the red value
328
+ */
329
+ get red(): number;
330
+ /**
331
+ * Get the green value
332
+ */
333
+ get green(): number;
334
+ /**
335
+ * Get the blue value
336
+ */
337
+ get blue(): number;
338
+ /**
339
+ * Get the hue value
340
+ */
341
+ get hue(): number;
342
+ /**
343
+ * Get the saturation value
344
+ */
345
+ get saturation(): number;
346
+ /**
347
+ * Get the lightness value
348
+ */
349
+ get lightness(): number;
350
+ /**
351
+ * Get the luminance value
352
+ */
353
+ get luminance(): number;
354
+ /**
355
+ * Get the chroma value
356
+ */
357
+ get chroma(): number;
358
+ get opacity(): number;
359
+ /**
360
+ * Get the most readable color (light or dark) for this color as a background.
361
+ */
362
+ get readableColor(): string;
363
+ private get currentColor();
364
+ /**
365
+ * Get the brightness difference between this color and another.
366
+ *
367
+ * @param input - The color to compare against.
368
+ * @returns The brightness difference value.
369
+ */
370
+ brightnessDifference(input: string): number;
371
+ /**
372
+ * Get the color difference between this color and another.
373
+ *
374
+ * @param input - The color to compare against.
375
+ * @returns The color difference value.
376
+ */
377
+ colorDifference(input: string): number;
378
+ /**
379
+ * Test 2 colors for WCAG compliance.
380
+ *
381
+ * @param input - The color to compare against.
382
+ * @returns Analysis object with compliance information.
383
+ */
384
+ compare(input: string): Analysis;
385
+ /**
386
+ * Get the contrast ratio between this color and another.
387
+ *
388
+ * @param input - The color to compare against.
389
+ * @returns The contrast ratio.
390
+ */
391
+ contrast(input: string): number;
392
+ /**
393
+ * Format the color to a specific type.
394
+ *
395
+ * @param type - The color format to convert to.
396
+ * @param precision - The decimal precision for the output.
397
+ * @returns The formatted color string.
398
+ */
399
+ format(type: ColorType, precision?: number): string;
400
+ /**
401
+ * Increase lightness.
402
+ *
403
+ * @param amount - A number between 0 and 100.
404
+ * @returns The lightened color string.
405
+ */
406
+ lighten(amount: number): string;
407
+ /**
408
+ * Decrease lightness.
409
+ *
410
+ * @param amount - A number between 0 and 100.
411
+ * @returns The darkened color string.
412
+ */
413
+ darken(amount: number): string;
414
+ /**
415
+ * Increase saturation.
416
+ *
417
+ * @param amount - A number between 0 and 100.
418
+ * @returns The saturated color string.
419
+ */
420
+ saturate(amount: number): string;
421
+ /**
422
+ * Decrease saturation.
423
+ *
424
+ * @param amount - A number between 0 and 100.
425
+ * @returns The desaturated color string.
426
+ */
427
+ desaturate(amount: number): string;
428
+ /**
429
+ * Convert to grayscale.
430
+ *
431
+ * @returns The grayscale color string.
432
+ */
433
+ grayscale(): string;
434
+ /**
435
+ * Invert color.
436
+ *
437
+ * @returns The inverted color string.
438
+ */
439
+ invert(): string;
440
+ /**
441
+ * Mix with another color.
442
+ *
443
+ * @param color - The color to mix with.
444
+ * @param ratio - A number between 0 and 1 (0 = this color, 1 = input color).
445
+ * @returns The mixed color string.
446
+ */
447
+ mix(color: string, ratio?: number): string;
448
+ /**
449
+ * Add opacity to the color.
450
+ *
451
+ * @param alpha - A number between 0 and 1.
452
+ * @returns The opacified color string.
453
+ */
454
+ opacify(alpha?: number): string;
455
+ /**
456
+ * Rotate color hue.
457
+ *
458
+ * @param degrees - A number between -360 and 360.
459
+ * @returns The rotated color string.
460
+ */
461
+ rotate(degrees: number): string;
462
+ /**
463
+ * Make the color more transparent.
464
+ *
465
+ * @param alpha - A number between -1 and 1.
466
+ * @returns The transparentized color string.
467
+ */
468
+ transparentize(alpha?: number): string;
469
+ }
470
+ /**
471
+ * Check 2 colors for WCAG compliance.
472
+ *
473
+ * @param left - The first color string.
474
+ * @param right - The second color string.
475
+ * @returns Analysis object with WCAG compliance information.
476
+ */
477
+ //#endregion
478
+ //#region src/colour/conversion.d.ts
479
+ declare function convert<T extends ConvertDestinations>(colour: Colourish, destination: T): T extends `oklch-absolute` ? OkLchAbsolute : T extends `oklch-scalar` ? OkLchScalar : T extends `srgb-8bit` ? Rgb8Bit : T extends `srgb-scalar` ? RgbScalar : T extends `hsl-scalar` ? HslScalar : T extends `hsl-absolute` ? HslAbsolute : never;
480
+ /**
481
+ * Like {@link convert}, but result is a CSS colour string
482
+ * @param colour
483
+ * @param destination
484
+ */
485
+ declare function convertToString(colour: Colourish, destination: ConvertDestinations): string;
486
+ /**
487
+ * Converts some kind of colour into a scalar representation. Supports oklch, hsl and srgb.
488
+ * @param colour Colour to convert
489
+ * @param destination Destination colour format
490
+ */
491
+ declare function convertScalar<T extends ColourSpaces>(colour: Colourish, destination: T): T extends `oklch` ? OkLchScalar : T extends `hsl` ? HslScalar : T extends `srgb` ? RgbScalar : never;
492
+ declare function toCssColour(colour: Colourish | object): string;
493
+ declare function toHexColour(colour: Colourish | object): string;
494
+ declare function toLibraryColour(colour: Colourish): Colorizr;
495
+ declare function guard$4(colour: Colour): void;
496
+ declare function toColour(colourish: any): Colour;
497
+ /**
498
+ * Returns a CSS-ready string
499
+ * representation.
500
+ * ```js
501
+ * element.style.backgroundColor = resolveToString(`red`);
502
+ * ```
503
+ *
504
+ * Tries each parameter in turn, returning the value
505
+ * for the first that resolves. This can be useful for
506
+ * having fallback values.
507
+ *
508
+ * ```js
509
+ * // Try a CSS variable, a object property or finally fallback to red.
510
+ * element.style.backgroundColor = toStringFirst('--some-var', opts.background, `red`);
511
+ * ```
512
+ * @param colours Array of colours to resolve
513
+ */
514
+ declare function toStringFirst(...colours: Array<Colourish | undefined>): string;
515
+ declare function rgbToHsl(rgb: Rgb, scalarResult: true): HslScalar;
516
+ declare function rgbToHsl(rgb: Rgb, scalarResult: false): HslAbsolute; //#endregion
517
+ //#region src/colour/css-colours.d.ts
518
+ /**
519
+ * Converts from some kind of colour that is legal in CSS
520
+ * into a structured Colour type.
521
+ *
522
+ * Handles: hex format, CSS variables, colour names
523
+ * ```js
524
+ * fromCssColour(`#ffffff`);
525
+ * fromCssColour(`blue`);
526
+ * fromCssColour(`--some-variable`);
527
+ * fromCssColour(`hsl(50, 50%, 50%)`);
528
+ * fromCssColour(`rgb(50, 100, 100)`);
529
+ * ```
530
+ * @param colour
531
+ * @returns
532
+ */
533
+ declare const fromCssColour: (colour: string) => Colour;
534
+ /**
535
+ * Resolves a named colour to a colour string.
536
+ *
537
+ * ```js
538
+ * resolveCss(`red`);
539
+ * ```
540
+ * @param colour CSS named colour
541
+ * @returns
542
+ */
543
+ declare function resolveCss(colour: CssColourNames): string;
544
+ type CssColourNames = keyof typeof cssDefinedHexColours;
545
+ declare const cssDefinedHexColours: Record<string, string>; //#endregion
546
+ //#region src/colour/generate.d.ts
547
+ /**
548
+ * Returns a full HSL colour string (eg `hsl(20,50%,75%)`) based on a index.
549
+ * It's useful for generating perceptually different shades as the index increments.
550
+ *
551
+ * ```
552
+ * el.style.backgroundColor = goldenAgeColour(10);
553
+ * ```
554
+ *
555
+ * Saturation and lightness can be specified, as numeric ranges of 0-1.
556
+ *
557
+ * @param saturation Saturation (0-1), defaults to 0.5
558
+ * @param lightness Lightness (0-1), defaults to 0.75
559
+ * @param alpha Opacity (0-1), defaults to 1.0
560
+ * @returns HSL colour string eg `hsl(20,50%,75%)`
561
+ */
562
+ declare const goldenAngleColour: (index: number, saturation?: number, lightness?: number, alpha?: number) => string;
563
+ /**
564
+ * Returns a random hue component (0..359)
565
+ *
566
+ * ```
567
+ * // Generate hue
568
+ * const h = randomHue(); // 0-359
569
+ *
570
+ * // Generate hue and assign as part of a HSL string
571
+ * el.style.backgroundColor = `hsl(${randomHue(), 50%, 75%})`;
572
+ * ```
573
+ * @param rand
574
+ * @returns
575
+ */
576
+ declare const randomHue: (rand?: RandomSource) => number; //#endregion
577
+ //#region src/colour/guards.d.ts
578
+ declare function isHsl(v: any): v is Hsl;
579
+ declare function isRgb(v: any): v is Rgb;
580
+ /**
581
+ * If the input object has r,g&b properties, it will return a fully-
582
+ * formed Rgb type with `unit` and `space` properties.
583
+ *
584
+ * If it lacks these basic three properties or they are out of range,
585
+ * _undefined_ is returned.
586
+ *
587
+ * If RGB values are less than 1 assumes unit:scalar. Otherwise unit:8bit.
588
+ * If RGB values exceed 255, _undefined_ returned.
589
+ * @param v
590
+ * @returns
591
+ */
592
+ declare function tryParseObjectToRgb(v: any): Rgb | undefined;
593
+ declare function tryParseObjectToHsl(v: any): Hsl | undefined;
594
+ declare function isOkLch(v: any): v is OkLch;
595
+ declare function isColourish(v: any): v is Colourish;
596
+ declare namespace hsl_d_exports {
597
+ export { absolute$1 as absolute, changeLightness$1 as changeLightness, fromCss$3 as fromCss, fromHexString$3 as fromHexString, generateScalar$1 as generateScalar, guard$3 as guard, interpolator$3 as interpolator, parseCssHslFunction, scalar$3 as scalar, toAbsolute$1 as toAbsolute, toCssString$2 as toCssString, toHexString$3 as toHexString, toLibraryRgb, toScalar$3 as toScalar, withOpacity$3 as withOpacity };
598
+ }
599
+ /**
600
+ * Scales the opacity value of an input HSL value
601
+ * ```js
602
+ * withOpacity()
603
+ * ```
604
+ * @param value Colour
605
+ * @param fn Function that calcules opacity based on input scalar value
606
+ */
607
+ declare function withOpacity$3<T extends Hsl>(value: T, fn: (opacityScalar: number, value: T) => number): T;
608
+ /**
609
+ * Increases or decreases lightness by this percentage, returning new colour
610
+ *
611
+ * Amount to change:
612
+ * 'fixed': a fixed amount
613
+ * 'delta': increase/decrease by this amount
614
+ * 'pdelta': proportion of current value to change by ('percentage delta')
615
+ *
616
+ * ```
617
+ * const colour = { h: 0.5, s: 0.5, l: 0.5, space: `hsl`, unit: `scalar` };
618
+ * changeLightness(colour, { pdelta: 0.1 }); // l: 0.55
619
+ * changeLightness(colour, { delta: 0.1 }); // l: 0.6
620
+ * changeLightness(colour, { fixed: 0.5 }); // l: 0.5
621
+ * ```
622
+ *
623
+ * Keep in mind the numerical value will depend on the unit of `value`. If it's scalar,
624
+ * lightness is 0..1 scale, otherwise 0..100 scale.
625
+ *
626
+ * Use negative values to decrease (does not apply to 'fixed')
627
+ * @param value Hsl colour
628
+ * @param amount Amount to change
629
+ */
630
+ declare function changeLightness$1(value: Hsl, amount: Partial<{
631
+ pdelta: number;
632
+ delta: number;
633
+ fixed: number;
634
+ }>): Hsl;
635
+ declare function fromHexString$3<T extends ParsingOptions<Hsl>>(hexString: string, scalar: T): T extends {
636
+ scalar: true;
637
+ } ? HslScalar : HslAbsolute;
638
+ declare function fromCss$3<T extends ParsingOptions<Hsl>>(value: string, options?: T): T extends {
639
+ scalar: true;
640
+ } ? HslScalar : HslAbsolute;
641
+ declare function toCssString$2(hsl: Hsl): string;
642
+ declare function toHexString$3(hsl: Hsl): string;
643
+ declare function toAbsolute$1(hslOrString: Hsl | Rgb | string): HslAbsolute;
644
+ /**
645
+ * Generates a {@link HslScalar} value.
646
+ *
647
+ * ```js
648
+ * generateScaler(10); // 10deg, default to full saturation, half lightness and full opacity
649
+ *
650
+ * // Generate HSL value from radian angle and 50% saturation
651
+ * generateScalar(`10rad`, 0.5);
652
+ *
653
+ * // Generate from numeric CSS variable
654
+ * generateScalar(`--hue`);
655
+ * ```
656
+ * @param absoluteHslOrVariable Hue angle or CSS variable
657
+ * @param saturation
658
+ * @param lightness
659
+ * @param opacity
660
+ */
661
+ declare function generateScalar$1(absoluteHslOrVariable: string | number | Angle, saturation?: number, lightness?: number, opacity?: number): HslScalar;
662
+ /**
663
+ * Converts a {@link Hsl} value to scalar units, or parses a colour string
664
+ * and converts it.
665
+ *
666
+ * ```js
667
+ * toScalar({ h: 100, s: 50, l: 100, unit: `absolute` });
668
+ * toScalar(`red`);
669
+ * ```
670
+ * @param colour
671
+ */
672
+ declare function toScalar$3(colour: Rgb | Hsl | string): HslScalar;
673
+ declare function guard$3(hsl: Hsl): void;
674
+ declare function interpolator$3(a: Hsl | string, b: Hsl | string, direction?: `longer` | `shorter`): (amount: number) => HslScalar;
675
+ /**
676
+ * Creates a HslScalar value from scalar (0..1) values
677
+ * @param hue
678
+ * @param sat
679
+ * @param lightness
680
+ * @param opacity
681
+ */
682
+ declare function scalar$3(hue?: number, sat?: number, lightness?: number, opacity?: number): HslScalar;
683
+ declare function absolute$1(hue?: number, sat?: number, lightness?: number, opacity?: number): HslAbsolute;
684
+ /**
685
+ * It seems Colorizr can't handle 'deg' units
686
+ * @param value
687
+ */
688
+ declare function parseCssHslFunction(value: string): Hsl;
689
+ /**
690
+ * Converts a Hsl structure (or CSS string) to Colorizr's RGB format
691
+ * @param hsl HSL colour
692
+ */
693
+ declare function toLibraryRgb(hsl: Hsl | string): RGB; //#endregion
694
+ //#region src/colour/interpolate.d.ts
695
+ /**
696
+ * Returns a function to interpolate between colours, with results as a structured {@link Colour} object.
697
+ * ```js
698
+ * const i = interpolator([`orange`, `yellow`, `red`]);
699
+ *
700
+ * // Get a random colour on the above spectrum
701
+ * i(Math.random());
702
+ * ```
703
+ *
704
+ * Results will vary depending on the colour space used, play with the options.
705
+ * When using a hue-based colour space, the `hue` option sets the logic for how hue values wrap.
706
+ *
707
+ * ```js
708
+ * interpolator([`orange`, `yellow`, `red`], { space: `hsl`, hue: `longer })
709
+ * ```
710
+ *
711
+ * Example: Draw the interpolation as a spectrum on a canvas, where each pixel is one step
712
+ * ```js
713
+ * let v = 0;
714
+ * let incrementBy = 0.01;
715
+ * while (v <= 1) {
716
+ * // Get colour at this interpolation point 0..1
717
+ * const colour = fn(v);
718
+ * // Convert to a CSS string
719
+ * ctx.fillStyle = Colour.toCssColour(colour);
720
+ * // Draw a 1px wide rect, and shuffle along to the next x position
721
+ * ctx.fillRect(x, y, 1, h);
722
+ * x += 1;
723
+ * v += incrementBy;
724
+ * }
725
+ * ```
726
+ * @param colours Colours to interpolate between
727
+ * @param opts Options for interpolation
728
+ * @returns Function that interpolates based on an amount, returning a structured Colour
729
+ */
730
+ declare function interpolator$2(colours: Colourish[], opts?: Partial<ColourInterpolationOpts>): (amt: number) => Colour;
731
+ /**
732
+ * Returns a CSS `linear-gradient` with stops corresponding to the given list of `colours`.
733
+ * ```js
734
+ * element.style.background = Colour.cssLinearGradient(['red','green','blue']);
735
+ * ```
736
+ * @param colours
737
+ * @returns A 'linear-gradient' string for use in CSS, eg for background.
738
+ */
739
+ declare function cssLinearGradient(colours: Colourish[]): string;
740
+ /**
741
+ * Returns a function that interpolates between two colours. Returns string colour values.
742
+ * If you want the result as a structured colour, use {@link interpolatorDual} instead.
743
+ *
744
+ * By default takes a shorter direction and uses the OkLCH colourspace.
745
+ * ```js
746
+ * const i = interpolator(`blue`, `red`);
747
+ * i(0.5); // Get the colour at 50%, as a string.
748
+ * ```
749
+ *
750
+ * To work with structured colour values, use one of the space's `interpolate` functions.
751
+ *
752
+ * If you want to create discrete steps, consider {@link createSteps} or {@link scale}.
753
+ *
754
+ * @param colourA First colour
755
+ * @param colourB Second colour
756
+ * @param options Interpolation options. By default uses shorter direction and OkLCH colour space.
757
+ */
758
+ declare function interpolatorDualToString(colourA: Colourish, colourB: Colourish, options?: Partial<ColourInterpolationOpts>): ((amount: number) => string);
759
+ /**
760
+ * Returns a function that interpolates between two colours. Returns structured colour values.
761
+ * If you want the result as a ready-to-use CSS string, use {@link interpolatorDualToString} instead.
762
+ *
763
+ * By default takes a shorter direction and uses the OkLCH colourspace.
764
+ * ```js
765
+ * const i = interpolator(`blue`, `red`);
766
+ * i(0.5); // Get the colour at 50%, as a Colour structure.
767
+ * ```
768
+ *
769
+ * If you want to create discrete steps, consider {@link createSteps} or {@link scale}.
770
+ * @param colourA First colour
771
+ * @param colourB Second colour
772
+ * @param options Interpolation options. By default uses shorter direction and OkLCH colour space.
773
+ * @returns Function that interpolates between two colours, returning a structured Colour
774
+ */
775
+ declare function interpolatorDual(colourA: Colourish, colourB: Colourish, options?: Partial<ColourInterpolationOpts>): (amount: number) => Colour;
776
+ /**
777
+ * Produces a stepped scale of colours.
778
+ *
779
+ * Builds off {@link createSteps} which can only step between two colours.
780
+ *
781
+ * ```js
782
+ * // A scale of from red to green, with three colours in-between
783
+ * const steps = Colour.scale([ `red`, `green` ], { stepsBetween: 3 });
784
+ * for (const step of steps) {
785
+ * // A CSS colour string
786
+ * }
787
+ * ```
788
+ *
789
+ * {@link cssLinearGradient} can produce a smooth gradient in CSS on the basis
790
+ * of the stepped colours.
791
+ * @param colours
792
+ * @param opts
793
+ * @returns Array of colours in string form
794
+ */
795
+ declare function scale(colours: Colourish[], opts?: Partial<ColourStepOpts>): string[];
796
+ type CreateStepsOptions = Partial<{
797
+ space: ColourSpaces;
798
+ steps: number;
799
+ direction: `longer` | `shorter`;
800
+ exclusive: boolean;
801
+ }>;
802
+ /**
803
+ * Creates discrete colour steps between two colours.
804
+ *
805
+ * Use {@link scale} to create steps between any number of colours.
806
+ *
807
+ * Start and end colours are included (and counted as a step) unless `exclusive` is set to _true_
808
+ *
809
+ * ```js
810
+ * // Array of five HslScalar
811
+ * createSteps(`red`,`blue`, { steps: 5 });
812
+ * ```
813
+ *
814
+ * Defaults to the oklch colour space, 5 steps and non-exclusive.
815
+ * @param a Start colour
816
+ * @param b End colour
817
+ * @param options
818
+ * @returns Colour steps
819
+ */
820
+ declare function createSteps<T extends CreateStepsOptions>(a: Colourish | string, b: Colourish, options: T): T extends {
821
+ space: `oklch`;
822
+ } ? OkLchScalar[] : T extends {
823
+ space: `srgb`;
824
+ } ? RgbScalar[] : T extends {
825
+ space: `hsl`;
826
+ } ? HslScalar[] : OkLchScalar[]; //#endregion
827
+ //#region src/colour/math.d.ts
828
+ declare function multiplyOpacity<T extends Colourish>(colourish: T, amount: number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
829
+ /**
830
+ * Does a computation with the opacity of a colour, returning colour string
831
+ * @param colourish Colour
832
+ * @param fn Function that takes original opacity as input and returns output opacity
833
+ */
834
+ /**
835
+ * Does a computation with the opacity of a colour in a HSL structure
836
+ * @param hsl Colour
837
+ * @param fn Function that takes original opacity as input and returns output opacity
838
+ */
839
+ /**
840
+ * Does a computation with the opacity of a colour in a RGB structure
841
+ * @param colourish Colour
842
+ * @param fn Function that takes original opacity as input and returns output opacity
843
+ */
844
+ declare function withOpacity$2<T extends Colourish>(colourish: T, fn: (scalarOpacity: number) => number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
845
+ declare function setOpacity<T extends Colourish>(colourish: T, amount: number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
846
+ declare namespace oklch_d_exports {
847
+ export { OKLCH_CHROMA_MAX, absolute, fromCss$2 as fromCss, fromHexString$2 as fromHexString, fromLibrary, generateScalar, guard$2 as guard, interpolator$1 as interpolator, scalar$2 as scalar, toAbsolute, toCssString$1 as toCssString, toHexString$2 as toHexString, toScalar$2 as toScalar, withOpacity$1 as withOpacity };
848
+ }
849
+ declare const OKLCH_CHROMA_MAX = .4;
850
+ declare function guard$2(lch: OkLch): void;
851
+ /**
852
+ * Coverts from the Colorizr library
853
+ * Tests ranges:
854
+ * l: 0..1
855
+ * c: 0..1
856
+ * h: 0..360
857
+ * alpha: 0..1
858
+ *
859
+ * Default option: { scalar: true }
860
+ * @param lch LCH value
861
+ * @param parsingOptions Options for parsing
862
+ */
863
+ declare function fromLibrary<T extends ParsingOptions<OkLch>>(lch: LCH, parsingOptions: T): T extends {
864
+ scalar: true;
865
+ } ? OkLchScalar : OkLchAbsolute;
866
+ /**
867
+ * Parse a HEX-formatted colour into OkLch structured format
868
+ * @param hexString
869
+ * @param options
870
+ */
871
+ declare function fromHexString$2(hexString: string, options?: ParsingOptions<OkLch>): OkLch;
872
+ /**
873
+ * Converts from some CSS-representation of colour to a structured OkLch format.
874
+ *
875
+ * ```js
876
+ * fromCss(`yellow`);
877
+ * fromCss(`rgb(100,200,90)`);
878
+ * fromCss(`#ff00ff`);
879
+ * ```
880
+ *
881
+ * By default returns a {@link OkLchScalar} (relative) representation. Use the flag 'scalar:true' to get back
882
+ * {@link OkLchAbsolute}.
883
+ * @param value
884
+ * @param options
885
+ */
886
+ declare function fromCss$2<T extends ParsingOptions<OkLch>>(value: string, options: T): T extends {
887
+ scalar: true;
888
+ } ? OkLchScalar : OkLchAbsolute;
889
+ /**
890
+ * Returns a string or {@link OkLch} value to absolute form.
891
+ *
892
+ * This means ranges are:
893
+ * lightness: 0..1
894
+ * chroma: 0...CHROMA_MAX (0.4)
895
+ * hue: 0..360
896
+ * @param lchOrString
897
+ */
898
+ declare function toAbsolute(lchOrString: OkLch | string): OkLchAbsolute;
899
+ declare function toScalar$2(lchOrString: OkLch | string): OkLchScalar;
900
+ /**
901
+ * Returns the colour as a CSS colour string: `oklch(l c h / opacity)`.
902
+ *
903
+ * @param lch Colour
904
+ * @param precision Set precision of numbers, defaults to 3
905
+ * @returns CSS colour string
906
+ */
907
+ declare function toCssString$1(lch: OkLch, precision?: number): string;
908
+ declare function toHexString$2(lch: OkLch): string;
909
+ declare function generateScalar(absoluteHslOrVariable: string | number | Angle, chroma?: number, lightness?: number, opacity?: number): OkLchScalar;
910
+ /**
911
+ * Scales the opacity value of an input Oklch value
912
+ * ```js
913
+ * withOpacity()
914
+ * ```
915
+ * @param value
916
+ * @param fn
917
+ */
918
+ declare function withOpacity$1<T extends OkLch>(value: T, fn: (opacityScalar: number, value: T) => number): T;
919
+ declare function interpolator$1(a: OkLch | string, b: OkLch | string, direction?: `longer` | `shorter`): (amount: number) => OkLchScalar;
920
+ declare function scalar$2(lightness?: number, chroma?: number, hue?: number, opacity?: number): OkLchScalar;
921
+ /**
922
+ * Create an LCH colour using absolute hue
923
+ * @param l Lightness 0..1
924
+ * @param c Chroma 0..4
925
+ * @param h Hue 0..360
926
+ * @param opacity
927
+ */
928
+ declare function absolute(l: number, c: number, h: number, opacity?: number): OkLchAbsolute;
929
+ declare namespace srgb_d_exports {
930
+ export { changeLightness, eightBit$1 as eightBit, fromCss$1 as fromCss, fromHexString$1 as fromHexString, guard$1 as guard, interpolator, lightness, parseCssRgbFunction, scalar$1 as scalar, to8bit$1 as to8bit, toCssString, toHexString$1 as toHexString, toLibraryHsl, toScalar$1 as toScalar, withOpacity };
931
+ }
932
+ declare function withOpacity<T extends Rgb>(value: T, fn: (opacityScalar: number, value: T) => number): T;
933
+ declare function fromHexString$1<T extends boolean>(hexString: string, scalar: T): T extends true ? RgbScalar : Rgb8Bit;
934
+ declare function fromCss$1<T extends ParsingOptions<Rgb>>(value: string, options: T): T extends {
935
+ scalar: true;
936
+ } ? RgbScalar : Rgb8Bit;
937
+ declare function toHexString$1(rgb: Rgb): string;
938
+ declare function toCssString(rgb: Rgb): string;
939
+ declare function to8bit$1(rgbOrString: Rgb | string): Rgb8Bit;
940
+ declare function toScalar$1(rgbOrString: Rgb | Hsl | string): RgbScalar;
941
+ declare function guard$1(rgb: Rgb): void;
942
+ /**
943
+ * Sets the lightness value.
944
+ *
945
+ * Amount to change:
946
+ * 'fixed': a fixed amount
947
+ * 'delta': increase/decrease by this amount
948
+ * 'pdelta': proportion of current value to change by ('percentage delta')
949
+ *
950
+ * Use negative values to decrease
951
+ * @param rgb Colour
952
+ * @param amount Amount to change
953
+ */
954
+ declare function changeLightness(rgb: Rgb, amount: Partial<{
955
+ pdelta: number;
956
+ delta: number;
957
+ fixed: number;
958
+ }>): Rgb;
959
+ /**
960
+ * Returns a lightness value (0..1) for an RGB input
961
+ *
962
+ * Calculates lightness by converting to Oklab and using the 'L' value
963
+ * @param rgb
964
+ */
965
+ declare function lightness(rgb: Rgb): number;
966
+ /**
967
+ * Creates a Rgb8Bit value from 8bit (0..255) values
968
+ * @param red
969
+ * @param green
970
+ * @param blue
971
+ * @param opacity
972
+ */
973
+ declare function eightBit$1(red?: number, green?: number, blue?: number, opacity?: number): Rgb8Bit;
974
+ /**
975
+ * Creates a RgbScalar value from scalar (0..1) values
976
+ * @param red
977
+ * @param green
978
+ * @param blue
979
+ * @param opacity
980
+ */
981
+ declare function scalar$1(red?: number, green?: number, blue?: number, opacity?: number): RgbScalar;
982
+ /**
983
+ * It seems Colorizr can't handle % values properly :'(
984
+ * @param value
985
+ */
986
+ declare function parseCssRgbFunction(value: string): Rgb;
987
+ /**
988
+ * Interpolates colours in Srgb space. Probably
989
+ * really ugly, use OkLch space isntead.
990
+ *
991
+ * ```js
992
+ * const i = interpolator(`red`, `blue`);
993
+ * i(0.5); // Get 50% between these colours
994
+ * ```
995
+ * @param colourA
996
+ * @param colourB
997
+ */
998
+ declare function interpolator(colourA: Rgb | string, colourB: Rgb | string): (amount: number) => RgbScalar;
999
+ /**
1000
+ * Converts a Rgb structure (or CSS string) to Colorizr's HSL format
1001
+ * @param rgb
1002
+ */
1003
+ declare function toLibraryHsl(rgb: Rgb | string): HSL; //#endregion
1004
+ //#region src/colour/to-integer.d.ts
1005
+ /**
1006
+ * Encode 8-bit RGB values into a 24-bit value (0...16_777_215)
1007
+ *
1008
+ * Assumes RGB values are within 0..255 range
1009
+ * @param rgb
1010
+ * @returns
1011
+ */
1012
+ declare function encodeRgbTo24Bit(rgb: Rgb8Bit | RgbBase): number;
1013
+ /**
1014
+ * Decode a 24-bit number (0...16_777_215) into 8-bit RGB
1015
+ * @param colour
1016
+ * @returns
1017
+ */
1018
+ declare function decodeRgbFrom24Bit(colour: number): Rgb8Bit;
1019
+ /**
1020
+ * Encodes 8-bit RGB value into 16-bit RGB565 (0..65_535)
1021
+ * 5-bit are used for R & B channels, 6 bits for G
1022
+ *
1023
+ * Read more: https://rgbcolorpicker.com/565
1024
+ * @param rgb
1025
+ * @returns
1026
+ */
1027
+ declare function encodeRgbTo16Bit565(rgb: Rgb8Bit | RgbBase): number;
1028
+ /**
1029
+ * Decodes 8-bit RGB value from a 16-bit RGB565 value (0...65_535)
1030
+ * Read more: https://rgbcolorpicker.com/565
1031
+ * @param colour
1032
+ * @returns
1033
+ */
1034
+ declare function decodeRgbFrom16Bit565(colour: number): Rgb8Bit;
1035
+ declare namespace ycbcr_d_exports {
1036
+ export { eightBit, fromCss, fromHexString, fromSrgTo8bit, guard, scalar, to8bit, toHexString, toScalar, toSrgb8bit };
1037
+ }
1038
+ /**
1039
+ * Creates a YCbCr8bit value from 8bit (0..255) values
1040
+ * @param y Luma 0..255
1041
+ * @param cb Chroma blue 0..255
1042
+ * @param cr Chroma red 0..255
1043
+ * @param opacity 0..255
1044
+ * @returns YCbCr8bit
1045
+ */
1046
+ declare function eightBit(y?: number, cb?: number, cr?: number, opacity?: number): YCbCr8bit;
1047
+ /**
1048
+ * Creates a YCbCr8bit value from scalar (0..1) values
1049
+ * @param y Luma 0..1
1050
+ * @param cb Chroma blue 0..1
1051
+ * @param cr Chroma red 0..1
1052
+ * @param opacity 0..1
1053
+ * @returns YCbCrScalar
1054
+ */
1055
+ declare function scalar(y?: number, cb?: number, cr?: number, opacity?: number): YCbCrScalar;
1056
+ /**
1057
+ * Converts from scalar or 8bit RGB to YCbCr8bit
1058
+ * @param rgb
1059
+ * @returns
1060
+ */
1061
+ declare function fromSrgTo8bit(rgb: Rgb): YCbCr8bit;
1062
+ declare function toSrgb8bit(ycbcr: YCbCr): Rgb8Bit;
1063
+ /**
1064
+ * Returns a YCbCr8bit format from either scalar or 8bit.
1065
+ * If the input is already 8bit, it is returned as-is.
1066
+ * @param ycbcr 8bit or scalar YCbCr value
1067
+ * @returns YCbCr8bit
1068
+ */
1069
+ declare function to8bit(ycbcr: YCbCr): YCbCr8bit;
1070
+ declare function fromHexString<T extends ParsingOptions<YCbCr>>(hexString: string, scalar: T): T extends {
1071
+ scalar: true;
1072
+ } ? YCbCrScalar : YCbCr8bit;
1073
+ declare function fromCss<T extends ParsingOptions<YCbCr>>(value: string, options: T): T extends {
1074
+ scalar: true;
1075
+ } ? YCbCrScalar : YCbCr8bit;
1076
+ declare function toScalar(colour: YCbCr | Rgb | string): YCbCrScalar;
1077
+ declare function guard(rgb: YCbCr): void;
1078
+ /**
1079
+ * Converts a YCbCr colour to a RGB hex string.
1080
+ * @param ycbcr
1081
+ * @returns
1082
+ */
1083
+ declare function toHexString(ycbcr: YCbCr): string;
1084
+ declare namespace index_d_exports {
1085
+ export { Colour, ColourInterpolationOpts, ColourInterpolator, ColourSpaces, ColourStepOpts, Colourish, ConvertDestinations, CreateStepsOptions, CssColourNames, Hsl, HslAbsolute, HslBase, HslScalar, hsl_d_exports as HslSpace, LchBase, OkLch, OkLchAbsolute, OkLchBase, OkLchScalar, oklch_d_exports as OklchSpace, ParsingOptions, Rgb, Rgb8Bit, RgbBase, RgbScalar, srgb_d_exports as SrgbSpace, YCbCr, YCbCr8bit, YCbCrBase, YCbCrScalar, ycbcr_d_exports as YCbCrSpace, convert, convertScalar, convertToString, createSteps, cssDefinedHexColours, cssLinearGradient, decodeRgbFrom16Bit565, decodeRgbFrom24Bit, encodeRgbTo16Bit565, encodeRgbTo24Bit, fromCssColour, goldenAngleColour, guard$4 as guard, interpolator$2 as interpolator, interpolatorDual, interpolatorDualToString, isColourish, isHsl, isOkLch, isRgb, multiplyOpacity, randomHue, resolveCss, rgbToHsl, scale, setOpacity, toColour, toCssColour, toHexColour, toLibraryColour, toStringFirst, tryParseObjectToHsl, tryParseObjectToRgb, withOpacity$2 as withOpacity };
1086
+ } //#endregion
1087
+ //#endregion
1088
+ //#region src/colour-picker/colour-picker.d.ts
1089
+ declare class ColourPicker extends LitElement {
1090
+ l: number;
1091
+ c: number;
1092
+ h: number;
1093
+ a: number;
1094
+ hidePreview: boolean;
1095
+ hideH: boolean;
1096
+ hideL: boolean;
1097
+ hideC: boolean;
1098
+ showA: boolean;
1099
+ horizontal: boolean;
1100
+ slidersVertical: boolean;
1101
+ hideTooltips: boolean;
1102
+ private _valueAttr;
1103
+ rangeLAttr: string | null;
1104
+ rangeCAttr: string | null;
1105
+ rangeHAttr: string | null;
1106
+ rangeAAttr: string | null;
1107
+ private _ranges;
1108
+ _sliderL: HTMLElement;
1109
+ _sliderC: HTMLElement;
1110
+ _sliderH: HTMLElement;
1111
+ _sliderA: HTMLElement;
1112
+ _previewEl: HTMLElement;
1113
+ private _defaultL;
1114
+ private _defaultC;
1115
+ private _defaultH;
1116
+ private _defaultA;
1117
+ private readonly _userInitiated;
1118
+ get value(): string;
1119
+ set value(colourString: string);
1120
+ /**
1121
+ * Set the colour from any ixfx-compatible format (CSS string, OkLch object,
1122
+ * HSL object, etc.). Also updates the double-click reset defaults for all
1123
+ * sliders.
1124
+ */
1125
+ setColour(colour: index_d_exports.Colourish): void;
1126
+ get rangeL(): Range;
1127
+ set rangeL(range: RangeInput);
1128
+ get rangeC(): Range;
1129
+ set rangeC(range: RangeInput);
1130
+ get rangeH(): Range;
1131
+ set rangeH(range: RangeInput);
1132
+ get rangeA(): Range;
1133
+ set rangeA(range: RangeInput);
1134
+ setRangeL(range: RangeInput): void;
1135
+ setRangeC(range: RangeInput): void;
1136
+ setRangeH(range: RangeInput): void;
1137
+ setRangeA(range: RangeInput): void;
1138
+ willUpdate(changedProperties: PropertyValues): void;
1139
+ private _applyRangeInput;
1140
+ private _coerceRangeInput;
1141
+ private _setRangeFromAttribute;
1142
+ private _setRange;
1143
+ private _getRange;
1144
+ private _parseRangeString;
1145
+ private _normalizeRange;
1146
+ private _clampToRange;
1147
+ render(): import("lit").TemplateResult<1>;
1148
+ firstUpdated(changedProperties: PropertyValues): void;
1149
+ updated(changedProperties: PropertyValues): void;
1150
+ _updateGradients(): void;
1151
+ _onInput: (e: Event, channel: `l` | `c` | `h` | `a`) => void;
1152
+ _onChange: (e: Event, channel: `l` | `c` | `h` | `a`) => void;
1153
+ _dispatchInput(): void;
1154
+ _dispatchChange(): void;
1155
+ static styles: CSSResultGroup;
1156
+ }
1157
+ declare global {
1158
+ interface HTMLElementTagNameMap {
1159
+ 'ixfx-colour-picker': ColourPicker;
1160
+ }
1161
+ } //# sourceMappingURL=colour-picker.d.ts.map
1162
+ //#endregion
1163
+ //#region src/colour-picker/colour-picker-popup.d.ts
1164
+ declare const PICKER_SIZES: {
1165
+ readonly small: {
1166
+ readonly width: 130;
1167
+ readonly height: 100;
1168
+ };
1169
+ readonly medium: {
1170
+ readonly width: 100;
1171
+ readonly height: 155;
1172
+ };
1173
+ readonly large: {
1174
+ readonly width: 200;
1175
+ readonly height: 180;
1176
+ };
1177
+ readonly huge: {
1178
+ readonly width: 290;
1179
+ readonly height: 240;
1180
+ };
1181
+ };
1182
+ type PickerSize = keyof typeof PICKER_SIZES;
1183
+ declare class ColourPickerPopup extends LitElement {
1184
+ mode: `fluid` | `confirm`;
1185
+ l: number;
1186
+ c: number;
1187
+ h: number;
1188
+ a: number;
1189
+ showPreview: boolean;
1190
+ hideH: boolean;
1191
+ hideL: boolean;
1192
+ hideC: boolean;
1193
+ showA: boolean;
1194
+ horizontal: boolean;
1195
+ size: PickerSize;
1196
+ private _isOpen;
1197
+ private _everOpened;
1198
+ _popupEl: HTMLElement;
1199
+ _pickerEl: ColourPicker;
1200
+ private readonly _uid;
1201
+ private readonly _anchorName;
1202
+ private readonly _popupId;
1203
+ private _pendingL;
1204
+ private _pendingC;
1205
+ private _pendingH;
1206
+ private _pendingA;
1207
+ private _savedL;
1208
+ private _savedC;
1209
+ private _savedH;
1210
+ private _savedA;
1211
+ private _pendingConfirmed;
1212
+ constructor();
1213
+ get value(): string;
1214
+ private get _innerHidePreview();
1215
+ private get _pickerDimensions();
1216
+ setColour(colour: index_d_exports.Colourish): void;
1217
+ firstUpdated(changedProperties: PropertyValues): void;
1218
+ updated(changedProperties: PropertyValues): void;
1219
+ private _applyAnchorPositioning;
1220
+ private _updateSwatchBackground;
1221
+ private _onPopoverToggle;
1222
+ private _onPickerInput;
1223
+ private _onPickerChange;
1224
+ private _onConfirm;
1225
+ private _onSwatchClick;
1226
+ private _dispatchInput;
1227
+ private _dispatchChange;
1228
+ render(): import("lit").TemplateResult<1>;
1229
+ static styles: CSSResultGroup;
1230
+ }
1231
+ declare global {
1232
+ interface HTMLElementTagNameMap {
1233
+ 'ixfx-colour-picker-popup': ColourPickerPopup;
1234
+ }
1235
+ }
1236
+ //#endregion
1237
+ export { ColourPickerInputEvent as a, ColourPickerEventDetail as i, ColourPicker as n, OklchValue as o, ColourPickerChangeEvent as r, ColourPickerPopup as t };
1238
+ //# sourceMappingURL=index-CnL9krsH.d.ts.map