godown 2.7.7 → 3.0.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (736) hide show
  1. package/README.md +44 -80
  2. package/alert.d.ts +2 -3
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +5 -4
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +2 -3
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +5 -4
  9. package/avatar.js.map +1 -1
  10. package/breath.d.ts +9 -0
  11. package/breath.d.ts.map +1 -0
  12. package/breath.js +6 -0
  13. package/breath.js.map +1 -0
  14. package/button.d.ts +2 -3
  15. package/button.d.ts.map +1 -1
  16. package/button.js +5 -4
  17. package/button.js.map +1 -1
  18. package/card.d.ts +2 -3
  19. package/card.d.ts.map +1 -1
  20. package/card.js +5 -4
  21. package/card.js.map +1 -1
  22. package/carousel.d.ts +2 -3
  23. package/carousel.d.ts.map +1 -1
  24. package/carousel.js +5 -4
  25. package/carousel.js.map +1 -1
  26. package/components/alert.d.ts +50 -0
  27. package/components/alert.d.ts.map +1 -0
  28. package/components/alert.js +167 -0
  29. package/components/alert.js.map +1 -0
  30. package/components/avatar.d.ts +26 -0
  31. package/components/avatar.d.ts.map +1 -0
  32. package/components/avatar.js +62 -0
  33. package/components/avatar.js.map +1 -0
  34. package/components/breath.d.ts +34 -0
  35. package/components/breath.d.ts.map +1 -0
  36. package/components/breath.js +80 -0
  37. package/components/breath.js.map +1 -0
  38. package/{web-components/button → components}/button.d.ts +6 -5
  39. package/components/button.d.ts.map +1 -0
  40. package/components/button.js +167 -0
  41. package/components/button.js.map +1 -0
  42. package/components/card.d.ts +20 -0
  43. package/components/card.d.ts.map +1 -0
  44. package/components/card.js +55 -0
  45. package/components/card.js.map +1 -0
  46. package/components/carousel.d.ts +40 -0
  47. package/components/carousel.d.ts.map +1 -0
  48. package/components/carousel.js +113 -0
  49. package/components/carousel.js.map +1 -0
  50. package/{web-components/details → components}/details.d.ts +5 -3
  51. package/components/details.d.ts.map +1 -0
  52. package/components/details.js +50 -0
  53. package/components/details.js.map +1 -0
  54. package/components/dialog.d.ts +33 -0
  55. package/components/dialog.d.ts.map +1 -0
  56. package/components/dialog.js +92 -0
  57. package/components/dialog.js.map +1 -0
  58. package/components/divider.d.ts +17 -0
  59. package/components/divider.d.ts.map +1 -0
  60. package/components/divider.js +37 -0
  61. package/components/divider.js.map +1 -0
  62. package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
  63. package/components/dragbox.d.ts.map +1 -0
  64. package/components/dragbox.js +110 -0
  65. package/components/dragbox.js.map +1 -0
  66. package/components/flex.d.ts +31 -0
  67. package/components/flex.d.ts.map +1 -0
  68. package/components/flex.js +55 -0
  69. package/components/flex.js.map +1 -0
  70. package/{web-components/form → components}/form.d.ts +4 -2
  71. package/components/form.d.ts.map +1 -0
  72. package/components/form.js +78 -0
  73. package/components/form.js.map +1 -0
  74. package/components/grid.d.ts +31 -0
  75. package/components/grid.d.ts.map +1 -0
  76. package/components/grid.js +56 -0
  77. package/components/grid.js.map +1 -0
  78. package/components/input.d.ts +20 -0
  79. package/components/input.d.ts.map +1 -0
  80. package/components/input.js +54 -0
  81. package/components/input.js.map +1 -0
  82. package/components/layout.d.ts +29 -0
  83. package/components/layout.d.ts.map +1 -0
  84. package/components/layout.js +48 -0
  85. package/components/layout.js.map +1 -0
  86. package/components/link.d.ts +20 -0
  87. package/components/link.d.ts.map +1 -0
  88. package/components/link.js +43 -0
  89. package/components/link.js.map +1 -0
  90. package/{web-components/progress → components}/progress.d.ts +5 -3
  91. package/components/progress.d.ts.map +1 -0
  92. package/components/progress.js +68 -0
  93. package/components/progress.js.map +1 -0
  94. package/components/range.d.ts +60 -0
  95. package/components/range.d.ts.map +1 -0
  96. package/components/range.js +193 -0
  97. package/components/range.js.map +1 -0
  98. package/{web-components/wrapper → components}/rotate.d.ts +4 -8
  99. package/components/rotate.d.ts.map +1 -0
  100. package/components/rotate.js +57 -0
  101. package/components/rotate.js.map +1 -0
  102. package/components/router.d.ts +121 -0
  103. package/components/router.d.ts.map +1 -0
  104. package/components/router.js +251 -0
  105. package/components/router.js.map +1 -0
  106. package/components/select.d.ts +50 -0
  107. package/components/select.d.ts.map +1 -0
  108. package/components/select.js +211 -0
  109. package/components/select.js.map +1 -0
  110. package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
  111. package/components/skeleton.d.ts.map +1 -0
  112. package/components/skeleton.js +56 -0
  113. package/components/skeleton.js.map +1 -0
  114. package/components/split.d.ts +32 -0
  115. package/components/split.d.ts.map +1 -0
  116. package/components/split.js +121 -0
  117. package/components/split.js.map +1 -0
  118. package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
  119. package/components/switch.d.ts.map +1 -0
  120. package/components/switch.js +93 -0
  121. package/components/switch.js.map +1 -0
  122. package/{web-components/text → components}/text.d.ts +5 -3
  123. package/components/text.d.ts.map +1 -0
  124. package/components/text.js +44 -0
  125. package/components/text.js.map +1 -0
  126. package/{web-components/text → components}/time.d.ts +5 -3
  127. package/components/time.d.ts.map +1 -0
  128. package/components/time.js +139 -0
  129. package/components/time.js.map +1 -0
  130. package/components/tooltip.d.ts +38 -0
  131. package/components/tooltip.d.ts.map +1 -0
  132. package/components/tooltip.js +67 -0
  133. package/components/tooltip.js.map +1 -0
  134. package/{web-components/text → components}/typewriter.d.ts +5 -3
  135. package/components/typewriter.d.ts.map +1 -0
  136. package/components/typewriter.js +130 -0
  137. package/components/typewriter.js.map +1 -0
  138. package/core/global-style.d.ts +21 -0
  139. package/core/global-style.d.ts.map +1 -0
  140. package/core/global-style.js +46 -0
  141. package/core/global-style.js.map +1 -0
  142. package/core/super-anchor.d.ts +15 -0
  143. package/core/super-anchor.d.ts.map +1 -0
  144. package/core/super-anchor.js +39 -0
  145. package/core/super-anchor.js.map +1 -0
  146. package/core/super-input.d.ts +39 -0
  147. package/core/super-input.d.ts.map +1 -0
  148. package/core/super-input.js +115 -0
  149. package/core/super-input.js.map +1 -0
  150. package/{proto → core}/super-openable.d.ts +4 -8
  151. package/core/super-openable.d.ts.map +1 -0
  152. package/core/super-openable.js +38 -0
  153. package/core/super-openable.js.map +1 -0
  154. package/custom-elements.json +1 -0
  155. package/details.d.ts +2 -3
  156. package/details.d.ts.map +1 -1
  157. package/details.js +5 -4
  158. package/details.js.map +1 -1
  159. package/dev/alert.d.ts +8 -0
  160. package/dev/alert.d.ts.map +1 -0
  161. package/dev/alert.js +4 -0
  162. package/dev/alert.js.map +1 -0
  163. package/dev/avatar.d.ts +8 -0
  164. package/dev/avatar.d.ts.map +1 -0
  165. package/dev/avatar.js +4 -0
  166. package/dev/avatar.js.map +1 -0
  167. package/dev/breath.d.ts +9 -0
  168. package/dev/breath.d.ts.map +1 -0
  169. package/dev/breath.js +5 -0
  170. package/dev/breath.js.map +1 -0
  171. package/dev/button.d.ts +8 -0
  172. package/dev/button.d.ts.map +1 -0
  173. package/dev/button.js +4 -0
  174. package/dev/button.js.map +1 -0
  175. package/dev/card.d.ts +8 -0
  176. package/dev/card.d.ts.map +1 -0
  177. package/dev/card.js +4 -0
  178. package/dev/card.js.map +1 -0
  179. package/dev/carousel.d.ts +8 -0
  180. package/dev/carousel.d.ts.map +1 -0
  181. package/dev/carousel.js +4 -0
  182. package/dev/carousel.js.map +1 -0
  183. package/dev/components/alert.d.ts +50 -0
  184. package/dev/components/alert.d.ts.map +1 -0
  185. package/dev/components/alert.js +234 -0
  186. package/dev/components/alert.js.map +1 -0
  187. package/dev/components/avatar.d.ts +26 -0
  188. package/dev/components/avatar.d.ts.map +1 -0
  189. package/dev/components/avatar.js +91 -0
  190. package/dev/components/avatar.js.map +1 -0
  191. package/dev/components/breath.d.ts +34 -0
  192. package/dev/components/breath.d.ts.map +1 -0
  193. package/dev/components/breath.js +133 -0
  194. package/dev/components/breath.js.map +1 -0
  195. package/dev/components/button.d.ts +45 -0
  196. package/dev/components/button.d.ts.map +1 -0
  197. package/{web-components/button → dev/components}/button.js +76 -76
  198. package/dev/components/button.js.map +1 -0
  199. package/dev/components/card.d.ts +20 -0
  200. package/dev/components/card.d.ts.map +1 -0
  201. package/dev/components/card.js +89 -0
  202. package/dev/components/card.js.map +1 -0
  203. package/dev/components/carousel.d.ts +40 -0
  204. package/dev/components/carousel.d.ts.map +1 -0
  205. package/dev/components/carousel.js +155 -0
  206. package/dev/components/carousel.js.map +1 -0
  207. package/dev/components/details.d.ts +20 -0
  208. package/dev/components/details.d.ts.map +1 -0
  209. package/dev/components/details.js +115 -0
  210. package/dev/components/details.js.map +1 -0
  211. package/dev/components/dialog.d.ts +33 -0
  212. package/dev/components/dialog.d.ts.map +1 -0
  213. package/dev/components/dialog.js +154 -0
  214. package/dev/components/dialog.js.map +1 -0
  215. package/dev/components/divider.d.ts +17 -0
  216. package/dev/components/divider.d.ts.map +1 -0
  217. package/dev/components/divider.js +46 -0
  218. package/dev/components/divider.js.map +1 -0
  219. package/dev/components/dragbox.d.ts +40 -0
  220. package/dev/components/dragbox.d.ts.map +1 -0
  221. package/{web-components/wrapper → dev/components}/dragbox.js +27 -15
  222. package/dev/components/dragbox.js.map +1 -0
  223. package/dev/components/flex.d.ts +31 -0
  224. package/dev/components/flex.d.ts.map +1 -0
  225. package/dev/components/flex.js +52 -0
  226. package/dev/components/flex.js.map +1 -0
  227. package/dev/components/form.d.ts +24 -0
  228. package/dev/components/form.d.ts.map +1 -0
  229. package/{web-components/form → dev/components}/form.js +11 -11
  230. package/dev/components/form.js.map +1 -0
  231. package/dev/components/grid.d.ts +31 -0
  232. package/dev/components/grid.d.ts.map +1 -0
  233. package/dev/components/grid.js +53 -0
  234. package/dev/components/grid.js.map +1 -0
  235. package/dev/components/input.d.ts +20 -0
  236. package/dev/components/input.d.ts.map +1 -0
  237. package/dev/components/input.js +89 -0
  238. package/dev/components/input.js.map +1 -0
  239. package/dev/components/layout.d.ts +29 -0
  240. package/dev/components/layout.d.ts.map +1 -0
  241. package/dev/components/layout.js +69 -0
  242. package/dev/components/layout.js.map +1 -0
  243. package/dev/components/link.d.ts +20 -0
  244. package/dev/components/link.d.ts.map +1 -0
  245. package/dev/components/link.js +40 -0
  246. package/dev/components/link.js.map +1 -0
  247. package/dev/components/progress.d.ts +30 -0
  248. package/dev/components/progress.d.ts.map +1 -0
  249. package/{web-components/progress → dev/components}/progress.js +12 -11
  250. package/dev/components/progress.js.map +1 -0
  251. package/dev/components/range.d.ts +60 -0
  252. package/dev/components/range.d.ts.map +1 -0
  253. package/{web-components/input/range-input.js → dev/components/range.js} +82 -92
  254. package/dev/components/range.js.map +1 -0
  255. package/dev/components/rotate.d.ts +26 -0
  256. package/dev/components/rotate.d.ts.map +1 -0
  257. package/{web-components/wrapper → dev/components}/rotate.js +14 -20
  258. package/dev/components/rotate.js.map +1 -0
  259. package/dev/components/router.d.ts +121 -0
  260. package/dev/components/router.d.ts.map +1 -0
  261. package/dev/components/router.js +248 -0
  262. package/dev/components/router.js.map +1 -0
  263. package/dev/components/select.d.ts +50 -0
  264. package/dev/components/select.d.ts.map +1 -0
  265. package/dev/components/select.js +243 -0
  266. package/dev/components/select.js.map +1 -0
  267. package/dev/components/skeleton.d.ts +26 -0
  268. package/dev/components/skeleton.d.ts.map +1 -0
  269. package/dev/components/skeleton.js +119 -0
  270. package/dev/components/skeleton.js.map +1 -0
  271. package/dev/components/split.d.ts +32 -0
  272. package/dev/components/split.d.ts.map +1 -0
  273. package/dev/components/split.js +173 -0
  274. package/dev/components/split.js.map +1 -0
  275. package/dev/components/switch.d.ts +39 -0
  276. package/dev/components/switch.d.ts.map +1 -0
  277. package/{web-components/input/switch-input.js → dev/components/switch.js} +53 -59
  278. package/dev/components/switch.js.map +1 -0
  279. package/dev/components/text.d.ts +19 -0
  280. package/dev/components/text.d.ts.map +1 -0
  281. package/{web-components/text → dev/components}/text.js +22 -23
  282. package/dev/components/text.js.map +1 -0
  283. package/dev/components/time.d.ts +53 -0
  284. package/dev/components/time.d.ts.map +1 -0
  285. package/{web-components/text → dev/components}/time.js +12 -18
  286. package/dev/components/time.js.map +1 -0
  287. package/dev/components/tooltip.d.ts +38 -0
  288. package/dev/components/tooltip.d.ts.map +1 -0
  289. package/dev/components/tooltip.js +114 -0
  290. package/dev/components/tooltip.js.map +1 -0
  291. package/dev/components/typewriter.d.ts +55 -0
  292. package/dev/components/typewriter.d.ts.map +1 -0
  293. package/{web-components/text → dev/components}/typewriter.js +21 -19
  294. package/dev/components/typewriter.js.map +1 -0
  295. package/dev/core/global-style.d.ts +21 -0
  296. package/dev/core/global-style.d.ts.map +1 -0
  297. package/dev/core/global-style.js +77 -0
  298. package/dev/core/global-style.js.map +1 -0
  299. package/dev/core/super-anchor.d.ts +15 -0
  300. package/dev/core/super-anchor.d.ts.map +1 -0
  301. package/dev/core/super-anchor.js +58 -0
  302. package/dev/core/super-anchor.js.map +1 -0
  303. package/dev/core/super-input.d.ts +39 -0
  304. package/dev/core/super-input.d.ts.map +1 -0
  305. package/dev/core/super-input.js +181 -0
  306. package/dev/core/super-input.js.map +1 -0
  307. package/dev/core/super-openable.d.ts +19 -0
  308. package/dev/core/super-openable.d.ts.map +1 -0
  309. package/{proto → dev/core}/super-openable.js +6 -13
  310. package/dev/core/super-openable.js.map +1 -0
  311. package/dev/details.d.ts +8 -0
  312. package/dev/details.d.ts.map +1 -0
  313. package/dev/details.js +4 -0
  314. package/dev/details.js.map +1 -0
  315. package/dev/dialog.d.ts +8 -0
  316. package/dev/dialog.d.ts.map +1 -0
  317. package/dev/dialog.js +4 -0
  318. package/dev/dialog.js.map +1 -0
  319. package/dev/divider.d.ts +8 -0
  320. package/dev/divider.d.ts.map +1 -0
  321. package/dev/divider.js +4 -0
  322. package/dev/divider.js.map +1 -0
  323. package/dev/dragbox.d.ts +8 -0
  324. package/dev/dragbox.d.ts.map +1 -0
  325. package/dev/dragbox.js +4 -0
  326. package/dev/dragbox.js.map +1 -0
  327. package/dev/flex.d.ts +8 -0
  328. package/dev/flex.d.ts.map +1 -0
  329. package/dev/flex.js +4 -0
  330. package/dev/flex.js.map +1 -0
  331. package/dev/form.d.ts +8 -0
  332. package/dev/form.d.ts.map +1 -0
  333. package/dev/form.js +4 -0
  334. package/dev/form.js.map +1 -0
  335. package/dev/grid.d.ts +8 -0
  336. package/dev/grid.d.ts.map +1 -0
  337. package/dev/grid.js +4 -0
  338. package/dev/grid.js.map +1 -0
  339. package/dev/index.d.ts +29 -0
  340. package/dev/index.d.ts.map +1 -0
  341. package/dev/index.js +29 -0
  342. package/dev/index.js.map +1 -0
  343. package/dev/input.d.ts +9 -0
  344. package/dev/input.d.ts.map +1 -0
  345. package/dev/input.js +5 -0
  346. package/dev/input.js.map +1 -0
  347. package/dev/layout.d.ts +9 -0
  348. package/dev/layout.d.ts.map +1 -0
  349. package/dev/layout.js +5 -0
  350. package/dev/layout.js.map +1 -0
  351. package/dev/link.d.ts +9 -0
  352. package/dev/link.d.ts.map +1 -0
  353. package/dev/link.js +5 -0
  354. package/dev/link.js.map +1 -0
  355. package/dev/progress.d.ts +9 -0
  356. package/dev/progress.d.ts.map +1 -0
  357. package/dev/progress.js +5 -0
  358. package/dev/progress.js.map +1 -0
  359. package/dev/range.d.ts +9 -0
  360. package/dev/range.d.ts.map +1 -0
  361. package/dev/range.js +5 -0
  362. package/dev/range.js.map +1 -0
  363. package/dev/rotate.d.ts +9 -0
  364. package/dev/rotate.d.ts.map +1 -0
  365. package/dev/rotate.js +5 -0
  366. package/dev/rotate.js.map +1 -0
  367. package/dev/router.d.ts +9 -0
  368. package/dev/router.d.ts.map +1 -0
  369. package/dev/router.js +5 -0
  370. package/dev/router.js.map +1 -0
  371. package/dev/select.d.ts +9 -0
  372. package/dev/select.d.ts.map +1 -0
  373. package/dev/select.js +5 -0
  374. package/dev/select.js.map +1 -0
  375. package/dev/skeleton.d.ts +9 -0
  376. package/dev/skeleton.d.ts.map +1 -0
  377. package/dev/skeleton.js +5 -0
  378. package/dev/skeleton.js.map +1 -0
  379. package/dev/split.d.ts +9 -0
  380. package/dev/split.d.ts.map +1 -0
  381. package/dev/split.js +5 -0
  382. package/dev/split.js.map +1 -0
  383. package/dev/switch.d.ts +9 -0
  384. package/dev/switch.d.ts.map +1 -0
  385. package/dev/switch.js +5 -0
  386. package/dev/switch.js.map +1 -0
  387. package/dev/text.d.ts +9 -0
  388. package/dev/text.d.ts.map +1 -0
  389. package/dev/text.js +5 -0
  390. package/dev/text.js.map +1 -0
  391. package/dev/time.d.ts +9 -0
  392. package/dev/time.d.ts.map +1 -0
  393. package/dev/time.js +5 -0
  394. package/dev/time.js.map +1 -0
  395. package/dev/tooltip.d.ts +9 -0
  396. package/dev/tooltip.d.ts.map +1 -0
  397. package/dev/tooltip.js +5 -0
  398. package/dev/tooltip.js.map +1 -0
  399. package/dev/typewriter.d.ts +8 -0
  400. package/dev/typewriter.d.ts.map +1 -0
  401. package/dev/typewriter.js +4 -0
  402. package/dev/typewriter.js.map +1 -0
  403. package/dialog.d.ts +2 -3
  404. package/dialog.d.ts.map +1 -1
  405. package/dialog.js +5 -4
  406. package/dialog.js.map +1 -1
  407. package/divider.d.ts +2 -3
  408. package/divider.d.ts.map +1 -1
  409. package/divider.js +5 -4
  410. package/divider.js.map +1 -1
  411. package/dragbox.d.ts +2 -3
  412. package/dragbox.d.ts.map +1 -1
  413. package/dragbox.js +5 -4
  414. package/dragbox.js.map +1 -1
  415. package/flex.d.ts +8 -0
  416. package/flex.d.ts.map +1 -0
  417. package/flex.js +6 -0
  418. package/flex.js.map +1 -0
  419. package/form.d.ts +2 -3
  420. package/form.d.ts.map +1 -1
  421. package/form.js +5 -4
  422. package/form.js.map +1 -1
  423. package/grid.d.ts +8 -0
  424. package/grid.d.ts.map +1 -0
  425. package/grid.js +6 -0
  426. package/grid.js.map +1 -0
  427. package/index.d.ts +28 -32
  428. package/index.d.ts.map +1 -1
  429. package/index.js +57 -33
  430. package/index.js.map +1 -1
  431. package/input.d.ts +3 -3
  432. package/input.d.ts.map +1 -1
  433. package/input.js +5 -4
  434. package/input.js.map +1 -1
  435. package/layout.d.ts +3 -3
  436. package/layout.d.ts.map +1 -1
  437. package/layout.js +5 -4
  438. package/layout.js.map +1 -1
  439. package/link.d.ts +3 -3
  440. package/link.d.ts.map +1 -1
  441. package/link.js +5 -4
  442. package/link.js.map +1 -1
  443. package/package.json +42 -81
  444. package/progress.d.ts +3 -3
  445. package/progress.d.ts.map +1 -1
  446. package/progress.js +5 -4
  447. package/progress.js.map +1 -1
  448. package/range.d.ts +9 -0
  449. package/range.d.ts.map +1 -0
  450. package/range.js +6 -0
  451. package/range.js.map +1 -0
  452. package/rotate.d.ts +3 -3
  453. package/rotate.d.ts.map +1 -1
  454. package/rotate.js +5 -4
  455. package/rotate.js.map +1 -1
  456. package/router.d.ts +3 -3
  457. package/router.d.ts.map +1 -1
  458. package/router.js +5 -4
  459. package/router.js.map +1 -1
  460. package/select.d.ts +9 -0
  461. package/select.d.ts.map +1 -0
  462. package/select.js +6 -0
  463. package/select.js.map +1 -0
  464. package/skeleton.d.ts +3 -3
  465. package/skeleton.d.ts.map +1 -1
  466. package/skeleton.js +5 -4
  467. package/skeleton.js.map +1 -1
  468. package/split.d.ts +9 -0
  469. package/split.d.ts.map +1 -0
  470. package/split.js +6 -0
  471. package/split.js.map +1 -0
  472. package/switch.d.ts +9 -0
  473. package/switch.d.ts.map +1 -0
  474. package/switch.js +6 -0
  475. package/switch.js.map +1 -0
  476. package/text.d.ts +3 -3
  477. package/text.d.ts.map +1 -1
  478. package/text.js +5 -4
  479. package/text.js.map +1 -1
  480. package/time.d.ts +3 -3
  481. package/time.d.ts.map +1 -1
  482. package/time.js +5 -4
  483. package/time.js.map +1 -1
  484. package/tooltip.d.ts +3 -3
  485. package/tooltip.d.ts.map +1 -1
  486. package/tooltip.js +5 -4
  487. package/tooltip.js.map +1 -1
  488. package/typewriter.d.ts +2 -3
  489. package/typewriter.d.ts.map +1 -1
  490. package/typewriter.js +5 -4
  491. package/typewriter.js.map +1 -1
  492. package/vscode.css-custom-data.json +1 -0
  493. package/vscode.html-custom-data.json +1 -0
  494. package/web-types.json +1 -0
  495. package/_deps.d.ts +0 -4
  496. package/_deps.d.ts.map +0 -1
  497. package/_deps.js +0 -4
  498. package/_deps.js.map +0 -1
  499. package/avatar-group.d.ts +0 -9
  500. package/avatar-group.d.ts.map +0 -1
  501. package/avatar-group.js +0 -5
  502. package/avatar-group.js.map +0 -1
  503. package/components.json +0 -194
  504. package/conf.d.ts +0 -12
  505. package/conf.d.ts.map +0 -1
  506. package/conf.js +0 -24
  507. package/conf.js.map +0 -1
  508. package/decorators/godown.d.ts +0 -4
  509. package/decorators/godown.d.ts.map +0 -1
  510. package/decorators/godown.js +0 -9
  511. package/decorators/godown.js.map +0 -1
  512. package/decorators/part.d.ts +0 -7
  513. package/decorators/part.d.ts.map +0 -1
  514. package/decorators/part.js +0 -8
  515. package/decorators/part.js.map +0 -1
  516. package/decorators/styles.d.ts +0 -3
  517. package/decorators/styles.d.ts.map +0 -1
  518. package/decorators/styles.js +0 -8
  519. package/decorators/styles.js.map +0 -1
  520. package/flex-flow.d.ts +0 -9
  521. package/flex-flow.d.ts.map +0 -1
  522. package/flex-flow.js +0 -5
  523. package/flex-flow.js.map +0 -1
  524. package/grid-flow.d.ts +0 -9
  525. package/grid-flow.d.ts.map +0 -1
  526. package/grid-flow.js +0 -5
  527. package/grid-flow.js.map +0 -1
  528. package/label-input.d.ts +0 -9
  529. package/label-input.d.ts.map +0 -1
  530. package/label-input.js +0 -5
  531. package/label-input.js.map +0 -1
  532. package/lib/css.d.ts +0 -13
  533. package/lib/css.d.ts.map +0 -1
  534. package/lib/css.js +0 -29
  535. package/lib/css.js.map +0 -1
  536. package/lib/directives.d.ts +0 -25
  537. package/lib/directives.d.ts.map +0 -1
  538. package/lib/directives.js +0 -40
  539. package/lib/directives.js.map +0 -1
  540. package/lib/event-coll.d.ts +0 -13
  541. package/lib/event-coll.d.ts.map +0 -1
  542. package/lib/event-coll.js +0 -45
  543. package/lib/event-coll.js.map +0 -1
  544. package/lib/icons.d.ts +0 -25
  545. package/lib/icons.d.ts.map +0 -1
  546. package/lib/icons.js +0 -73
  547. package/lib/icons.js.map +0 -1
  548. package/lib/jsx.d.ts +0 -4
  549. package/lib/jsx.d.ts.map +0 -1
  550. package/lib/jsx.js +0 -52
  551. package/lib/jsx.js.map +0 -1
  552. package/lib/route-tree.d.ts +0 -28
  553. package/lib/route-tree.d.ts.map +0 -1
  554. package/lib/route-tree.js +0 -141
  555. package/lib/route-tree.js.map +0 -1
  556. package/lib/utils.d.ts +0 -10
  557. package/lib/utils.d.ts.map +0 -1
  558. package/lib/utils.js +0 -71
  559. package/lib/utils.js.map +0 -1
  560. package/overbreath.d.ts +0 -9
  561. package/overbreath.d.ts.map +0 -1
  562. package/overbreath.js +0 -5
  563. package/overbreath.js.map +0 -1
  564. package/proto/godown-config.d.ts +0 -41
  565. package/proto/godown-config.d.ts.map +0 -1
  566. package/proto/godown-config.js +0 -27
  567. package/proto/godown-config.js.map +0 -1
  568. package/proto/godown-element.d.ts +0 -125
  569. package/proto/godown-element.d.ts.map +0 -1
  570. package/proto/godown-element.js +0 -204
  571. package/proto/godown-element.js.map +0 -1
  572. package/proto/super-a.d.ts +0 -30
  573. package/proto/super-a.d.ts.map +0 -1
  574. package/proto/super-a.js +0 -141
  575. package/proto/super-a.js.map +0 -1
  576. package/proto/super-input.d.ts +0 -44
  577. package/proto/super-input.d.ts.map +0 -1
  578. package/proto/super-input.js +0 -119
  579. package/proto/super-input.js.map +0 -1
  580. package/proto/super-openable.d.ts.map +0 -1
  581. package/proto/super-openable.js.map +0 -1
  582. package/range-input.d.ts +0 -9
  583. package/range-input.d.ts.map +0 -1
  584. package/range-input.js +0 -5
  585. package/range-input.js.map +0 -1
  586. package/react/create.d.ts +0 -5
  587. package/react/create.d.ts.map +0 -1
  588. package/react/create.js +0 -16
  589. package/react/create.js.map +0 -1
  590. package/react/index.d.ts +0 -65
  591. package/react/index.d.ts.map +0 -1
  592. package/react/index.js +0 -132
  593. package/react/index.js.map +0 -1
  594. package/router-link.d.ts +0 -9
  595. package/router-link.d.ts.map +0 -1
  596. package/router-link.js +0 -5
  597. package/router-link.js.map +0 -1
  598. package/search-input.d.ts +0 -9
  599. package/search-input.d.ts.map +0 -1
  600. package/search-input.js +0 -5
  601. package/search-input.js.map +0 -1
  602. package/select-input.d.ts +0 -9
  603. package/select-input.d.ts.map +0 -1
  604. package/select-input.js +0 -5
  605. package/select-input.js.map +0 -1
  606. package/split-input.d.ts +0 -9
  607. package/split-input.d.ts.map +0 -1
  608. package/split-input.js +0 -5
  609. package/split-input.js.map +0 -1
  610. package/styles/colors/presets.d.ts +0 -13
  611. package/styles/colors/presets.d.ts.map +0 -1
  612. package/styles/colors/presets.js +0 -6
  613. package/styles/colors/presets.js.map +0 -1
  614. package/styles/colors/presetsRGB.d.ts +0 -16
  615. package/styles/colors/presetsRGB.d.ts.map +0 -1
  616. package/styles/colors/presetsRGB.js +0 -134
  617. package/styles/colors/presetsRGB.js.map +0 -1
  618. package/styles/global.d.ts +0 -18
  619. package/styles/global.d.ts.map +0 -1
  620. package/styles/global.js +0 -78
  621. package/styles/global.js.map +0 -1
  622. package/styles/inputStyle.d.ts +0 -3
  623. package/styles/inputStyle.d.ts.map +0 -1
  624. package/styles/inputStyle.js +0 -59
  625. package/styles/inputStyle.js.map +0 -1
  626. package/switch-input.d.ts +0 -9
  627. package/switch-input.d.ts.map +0 -1
  628. package/switch-input.js +0 -5
  629. package/switch-input.js.map +0 -1
  630. package/web-components/alert/alert.d.ts +0 -36
  631. package/web-components/alert/alert.d.ts.map +0 -1
  632. package/web-components/alert/alert.js +0 -161
  633. package/web-components/alert/alert.js.map +0 -1
  634. package/web-components/avatar/avatar-group.d.ts +0 -21
  635. package/web-components/avatar/avatar-group.d.ts.map +0 -1
  636. package/web-components/avatar/avatar-group.js +0 -86
  637. package/web-components/avatar/avatar-group.js.map +0 -1
  638. package/web-components/avatar/avatar.d.ts +0 -28
  639. package/web-components/avatar/avatar.d.ts.map +0 -1
  640. package/web-components/avatar/avatar.js +0 -120
  641. package/web-components/avatar/avatar.js.map +0 -1
  642. package/web-components/button/button.d.ts.map +0 -1
  643. package/web-components/button/button.js.map +0 -1
  644. package/web-components/card/card.d.ts +0 -9
  645. package/web-components/card/card.d.ts.map +0 -1
  646. package/web-components/card/card.js +0 -75
  647. package/web-components/card/card.js.map +0 -1
  648. package/web-components/carousel/carousel.d.ts +0 -29
  649. package/web-components/carousel/carousel.d.ts.map +0 -1
  650. package/web-components/carousel/carousel.js +0 -185
  651. package/web-components/carousel/carousel.js.map +0 -1
  652. package/web-components/details/details.d.ts.map +0 -1
  653. package/web-components/details/details.js +0 -124
  654. package/web-components/details/details.js.map +0 -1
  655. package/web-components/dialog/dialog.d.ts +0 -31
  656. package/web-components/dialog/dialog.d.ts.map +0 -1
  657. package/web-components/dialog/dialog.js +0 -143
  658. package/web-components/dialog/dialog.js.map +0 -1
  659. package/web-components/divider/divider.d.ts +0 -13
  660. package/web-components/divider/divider.d.ts.map +0 -1
  661. package/web-components/divider/divider.js +0 -95
  662. package/web-components/divider/divider.js.map +0 -1
  663. package/web-components/form/form.d.ts.map +0 -1
  664. package/web-components/form/form.js.map +0 -1
  665. package/web-components/input/input.d.ts +0 -37
  666. package/web-components/input/input.d.ts.map +0 -1
  667. package/web-components/input/input.js +0 -152
  668. package/web-components/input/input.js.map +0 -1
  669. package/web-components/input/label-input.d.ts +0 -15
  670. package/web-components/input/label-input.d.ts.map +0 -1
  671. package/web-components/input/label-input.js +0 -96
  672. package/web-components/input/label-input.js.map +0 -1
  673. package/web-components/input/range-input.d.ts +0 -53
  674. package/web-components/input/range-input.d.ts.map +0 -1
  675. package/web-components/input/range-input.js.map +0 -1
  676. package/web-components/input/search-input.d.ts +0 -42
  677. package/web-components/input/search-input.d.ts.map +0 -1
  678. package/web-components/input/search-input.js +0 -214
  679. package/web-components/input/search-input.js.map +0 -1
  680. package/web-components/input/select-input.d.ts +0 -36
  681. package/web-components/input/select-input.d.ts.map +0 -1
  682. package/web-components/input/select-input.js +0 -210
  683. package/web-components/input/select-input.js.map +0 -1
  684. package/web-components/input/split-input.d.ts +0 -29
  685. package/web-components/input/split-input.d.ts.map +0 -1
  686. package/web-components/input/split-input.js +0 -184
  687. package/web-components/input/split-input.js.map +0 -1
  688. package/web-components/input/switch-input.d.ts.map +0 -1
  689. package/web-components/input/switch-input.js.map +0 -1
  690. package/web-components/layout/flex-flow.d.ts +0 -17
  691. package/web-components/layout/flex-flow.d.ts.map +0 -1
  692. package/web-components/layout/flex-flow.js +0 -73
  693. package/web-components/layout/flex-flow.js.map +0 -1
  694. package/web-components/layout/grid-flow.d.ts +0 -14
  695. package/web-components/layout/grid-flow.d.ts.map +0 -1
  696. package/web-components/layout/grid-flow.js +0 -56
  697. package/web-components/layout/grid-flow.js.map +0 -1
  698. package/web-components/layout/layout.d.ts +0 -18
  699. package/web-components/layout/layout.d.ts.map +0 -1
  700. package/web-components/layout/layout.js +0 -76
  701. package/web-components/layout/layout.js.map +0 -1
  702. package/web-components/link/link.d.ts +0 -10
  703. package/web-components/link/link.d.ts.map +0 -1
  704. package/web-components/link/link.js +0 -17
  705. package/web-components/link/link.js.map +0 -1
  706. package/web-components/link/router-link.d.ts +0 -19
  707. package/web-components/link/router-link.d.ts.map +0 -1
  708. package/web-components/link/router-link.js +0 -60
  709. package/web-components/link/router-link.js.map +0 -1
  710. package/web-components/progress/progress.d.ts.map +0 -1
  711. package/web-components/progress/progress.js.map +0 -1
  712. package/web-components/router/router.d.ts +0 -86
  713. package/web-components/router/router.d.ts.map +0 -1
  714. package/web-components/router/router.js +0 -246
  715. package/web-components/router/router.js.map +0 -1
  716. package/web-components/skeleton/skeleton.d.ts.map +0 -1
  717. package/web-components/skeleton/skeleton.js +0 -130
  718. package/web-components/skeleton/skeleton.js.map +0 -1
  719. package/web-components/text/overbreath.d.ts +0 -22
  720. package/web-components/text/overbreath.d.ts.map +0 -1
  721. package/web-components/text/overbreath.js +0 -132
  722. package/web-components/text/overbreath.js.map +0 -1
  723. package/web-components/text/text.d.ts.map +0 -1
  724. package/web-components/text/text.js.map +0 -1
  725. package/web-components/text/time.d.ts.map +0 -1
  726. package/web-components/text/time.js.map +0 -1
  727. package/web-components/text/typewriter.d.ts.map +0 -1
  728. package/web-components/text/typewriter.js.map +0 -1
  729. package/web-components/tooltip/tooltip.d.ts +0 -30
  730. package/web-components/tooltip/tooltip.d.ts.map +0 -1
  731. package/web-components/tooltip/tooltip.js +0 -123
  732. package/web-components/tooltip/tooltip.js.map +0 -1
  733. package/web-components/wrapper/dragbox.d.ts.map +0 -1
  734. package/web-components/wrapper/dragbox.js.map +0 -1
  735. package/web-components/wrapper/rotate.d.ts.map +0 -1
  736. package/web-components/wrapper/rotate.js.map +0 -1
