@owlmeans/web-panel 0.1.18-rc.9 → 0.1.18

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 (669) hide show
  1. package/README.md +510 -143
  2. package/THIRD-PARTY-NOTICES.txt +24 -0
  3. package/agent-meta/manifest.json +163 -4
  4. package/agent-meta/skills/web-panel/SKILL.md +136 -83
  5. package/agent-meta/skills/web-panel/parts/consent.md +114 -0
  6. package/agent-meta/skills/web-panel/parts/editor.md +47 -0
  7. package/agent-meta/skills/web-panel/parts/forms.md +85 -0
  8. package/agent-meta/skills/web-panel/parts/navigation.md +203 -0
  9. package/agent-meta/skills/web-panel/parts/picker.md +164 -0
  10. package/agent-meta/skills/web-panel/parts/reload.md +46 -0
  11. package/agent-meta/skills/web-panel/parts/sign-in.md +65 -0
  12. package/agent-meta/skills/web-panel/parts/theme.md +74 -0
  13. package/build/@/components/ui/alert-dialog.d.ts +15 -0
  14. package/build/@/components/ui/alert-dialog.d.ts.map +1 -0
  15. package/build/@/components/ui/alert-dialog.js +39 -0
  16. package/build/@/components/ui/alert-dialog.js.map +1 -0
  17. package/build/@/components/ui/alert.js +1 -1
  18. package/build/@/components/ui/alert.js.map +1 -1
  19. package/build/@/components/ui/button.js +1 -1
  20. package/build/@/components/ui/button.js.map +1 -1
  21. package/build/@/components/ui/card.js +1 -1
  22. package/build/@/components/ui/card.js.map +1 -1
  23. package/build/@/components/ui/input.js +1 -1
  24. package/build/@/components/ui/input.js.map +1 -1
  25. package/build/@/components/ui/label.js +1 -1
  26. package/build/@/components/ui/label.js.map +1 -1
  27. package/build/@/components/ui/navigation-menu.js +1 -1
  28. package/build/@/components/ui/navigation-menu.js.map +1 -1
  29. package/build/@/components/ui/popover.d.ts +8 -0
  30. package/build/@/components/ui/popover.d.ts.map +1 -0
  31. package/build/@/components/ui/popover.js +17 -0
  32. package/build/@/components/ui/popover.js.map +1 -0
  33. package/build/@/components/ui/progress.js +1 -1
  34. package/build/@/components/ui/progress.js.map +1 -1
  35. package/build/@/components/ui/separator.js +1 -1
  36. package/build/@/components/ui/separator.js.map +1 -1
  37. package/build/@/components/ui/sheet.d.ts +15 -0
  38. package/build/@/components/ui/sheet.d.ts.map +1 -0
  39. package/build/@/components/ui/sheet.js +40 -0
  40. package/build/@/components/ui/sheet.js.map +1 -0
  41. package/build/auth/context.d.ts.map +1 -1
  42. package/build/auth/context.js +0 -1
  43. package/build/auth/context.js.map +1 -1
  44. package/build/auth/entrypoints.d.ts +10 -0
  45. package/build/auth/entrypoints.d.ts.map +1 -0
  46. package/build/auth/entrypoints.js +4 -0
  47. package/build/auth/entrypoints.js.map +1 -0
  48. package/build/auth/exports.d.ts +4 -4
  49. package/build/auth/exports.d.ts.map +1 -1
  50. package/build/auth/exports.js +3 -3
  51. package/build/auth/exports.js.map +1 -1
  52. package/build/auth/modules.d.ts +1 -1
  53. package/build/auth/modules.d.ts.map +1 -1
  54. package/build/auth/plugins/basic-ed25519.js +4 -4
  55. package/build/auth/plugins/basic-ed25519.js.map +1 -1
  56. package/build/auth/plugins/re-captcha.js +3 -3
  57. package/build/auth/plugins/re-captcha.js.map +1 -1
  58. package/build/auth/plugins/tunnel-consumer.js +1 -1
  59. package/build/auth/plugins/tunnel-consumer.js.map +1 -1
  60. package/build/components/block.js +2 -2
  61. package/build/components/block.js.map +1 -1
  62. package/build/components/consts.local.d.ts +14 -0
  63. package/build/components/consts.local.d.ts.map +1 -0
  64. package/build/components/consts.local.js +26 -0
  65. package/build/components/consts.local.js.map +1 -0
  66. package/build/components/footer/component.d.ts +19 -1
  67. package/build/components/footer/component.d.ts.map +1 -1
  68. package/build/components/footer/component.js +38 -11
  69. package/build/components/footer/component.js.map +1 -1
  70. package/build/components/footer/credit.d.ts +27 -0
  71. package/build/components/footer/credit.d.ts.map +1 -0
  72. package/build/components/footer/credit.js +42 -0
  73. package/build/components/footer/credit.js.map +1 -0
  74. package/build/components/footer/index.d.ts +1 -0
  75. package/build/components/footer/index.d.ts.map +1 -1
  76. package/build/components/footer/index.js +1 -0
  77. package/build/components/footer/index.js.map +1 -1
  78. package/build/components/footer/types.d.ts +22 -1
  79. package/build/components/footer/types.d.ts.map +1 -1
  80. package/build/components/form/button/component.d.ts.map +1 -1
  81. package/build/components/form/button/component.js +5 -3
  82. package/build/components/form/button/component.js.map +1 -1
  83. package/build/components/form/component.js +2 -2
  84. package/build/components/form/component.js.map +1 -1
  85. package/build/components/form/text/component.js +2 -2
  86. package/build/components/form/text/component.js.map +1 -1
  87. package/build/components/helper.d.ts.map +1 -1
  88. package/build/components/helper.js +1 -12
  89. package/build/components/helper.js.map +1 -1
  90. package/build/components/index.d.ts +4 -0
  91. package/build/components/index.d.ts.map +1 -1
  92. package/build/components/index.js +4 -0
  93. package/build/components/index.js.map +1 -1
  94. package/build/components/link.js +3 -3
  95. package/build/components/link.js.map +1 -1
  96. package/build/components/login/append.d.ts +15 -0
  97. package/build/components/login/append.d.ts.map +1 -0
  98. package/build/components/login/append.js +26 -0
  99. package/build/components/login/append.js.map +1 -0
  100. package/build/components/login/consts.d.ts +3 -0
  101. package/build/components/login/consts.d.ts.map +1 -0
  102. package/build/components/login/consts.js +3 -0
  103. package/build/components/login/consts.js.map +1 -0
  104. package/build/components/login/consts.local.d.ts +4 -0
  105. package/build/components/login/consts.local.d.ts.map +1 -0
  106. package/build/components/login/consts.local.js +8 -0
  107. package/build/components/login/consts.local.js.map +1 -0
  108. package/build/components/login/credit.d.ts +12 -0
  109. package/build/components/login/credit.d.ts.map +1 -0
  110. package/build/components/login/credit.js +18 -0
  111. package/build/components/login/credit.js.map +1 -0
  112. package/build/components/login/i18n/be.json +10 -0
  113. package/build/components/login/i18n/de.json +10 -0
  114. package/build/components/login/i18n/en.json +10 -0
  115. package/build/components/login/i18n/es.json +10 -0
  116. package/build/components/login/i18n/fr.json +10 -0
  117. package/build/components/login/i18n/pl.json +10 -0
  118. package/build/components/login/i18n/ru.json +10 -0
  119. package/build/components/login/i18n/uk.json +10 -0
  120. package/build/components/login/i18n.d.ts +2 -0
  121. package/build/components/login/i18n.d.ts.map +1 -0
  122. package/build/components/login/i18n.js +28 -0
  123. package/build/components/login/i18n.js.map +1 -0
  124. package/build/components/login/icons.d.ts +14 -0
  125. package/build/components/login/icons.d.ts.map +1 -0
  126. package/build/components/login/icons.js +29 -0
  127. package/build/components/login/icons.js.map +1 -0
  128. package/build/components/login/index.d.ts +11 -0
  129. package/build/components/login/index.d.ts.map +1 -0
  130. package/build/components/login/index.js +10 -0
  131. package/build/components/login/index.js.map +1 -0
  132. package/build/components/login/notify.d.ts +18 -0
  133. package/build/components/login/notify.d.ts.map +1 -0
  134. package/build/components/login/notify.js +41 -0
  135. package/build/components/login/notify.js.map +1 -0
  136. package/build/components/login/provider.d.ts +20 -0
  137. package/build/components/login/provider.d.ts.map +1 -0
  138. package/build/components/login/provider.js +31 -0
  139. package/build/components/login/provider.js.map +1 -0
  140. package/build/components/login/screen.d.ts +24 -0
  141. package/build/components/login/screen.d.ts.map +1 -0
  142. package/build/components/login/screen.js +92 -0
  143. package/build/components/login/screen.js.map +1 -0
  144. package/build/components/login/terms.d.ts +19 -0
  145. package/build/components/login/terms.d.ts.map +1 -0
  146. package/build/components/login/terms.js +32 -0
  147. package/build/components/login/terms.js.map +1 -0
  148. package/build/components/login/types.d.ts +28 -0
  149. package/build/components/login/types.d.ts.map +1 -0
  150. package/build/components/login/types.js +2 -0
  151. package/build/components/login/types.js.map +1 -0
  152. package/build/components/nav/consts.local.d.ts +41 -0
  153. package/build/components/nav/consts.local.d.ts.map +1 -0
  154. package/build/components/nav/consts.local.js +60 -0
  155. package/build/components/nav/consts.local.js.map +1 -0
  156. package/build/components/nav/index.d.ts +1 -0
  157. package/build/components/nav/index.d.ts.map +1 -1
  158. package/build/components/nav/index.js +1 -0
  159. package/build/components/nav/index.js.map +1 -1
  160. package/build/components/nav/layout.d.ts +9 -2
  161. package/build/components/nav/layout.d.ts.map +1 -1
  162. package/build/components/nav/layout.js +48 -7
  163. package/build/components/nav/layout.js.map +1 -1
  164. package/build/components/nav/mobile.d.ts +21 -0
  165. package/build/components/nav/mobile.d.ts.map +1 -0
  166. package/build/components/nav/mobile.js +55 -0
  167. package/build/components/nav/mobile.js.map +1 -0
  168. package/build/components/nav/side.d.ts.map +1 -1
  169. package/build/components/nav/side.js +10 -10
  170. package/build/components/nav/side.js.map +1 -1
  171. package/build/components/nav/top.d.ts.map +1 -1
  172. package/build/components/nav/top.js +12 -8
  173. package/build/components/nav/top.js.map +1 -1
  174. package/build/components/nav/types.d.ts +64 -1
  175. package/build/components/nav/types.d.ts.map +1 -1
  176. package/build/components/nav/viewport.d.ts +3 -0
  177. package/build/components/nav/viewport.d.ts.map +1 -0
  178. package/build/components/nav/viewport.js +14 -0
  179. package/build/components/nav/viewport.js.map +1 -0
  180. package/build/components/panel-app/component.d.ts.map +1 -1
  181. package/build/components/panel-app/component.js +4 -3
  182. package/build/components/panel-app/component.js.map +1 -1
  183. package/build/components/picker/color-picker.d.ts +9 -0
  184. package/build/components/picker/color-picker.d.ts.map +1 -0
  185. package/build/components/picker/color-picker.js +9 -0
  186. package/build/components/picker/color-picker.js.map +1 -0
  187. package/build/components/picker/consts.local.d.ts +76 -0
  188. package/build/components/picker/consts.local.d.ts.map +1 -0
  189. package/build/components/picker/consts.local.js +214 -0
  190. package/build/components/picker/consts.local.js.map +1 -0
  191. package/build/components/picker/dot.d.ts +8 -0
  192. package/build/components/picker/dot.d.ts.map +1 -0
  193. package/build/components/picker/dot.js +10 -0
  194. package/build/components/picker/dot.js.map +1 -0
  195. package/build/components/picker/grid.d.ts +17 -0
  196. package/build/components/picker/grid.d.ts.map +1 -0
  197. package/build/components/picker/grid.js +73 -0
  198. package/build/components/picker/grid.js.map +1 -0
  199. package/build/components/picker/i18n/be.json +60 -0
  200. package/build/components/picker/i18n/de.json +60 -0
  201. package/build/components/picker/i18n/en.json +60 -0
  202. package/build/components/picker/i18n/es.json +60 -0
  203. package/build/components/picker/i18n/fr.json +60 -0
  204. package/build/components/picker/i18n/pl.json +60 -0
  205. package/build/components/picker/i18n/ru.json +60 -0
  206. package/build/components/picker/i18n/uk.json +60 -0
  207. package/build/components/picker/i18n.d.ts +2 -0
  208. package/build/components/picker/i18n.d.ts.map +1 -0
  209. package/build/components/picker/i18n.js +18 -0
  210. package/build/components/picker/i18n.js.map +1 -0
  211. package/build/components/picker/icon-color-picker.d.ts +14 -0
  212. package/build/components/picker/icon-color-picker.d.ts.map +1 -0
  213. package/build/components/picker/icon-color-picker.js +15 -0
  214. package/build/components/picker/icon-color-picker.js.map +1 -0
  215. package/build/components/picker/icon-picker.d.ts +8 -0
  216. package/build/components/picker/icon-picker.d.ts.map +1 -0
  217. package/build/components/picker/icon-picker.js +8 -0
  218. package/build/components/picker/icon-picker.js.map +1 -0
  219. package/build/components/picker/index.d.ts +11 -0
  220. package/build/components/picker/index.d.ts.map +1 -0
  221. package/build/components/picker/index.js +10 -0
  222. package/build/components/picker/index.js.map +1 -0
  223. package/build/components/picker/panel.d.ts +9 -0
  224. package/build/components/picker/panel.d.ts.map +1 -0
  225. package/build/components/picker/panel.js +23 -0
  226. package/build/components/picker/panel.js.map +1 -0
  227. package/build/components/picker/root.d.ts +13 -0
  228. package/build/components/picker/root.d.ts.map +1 -0
  229. package/build/components/picker/root.js +55 -0
  230. package/build/components/picker/root.js.map +1 -0
  231. package/build/components/picker/roving.d.ts +8 -0
  232. package/build/components/picker/roving.d.ts.map +1 -0
  233. package/build/components/picker/roving.js +62 -0
  234. package/build/components/picker/roving.js.map +1 -0
  235. package/build/components/picker/surface.d.ts +18 -0
  236. package/build/components/picker/surface.d.ts.map +1 -0
  237. package/build/components/picker/surface.js +36 -0
  238. package/build/components/picker/surface.js.map +1 -0
  239. package/build/components/picker/swatches/custom.d.ts +10 -0
  240. package/build/components/picker/swatches/custom.d.ts.map +1 -0
  241. package/build/components/picker/swatches/custom.js +65 -0
  242. package/build/components/picker/swatches/custom.js.map +1 -0
  243. package/build/components/picker/swatches.d.ts +16 -0
  244. package/build/components/picker/swatches.d.ts.map +1 -0
  245. package/build/components/picker/swatches.js +35 -0
  246. package/build/components/picker/swatches.js.map +1 -0
  247. package/build/components/picker/text.d.ts +5 -0
  248. package/build/components/picker/text.d.ts.map +1 -0
  249. package/build/components/picker/text.js +29 -0
  250. package/build/components/picker/text.js.map +1 -0
  251. package/build/components/picker/tile.d.ts +11 -0
  252. package/build/components/picker/tile.d.ts.map +1 -0
  253. package/build/components/picker/tile.js +19 -0
  254. package/build/components/picker/tile.js.map +1 -0
  255. package/build/components/picker/translate.d.ts +9 -0
  256. package/build/components/picker/translate.d.ts.map +1 -0
  257. package/build/components/picker/translate.js +13 -0
  258. package/build/components/picker/translate.js.map +1 -0
  259. package/build/components/picker/trigger.d.ts +12 -0
  260. package/build/components/picker/trigger.d.ts.map +1 -0
  261. package/build/components/picker/trigger.js +29 -0
  262. package/build/components/picker/trigger.js.map +1 -0
  263. package/build/components/picker/types.d.ts +114 -0
  264. package/build/components/picker/types.d.ts.map +1 -0
  265. package/build/components/picker/types.js +2 -0
  266. package/build/components/picker/types.js.map +1 -0
  267. package/build/components/picker/types.local.d.ts +143 -0
  268. package/build/components/picker/types.local.d.ts.map +1 -0
  269. package/build/components/picker/types.local.js +2 -0
  270. package/build/components/picker/types.local.js.map +1 -0
  271. package/build/components/scheme/consts.local.d.ts +8 -0
  272. package/build/components/scheme/consts.local.d.ts.map +1 -0
  273. package/build/components/scheme/consts.local.js +13 -0
  274. package/build/components/scheme/consts.local.js.map +1 -0
  275. package/build/components/scheme/hook.d.ts +16 -0
  276. package/build/components/scheme/hook.d.ts.map +1 -0
  277. package/build/components/scheme/hook.js +52 -0
  278. package/build/components/scheme/hook.js.map +1 -0
  279. package/build/components/scheme/index.d.ts +4 -0
  280. package/build/components/scheme/index.d.ts.map +1 -0
  281. package/build/components/scheme/index.js +3 -0
  282. package/build/components/scheme/index.js.map +1 -0
  283. package/build/components/scheme/toggle.d.ts +14 -0
  284. package/build/components/scheme/toggle.d.ts.map +1 -0
  285. package/build/components/scheme/toggle.js +24 -0
  286. package/build/components/scheme/toggle.js.map +1 -0
  287. package/build/components/scheme/types.d.ts +21 -0
  288. package/build/components/scheme/types.d.ts.map +1 -0
  289. package/build/components/scheme/types.js +2 -0
  290. package/build/components/scheme/types.js.map +1 -0
  291. package/build/components/socket/i18n/be.json +9 -0
  292. package/build/components/socket/i18n/de.json +9 -0
  293. package/build/components/socket/i18n/en.json +9 -0
  294. package/build/components/socket/i18n/es.json +9 -0
  295. package/build/components/socket/i18n/fr.json +9 -0
  296. package/build/components/socket/i18n/pl.json +9 -0
  297. package/build/components/socket/i18n/ru.json +9 -0
  298. package/build/components/socket/i18n/uk.json +9 -0
  299. package/build/components/socket/i18n.d.ts +2 -0
  300. package/build/components/socket/i18n.d.ts.map +1 -0
  301. package/build/components/socket/i18n.js +18 -0
  302. package/build/components/socket/i18n.js.map +1 -0
  303. package/build/components/socket/index.d.ts +3 -0
  304. package/build/components/socket/index.d.ts.map +1 -0
  305. package/build/components/socket/index.js +3 -0
  306. package/build/components/socket/index.js.map +1 -0
  307. package/build/components/socket/reload-dialog.d.ts +22 -0
  308. package/build/components/socket/reload-dialog.d.ts.map +1 -0
  309. package/build/components/socket/reload-dialog.js +34 -0
  310. package/build/components/socket/reload-dialog.js.map +1 -0
  311. package/build/components/status.js +1 -1
  312. package/build/components/status.js.map +1 -1
  313. package/build/components/text.d.ts.map +1 -1
  314. package/build/components/text.js +2 -13
  315. package/build/components/text.js.map +1 -1
  316. package/build/components/toaster.d.ts +16 -0
  317. package/build/components/toaster.d.ts.map +1 -0
  318. package/build/components/toaster.js +52 -0
  319. package/build/components/toaster.js.map +1 -0
  320. package/build/components/uploader/consts.local.d.ts +4 -0
  321. package/build/components/uploader/consts.local.d.ts.map +1 -0
  322. package/build/components/uploader/consts.local.js +6 -0
  323. package/build/components/uploader/consts.local.js.map +1 -0
  324. package/build/components/uploader/image.d.ts.map +1 -1
  325. package/build/components/uploader/image.js +2 -6
  326. package/build/components/uploader/image.js.map +1 -1
  327. package/build/consent/component.d.ts +27 -0
  328. package/build/consent/component.d.ts.map +1 -0
  329. package/build/consent/component.js +60 -0
  330. package/build/consent/component.js.map +1 -0
  331. package/build/consent/consts.d.ts +2 -0
  332. package/build/consent/consts.d.ts.map +1 -0
  333. package/build/consent/consts.js +2 -0
  334. package/build/consent/consts.js.map +1 -0
  335. package/build/consent/consts.local.d.ts +9 -0
  336. package/build/consent/consts.local.d.ts.map +1 -0
  337. package/build/consent/consts.local.js +9 -0
  338. package/build/consent/consts.local.js.map +1 -0
  339. package/build/consent/geo.d.ts +17 -0
  340. package/build/consent/geo.d.ts.map +1 -0
  341. package/build/consent/geo.js +19 -0
  342. package/build/consent/geo.js.map +1 -0
  343. package/build/consent/index.d.ts +11 -0
  344. package/build/consent/index.d.ts.map +1 -0
  345. package/build/consent/index.js +9 -0
  346. package/build/consent/index.js.map +1 -0
  347. package/build/consent/language.d.ts +12 -0
  348. package/build/consent/language.d.ts.map +1 -0
  349. package/build/consent/language.js +11 -0
  350. package/build/consent/language.js.map +1 -0
  351. package/build/consent/menu-widget.d.ts +13 -0
  352. package/build/consent/menu-widget.d.ts.map +1 -0
  353. package/build/consent/menu-widget.js +20 -0
  354. package/build/consent/menu-widget.js.map +1 -0
  355. package/build/consent/presence.d.ts +30 -0
  356. package/build/consent/presence.d.ts.map +1 -0
  357. package/build/consent/presence.js +40 -0
  358. package/build/consent/presence.js.map +1 -0
  359. package/build/consent/service.d.ts +18 -0
  360. package/build/consent/service.d.ts.map +1 -0
  361. package/build/consent/service.js +53 -0
  362. package/build/consent/service.js.map +1 -0
  363. package/build/consent/translate.d.ts +14 -0
  364. package/build/consent/translate.d.ts.map +1 -0
  365. package/build/consent/translate.js +28 -0
  366. package/build/consent/translate.js.map +1 -0
  367. package/build/consent/types.d.ts +39 -0
  368. package/build/consent/types.d.ts.map +1 -0
  369. package/build/consent/types.js +2 -0
  370. package/build/consent/types.js.map +1 -0
  371. package/build/consent/types.local.d.ts +6 -0
  372. package/build/consent/types.local.d.ts.map +1 -0
  373. package/build/consent/types.local.js +2 -0
  374. package/build/consent/types.local.js.map +1 -0
  375. package/build/context.d.ts.map +1 -1
  376. package/build/context.js +10 -0
  377. package/build/context.js.map +1 -1
  378. package/build/editor/component.d.ts +4 -0
  379. package/build/editor/component.d.ts.map +1 -0
  380. package/build/editor/component.js +103 -0
  381. package/build/editor/component.js.map +1 -0
  382. package/build/editor/consts.local.d.ts +6 -0
  383. package/build/editor/consts.local.d.ts.map +1 -0
  384. package/build/editor/consts.local.js +58 -0
  385. package/build/editor/consts.local.js.map +1 -0
  386. package/build/editor/index.d.ts +3 -0
  387. package/build/editor/index.d.ts.map +1 -0
  388. package/build/editor/index.js +2 -0
  389. package/build/editor/index.js.map +1 -0
  390. package/build/editor/types.d.ts +24 -0
  391. package/build/editor/types.d.ts.map +1 -0
  392. package/build/editor/types.js +2 -0
  393. package/build/editor/types.js.map +1 -0
  394. package/build/entrypoints.d.ts +8 -0
  395. package/build/entrypoints.d.ts.map +1 -0
  396. package/build/entrypoints.js +4 -0
  397. package/build/entrypoints.js.map +1 -0
  398. package/build/exports.d.ts +6 -5
  399. package/build/exports.d.ts.map +1 -1
  400. package/build/exports.js +5 -5
  401. package/build/exports.js.map +1 -1
  402. package/build/index.d.ts +1 -1
  403. package/build/index.d.ts.map +1 -1
  404. package/build/index.js +1 -1
  405. package/build/index.js.map +1 -1
  406. package/build/main.d.ts +1 -4
  407. package/build/main.d.ts.map +1 -1
  408. package/build/main.js.map +1 -1
  409. package/build/modules.d.ts +1 -1
  410. package/build/modules.d.ts.map +1 -1
  411. package/build/permission/i18n/be.json +13 -0
  412. package/build/permission/i18n/de.json +13 -0
  413. package/build/permission/i18n/en.json +13 -0
  414. package/build/permission/i18n/es.json +13 -0
  415. package/build/permission/i18n/fr.json +13 -0
  416. package/build/permission/i18n/pl.json +13 -0
  417. package/build/permission/i18n/ru.json +13 -0
  418. package/build/permission/i18n/uk.json +13 -0
  419. package/build/permission/i18n.d.ts +2 -0
  420. package/build/permission/i18n.d.ts.map +1 -0
  421. package/build/permission/i18n.js +13 -0
  422. package/build/permission/i18n.js.map +1 -0
  423. package/build/permission/index.d.ts +6 -0
  424. package/build/permission/index.d.ts.map +1 -0
  425. package/build/permission/index.js +27 -0
  426. package/build/permission/index.js.map +1 -0
  427. package/build/permission/toast.d.ts +5 -0
  428. package/build/permission/toast.d.ts.map +1 -0
  429. package/build/permission/toast.js +8 -0
  430. package/build/permission/toast.js.map +1 -0
  431. package/build/permission/types.d.ts +6 -0
  432. package/build/permission/types.d.ts.map +1 -0
  433. package/build/permission/types.js +2 -0
  434. package/build/permission/types.js.map +1 -0
  435. package/build/picker/icons/consts.d.ts +9 -0
  436. package/build/picker/icons/consts.d.ts.map +1 -0
  437. package/build/picker/icons/consts.js +264 -0
  438. package/build/picker/icons/consts.js.map +1 -0
  439. package/build/picker/icons/types.d.ts +18 -0
  440. package/build/picker/icons/types.d.ts.map +1 -0
  441. package/build/picker/icons/types.js +2 -0
  442. package/build/picker/icons/types.js.map +1 -0
  443. package/build/picker/icons.d.ts +4 -0
  444. package/build/picker/icons.d.ts.map +1 -0
  445. package/build/picker/icons.js +54 -0
  446. package/build/picker/icons.js.map +1 -0
  447. package/build/picker/index.d.ts +11 -0
  448. package/build/picker/index.d.ts.map +1 -0
  449. package/build/picker/index.js +10 -0
  450. package/build/picker/index.js.map +1 -0
  451. package/build/picker/utils/color/types.d.ts +35 -0
  452. package/build/picker/utils/color/types.d.ts.map +1 -0
  453. package/build/picker/utils/color/types.js +2 -0
  454. package/build/picker/utils/color/types.js.map +1 -0
  455. package/build/picker/utils/color.d.ts +4 -0
  456. package/build/picker/utils/color.d.ts.map +1 -0
  457. package/build/picker/utils/color.js +96 -0
  458. package/build/picker/utils/color.js.map +1 -0
  459. package/build/picker/vocabulary/consts.d.ts +26 -0
  460. package/build/picker/vocabulary/consts.d.ts.map +1 -0
  461. package/build/picker/vocabulary/consts.js +336 -0
  462. package/build/picker/vocabulary/consts.js.map +1 -0
  463. package/build/picker/vocabulary/types.d.ts +67 -0
  464. package/build/picker/vocabulary/types.d.ts.map +1 -0
  465. package/build/picker/vocabulary/types.js +2 -0
  466. package/build/picker/vocabulary/types.js.map +1 -0
  467. package/build/picker/vocabulary.d.ts +11 -0
  468. package/build/picker/vocabulary.d.ts.map +1 -0
  469. package/build/picker/vocabulary.js +83 -0
  470. package/build/picker/vocabulary.js.map +1 -0
  471. package/build/scheme/consts.d.ts +8 -0
  472. package/build/scheme/consts.d.ts.map +1 -0
  473. package/build/scheme/consts.js +8 -0
  474. package/build/scheme/consts.js.map +1 -0
  475. package/build/scheme/index.d.ts +4 -0
  476. package/build/scheme/index.d.ts.map +1 -0
  477. package/build/scheme/index.js +3 -0
  478. package/build/scheme/index.js.map +1 -0
  479. package/build/scheme/scheme.d.ts +16 -0
  480. package/build/scheme/scheme.d.ts.map +1 -0
  481. package/build/scheme/scheme.js +58 -0
  482. package/build/scheme/scheme.js.map +1 -0
  483. package/build/scheme/types.d.ts +30 -0
  484. package/build/scheme/types.d.ts.map +1 -0
  485. package/build/scheme/types.js +2 -0
  486. package/build/scheme/types.js.map +1 -0
  487. package/build/types.d.ts +18 -2
  488. package/build/types.d.ts.map +1 -1
  489. package/package.json +107 -52
  490. package/src/@/components/ui/alert-dialog.tsx +156 -0
  491. package/src/@/components/ui/alert.tsx +1 -1
  492. package/src/@/components/ui/button.tsx +1 -1
  493. package/src/@/components/ui/card.tsx +1 -1
  494. package/src/@/components/ui/input.tsx +1 -1
  495. package/src/@/components/ui/label.tsx +1 -1
  496. package/src/@/components/ui/navigation-menu.tsx +1 -1
  497. package/src/@/components/ui/popover.tsx +47 -0
  498. package/src/@/components/ui/progress.tsx +1 -1
  499. package/src/@/components/ui/separator.tsx +1 -1
  500. package/src/@/components/ui/sheet.tsx +142 -0
  501. package/src/auth/context.ts +0 -2
  502. package/src/auth/entrypoints.ts +5 -0
  503. package/src/auth/exports.ts +4 -4
  504. package/src/auth/plugins/basic-ed25519.tsx +4 -4
  505. package/src/auth/plugins/re-captcha.tsx +3 -3
  506. package/src/auth/plugins/tunnel-consumer.tsx +1 -1
  507. package/src/components/block.tsx +2 -2
  508. package/src/components/consts.local.ts +29 -0
  509. package/src/components/footer/component.tsx +58 -16
  510. package/src/components/footer/credit.tsx +61 -0
  511. package/src/components/footer/index.ts +1 -0
  512. package/src/components/footer/types.ts +22 -1
  513. package/src/components/form/button/component.tsx +7 -4
  514. package/src/components/form/component.tsx +2 -2
  515. package/src/components/form/text/component.tsx +2 -2
  516. package/src/components/helper.ts +1 -13
  517. package/src/components/index.ts +4 -0
  518. package/src/components/link.tsx +3 -3
  519. package/src/components/login/append.ts +34 -0
  520. package/src/components/login/consts.local.ts +10 -0
  521. package/src/components/login/consts.ts +2 -0
  522. package/src/components/login/credit.tsx +33 -0
  523. package/src/components/login/i18n/be.json +10 -0
  524. package/src/components/login/i18n/de.json +10 -0
  525. package/src/components/login/i18n/en.json +10 -0
  526. package/src/components/login/i18n/es.json +10 -0
  527. package/src/components/login/i18n/fr.json +10 -0
  528. package/src/components/login/i18n/pl.json +10 -0
  529. package/src/components/login/i18n/ru.json +10 -0
  530. package/src/components/login/i18n/uk.json +10 -0
  531. package/src/components/login/i18n.ts +29 -0
  532. package/src/components/login/icons.tsx +39 -0
  533. package/src/components/login/index.ts +11 -0
  534. package/src/components/login/notify.ts +48 -0
  535. package/src/components/login/provider.tsx +57 -0
  536. package/src/components/login/screen.tsx +178 -0
  537. package/src/components/login/terms.tsx +75 -0
  538. package/src/components/login/types.ts +30 -0
  539. package/src/components/nav/consts.local.ts +64 -0
  540. package/src/components/nav/index.ts +1 -0
  541. package/src/components/nav/layout.tsx +184 -26
  542. package/src/components/nav/mobile.tsx +165 -0
  543. package/src/components/nav/side.tsx +43 -27
  544. package/src/components/nav/top.tsx +44 -22
  545. package/src/components/nav/types.ts +65 -2
  546. package/src/components/nav/viewport.ts +16 -0
  547. package/src/components/panel-app/component.tsx +9 -1
  548. package/src/components/picker/color-picker.tsx +15 -0
  549. package/src/components/picker/consts.local.ts +267 -0
  550. package/src/components/picker/dot.tsx +21 -0
  551. package/src/components/picker/grid.tsx +138 -0
  552. package/src/components/picker/i18n/be.json +60 -0
  553. package/src/components/picker/i18n/de.json +60 -0
  554. package/src/components/picker/i18n/en.json +60 -0
  555. package/src/components/picker/i18n/es.json +60 -0
  556. package/src/components/picker/i18n/fr.json +60 -0
  557. package/src/components/picker/i18n/pl.json +60 -0
  558. package/src/components/picker/i18n/ru.json +60 -0
  559. package/src/components/picker/i18n/uk.json +60 -0
  560. package/src/components/picker/i18n.ts +19 -0
  561. package/src/components/picker/icon-color-picker.tsx +25 -0
  562. package/src/components/picker/icon-picker.tsx +13 -0
  563. package/src/components/picker/index.ts +11 -0
  564. package/src/components/picker/panel.tsx +61 -0
  565. package/src/components/picker/root.tsx +81 -0
  566. package/src/components/picker/roving.ts +70 -0
  567. package/src/components/picker/surface.tsx +62 -0
  568. package/src/components/picker/swatches/custom.tsx +110 -0
  569. package/src/components/picker/swatches.tsx +67 -0
  570. package/src/components/picker/text.ts +46 -0
  571. package/src/components/picker/tile.tsx +35 -0
  572. package/src/components/picker/translate.ts +15 -0
  573. package/src/components/picker/trigger.tsx +54 -0
  574. package/src/components/picker/types.local.ts +154 -0
  575. package/src/components/picker/types.ts +125 -0
  576. package/src/components/scheme/consts.local.ts +13 -0
  577. package/src/components/scheme/hook.ts +62 -0
  578. package/src/components/scheme/index.ts +4 -0
  579. package/src/components/scheme/toggle.tsx +32 -0
  580. package/src/components/scheme/types.ts +23 -0
  581. package/src/components/socket/i18n/be.json +9 -0
  582. package/src/components/socket/i18n/de.json +9 -0
  583. package/src/components/socket/i18n/en.json +9 -0
  584. package/src/components/socket/i18n/es.json +9 -0
  585. package/src/components/socket/i18n/fr.json +9 -0
  586. package/src/components/socket/i18n/pl.json +9 -0
  587. package/src/components/socket/i18n/ru.json +9 -0
  588. package/src/components/socket/i18n/uk.json +9 -0
  589. package/src/components/socket/i18n.ts +19 -0
  590. package/src/components/socket/index.ts +2 -0
  591. package/src/components/socket/reload-dialog.tsx +61 -0
  592. package/src/components/status.tsx +1 -1
  593. package/src/components/text.tsx +2 -14
  594. package/src/components/toaster.tsx +65 -0
  595. package/src/components/uploader/consts.local.ts +7 -0
  596. package/src/components/uploader/image.tsx +2 -6
  597. package/src/consent/component.tsx +84 -0
  598. package/src/consent/consts.local.ts +10 -0
  599. package/src/consent/consts.ts +1 -0
  600. package/src/consent/geo.ts +26 -0
  601. package/src/consent/index.ts +24 -0
  602. package/src/consent/language.ts +12 -0
  603. package/src/consent/menu-widget.tsx +22 -0
  604. package/src/consent/presence.ts +45 -0
  605. package/src/consent/service.ts +75 -0
  606. package/src/consent/translate.ts +31 -0
  607. package/src/consent/types.local.ts +6 -0
  608. package/src/consent/types.ts +43 -0
  609. package/src/context.ts +12 -0
  610. package/src/editor/component.tsx +172 -0
  611. package/src/editor/consts.local.ts +62 -0
  612. package/src/editor/index.ts +2 -0
  613. package/src/editor/types.ts +24 -0
  614. package/src/entrypoints.ts +5 -0
  615. package/src/exports.ts +6 -5
  616. package/src/index.ts +1 -1
  617. package/src/main.tsx +2 -6
  618. package/src/permission/i18n/be.json +13 -0
  619. package/src/permission/i18n/de.json +13 -0
  620. package/src/permission/i18n/en.json +13 -0
  621. package/src/permission/i18n/es.json +13 -0
  622. package/src/permission/i18n/fr.json +13 -0
  623. package/src/permission/i18n/pl.json +13 -0
  624. package/src/permission/i18n/ru.json +13 -0
  625. package/src/permission/i18n/uk.json +13 -0
  626. package/src/permission/i18n.ts +13 -0
  627. package/src/permission/index.ts +27 -0
  628. package/src/permission/toast.tsx +20 -0
  629. package/src/permission/types.ts +5 -0
  630. package/src/picker/icons/consts.ts +309 -0
  631. package/src/picker/icons/types.ts +18 -0
  632. package/src/picker/icons.ts +70 -0
  633. package/src/picker/index.ts +11 -0
  634. package/src/picker/utils/color/types.ts +37 -0
  635. package/src/picker/utils/color.ts +119 -0
  636. package/src/picker/vocabulary/consts.ts +347 -0
  637. package/src/picker/vocabulary/types.ts +72 -0
  638. package/src/picker/vocabulary.ts +111 -0
  639. package/src/scheme/consts.ts +8 -0
  640. package/src/scheme/index.ts +3 -0
  641. package/src/scheme/scheme.ts +66 -0
  642. package/src/scheme/types.ts +30 -0
  643. package/src/types.ts +19 -2
  644. package/tests/consent-language.spec.ts +31 -0
  645. package/tests/consent.spec.ts +112 -0
  646. package/tests/context.ts +4 -0
  647. package/tests/editor.spec.ts +58 -0
  648. package/tests/harness/editor.tsx +32 -0
  649. package/tests/harness/index.html +1 -0
  650. package/tests/harness/lazy-screen.tsx +9 -0
  651. package/tests/harness/mount.tsx +370 -29
  652. package/tests/harness/picker.tsx +110 -0
  653. package/tests/lazy.spec.ts +104 -0
  654. package/tests/login-provider.spec.ts +114 -0
  655. package/tests/login.spec.ts +447 -0
  656. package/tests/nav.spec.ts +449 -3
  657. package/tests/package-boundary.spec.ts +19 -0
  658. package/tests/picker-shots.spec.ts +174 -0
  659. package/tests/picker-vocabulary.spec.ts +217 -0
  660. package/tests/picker.spec.ts +333 -0
  661. package/tests/scheme.spec.ts +149 -0
  662. package/tests/smoke.spec.ts +2 -2
  663. package/tests/socket-dialog.spec.ts +154 -0
  664. package/tests/toaster.spec.ts +59 -0
  665. package/zz-tw.d.mts +2 -0
  666. package/zz-tw.d.mts.map +1 -0
  667. package/build/.gitkeep +0 -0
  668. package/src/auth/modules.ts +0 -5
  669. package/src/modules.ts +0 -5