@@ -0,0 +1,119 @@
1
+ import { __decorate } from "tslib";
2
+ import { godown } from "@godown/element/decorators/godown.js";
3
+ import { styles } from "@godown/element/decorators/styles.js";
4
+ import { conditionIf } from "@godown/element/directives/condition-if.js";
5
+ import { htmlSlot } from "@godown/element/directives/html-slot.js";
6
+ import iconPhoto from "@godown/f7-icon/icons/photo.js";
7
+ import { css, html } from "lit";
8
+ import { property, state } from "lit/decorators.js";
9
+ import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
10
+ const protoName = "skeleton";
11
+ const cssScope = scopePrefix(protoName);
12
+ /**
13
+ * {@linkcode Skeleton} renders a skeleton screen.
14
+ *
15
+ * @slot loading - The content if loading is true.
16
+ * @slot - The content if loading is false.
17
+ * @category feedback
18
+ */
19
+ let Skeleton = class Skeleton extends GlobalStyle {
20
+ constructor() {
21
+ super(...arguments);
22
+ /**
23
+ * Animation type.
24
+ * opacity animation only effect on slotted element and image icon.
25
+ */
26
+ this.animation = "position";
27
+ /**
28
+ * If false, render slot only.
29
+ */
30
+ this.loading = true;
31
+ }
32
+ render() {
33
+ if (!this.loading) {
34
+ return htmlSlot();
35
+ }
36
+ return html `<div part="root" class="${this.animation}">
37
+ ${conditionIf(this.type === "image", iconPhoto())}
38
+ ${htmlSlot("loading")}</div>`;
39
+ }
40
+ };
41
+ __decorate([
42
+ property()
43
+ ], Skeleton.prototype, "type", void 0);
44
+ __decorate([
45
+ property()
46
+ ], Skeleton.prototype, "animation", void 0);
47
+ __decorate([
48
+ state()
49
+ ], Skeleton.prototype, "loading", void 0);
50
+ Skeleton = __decorate([
51
+ godown(protoName),
52
+ styles(css `
53
+ :host {
54
+ ${cssScope}--from: var(${cssGlobalVars._colors.darkgray[9]});
55
+ ${cssScope}--to: var(${cssGlobalVars._colors.darkgray[7]});
56
+ ${cssScope}--deg: 95deg;
57
+ ${cssScope}--duration: 1.5s;
58
+ ${cssScope}--icon-size: 5em;
59
+ ${cssScope}--icon-margin: .25em;
60
+ color: var(${cssGlobalVars._colors.darkgray[5]});
61
+ background: var(${cssScope}--from);
62
+ min-height: 1.5em;
63
+ width: 100%;
64
+ flex-shrink: 0;
65
+ display: block;
66
+ overflow: hidden;
67
+ }
68
+
69
+ [part="root"] {
70
+ height: 100%;
71
+ min-height: inherit;
72
+ text-align: center;
73
+ animation: var(${cssScope}--duration) ease-in-out 0s infinite none running;
74
+ }
75
+
76
+ svg {
77
+ --size:var(${cssScope}--icon-size);
78
+ font-size: var(--size);
79
+ margin: calc(var(--size) * 0.05);
80
+ }
81
+
82
+ .position {
83
+ background-image: linear-gradient(
84
+ var(${cssScope}--deg),
85
+ var(${cssScope}--from) 36%,
86
+ var(${cssScope}--to) 50%,
87
+ var(${cssScope}--from) 64%
88
+ );
89
+ background-color: transparent;
90
+ background-size: 200% 100%;
91
+ animation-name: po;
92
+ }
93
+
94
+ @keyframes po {
95
+ from {
96
+ background-position: 150% center;
97
+ }
98
+ to {
99
+ background-position: -50% center;
100
+ }
101
+ }
102
+
103
+ .opacity {
104
+ animation-name: op;
105
+ animation-direction: alternate;
106
+ }
107
+
108
+ @keyframes op {
109
+ 50% {
110
+ opacity: 0.25;
111
+ }
112
+ to {
113
+ opacity: 1;
114
+ }
115
+ }
116
+ `)
117
+ ], Skeleton);
118
+ export default Skeleton;
119
+ //# sourceMappingURL=skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../src/components/skeleton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,MAAM,SAAS,GAAG,UAAU,CAAC;AAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;GAMG;AAqEH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW;IAAlC;;QAME;;;WAGG;QAEH,cAAS,GAA2B,UAAU,CAAC;QAC/C;;WAEG;QAEH,YAAO,GAAG,IAAI,CAAC;IAUjB,CAAC;IARW,MAAM;QACd,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,QAAQ,EAAE,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,SAAS;MAClD,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC;MAC/C,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC;IAChC,CAAC;CACF,CAAA;AArBC;IADC,QAAQ,EAAE;sCACY;AAMvB;IADC,QAAQ,EAAE;2CACoC;AAK/C;IADC,KAAK,EAAE;yCACO;AAhBX,QAAQ;IApEb,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ,eAAe,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxD,QAAQ,aAAa,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACtD,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;mBACG,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC5B,QAAQ;;;;;;;;;;;;uBAYT,QAAQ;;;;mBAIZ,QAAQ;;;;;;;cAOb,QAAQ;cACR,QAAQ;cACR,QAAQ;cACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BnB,CACF;GACK,QAAQ,CA0Bb;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { type HandlerEvent } from "@godown/element/element.js";
2
+ import SuperInput from "../core/super-input.js";
3
+ /**
4
+ * {@linkcode Split} renders multiple input boxes.
5
+ *
6
+ * Input: will move the focus box backward until the complete input from start to end.
7
+ *
8
+ * Delete: will move the focus box forward until the first and no inputs for each.
9
+ *
10
+ * @category input
11
+ */
12
+ declare class Split extends SuperInput {
13
+ /**
14
+ * The number of input boxes.
15
+ */
16
+ len: number;
17
+ /**
18
+ * Focus index.
19
+ */
20
+ index: number;
21
+ current: number;
22
+ currentValue: (string | null)[];
23
+ protected render(): import("lit").TemplateResult<1>;
24
+ connectedCallback(): void;
25
+ protected _handleInput(e: HandlerEvent<HTMLInputElement, InputEvent>): void;
26
+ focus(): void;
27
+ focusAt(i: number): void;
28
+ blur(): void;
29
+ reset(): void;
30
+ }
31
+ export default Split;
32
+ //# sourceMappingURL=split.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK/D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;;GAQG;AACH,cA6CM,KAAM,SAAQ,UAAU;IAC5B;;OAEG;IAEH,GAAG,SAAK;IACR;;OAEG;IAEH,KAAK,SAAM;IAGX,OAAO,SAAM;IAEb,YAAY,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAM;IAErC,SAAS,CAAC,MAAM;IAyBhB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC;IA2CpE,KAAK;IAIL,OAAO,CAAC,CAAC,EAAE,MAAM;IAKjB,IAAI;IAKJ,KAAK;CAQN;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,173 @@
1
+ import { __decorate } from "tslib";
2
+ import { godown } from "@godown/element/decorators/godown.js";
3
+ import { styles } from "@godown/element/decorators/styles.js";
4
+ import { classList } from "@godown/element/directives/class-list.js";
5
+ import { css, html, nothing } from "lit";
6
+ import { property, state } from "lit/decorators.js";
7
+ import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
8
+ import SuperInput from "../core/super-input.js";
9
+ const protoName = "split";
10
+ const cssScope = scopePrefix(protoName);
11
+ /**
12
+ * {@linkcode Split} renders multiple input boxes.
13
+ *
14
+ * Input: will move the focus box backward until the complete input from start to end.
15
+ *
16
+ * Delete: will move the focus box forward until the first and no inputs for each.
17
+ *
18
+ * @category input
19
+ */
20
+ let Split = class Split extends SuperInput {
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * The number of input boxes.
25
+ */
26
+ this.len = 6;
27
+ /**
28
+ * Focus index.
29
+ */
30
+ this.index = -1;
31
+ this.current = -1;
32
+ this.currentValue = [];
33
+ }
34
+ render() {
35
+ return html `
36
+ <div part="root">
37
+ ${this.currentValue
38
+ .map((value, index) => html `<span part="input-box"
39
+ @click="${this.disabled ? null : () => this.focusAt(index)}"
40
+ class="${classList({ focus: this.current === index }) || nothing}"
41
+ >${value}</span>`)}
42
+ <input
43
+ part="input"
44
+ id="${this.makeId}"
45
+ @blur=${this.blur}
46
+ @input="${this._handleInput}"
47
+ .value="${
48
+ /* Ensure that input always has a value of length this.len */
49
+ this.value.padStart(this.len, " ")}"
50
+ >
51
+ </div>
52
+ `;
53
+ }
54
+ connectedCallback() {
55
+ super.connectedCallback();
56
+ this.reset();
57
+ }
58
+ _handleInput(e) {
59
+ e.stopPropagation();
60
+ if (this.compositing) {
61
+ return;
62
+ }
63
+ if (e.data === null) {
64
+ // delete
65
+ if (this.currentValue[this.current] !== null) {
66
+ // delete exist value
67
+ this.currentValue[this.current] = null;
68
+ }
69
+ else {
70
+ // go to before
71
+ this.currentValue[this.current - 1] = null;
72
+ const lastNotNull = this.currentValue.findLastIndex(a => a !== null);
73
+ this.current = this.current - 1 < 0 ? lastNotNull < 0 ? 0 : lastNotNull : this.current - 1;
74
+ }
75
+ }
76
+ else {
77
+ // input
78
+ this.currentValue[this.current] = e.data;
79
+ if (this.current + 1 >= this.len) {
80
+ // index overflow
81
+ this.current = this.currentValue.indexOf(null);
82
+ if (this.current === -1) {
83
+ this.blur();
84
+ }
85
+ }
86
+ else {
87
+ // go to after
88
+ this.current += 1;
89
+ }
90
+ }
91
+ this.value = this.currentValue.join("");
92
+ this.dispatchEvent(new CustomEvent("input", { detail: this.value, bubbles: true, composed: true }));
93
+ this.dispatchEvent(new CustomEvent("change", { detail: this.value, composed: true }));
94
+ }
95
+ focus() {
96
+ this.focusAt(this.current);
97
+ }
98
+ focusAt(i) {
99
+ this.current = i;
100
+ this._input.focus();
101
+ }
102
+ blur() {
103
+ this._input.blur();
104
+ this.current = -1;
105
+ }
106
+ reset() {
107
+ this.current = -1;
108
+ this.value = this.default;
109
+ this.currentValue = this.value.split("").concat(Array(this.len - this.value.length).fill(null));
110
+ if (this.index > -1) {
111
+ this.current = this.index;
112
+ }
113
+ }
114
+ };
115
+ __decorate([
116
+ property({ type: Number })
117
+ ], Split.prototype, "len", void 0);
118
+ __decorate([
119
+ property({ type: Number })
120
+ ], Split.prototype, "index", void 0);
121
+ __decorate([
122
+ state()
123
+ ], Split.prototype, "current", void 0);
124
+ __decorate([
125
+ state()
126
+ ], Split.prototype, "currentValue", void 0);
127
+ Split = __decorate([
128
+ godown(protoName),
129
+ styles(css `
130
+ :host {
131
+ color: var(${cssGlobalVars.foreground});
132
+ display: block;
133
+ border-radius: 1px;
134
+ width: fit-content;
135
+ ${cssScope}--size: 1.45em;
136
+ ${cssScope}--gap: .25em;
137
+ }
138
+
139
+ [part="root"] {
140
+ gap: var(${cssScope}--gap);
141
+ width: 100%;
142
+ position: relative;
143
+ vertical-align: top;
144
+ display: inline-flex;
145
+ justify-content: space-between;
146
+ border-radius: inherit;
147
+ }
148
+
149
+ [part="input-box"] {
150
+ width: var(${cssScope}--size);
151
+ height: var(${cssScope}--size);
152
+ vertical-align: top;
153
+ text-align: center;
154
+ background-color: var(${cssGlobalVars.input}-background);
155
+ border-radius: inherit;
156
+ }
157
+
158
+ [part="input"] {
159
+ width: 100%;
160
+ height: 100%;
161
+ opacity: 0;
162
+ background: none;
163
+ position: absolute;
164
+ z-index: -1;
165
+ }
166
+
167
+ .focus {
168
+ box-shadow: var(${cssGlobalVars.input}-box-shadow);
169
+ }
170
+ `)
171
+ ], Split);
172
+ export default Split;
173
+ //# sourceMappingURL=split.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../src/components/split.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,C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CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCACnB;AAKR;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAChB;AAGX;IADC,KAAK,EAAE;sCACK;AAEb;IADC,KAAK,EAAE;2CAC6B;AAfjC,KAAK;IA7CV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;mBAEc,aAAa,CAAC,UAAU;;;;QAInC,QAAQ;QACR,QAAQ;;;;iBAIC,QAAQ;;;;;;;;;;mBAUN,QAAQ;oBACP,QAAQ;;;8BAGE,aAAa,CAAC,KAAK;;;;;;;;;;;;;;wBAczB,aAAa,CAAC,KAAK;;GAExC,CACF;GACK,KAAK,CAgHV;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,39 @@
1
+ import SuperInput from "../core/super-input.js";
2
+ /**
3
+ * {@linkcode Switch} renders a switch.
4
+ *
5
+ * The switch is rectangular by default,
6
+ * set the round property to rounded switch.
7
+ *
8
+ * @category input
9
+ */
10
+ declare class Switch extends SuperInput {
11
+ /**
12
+ * Border style.
13
+ */
14
+ round: boolean;
15
+ /**
16
+ * Whether this element is selected or not.
17
+ */
18
+ checked: boolean;
19
+ /**
20
+ * Whether this element is disabled or not.
21
+ */
22
+ disabled: boolean;
23
+ /**
24
+ * Parsed by JSON.parse to checked.
25
+ */
26
+ default: string;
27
+ /**
28
+ * Input value.
29
+ */
30
+ value: string;
31
+ _input: HTMLInputElement;
32
+ protected render(): import("lit").TemplateResult<1>;
33
+ reset(): void;
34
+ connectedCallback(): void;
35
+ protected _handleChange(): void;
36
+ namevalue(): [string, boolean];
37
+ }
38
+ export default Switch;
39
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.ts"],"names":[],"mappings":"AAMA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAKhD;;;;;;;GAOG;AACH,cAqFM,MAAO,SAAQ,UAAU;IAC7B;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,OAAO,UAAS;IAChB;;OAEG;IAEH,QAAQ,UAAS;IACjB;;OAEG;IAEH,OAAO,SAAW;IAClB;;OAEG;IAEH,KAAK,SAAQ;IAGb,MAAM,EAAE,gBAAgB,CAAC;IAEzB,SAAS,CAAC,MAAM;IAgBhB,KAAK;IAKL,iBAAiB;IAUjB,SAAS,CAAC,aAAa;IAMvB,SAAS,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;CAG/B;AAED,eAAe,MAAM,CAAC"}
@@ -1,23 +1,26 @@
1
1
  import { __decorate } from "tslib";