@@ -0,0 +1,336 @@
1
+ /** The palette's keys in hue order — the order the swatch grid shows them in. */
2
+ export const PICKER_COLOR_KEYS = [
3
+ 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo',
4
+ 'violet', 'purple', 'fuchsia', 'pink', 'rose', 'maroon', 'brown', 'olive', 'navy', 'slate', 'stone', 'graphite',
5
+ ];
6
+ /**
7
+ * The 24-colour palette.
8
+ *
9
+ * Hues follow one scale: the swatch is the hue's 500, the light ink its 700–800, the light ground
10
+ * its 100, the dark ink its 300 (200 or 400 where a neighbouring hue's 300 sits too close) and the
11
+ * dark ground its 900–950. Ten hues keep the exact values the generated targets' look has always
12
+ * used (slate, blue, sky, teal, green, amber, orange, red, pink, violet). The deep four — maroon,
13
+ * brown, olive, navy — run on scales of their own: a darker light ink and a mid-tone dark ink, so
14
+ * they stay apart from red, amber, lime and indigo in both modes. Every ink keeps 4.5:1 on its own
15
+ * ground and on the page in both modes (`tests/picker-vocabulary.spec.ts`).
16
+ */
17
+ export const PICKER_COLORS = Object.freeze([
18
+ { key: 'red', label: 'Red', swatch: '#EF4444', ink: '#B91C1C', soft: '#FEE2E2', inkDark: '#FCA5A5', softDark: '#450A0A' },
19
+ { key: 'orange', label: 'Orange', swatch: '#F97316', ink: '#9A3412', soft: '#FFEDD5', inkDark: '#FDBA74', softDark: '#431407' },
20
+ { key: 'amber', label: 'Amber', swatch: '#F59E0B', ink: '#92400E', soft: '#FEF3C7', inkDark: '#FCD34D', softDark: '#451A03' },
21
+ { key: 'yellow', label: 'Yellow', swatch: '#EAB308', ink: '#A16207', soft: '#FEF9C3', inkDark: '#FEF08A', softDark: '#422006' },
22
+ { key: 'lime', label: 'Lime', swatch: '#84CC16', ink: '#4D7C0F', soft: '#ECFCCB', inkDark: '#BEF264', softDark: '#1A2E05' },
23
+ { key: 'green', label: 'Green', swatch: '#22C55E', ink: '#166534', soft: '#DCFCE7', inkDark: '#86EFAC', softDark: '#052E16' },
24
+ { key: 'emerald', label: 'Emerald', swatch: '#10B981', ink: '#047857', soft: '#D1FAE5', inkDark: '#34D399', softDark: '#022C22' },
25
+ { key: 'teal', label: 'Teal', swatch: '#14B8A6', ink: '#115E59', soft: '#CCFBF1', inkDark: '#5EEAD4', softDark: '#042F2E' },
26
+ { key: 'cyan', label: 'Cyan', swatch: '#06B6D4', ink: '#0E7490', soft: '#CFFAFE', inkDark: '#A5F3FC', softDark: '#083344' },
27
+ { key: 'sky', label: 'Sky', swatch: '#0EA5E9', ink: '#0369A1', soft: '#E0F2FE', inkDark: '#7DD3FC', softDark: '#082F49' },
28
+ { key: 'blue', label: 'Blue', swatch: '#3B82F6', ink: '#1D4ED8', soft: '#DBEAFE', inkDark: '#93C5FD', softDark: '#172554' },
29
+ { key: 'indigo', label: 'Indigo', swatch: '#6366F1', ink: '#4338CA', soft: '#E0E7FF', inkDark: '#818CF8', softDark: '#1E1B4B' },
30
+ { key: 'violet', label: 'Violet', swatch: '#8B5CF6', ink: '#6D28D9', soft: '#EDE9FE', inkDark: '#C4B5FD', softDark: '#2E1065' },
31
+ { key: 'purple', label: 'Purple', swatch: '#A855F7', ink: '#6B21A8', soft: '#F3E8FF', inkDark: '#C084FC', softDark: '#3B0764' },
32
+ { key: 'fuchsia', label: 'Fuchsia', swatch: '#D946EF', ink: '#A21CAF', soft: '#FAE8FF', inkDark: '#F0ABFC', softDark: '#4A044E' },
33
+ { key: 'pink', label: 'Pink', swatch: '#EC4899', ink: '#BE185D', soft: '#FCE7F3', inkDark: '#F9A8D4', softDark: '#500724' },
34
+ { key: 'rose', label: 'Rose', swatch: '#F43F5E', ink: '#9F1239', soft: '#FFE4E6', inkDark: '#FB7185', softDark: '#4C0519' },
35
+ { key: 'maroon', label: 'Maroon', swatch: '#8C1D30', ink: '#6E1423', soft: '#F6E3E6', inkDark: '#D07A8A', softDark: '#3A0B14' },
36
+ { key: 'brown', label: 'Brown', swatch: '#8B5E3C', ink: '#6B4226', soft: '#F2E8DF', inkDark: '#D4A373', softDark: '#2B1D12' },
37
+ { key: 'olive', label: 'Olive', swatch: '#7D7F1F', ink: '#535B16', soft: '#F1F2DE', inkDark: '#C5C77E', softDark: '#1F2208' },
38
+ { key: 'navy', label: 'Navy', swatch: '#233876', ink: '#1E2A5E', soft: '#E3E7F4', inkDark: '#8EA2E0', softDark: '#0D1530' },
39
+ { key: 'slate', label: 'Slate', swatch: '#64748B', ink: '#334155', soft: '#F1F5F9', inkDark: '#CBD5E1', softDark: '#1E293B' },
40
+ { key: 'stone', label: 'Stone', swatch: '#78716C', ink: '#57534E', soft: '#F5F5F4', inkDark: '#A8A29E', softDark: '#1C1917' },
41
+ { key: 'graphite', label: 'Graphite', swatch: '#404040', ink: '#262626', soft: '#E5E5E5', inkDark: '#F0F0F0', softDark: '#171717' },
42
+ ]);
43
+ /** What an unknown colour value renders as. */
44
+ export const PICKER_FALLBACK_COLOR = 'slate';
45
+ /** The icon catalogue's categories, in the order the picker's chips show them. */
46
+ export const PICKER_ICON_CATEGORIES = [
47
+ 'work', 'people', 'communication', 'commerce', 'operations', 'places', 'tech', 'status', 'objects', 'nature',
48
+ ];
49
+ /** What an unknown icon name renders as. */
50
+ export const PICKER_FALLBACK_ICON = 'circle';
51
+ /**
52
+ * The curated icon catalogue by category: a kebab-case lucide name (canonical, never an alias) and
53
+ * its English search words. Icon names stay English in every language — they are what is stored.
54
+ * A superset of the icons the planning kits use.
55
+ */
56
+ const CATALOGUE = {
57
+ work: [
58
+ ['briefcase', 'job, business, portfolio, case'],
59
+ ['folder', 'directory, project, files'],
60
+ ['folder-open', 'directory, browse, project'],
61
+ ['folder-kanban', 'board, project, tasks'],
62
+ ['file', 'document, page'],
63
+ ['file-text', 'document, doc, page, note, text'],
64
+ ['files', 'documents, copies'],
65
+ ['clipboard-list', 'checklist, tasks, list, agenda'],
66
+ ['clipboard-check', 'done, approved, review'],
67
+ ['list-checks', 'checklist, tasks, todo'],
68
+ ['list-todo', 'tasks, todo, backlog'],
69
+ ['square-check', 'done, task, complete, checkbox'],
70
+ ['kanban', 'board, columns, workflow, tasks'],
71
+ ['calendar', 'date, schedule, event, day'],
72
+ ['calendar-check', 'booked, scheduled, appointment, done'],
73
+ ['calendar-days', 'month, schedule, planner'],
74
+ ['calendar-clock', 'deadline, due, schedule'],
75
+ ['clock', 'time, hours, schedule'],
76
+ ['timer', 'stopwatch, countdown, duration'],
77
+ ['hourglass', 'waiting, time, pending'],
78
+ ['target', 'goal, aim, objective, focus'],
79
+ ['flag', 'milestone, priority, report, mark'],
80
+ ['milestone', 'roadmap, sign, step'],
81
+ ['rocket', 'launch, release, start, fast'],
82
+ ['lightbulb', 'idea, insight, tip, innovation'],
83
+ ['book-open', 'read, docs, guide, knowledge'],
84
+ ['notebook-pen', 'notes, journal, write'],
85
+ ['presentation', 'slides, meeting, demo, board'],
86
+ ['layers', 'stack, levels, epic'],
87
+ ['layout-grid', 'dashboard, grid, apps'],
88
+ ['workflow', 'process, flow, pipeline, automation'],
89
+ ['goal', 'objective, finish, success'],
90
+ ['trophy', 'win, award, achievement, prize'],
91
+ ['award', 'badge, medal, quality, recognition'],
92
+ ['pen-line', 'edit, sign, write'],
93
+ ['archive', 'storage, old, history, box'],
94
+ ['paperclip', 'attachment, attach, clip'],
95
+ ],
96
+ people: [
97
+ ['user', 'person, account, profile, member'],
98
+ ['user-round', 'person, contact, profile'],
99
+ ['user-round-check', 'verified, approved, assigned'],
100
+ ['user-round-plus', 'invite, add, new member'],
101
+ ['user-check', 'verified, approved'],
102
+ ['user-plus', 'invite, add, signup'],
103
+ ['users', 'team, group, people, members'],
104
+ ['users-round', 'team, community, group'],
105
+ ['contact', 'address book, card, person, lead'],
106
+ ['id-card', 'identity, badge, passport, license'],
107
+ ['handshake', 'deal, agreement, partner, sale'],
108
+ ['person-standing', 'individual, human, figure'],
109
+ ['accessibility', 'a11y, disability, inclusive'],
110
+ ['face-slightly-smiling', 'smile, happy, satisfaction, feedback'],
111
+ ['heart-handshake', 'support, care, volunteer, charity'],
112
+ ['graduation-cap', 'education, student, school, course'],
113
+ ['user-cog', 'admin, settings, profile'],
114
+ ['crown', 'owner, vip, premium, leader'],
115
+ ['hand', 'help, raise, stop, volunteer'],
116
+ ['thumbs-up', 'like, approve, good'],
117
+ ],
118
+ communication: [
119
+ ['mail', 'email, message, letter, inbox'],
120
+ ['mail-open', 'read, email, letter'],
121
+ ['inbox', 'incoming, messages, queue, tray'],
122
+ ['send', 'submit, deliver, outgoing, plane'],
123
+ ['message-square', 'chat, comment, message, conversation'],
124
+ ['message-circle', 'chat, bubble, talk'],
125
+ ['messages-square', 'conversation, chat, thread, discussion'],
126
+ ['phone', 'call, telephone, contact'],
127
+ ['phone-call', 'ringing, call, support'],
128
+ ['megaphone', 'announcement, marketing, campaign, broadcast'],
129
+ ['bell', 'notification, alert, reminder'],
130
+ ['bell-ring', 'alarm, notification, ring'],
131
+ ['at-sign', 'email, mention, address'],
132
+ ['headset', 'support, help desk, call center, service'],
133
+ ['video', 'call, meeting, camera, record'],
134
+ ['mic', 'voice, audio, record, podcast'],
135
+ ['share-2', 'share, network, social'],
136
+ ['reply', 'answer, respond, back'],
137
+ ['languages', 'translate, language, i18n'],
138
+ ['newspaper', 'news, press, article, blog'],
139
+ ],
140
+ commerce: [
141
+ ['shopping-cart', 'cart, buy, checkout, order'],
142
+ ['shopping-bag', 'bag, purchase, shop'],
143
+ ['store', 'shop, retail, storefront'],
144
+ ['receipt', 'invoice, bill, payment'],
145
+ ['credit-card', 'card, payment, pay'],
146
+ ['wallet', 'money, funds, budget'],
147
+ ['banknote', 'cash, money, bill, payment'],
148
+ ['coins', 'money, cash, cost, change'],
149
+ ['piggy-bank', 'savings, budget, money'],
150
+ ['dollar-sign', 'money, price, revenue, usd'],
151
+ ['euro', 'money, price, eur'],
152
+ ['percent', 'discount, rate, tax'],
153
+ ['tag', 'label, price, category'],
154
+ ['tags', 'labels, categories'],
155
+ ['ticket', 'event, pass, admission, support ticket'],
156
+ ['gift', 'present, reward, bonus'],
157
+ ['package', 'box, product, parcel, delivery'],
158
+ ['badge-percent', 'sale, discount, promotion'],
159
+ ['trending-up', 'growth, increase, sales, up'],
160
+ ['trending-down', 'decline, decrease, loss'],
161
+ ['scale', 'balance, legal, compare, law'],
162
+ ['landmark', 'bank, finance, government, institution'],
163
+ ['calculator', 'math, accounting, estimate'],
164
+ ['hand-coins', 'pay, donation, tip, payment'],
165
+ ['chart-line', 'analytics, graph, metrics, trend'],
166
+ ['chart-column', 'bar chart, stats, report'],
167
+ ['chart-pie', 'share, distribution, analytics'],
168
+ ],
169
+ operations: [
170
+ ['wrench', 'maintenance, repair, fix, tool'],
171
+ ['hammer', 'build, construction, tool'],
172
+ ['settings', 'configuration, preferences, gear'],
173
+ ['cog', 'gear, mechanism, setup'],
174
+ ['sliders-horizontal', 'controls, adjust, filters'],
175
+ ['funnel', 'filter, pipeline, sales funnel, leads'],
176
+ ['truck', 'delivery, shipping, logistics, transport'],
177
+ ['warehouse', 'storage, inventory, stock, depot'],
178
+ ['factory', 'manufacturing, production, plant'],
179
+ ['container', 'shipping, freight, cargo'],
180
+ ['boxes', 'inventory, stock, products'],
181
+ ['package-check', 'delivered, received, fulfilled'],
182
+ ['route', 'path, journey, road, trip'],
183
+ ['gauge', 'performance, speed, meter, kpi'],
184
+ ['activity', 'pulse, health, monitoring'],
185
+ ['siren', 'emergency, incident, alarm, urgent'],
186
+ ['shield', 'security, protection, safety, guard'],
187
+ ['shield-check', 'secure, verified, compliance'],
188
+ ['lock', 'secure, private, locked, password'],
189
+ ['key', 'access, password, credentials'],
190
+ ['hard-hat', 'safety, construction, worker'],
191
+ ['construction', 'under construction, roadwork, barrier'],
192
+ ['recycle', 'reuse, sustainability, waste'],
193
+ ['stamp', 'approval, certify, seal, official'],
194
+ ],
195
+ places: [
196
+ ['building', 'office, company, organization, business'],
197
+ ['building-complex', 'offices, campus, enterprise, city'],
198
+ ['house', 'home, residence, property'],
199
+ ['hotel', 'hospitality, stay, accommodation'],
200
+ ['school', 'education, campus, class'],
201
+ ['hospital', 'health, clinic, medical'],
202
+ ['map', 'location, region, territory'],
203
+ ['map-pin', 'location, place, address, marker'],
204
+ ['map-pinned', 'location, venue, destination'],
205
+ ['globe', 'world, international, web, global'],
206
+ ['earth', 'planet, world, environment'],
207
+ ['compass', 'direction, explore, navigation'],
208
+ ['navigation', 'direction, gps, arrow'],
209
+ ['plane', 'travel, flight, airport, trip'],
210
+ ['car', 'vehicle, drive, auto, fleet'],
211
+ ['bus', 'transit, transport, travel'],
212
+ ['train-front', 'rail, transit, travel'],
213
+ ['ship', 'boat, sea, cruise, shipping'],
214
+ ['bike', 'bicycle, cycling, ride'],
215
+ ['mountain', 'outdoors, peak, adventure'],
216
+ ],
217
+ tech: [
218
+ ['code', 'development, programming, source'],
219
+ ['terminal', 'console, shell, command line, cli'],
220
+ ['server', 'backend, hosting, infrastructure'],
221
+ ['database', 'data, storage, records, sql'],
222
+ ['cloud', 'hosting, saas, online'],
223
+ ['cpu', 'processor, chip, hardware'],
224
+ ['monitor', 'screen, desktop, display'],
225
+ ['laptop', 'computer, notebook, device'],
226
+ ['smartphone', 'mobile, phone, app, device'],
227
+ ['tablet', 'ipad, device, touch'],
228
+ ['wifi', 'internet, wireless, network'],
229
+ ['bluetooth', 'wireless, device, pairing'],
230
+ ['plug', 'integration, power, connect, plugin'],
231
+ ['hard-drive', 'disk, storage, backup'],
232
+ ['git-branch', 'version control, branch, repository'],
233
+ ['git-pull-request', 'review, merge, code review'],
234
+ ['bot', 'robot, automation, ai, assistant'],
235
+ ['brain', 'ai, intelligence, mind, think'],
236
+ ['puzzle', 'integration, plugin, extension, piece'],
237
+ ['blocks', 'modules, components, building blocks'],
238
+ ['bug', 'defect, issue, error, insect'],
239
+ ['webhook', 'hook, integration, event, api'],
240
+ ['link', 'url, connection, chain'],
241
+ ['qr-code', 'scan, code, mobile'],
242
+ ['keyboard', 'typing, input, shortcut'],
243
+ ['printer', 'print, document, office'],
244
+ ],
245
+ status: [
246
+ ['circle', 'dot, default, neutral, generic'],
247
+ ['circle-check', 'done, success, complete, ok'],
248
+ ['circle-x', 'cancel, failed, error, close'],
249
+ ['circle-alert', 'warning, attention, issue'],
250
+ ['circle-question-mark', 'help, question, unknown, faq'],
251
+ ['circle-pause', 'paused, hold, on hold'],
252
+ ['circle-play', 'start, running, in progress'],
253
+ ['circle-dot', 'active, current, selected, record'],
254
+ ['circle-dashed', 'draft, pending, not started, todo'],
255
+ ['triangle-alert', 'warning, caution, risk, danger'],
256
+ ['octagon-alert', 'stop, critical, error, blocker'],
257
+ ['info', 'information, about, details'],
258
+ ['ban', 'blocked, forbidden, cancelled, prohibited'],
259
+ ['check', 'done, ok, yes, approve'],
260
+ ['x', 'close, no, reject, cancel'],
261
+ ['loader', 'loading, progress, spinner, working'],
262
+ ['refresh-cw', 'sync, retry, recurring, update'],
263
+ ['eye', 'view, visible, watch, review'],
264
+ ['eye-off', 'hidden, private, invisible'],
265
+ ['flame', 'hot, trending, urgent, fire'],
266
+ ['zap', 'fast, energy, power, quick'],
267
+ ['sparkles', 'new, magic, ai, highlight'],
268
+ ['star', 'favorite, rating, featured, priority'],
269
+ ['heart', 'like, love, favorite, health'],
270
+ ['thumbs-down', 'dislike, reject, bad'],
271
+ ['badge-check', 'verified, certified, approved, quality'],
272
+ ['shield-alert', 'risk, threat, security issue'],
273
+ ['bookmark', 'save, saved, later, mark'],
274
+ ['pin', 'pinned, important, fixed'],
275
+ ],
276
+ objects: [
277
+ ['book', 'read, manual, library, guide'],
278
+ ['pen', 'write, sign, edit'],
279
+ ['pencil', 'edit, draft, write, sketch'],
280
+ ['palette', 'design, colors, art, theme'],
281
+ ['brush', 'paint, design, art'],
282
+ ['camera', 'photo, picture, photography'],
283
+ ['image', 'picture, photo, media, gallery'],
284
+ ['music', 'audio, song, sound'],
285
+ ['headphones', 'audio, listen, podcast, support'],
286
+ ['gamepad-2', 'game, gaming, play, controller'],
287
+ ['umbrella', 'insurance, protection, rain, cover'],
288
+ ['shirt', 'clothing, apparel, fashion, merch'],
289
+ ['watch', 'time, wearable, clock'],
290
+ ['coffee', 'break, cafe, drink, morning'],
291
+ ['utensils', 'food, restaurant, dining, meal'],
292
+ ['lamp', 'light, idea, desk'],
293
+ ['armchair', 'furniture, comfort, lounge, waiting room'],
294
+ ['bed', 'hotel, sleep, rest, room'],
295
+ ['scissors', 'cut, trim, craft'],
296
+ ['ruler', 'measure, size, design'],
297
+ ['trash', 'delete, bin, remove, waste'],
298
+ ['box', 'package, storage, container'],
299
+ ['magnet', 'attract, leads, pull'],
300
+ ['flask-conical', 'lab, science, experiment, test'],
301
+ ['microscope', 'research, science, lab'],
302
+ ['stethoscope', 'medical, doctor, health, care'],
303
+ ['pill', 'medicine, pharmacy, health'],
304
+ ['dumbbell', 'fitness, gym, workout, sport'],
305
+ ],
306
+ nature: [
307
+ ['leaf', 'eco, green, plant, organic'],
308
+ ['tree-pine', 'forest, christmas, outdoors'],
309
+ ['trees', 'forest, park, nature'],
310
+ ['flower', 'blossom, spring, garden'],
311
+ ['flower-2', 'blossom, daisy, garden'],
312
+ ['sprout', 'growth, seedling, startup, new'],
313
+ ['sun', 'day, light, summer, weather'],
314
+ ['moon', 'night, dark, sleep'],
315
+ ['cloud-rain', 'weather, rain, storm'],
316
+ ['cloud-sun', 'weather, forecast, partly cloudy'],
317
+ ['snowflake', 'winter, cold, frozen, freeze'],
318
+ ['droplet', 'water, liquid, drop'],
319
+ ['waves-horizontal', 'water, sea, ocean, waves'],
320
+ ['wind', 'air, breeze, weather'],
321
+ ['mountain-snow', 'alpine, peak, winter'],
322
+ ['bird', 'animal, fly, wing'],
323
+ ['fish', 'animal, sea, food'],
324
+ ['cat', 'pet, animal'],
325
+ ['dog', 'pet, animal'],
326
+ ['paw-print', 'pet, animal, vet'],
327
+ ['feather', 'light, write, bird'],
328
+ ['apple', 'fruit, food, health, education'],
329
+ ['carrot', 'vegetable, food, garden'],
330
+ ],
331
+ };
332
+ /** Every catalogue icon with its category and search words, category by category. */
333
+ export const PICKER_ICON_ENTRIES = Object.freeze(PICKER_ICON_CATEGORIES.flatMap(category => CATALOGUE[category].map(([name, keywords]) => Object.freeze({ name, category, keywords: Object.freeze(keywords.split(', ')) }))));
334
+ /** The catalogue's names, in catalogue order. */
335
+ export const PICKER_ICON_NAMES = Object.freeze(PICKER_ICON_ENTRIES.map(icon => icon.name));
336
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":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C,CAAC,CAAA"}
@@ -0,0 +1,67 @@
1
+ import type { PICKER_COLOR_KEYS, PICKER_ICON_CATEGORIES } from './consts.js';
2
+ /**
3
+ * One colour a picker offers. The palette's own entries carry hex values; an application's palette
4
+ * may carry any CSS colour — a status palette reads its theme's `var(--tone-<t>)` tokens.
5
+ */
6
+ export interface PickerColor {
7
+ /** Palette key (`'blue'`), or any id of an application palette (`'info'`). What is stored. */
8
+ key: string;
9
+ /** The swatch circle the picker shows for this colour (hex or `var(...)`). */
10
+ swatch: string;
11
+ /** Icon and dot colour on the light page — at least 3:1 on `soft` and on white. */
12
+ ink: string;
13
+ /** Tile ground on the light page. */
14
+ soft: string;
15
+ /** Icon and dot colour on the dark page — at least 3:1 on `softDark` and on black. Defaults to `ink`. */
16
+ inkDark?: string;
17
+ /** Tile ground on the dark page. Defaults to `soft`. */
18
+ softDark?: string;
19
+ /** English name; absent, the key humanized. */
20
+ label?: string;
21
+ }
22
+ /** A stored colour value read against a palette: every field filled in. */
23
+ export interface ResolvedPickerColor {
24
+ /** The palette key, or the normalized lowercase `#rrggbb` of a custom colour. */
25
+ key: string;
26
+ /** `true` for a hex value that is not a palette key. */
27
+ custom: boolean;
28
+ /** English name — the palette label, or the hex itself for a custom colour. */
29
+ label: string;
30
+ swatch: string;
31
+ ink: string;
32
+ soft: string;
33
+ inkDark: string;
34
+ softDark: string;
35
+ }
36
+ /** One of the 24 palette keys. */
37
+ export type PickerColorKey = typeof PICKER_COLOR_KEYS[number];
38
+ /** One of the icon catalogue's categories. */
39
+ export type PickerIconCategory = typeof PICKER_ICON_CATEGORIES[number];
40
+ /** One icon of the catalogue: a kebab-case lucide name, its category and English search words. */
41
+ export interface PickerIconEntry {
42
+ name: string;
43
+ category: PickerIconCategory;
44
+ keywords: readonly string[];
45
+ }
46
+ /** Reads, validates and renders a stored colour value. React-free. */
47
+ export interface PickerColorHelper {
48
+ /** `'#abc'` or `'#aabbcc'`, any case — the forms a picker accepts as a custom colour. */
49
+ isHex: (value: unknown) => value is string;
50
+ /** `'#ABC'`, `'abc'`, `'AABBCC'` → `'#aabbcc'`; anything else → `null`. */
51
+ normalizeHex: (value: string) => string | null;
52
+ /**
53
+ * A key of `colors` (default the 24-colour palette) or a hex value, every field filled in — a hex
54
+ * gets an ink and a ground derived from it that keep 4.5:1 in both modes. Unknown or empty → `null`.
55
+ */
56
+ resolve: (value: string | null | undefined, colors?: readonly PickerColor[]) => ResolvedPickerColor | null;
57
+ /**
58
+ * The CSS custom properties `--pick-swatch`, `--pick-ink`, `--pick-soft`, `--pick-ink-dark` and
59
+ * `--pick-soft-dark` for a value — what every picker part reads. Unknown → the fallback colour's
60
+ * (`slate`, or the first entry of an application palette without one). A plain string record, so it
61
+ * goes straight into a React `style` (and merges with other properties there).
62
+ */
63
+ styleOf: (value: string | null | undefined, colors?: readonly PickerColor[]) => Record<string, string>;
64
+ /** The same key for the same seed — a stable colour for a record that has none of its own. */
65
+ hashKey: (seed: string, keys?: readonly string[]) => string;
66
+ }
67
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/picker/vocabulary/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAE5E;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,8FAA8F;IAC9F,GAAG,EAAE,MAAM,CAAA;IACX,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAA;IACd,mFAAmF;IACnF,GAAG,EAAE,MAAM,CAAA;IACX,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,yGAAyG;IACzG,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IA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E,SAAS,MAAM,EAAE,KAAK,MAAM,CAAA;CAC5D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/picker/vocabulary/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `@owlmeans/web-panel/picker/vocabulary` — the picker's data and its colour helper, with no React
3
+ * and no icon set: the palette, the icon catalogue's names, categories and search words, and
4
+ * `pickerColorHelper`. Safe to import from a server, a seed or a Node build script.
5
+ */
6
+ import type { PickerColorHelper } from './vocabulary/types.js';
7
+ export * from './vocabulary/consts.js';
8
+ export type * from './vocabulary/types.js';
9
+ export declare const createPickerColorHelper: () => PickerColorHelper;
10
+ export declare const pickerColorHelper: PickerColorHelper;
11
+ //# sourceMappingURL=vocabulary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../../src/picker/vocabulary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAe,iBAAiB,EAAuB,MAAM,uBAAuB,CAAA;AAGhG,cAAc,wBAAwB,CAAA;AACtC,mBAAmB,uBAAuB,CAAA;AAE1C,eAAO,MAAM,uBAAuB,QAAO,iBA+F1C,CAAA;AAED,eAAO,MAAM,iBAAiB,mBAA4B,CAAA"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * `@owlmeans/web-panel/picker/vocabulary` — the picker's data and its colour helper, with no React
3
+ * and no icon set: the palette, the icon catalogue's names, categories and search words, and
4
+ * `pickerColorHelper`. Safe to import from a server, a seed or a Node build script.
5
+ */
6
+ import { PICKER_COLORS, PICKER_COLOR_KEYS, PICKER_FALLBACK_COLOR } from './vocabulary/consts.js';
7
+ import { colorUtils } from './utils/color.js';
8
+ export * from './vocabulary/consts.js';
9
+ export const createPickerColorHelper = () => {
10
+ // Derivation walks lightness in small steps; a page renders the same custom colour many times.
11
+ const derived = new Map();
12
+ const isHex = (value) => typeof value === 'string' && /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(value.trim());
13
+ const normalizeHex = (value) => {
14
+ const match = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(value.trim());
15
+ if (match == null) {
16
+ return null;
17
+ }
18
+ const digits = match[1].toLowerCase();
19
+ return `#${digits.length === 3 ? [...digits].map(digit => digit + digit).join('') : digits}`;
20
+ };
21
+ const humanize = (key) => {
22
+ const words = key.replace(/[-_]+/g, ' ').trim();
23
+ return words === '' ? key : words[0].toUpperCase() + words.slice(1);
24
+ };
25
+ const fill = (color) => ({
26
+ key: color.key,
27
+ custom: false,
28
+ label: color.label ?? humanize(color.key),
29
+ swatch: color.swatch,
30
+ ink: color.ink,
31
+ soft: color.soft,
32
+ inkDark: color.inkDark ?? color.ink,
33
+ softDark: color.softDark ?? color.soft,
34
+ });
35
+ const custom = (hex) => {
36
+ const known = derived.get(hex);
37
+ if (known != null) {
38
+ return known;
39
+ }
40
+ const resolved = { key: hex, custom: true, label: hex.toUpperCase(), swatch: hex, ...colorUtils.derive(hex) };
41
+ derived.set(hex, resolved);
42
+ return resolved;
43
+ };
44
+ const resolve = (value, colors = PICKER_COLORS) => {
45
+ if (typeof value !== 'string' || value.trim() === '') {
46
+ return null;
47
+ }
48
+ const key = value.trim();
49
+ const known = colors.find(color => color.key === key) ?? colors.find(color => color.key === key.toLowerCase());
50
+ if (known != null) {
51
+ return fill(known);
52
+ }
53
+ const hex = normalizeHex(key);
54
+ return hex != null && key.startsWith('#') ? custom(hex) : null;
55
+ };
56
+ const paletteFallback = fill(PICKER_COLORS.find(color => color.key === PICKER_FALLBACK_COLOR) ?? PICKER_COLORS[0]);
57
+ const fallbackOf = (colors) => {
58
+ const fallback = colors.find(color => color.key === PICKER_FALLBACK_COLOR) ?? colors.at(0);
59
+ return fallback != null ? fill(fallback) : paletteFallback;
60
+ };
61
+ const styleOf = (value, colors = PICKER_COLORS) => {
62
+ const color = resolve(value, colors) ?? fallbackOf(colors);
63
+ return {
64
+ '--pick-swatch': color.swatch,
65
+ '--pick-ink': color.ink,
66
+ '--pick-soft': color.soft,
67
+ '--pick-ink-dark': color.inkDark,
68
+ '--pick-soft-dark': color.softDark,
69
+ };
70
+ };
71
+ const hashKey = (seed, keys = PICKER_COLOR_KEYS) => {
72
+ // FNV-1a: tiny, stable across runtimes, and spreads short ids well enough for a palette.
73
+ let hash = 0x811c9dc5;
74
+ for (let index = 0; index < seed.length; index++) {
75
+ hash ^= seed.charCodeAt(index);
76
+ hash = Math.imul(hash, 0x01000193) >>> 0;
77
+ }
78
+ return keys.length > 0 ? keys[hash % keys.length] : PICKER_FALLBACK_COLOR;
79
+ };
80
+ return { isHex, normalizeHex, resolve, styleOf, hashKey };
81
+ };
82
+ export const pickerColorHelper = createPickerColorHelper();
83
+ //# sourceMappingURL=vocabulary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../../src/picker/vocabulary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAEhG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,cAAc,wBAAwB,CAAA;AAGtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAsB,EAAE;IAC7D,+FAA+F;IAC/F,MAAM,OAAO,GAAG,IAAI,GAAG,EAA+B,CAAA;IAEtD,MAAM,KAAK,GAAG,CAAC,KAAc,EAAmB,EAAE,CAChD,OAAO,KAAK,KAAK,QAAQ,IAAI,iCAAiC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;IAEnF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAiB,EAAE;QACpD,MAAM,KAAK,GAAG,gCAAgC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAA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AAU,CAAC,KAAK,CAAC,CAAA;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAA;IAC3E,CAAC,CAAA;IAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA;AAC3D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ /** The `localStorage` key the choice lives under. */
2
+ export declare const COLOR_SCHEME_KEY = "owlmeans:color-scheme";
3
+ /**
4
+ * The event `applyColorScheme` dispatches on `window` after every change, so every mounted
5
+ * `useColorScheme` in the document — two toggles, a header and a footer — agrees at once.
6
+ */
7
+ export declare const COLOR_SCHEME_EVENT = "owlmeans:color-scheme";
8
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/scheme/consts.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,0BAA0B,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,0BAA0B,CAAA"}
@@ -0,0 +1,8 @@
1
+ /** The `localStorage` key the choice lives under. */
2
+ export const COLOR_SCHEME_KEY = 'owlmeans:color-scheme';
3
+ /**
4
+ * The event `applyColorScheme` dispatches on `window` after every change, so every mounted
5
+ * `useColorScheme` in the document — two toggles, a header and a footer — agrees at once.
6
+ */
7
+ export const COLOR_SCHEME_EVENT = 'owlmeans:color-scheme';
8
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/scheme/consts.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAA;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { colorSchemeHelper, createColorSchemeHelper, colorSchemeBootstrapScript } from './scheme.js';
2
+ export { COLOR_SCHEME_KEY, COLOR_SCHEME_EVENT } from './consts.js';
3
+ export type { ColorSchemeChoice, ColorSchemeHelper } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AACpG,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAClE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { colorSchemeHelper, createColorSchemeHelper, colorSchemeBootstrapScript } from './scheme.js';
2
+ export { COLOR_SCHEME_KEY, COLOR_SCHEME_EVENT } from './consts.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AACpG,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The colour-scheme choice, with no React and no framework code: a build script running in Node
3
+ * imports this module to inline the head bootstrap, and it must not drag a component tree in.
4
+ *
5
+ * The contract is TWO classes on the document element. `dark` means the visitor chose dark,
6
+ * `light` that they chose light, and neither that they chose nothing — the page follows the
7
+ * operating system. `light` has to exist as a class of its own: without it, a visitor who picks
8
+ * light on a system that prefers dark has no way to say so to a stylesheet that paints dark under
9
+ * `prefers-color-scheme: dark`.
10
+ */
11
+ import type { ColorSchemeHelper } from './types.js';
12
+ export declare const createColorSchemeHelper: () => ColorSchemeHelper;
13
+ export declare const colorSchemeHelper: ColorSchemeHelper;
14
+ /** @deprecated compat:factory-refactor — use `colorSchemeHelper.colorSchemeBootstrapScript()` */
15
+ export declare const colorSchemeBootstrapScript: () => string;
16
+ //# sourceMappingURL=scheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheme.d.ts","sourceRoot":"","sources":["../../src/scheme/scheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEtE,eAAO,MAAM,uBAAuB,QAAO,iBA8C1C,CAAA;AAED,eAAO,MAAM,iBAAiB,mBAA4B,CAAA;AAE1D,iGAAiG;AACjG,eAAO,MAAM,0BAA0B,QAAO,MAAwD,CAAA"}