2
- import { css, html, property, query } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import GodownInput from "../../proto/super-input.js";
6
- import { cssGlobalVars } from "../../styles/global.js";
7
- import { inputStyle } from "../../styles/inputStyle.js";
8
- const protoName = "switch-input";
2
+ import { godown } from "@godown/element/decorators/godown.js";
3
+ import { styles } from "@godown/element/decorators/styles.js";
4
+ import { css, html } from "lit";
5
+ import { property, query } from "lit/decorators.js";
6
+ import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
7
+ import SuperInput from "../core/super-input.js";
8
+ const protoName = "switch";
9
+ const cssScope = scopePrefix(protoName);
9
10
  /**
10
- * {@linkcode SwitchInput } renders a switch.
11
+ * {@linkcode Switch} renders a switch.
11
12
  *
12
- * Inspired by Steam.
13
+ * The switch is rectangular by default,
14
+ * set the round property to rounded switch.
15
+ *
16
+ * @category input
13
17
  */
14
- let SwitchInput = class SwitchInput extends GodownInput {
18
+ let Switch = class Switch extends SuperInput {
15
19
  constructor() {
16
20
  super(...arguments);
17
21
  /**
18
22
  * Border style.
19
23
  */
20
- // @property() variant: "fat" | "rect" = "rect";
21
24
  this.round = false;
22
25
  /**
23
26
  * Whether this element is selected or not.
@@ -46,9 +49,8 @@ let SwitchInput = class SwitchInput extends GodownInput {
46
49
  name="${this.name}"
47
50
  id="${this.makeId}"
48
51
  type="checkbox"
49
- />
50
- <span>
51
- <i class="${this.checked}"><i></i></i>
52
+ >
53
+ <span class="${this.checked}">
52
54
  </span>
53
55
  </div>`;
54
56
  }
@@ -76,43 +78,41 @@ let SwitchInput = class SwitchInput extends GodownInput {
76
78
  };
77
79
  __decorate([
78
80
  property({ type: Boolean, reflect: true })
79
- ], SwitchInput.prototype, "round", void 0);
81
+ ], Switch.prototype, "round", void 0);
80
82
  __decorate([
81
83
  property({ type: Boolean, reflect: true })
82
- ], SwitchInput.prototype, "checked", void 0);
84
+ ], Switch.prototype, "checked", void 0);
83
85
  __decorate([
84
86
  property({ type: Boolean, reflect: true })
85
- ], SwitchInput.prototype, "disabled", void 0);
87
+ ], Switch.prototype, "disabled", void 0);
86
88
  __decorate([
87
89
  property()
88
- ], SwitchInput.prototype, "default", void 0);
90
+ ], Switch.prototype, "default", void 0);
89
91
  __decorate([
90
92
  property()
91
- ], SwitchInput.prototype, "value", void 0);
93
+ ], Switch.prototype, "value", void 0);
92
94
  __decorate([
93
95
  query("input")
94
- ], SwitchInput.prototype, "_input", void 0);
95
- SwitchInput = __decorate([
96
+ ], Switch.prototype, "_input", void 0);
97
+ Switch = __decorate([
96
98
  godown(protoName),
97
- styles([
98
- inputStyle,
99
- css `
99
+ styles(css `
100
100
  :host {
101
- --${cssGlobalVars.input}--width: 3em;
102
- --${cssGlobalVars.input}--height: calc(var(--${cssGlobalVars.input}--width) / 2);
103
- --${cssGlobalVars.input}--gap: calc(var(--${cssGlobalVars.input}--width) / 25);
104
- --${cssGlobalVars.input}--transition: all .25s ease-in-out;
105
- background: var(--${cssGlobalVars.input}--background);
106
- width: var(--${cssGlobalVars.input}--width);
107
- height: var(--${cssGlobalVars.input}--height);
101
+ ${cssScope}-width: 3em;
102
+ ${cssScope}-height: calc(var(${cssScope}-width) / 2);
103
+ ${cssScope}-handle-size: 1.25em;
104
+ ${cssScope}-transition: .2s ease-in-out;
105
+ background: var(${cssGlobalVars.input}-background);
106
+ width: var(${cssScope}-width);
107
+ height: var(${cssScope}-height);
108
108
  display: inline-block;
109
109
  vertical-align: bottom;
110
+ border-radius: 0;
110
111
  }
111
112
 
112
113
  [part="root"],
113
- span,
114
- i {
115
- transition: var(--${cssGlobalVars.input}--transition);
114
+ span {
115
+ transition: var(${cssScope}-transition);
116
116
  }
117
117
 
118
118
  [part="root"] {
@@ -122,8 +122,7 @@ SwitchInput = __decorate([
122
122
  }
123
123
 
124
124
  [part="root"],
125
- input,
126
- i {
125
+ input {
127
126
  width: 100%;
128
127
  }
129
128
 
@@ -132,13 +131,13 @@ SwitchInput = __decorate([
132
131
  height: 100%;
133
132
  outline: none;
134
133
  appearance: none;
135
- -webkit-appearance: none;
136
- -moz-appearance: none;
137
134
  }
138
135
 
139
136
  span {
140
137
  height: 100%;
141
138
  display: inline-flex;
139
+ align-items: center;
140
+ justify-content: center;
142
141
  position: absolute;
143
142
  left: 0;
144
143
  width: 50%;
@@ -147,43 +146,38 @@ SwitchInput = __decorate([
147
146
  }
148
147
 
149
148
  :host([round]) {
150
- border-radius: calc(var(--${cssGlobalVars.input}--height) / 2);
149
+ border-radius: calc(var(${cssScope}-height) / 2);
151
150
  }
152
151
 
153
152
  :host([checked]) span {
154
153
  transform: translateX(100%);
155
154
  }
156
155
 
157
- .rect * {
158
- border-radius: inherit;
159
- }
160
-
161
156
  .rect .true {
162
- background: var(--${cssGlobalVars.input}--true);
157
+ background: var(${cssGlobalVars.active});
163
158
  }
164
159
 
165
160
  .rect .false {
166
- background: var(--${cssGlobalVars.input}--false);
161
+ background: var(${cssGlobalVars.passive});
167
162
  }
168
163
 
169
- .round i {
164
+ .round span::after{
165
+ --size: var(${cssScope}-handle-size);
166
+ content:"";
170
167
  border-radius: 100%;
171
- margin: var(--${cssGlobalVars.input}--gap);
172
- background: var(--${cssGlobalVars.input}--control);
173
- width: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);
174
- height: calc(var(--${cssGlobalVars.input}--height) - var(--${cssGlobalVars.input}--gap) * 2);
168
+ background: var(--godown--input-control);
169
+ width: var(--size);
170
+ height: var(--size);
175
171
  }
176
172
 
177
173
  .round {
178
- background: var(--${cssGlobalVars.input}--false);
174
+ background: var(${cssGlobalVars.passive});
179
175
  }
180
176
 
181
177
  :host([checked]) .round {
182
- background: var(--${cssGlobalVars.input}--true);
183
- }
184
- `,
185
- ])
186
- ], SwitchInput);
187
- export { SwitchInput };
188
- export default SwitchInput;
189
- //# sourceMappingURL=switch-input.js.map
178
+ background: var(${cssGlobalVars.active});
179
+ }
180
+ `)
181
+ ], Switch);
182
+ export default Switch;
183
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../src/components/switch.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;GAOG;AAsFH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QACE;;WAEG;QAEH,UAAK,GAAG,KAAK,CAAC;QACd;;WAEG;QAEH,YAAO,GAAG,KAAK,CAAC;QAChB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QACjB;;WAEG;QAEH,YAAO,GAAG,OAAO,CAAC;QAClB;;WAEG;QAEH,UAAK,GAAG,IAA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AAC;CACF,CAAA;AAjEC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAC7B;AAKd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC3B;AAKhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAC1B;AAKjB;IADC,QAAQ,EAAE;uCACO;AAKlB;IADC,QAAQ,EAAE;qCACE;AAGb;IADC,KAAK,CAAC,OAAO,CAAC;sCACU;AA5BrB,MAAM;IArFX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ;QACR,QAAQ,qBAAqB,QAAQ;QACrC,QAAQ;QACR,QAAQ;wBACQ,aAAa,CAAC,KAAK;mBACxB,QAAQ;oBACP,QAAQ;;;;;;;;wBAQJ,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAkCA,QAAQ;;;;;;;;wBAQhB,aAAa,CAAC,MAAM;;;;wBAIpB,aAAa,CAAC,OAAO;;;;oBAIzB,QAAQ;;;;;;;;;wBASJ,aAAa,CAAC,OAAO;;;;wBAIrB,aAAa,CAAC,MAAM;;GAEzC,CACF;GACK,MAAM,CAsEX;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Text} renders nowrap text.
4
+ *
5
+ * @category display
6
+ */
7
+ declare class Text extends GlobalStyle {
8
+ /**
9
+ * Underline behavior.
10
+ */
11
+ underline: "none" | "hover" | "active" | "always";
12
+ /**
13
+ * Set background-clip to text.
14
+ */
15
+ clip: boolean;
16
+ protected render(): import("lit").TemplateResult<1>;
17
+ }
18
+ export default Text;
19
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAMlF;;;;GAIG;AACH,cAiDM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAU;IAE3D;;OAEG;IAEH,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,MAAM;CAYjB;AAED,eAAe,IAAI,CAAC"}