godown 3.0.0-canary.0 → 3.0.0-canary.10

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 (431) hide show
  1. package/README.md +37 -8
  2. package/components/alert.d.ts +5 -3
  3. package/components/alert.d.ts.map +1 -1
  4. package/components/alert.js +24 -14
  5. package/components/alert.js.map +1 -1
  6. package/components/avatar.d.ts +5 -1
  7. package/components/avatar.d.ts.map +1 -1
  8. package/components/avatar.js +7 -3
  9. package/components/avatar.js.map +1 -1
  10. package/components/breath.d.ts +2 -1
  11. package/components/breath.d.ts.map +1 -1
  12. package/components/breath.js +5 -4
  13. package/components/breath.js.map +1 -1
  14. package/components/button.d.ts +16 -9
  15. package/components/button.d.ts.map +1 -1
  16. package/components/button.js +22 -20
  17. package/components/button.js.map +1 -1
  18. package/components/card.d.ts +1 -2
  19. package/components/card.d.ts.map +1 -1
  20. package/components/card.js +5 -11
  21. package/components/card.js.map +1 -1
  22. package/components/carousel.d.ts +6 -5
  23. package/components/carousel.d.ts.map +1 -1
  24. package/components/carousel.js +3 -2
  25. package/components/carousel.js.map +1 -1
  26. package/components/details.d.ts +5 -2
  27. package/components/details.d.ts.map +1 -1
  28. package/components/details.js +5 -2
  29. package/components/details.js.map +1 -1
  30. package/components/dialog.d.ts +8 -4
  31. package/components/dialog.d.ts.map +1 -1
  32. package/components/dialog.js +17 -12
  33. package/components/dialog.js.map +1 -1
  34. package/components/divider.d.ts +1 -1
  35. package/components/divider.js +1 -1
  36. package/components/divider.js.map +1 -1
  37. package/components/dragbox.d.ts +7 -7
  38. package/components/dragbox.d.ts.map +1 -1
  39. package/components/dragbox.js +1 -1
  40. package/components/dragbox.js.map +1 -1
  41. package/components/flex.d.ts +2 -1
  42. package/components/flex.d.ts.map +1 -1
  43. package/components/flex.js +8 -0
  44. package/components/flex.js.map +1 -1
  45. package/components/form.d.ts +0 -2
  46. package/components/form.d.ts.map +1 -1
  47. package/components/form.js +0 -2
  48. package/components/form.js.map +1 -1
  49. package/components/grid.d.ts +8 -3
  50. package/components/grid.d.ts.map +1 -1
  51. package/components/grid.js +1 -0
  52. package/components/grid.js.map +1 -1
  53. package/components/input.d.ts +2 -3
  54. package/components/input.d.ts.map +1 -1
  55. package/components/input.js +3 -6
  56. package/components/input.js.map +1 -1
  57. package/components/layout.d.ts +3 -6
  58. package/components/layout.d.ts.map +1 -1
  59. package/components/layout.js +21 -10
  60. package/components/layout.js.map +1 -1
  61. package/components/link.d.ts +3 -1
  62. package/components/link.d.ts.map +1 -1
  63. package/components/link.js +3 -1
  64. package/components/link.js.map +1 -1
  65. package/components/progress.d.ts +2 -11
  66. package/components/progress.d.ts.map +1 -1
  67. package/components/progress.js +6 -15
  68. package/components/progress.js.map +1 -1
  69. package/components/range.d.ts +43 -17
  70. package/components/range.d.ts.map +1 -1
  71. package/components/range.js +132 -58
  72. package/components/range.js.map +1 -1
  73. package/components/rotate.d.ts +1 -1
  74. package/components/rotate.d.ts.map +1 -1
  75. package/components/rotate.js +1 -1
  76. package/components/rotate.js.map +1 -1
  77. package/components/router.d.ts +6 -8
  78. package/components/router.d.ts.map +1 -1
  79. package/components/router.js +10 -10
  80. package/components/router.js.map +1 -1
  81. package/components/select.d.ts +4 -8
  82. package/components/select.d.ts.map +1 -1
  83. package/components/select.js +42 -41
  84. package/components/select.js.map +1 -1
  85. package/components/skeleton.d.ts.map +1 -1
  86. package/components/skeleton.js +3 -4
  87. package/components/skeleton.js.map +1 -1
  88. package/components/split.d.ts +18 -1
  89. package/components/split.d.ts.map +1 -1
  90. package/components/split.js +52 -19
  91. package/components/split.js.map +1 -1
  92. package/components/switch.d.ts +4 -4
  93. package/components/switch.d.ts.map +1 -1
  94. package/components/switch.js +6 -6
  95. package/components/switch.js.map +1 -1
  96. package/components/text.js +3 -3
  97. package/components/text.js.map +1 -1
  98. package/components/time.d.ts +4 -20
  99. package/components/time.d.ts.map +1 -1
  100. package/components/time.js +5 -66
  101. package/components/time.js.map +1 -1
  102. package/components/tooltip.d.ts +11 -1
  103. package/components/tooltip.d.ts.map +1 -1
  104. package/components/tooltip.js +23 -5
  105. package/components/tooltip.js.map +1 -1
  106. package/components/typewriter.d.ts +2 -2
  107. package/components/typewriter.d.ts.map +1 -1
  108. package/components/typewriter.js +2 -2
  109. package/components/typewriter.js.map +1 -1
  110. package/core/global-style.d.ts.map +1 -1
  111. package/core/global-style.js +8 -1
  112. package/core/global-style.js.map +1 -1
  113. package/core/super-anchor.js +1 -1
  114. package/core/super-anchor.js.map +1 -1
  115. package/core/super-input.d.ts +2 -3
  116. package/core/super-input.d.ts.map +1 -1
  117. package/core/super-input.js +3 -6
  118. package/core/super-input.js.map +1 -1
  119. package/core/super-openable.js.map +1 -1
  120. package/custom-elements.json +1 -1
  121. package/dev/alert.d.ts +8 -0
  122. package/dev/alert.d.ts.map +1 -0
  123. package/dev/alert.js +4 -0
  124. package/dev/alert.js.map +1 -0
  125. package/dev/avatar.d.ts +8 -0
  126. package/dev/avatar.d.ts.map +1 -0
  127. package/dev/avatar.js +4 -0
  128. package/dev/avatar.js.map +1 -0
  129. package/dev/breath.d.ts +9 -0
  130. package/dev/breath.d.ts.map +1 -0
  131. package/dev/breath.js +5 -0
  132. package/dev/breath.js.map +1 -0
  133. package/dev/button.d.ts +8 -0
  134. package/dev/button.d.ts.map +1 -0
  135. package/dev/button.js +4 -0
  136. package/dev/button.js.map +1 -0
  137. package/dev/card.d.ts +8 -0
  138. package/dev/card.d.ts.map +1 -0
  139. package/dev/card.js +4 -0
  140. package/dev/card.js.map +1 -0
  141. package/dev/carousel.d.ts +8 -0
  142. package/dev/carousel.d.ts.map +1 -0
  143. package/dev/carousel.js +4 -0
  144. package/dev/carousel.js.map +1 -0
  145. package/dev/components/alert.d.ts +52 -0
  146. package/dev/components/alert.d.ts.map +1 -0
  147. package/dev/components/alert.js +245 -0
  148. package/dev/components/alert.js.map +1 -0
  149. package/dev/components/avatar.d.ts +30 -0
  150. package/dev/components/avatar.d.ts.map +1 -0
  151. package/dev/components/avatar.js +92 -0
  152. package/dev/components/avatar.js.map +1 -0
  153. package/dev/components/breath.d.ts +35 -0
  154. package/dev/components/breath.d.ts.map +1 -0
  155. package/dev/components/breath.js +135 -0
  156. package/dev/components/breath.js.map +1 -0
  157. package/dev/components/button.d.ts +52 -0
  158. package/dev/components/button.d.ts.map +1 -0
  159. package/dev/components/button.js +260 -0
  160. package/dev/components/button.js.map +1 -0
  161. package/dev/components/card.d.ts +19 -0
  162. package/dev/components/card.d.ts.map +1 -0
  163. package/dev/components/card.js +81 -0
  164. package/dev/components/card.js.map +1 -0
  165. package/dev/components/carousel.d.ts +41 -0
  166. package/dev/components/carousel.d.ts.map +1 -0
  167. package/dev/components/carousel.js +157 -0
  168. package/dev/components/carousel.js.map +1 -0
  169. package/dev/components/details.d.ts +23 -0
  170. package/dev/components/details.d.ts.map +1 -0
  171. package/dev/components/details.js +118 -0
  172. package/dev/components/details.js.map +1 -0
  173. package/dev/components/dialog.d.ts +37 -0
  174. package/dev/components/dialog.d.ts.map +1 -0
  175. package/dev/components/dialog.js +159 -0
  176. package/dev/components/dialog.js.map +1 -0
  177. package/dev/components/divider.d.ts +17 -0
  178. package/dev/components/divider.d.ts.map +1 -0
  179. package/dev/components/divider.js +46 -0
  180. package/dev/components/divider.js.map +1 -0
  181. package/dev/components/dragbox.d.ts +40 -0
  182. package/dev/components/dragbox.d.ts.map +1 -0
  183. package/dev/components/dragbox.js +117 -0
  184. package/dev/components/dragbox.js.map +1 -0
  185. package/dev/components/flex.d.ts +32 -0
  186. package/dev/components/flex.d.ts.map +1 -0
  187. package/dev/components/flex.js +60 -0
  188. package/dev/components/flex.js.map +1 -0
  189. package/dev/components/form.d.ts +22 -0
  190. package/dev/components/form.d.ts.map +1 -0
  191. package/dev/components/form.js +77 -0
  192. package/dev/components/form.js.map +1 -0
  193. package/dev/components/grid.d.ts +36 -0
  194. package/dev/components/grid.d.ts.map +1 -0
  195. package/dev/components/grid.js +54 -0
  196. package/dev/components/grid.js.map +1 -0
  197. package/dev/components/input.d.ts +19 -0
  198. package/dev/components/input.d.ts.map +1 -0
  199. package/dev/components/input.js +70 -0
  200. package/dev/components/input.js.map +1 -0
  201. package/dev/components/layout.d.ts +26 -0
  202. package/dev/components/layout.d.ts.map +1 -0
  203. package/dev/components/layout.js +82 -0
  204. package/dev/components/layout.js.map +1 -0
  205. package/dev/components/link.d.ts +22 -0
  206. package/dev/components/link.d.ts.map +1 -0
  207. package/dev/components/link.js +42 -0
  208. package/dev/components/link.js.map +1 -0
  209. package/dev/components/progress.d.ts +21 -0
  210. package/dev/components/progress.d.ts.map +1 -0
  211. package/dev/components/progress.js +99 -0
  212. package/dev/components/progress.js.map +1 -0
  213. package/dev/components/range.d.ts +86 -0
  214. package/dev/components/range.d.ts.map +1 -0
  215. package/dev/components/range.js +364 -0
  216. package/dev/components/range.js.map +1 -0
  217. package/dev/components/rotate.d.ts +26 -0
  218. package/dev/components/rotate.d.ts.map +1 -0
  219. package/dev/components/rotate.js +86 -0
  220. package/dev/components/rotate.js.map +1 -0
  221. package/dev/components/router.d.ts +119 -0
  222. package/dev/components/router.d.ts.map +1 -0
  223. package/dev/components/router.js +248 -0
  224. package/dev/components/router.js.map +1 -0
  225. package/dev/components/select.d.ts +46 -0
  226. package/dev/components/select.d.ts.map +1 -0
  227. package/dev/components/select.js +245 -0
  228. package/dev/components/select.js.map +1 -0
  229. package/dev/components/skeleton.d.ts +26 -0
  230. package/dev/components/skeleton.d.ts.map +1 -0
  231. package/dev/components/skeleton.js +118 -0
  232. package/dev/components/skeleton.js.map +1 -0
  233. package/dev/components/split.d.ts +49 -0
  234. package/dev/components/split.d.ts.map +1 -0
  235. package/dev/components/split.js +206 -0
  236. package/dev/components/split.js.map +1 -0
  237. package/dev/components/switch.d.ts +39 -0
  238. package/dev/components/switch.d.ts.map +1 -0
  239. package/dev/components/switch.js +182 -0
  240. package/dev/components/switch.js.map +1 -0
  241. package/dev/components/text.d.ts +19 -0
  242. package/dev/components/text.d.ts.map +1 -0
  243. package/dev/components/text.js +93 -0
  244. package/dev/components/text.js.map +1 -0
  245. package/dev/components/time.d.ts +37 -0
  246. package/dev/components/time.d.ts.map +1 -0
  247. package/dev/components/time.js +75 -0
  248. package/dev/components/time.js.map +1 -0
  249. package/dev/components/tooltip.d.ts +48 -0
  250. package/dev/components/tooltip.d.ts.map +1 -0
  251. package/dev/components/tooltip.js +137 -0
  252. package/dev/components/tooltip.js.map +1 -0
  253. package/dev/components/typewriter.d.ts +55 -0
  254. package/dev/components/typewriter.d.ts.map +1 -0
  255. package/dev/components/typewriter.js +155 -0
  256. package/dev/components/typewriter.js.map +1 -0
  257. package/dev/core/global-style.d.ts +21 -0
  258. package/dev/core/global-style.d.ts.map +1 -0
  259. package/dev/core/global-style.js +76 -0
  260. package/dev/core/global-style.js.map +1 -0
  261. package/dev/core/super-anchor.d.ts +15 -0
  262. package/dev/core/super-anchor.d.ts.map +1 -0
  263. package/dev/core/super-anchor.js +58 -0
  264. package/dev/core/super-anchor.js.map +1 -0
  265. package/dev/core/super-input.d.ts +38 -0
  266. package/dev/core/super-input.d.ts.map +1 -0
  267. package/dev/core/super-input.js +182 -0
  268. package/dev/core/super-input.js.map +1 -0
  269. package/dev/core/super-openable.d.ts +19 -0
  270. package/dev/core/super-openable.d.ts.map +1 -0
  271. package/dev/core/super-openable.js +36 -0
  272. package/dev/core/super-openable.js.map +1 -0
  273. package/dev/details.d.ts +8 -0
  274. package/dev/details.d.ts.map +1 -0
  275. package/dev/details.js +4 -0
  276. package/dev/details.js.map +1 -0
  277. package/dev/dialog.d.ts +8 -0
  278. package/dev/dialog.d.ts.map +1 -0
  279. package/dev/dialog.js +4 -0
  280. package/dev/dialog.js.map +1 -0
  281. package/dev/divider.d.ts +8 -0
  282. package/dev/divider.d.ts.map +1 -0
  283. package/dev/divider.js +4 -0
  284. package/dev/divider.js.map +1 -0
  285. package/dev/dragbox.d.ts +8 -0
  286. package/dev/dragbox.d.ts.map +1 -0
  287. package/dev/dragbox.js +4 -0
  288. package/dev/dragbox.js.map +1 -0
  289. package/dev/flex.d.ts +8 -0
  290. package/dev/flex.d.ts.map +1 -0
  291. package/dev/flex.js +4 -0
  292. package/dev/flex.js.map +1 -0
  293. package/dev/form.d.ts +8 -0
  294. package/dev/form.d.ts.map +1 -0
  295. package/dev/form.js +4 -0
  296. package/dev/form.js.map +1 -0
  297. package/dev/grid.d.ts +8 -0
  298. package/dev/grid.d.ts.map +1 -0
  299. package/dev/grid.js +4 -0
  300. package/dev/grid.js.map +1 -0
  301. package/dev/index.d.ts +29 -0
  302. package/dev/index.d.ts.map +1 -0
  303. package/dev/index.js +29 -0
  304. package/dev/index.js.map +1 -0
  305. package/dev/input.d.ts +9 -0
  306. package/dev/input.d.ts.map +1 -0
  307. package/dev/input.js +5 -0
  308. package/dev/input.js.map +1 -0
  309. package/dev/layout.d.ts +9 -0
  310. package/dev/layout.d.ts.map +1 -0
  311. package/dev/layout.js +5 -0
  312. package/dev/layout.js.map +1 -0
  313. package/dev/link.d.ts +9 -0
  314. package/dev/link.d.ts.map +1 -0
  315. package/dev/link.js +5 -0
  316. package/dev/link.js.map +1 -0
  317. package/dev/progress.d.ts +9 -0
  318. package/dev/progress.d.ts.map +1 -0
  319. package/dev/progress.js +5 -0
  320. package/dev/progress.js.map +1 -0
  321. package/dev/range.d.ts +9 -0
  322. package/dev/range.d.ts.map +1 -0
  323. package/dev/range.js +5 -0
  324. package/dev/range.js.map +1 -0
  325. package/dev/rotate.d.ts +9 -0
  326. package/dev/rotate.d.ts.map +1 -0
  327. package/dev/rotate.js +5 -0
  328. package/dev/rotate.js.map +1 -0
  329. package/dev/router.d.ts +9 -0
  330. package/dev/router.d.ts.map +1 -0
  331. package/dev/router.js +5 -0
  332. package/dev/router.js.map +1 -0
  333. package/dev/select.d.ts +9 -0
  334. package/dev/select.d.ts.map +1 -0
  335. package/dev/select.js +5 -0
  336. package/dev/select.js.map +1 -0
  337. package/dev/skeleton.d.ts +9 -0
  338. package/dev/skeleton.d.ts.map +1 -0
  339. package/dev/skeleton.js +5 -0
  340. package/dev/skeleton.js.map +1 -0
  341. package/dev/split.d.ts +9 -0
  342. package/dev/split.d.ts.map +1 -0
  343. package/dev/split.js +5 -0
  344. package/dev/split.js.map +1 -0
  345. package/dev/switch.d.ts +9 -0
  346. package/dev/switch.d.ts.map +1 -0
  347. package/dev/switch.js +5 -0
  348. package/dev/switch.js.map +1 -0
  349. package/dev/text.d.ts +9 -0
  350. package/dev/text.d.ts.map +1 -0
  351. package/dev/text.js +5 -0
  352. package/dev/text.js.map +1 -0
  353. package/dev/time.d.ts +9 -0
  354. package/dev/time.d.ts.map +1 -0
  355. package/dev/time.js +5 -0
  356. package/dev/time.js.map +1 -0
  357. package/dev/tooltip.d.ts +9 -0
  358. package/dev/tooltip.d.ts.map +1 -0
  359. package/dev/tooltip.js +5 -0
  360. package/dev/tooltip.js.map +1 -0
  361. package/dev/typewriter.d.ts +8 -0
  362. package/dev/typewriter.d.ts.map +1 -0
  363. package/dev/typewriter.js +4 -0
  364. package/dev/typewriter.js.map +1 -0
  365. package/index.js +13 -13
  366. package/package.json +10 -8
  367. package/range.d.ts +1 -1
  368. package/range.d.ts.map +1 -1
  369. package/src/alert.ts +11 -0
  370. package/src/avatar.ts +11 -0
  371. package/src/breath.ts +13 -0
  372. package/src/button.ts +11 -0
  373. package/src/card.ts +11 -0
  374. package/src/carousel.ts +11 -0
  375. package/src/components/alert.ts +282 -0
  376. package/src/components/avatar.ts +95 -0
  377. package/src/components/breath.ts +153 -0
  378. package/src/components/button.ts +286 -0
  379. package/src/components/card.ts +80 -0
  380. package/src/components/carousel.ts +169 -0
  381. package/src/components/details.ts +116 -0
  382. package/src/components/dialog.ts +165 -0
  383. package/src/components/divider.ts +44 -0
  384. package/src/components/dragbox.ts +127 -0
  385. package/src/components/flex.ts +70 -0
  386. package/src/components/form.ts +82 -0
  387. package/src/components/grid.ts +75 -0
  388. package/src/components/input.ts +72 -0
  389. package/src/components/layout.ts +82 -0
  390. package/src/components/link.ts +38 -0
  391. package/src/components/progress.ts +95 -0
  392. package/src/components/range.ts +404 -0
  393. package/src/components/rotate.ts +92 -0
  394. package/src/components/router.ts +273 -0
  395. package/src/components/select.ts +268 -0
  396. package/src/components/skeleton.ts +118 -0
  397. package/src/components/split.ts +221 -0
  398. package/src/components/switch.ts +180 -0
  399. package/src/components/text.ts +95 -0
  400. package/src/components/time.ts +81 -0
  401. package/src/components/tooltip.ts +138 -0
  402. package/src/components/typewriter.ts +154 -0
  403. package/src/core/global-style.ts +86 -0
  404. package/src/core/super-anchor.ts +52 -0
  405. package/src/core/super-input.ts +230 -0
  406. package/src/core/super-openable.ts +51 -0
  407. package/src/details.ts +11 -0
  408. package/src/dialog.ts +11 -0
  409. package/src/divider.ts +11 -0
  410. package/src/dragbox.ts +11 -0
  411. package/src/flex.ts +11 -0
  412. package/src/form.ts +11 -0
  413. package/src/grid.ts +11 -0
  414. package/src/index.ts +28 -0
  415. package/src/input.ts +13 -0
  416. package/src/layout.ts +12 -0
  417. package/src/link.ts +13 -0
  418. package/src/progress.ts +12 -0
  419. package/src/range.ts +13 -0
  420. package/src/rotate.ts +13 -0
  421. package/src/router.ts +12 -0
  422. package/src/select.ts +13 -0
  423. package/src/skeleton.ts +13 -0
  424. package/src/split.ts +13 -0
  425. package/src/switch.ts +13 -0
  426. package/src/text.ts +13 -0
  427. package/src/time.ts +13 -0
  428. package/src/tooltip.ts +13 -0
  429. package/src/typewriter.ts +11 -0
  430. package/vscode.html-custom-data.json +1 -1
  431. package/web-types.json +1 -1
package/dev/alert.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import Alert from "./components/alert.js";
2
+ export default Alert;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ "godown-alert": Alert;
6
+ }
7
+ }
8
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../src/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAI1C,eAAe,KAAK,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,KAAK,CAAC;KACvB;CACF"}
package/dev/alert.js ADDED
@@ -0,0 +1,4 @@
1
+ import Alert from "./components/alert.js";
2
+ Alert.define();
3
+ export default Alert;
4
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../src/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAE1C,KAAK,CAAC,MAAM,EAAE,CAAC;AAEf,eAAe,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ import Avatar from "./components/avatar.js";
2
+ export default Avatar;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ "godown-avatar": Avatar;
6
+ }
7
+ }
8
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../src/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAI5C,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
package/dev/avatar.js ADDED
@@ -0,0 +1,4 @@
1
+ import Avatar from "./components/avatar.js";
2
+ Avatar.define();
3
+ export default Avatar;
4
+ //# sourceMappingURL=avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../src/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,eAAe,MAAM,CAAC"}
@@ -0,0 +1,9 @@
1
+ import Breath from "./components/breath.js";
2
+ export default Breath;
3
+ export * from "./components/breath.js";
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ "godown-breath": Breath;
7
+ }
8
+ }
9
+ //# sourceMappingURL=breath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breath.d.ts","sourceRoot":"","sources":["../src/breath.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAI5C,eAAe,MAAM,CAAC;AAEtB,cAAc,wBAAwB,CAAC;AAEvC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
package/dev/breath.js ADDED
@@ -0,0 +1,5 @@
1
+ import Breath from "./components/breath.js";
2
+ Breath.define();
3
+ export default Breath;
4
+ export * from "./components/breath.js";
5
+ //# sourceMappingURL=breath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breath.js","sourceRoot":"","sources":["../src/breath.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,eAAe,MAAM,CAAC;AAEtB,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import Button from "./components/button.js";
2
+ export default Button;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ "godown-button": Button;
6
+ }
7
+ }
8
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAI5C,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
package/dev/button.js ADDED
@@ -0,0 +1,4 @@
1
+ import Button from "./components/button.js";
2
+ Button.define();
3
+ export default Button;
4
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,eAAe,MAAM,CAAC"}
package/dev/card.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import Card from "./components/card.js";
2
+ export default Card;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ "godown-card": Card;
6
+ }
7
+ }
8
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAIxC,eAAe,IAAI,CAAC;AAEpB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,IAAI,CAAC;KACrB;CACF"}
package/dev/card.js ADDED
@@ -0,0 +1,4 @@
1
+ import Card from "./components/card.js";
2
+ Card.define();
3
+ export default Card;
4
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import Carousel from "./components/carousel.js";
2
+ export default Carousel;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ "godown-carousel": Carousel;
6
+ }
7
+ }
8
+ //# sourceMappingURL=carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../src/carousel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAIhD,eAAe,QAAQ,CAAC;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,QAAQ,CAAC;KAC7B;CACF"}
@@ -0,0 +1,4 @@
1
+ import Carousel from "./components/carousel.js";
2
+ Carousel.define();
3
+ export default Carousel;
4
+ //# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sourceRoot":"","sources":["../src/carousel.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAEhD,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Alert} renders a alert.
4
+ *
5
+ * Color defaults to blue.
6
+ *
7
+ * @slot - Alert content.
8
+ * @slot title - Alert title.
9
+ * @slot icon - Alert icon.
10
+ * @category feedback
11
+ */
12
+ declare class Alert extends GlobalStyle {
13
+ /**
14
+ * If it is a legal value, the icon and preset color will be rendered.
15
+ */
16
+ call: "tip" | "success" | "info" | "warning" | "danger" | "error" | "help" | "deprecated";
17
+ /**
18
+ * The tone of the component.
19
+ * Overrides the color of the call.
20
+ */
21
+ color: "white" | "black" | "gray" | "green" | "teal" | "blue" | "red" | "purple" | "orange" | "yellow" | "pink" | "none";
22
+ /**
23
+ * Close delay, if 0, it will not be closed automatically.
24
+ */
25
+ autoclose: number;
26
+ /**
27
+ * The title is bold and the icon height is the same as it.
28
+ */
29
+ title: string;
30
+ /**
31
+ * Content, if zero value, will be rendered as an unnamed slot.
32
+ */
33
+ content: string;
34
+ /**
35
+ * Set true to hide the close button.
36
+ *
37
+ * The behavior may change due to the {@linkcode variant} property.
38
+ */
39
+ hideClose: boolean;
40
+ /**
41
+ * Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.
42
+ *
43
+ * If variant is `"blockquote"`, hide the close button.
44
+ */
45
+ variant: "blockquote" | "dark" | "light";
46
+ protected render(): (symbol | import("lit").TemplateResult<1>)[];
47
+ close(): void;
48
+ protected firstUpdated(): void;
49
+ static alert(root: HTMLElement, option: Partial<Alert>): Alert;
50
+ }
51
+ export default Alert;
52
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAwFlF;;;;;;;;;GASG;AACH,cAoEM,KAAM,SAAQ,WAAW;IAC7B;;OAEG;IAEH,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAE1F;;;OAGG;IAEH,KAAK,EACD,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,CAAU;IAEpB;;OAEG;IAEH,SAAS,SAAK;IAEd;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IAEH,SAAS,UAAS;IAElB;;;;OAIG;IAEH,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAU;IAElD,SAAS,CAAC,MAAM;IAoBhB,KAAK;IAKL,SAAS,CAAC,YAAY;IAMtB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;CAM/D;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,245 @@
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 { htmlSlot } from "@godown/element/directives/html-slot.js";
5
+ import { htmlStyle } from "@godown/element/directives/html-style.js";
6
+ import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
7
+ import iconCheckAltCircle from "@godown/f7-icon/icons/checkmark-alt-circle.js";
8
+ import iconExclamationCircle from "@godown/f7-icon/icons/exclamationmark-circle.js";
9
+ import iconInfoCircle from "@godown/f7-icon/icons/info-circle.js";
10
+ import iconLightbulb from "@godown/f7-icon/icons/lightbulb.js";
11
+ import iconQuestionCircle from "@godown/f7-icon/icons/question-circle.js";
12
+ import iconSlashCircle from "@godown/f7-icon/icons/slash-circle.js";
13
+ import iconXmark from "@godown/f7-icon/icons/xmark.js";
14
+ import iconXmarkCircle from "@godown/f7-icon/icons/xmark-circle.js";
15
+ import { css, html } from "lit";
16
+ import { property } from "lit/decorators.js";
17
+ import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
18
+ const protoName = "alert";
19
+ const cssScope = scopePrefix(protoName);
20
+ const vars = ["color", "background"].map((v) => `${cssScope}--${v}`);
21
+ const genDark = (key) => {
22
+ return [cssGlobalVars._colors[key][5], cssGlobalVars._colors[key][9]];
23
+ };
24
+ const darkStyles = constructCSSObject(vars, {
25
+ green: genDark("green"),
26
+ blue: genDark("blue"),
27
+ orange: genDark("orange"),
28
+ red: genDark("red"),
29
+ yellow: genDark("yellow"),
30
+ purple: genDark("purple"),
31
+ teal: genDark("teal"),
32
+ pink: genDark("pink"),
33
+ gray: [cssGlobalVars._colors.lightgray[5], cssGlobalVars._colors.darkgray[5]],
34
+ white: [cssGlobalVars._colors.lightgray[2], cssGlobalVars._colors.darkgray[7]],
35
+ black: [cssGlobalVars._colors.darkgray[8], cssGlobalVars._colors.lightgray[5]],
36
+ }, () => `:host`, (prop) => toVar(prop));
37
+ const genLight = (key) => {
38
+ return [cssGlobalVars._colors[key][6], cssGlobalVars._colors[key][0]];
39
+ };
40
+ const lightStyles = constructCSSObject(vars, {
41
+ green: genLight("green"),
42
+ blue: genLight("blue"),
43
+ orange: genLight("orange"),
44
+ red: genLight("red"),
45
+ yellow: genLight("yellow"),
46
+ purple: genLight("purple"),
47
+ teal: genLight("teal"),
48
+ pink: genLight("pink"),
49
+ gray: [cssGlobalVars._colors.darkgray[5], cssGlobalVars._colors.lightgray[7]],
50
+ white: [cssGlobalVars._colors.lightgray[0], cssGlobalVars._colors.darkgray[0]],
51
+ black: [cssGlobalVars._colors.darkgray[7], cssGlobalVars._colors.lightgray[3]],
52
+ }, () => `:host`, (prop) => toVar(prop));
53
+ const calls = {
54
+ tip: {
55
+ color: "teal",
56
+ icon: iconLightbulb,
57
+ },
58
+ success: {
59
+ color: "green",
60
+ icon: iconCheckAltCircle,
61
+ },
62
+ info: {
63
+ color: "blue",
64
+ icon: iconInfoCircle,
65
+ },
66
+ warning: {
67
+ color: "orange",
68
+ icon: iconExclamationCircle,
69
+ },
70
+ danger: {
71
+ color: "red",
72
+ icon: iconXmarkCircle,
73
+ },
74
+ error: {
75
+ color: "red",
76
+ icon: iconXmarkCircle,
77
+ },
78
+ help: {
79
+ color: "purple",
80
+ icon: iconQuestionCircle,
81
+ },
82
+ deprecated: {
83
+ color: "gray",
84
+ icon: iconSlashCircle,
85
+ },
86
+ };
87
+ /**
88
+ * {@linkcode Alert} renders a alert.
89
+ *
90
+ * Color defaults to blue.
91
+ *
92
+ * @slot - Alert content.
93
+ * @slot title - Alert title.
94
+ * @slot icon - Alert icon.
95
+ * @category feedback
96
+ */
97
+ let Alert = class Alert extends GlobalStyle {
98
+ constructor() {
99
+ super(...arguments);
100
+ /**
101
+ * The tone of the component.
102
+ * Overrides the color of the call.
103
+ */
104
+ this.color = "blue";
105
+ /**
106
+ * Close delay, if 0, it will not be closed automatically.
107
+ */
108
+ this.autoclose = 0;
109
+ /**
110
+ * Set true to hide the close button.
111
+ *
112
+ * The behavior may change due to the {@linkcode variant} property.
113
+ */
114
+ this.hideClose = false;
115
+ /**
116
+ * Alert variant, if set to `blockquote`, the alert will be rendered as a blockquote.
117
+ *
118
+ * If variant is `"blockquote"`, hide the close button.
119
+ */
120
+ this.variant = "dark";
121
+ }
122
+ render() {
123
+ const color = calls[this.call]?.color || this.color;
124
+ const icon = this.call ? calls[this.call].icon() : htmlSlot("icon");
125
+ return [
126
+ html `<div part="root" variant="${this.variant}">
127
+ <div part="icon">${icon}</div>
128
+ <div part="content">
129
+ <strong part="title">${this.title || htmlSlot("title")}</strong>
130
+ ${this.content || htmlSlot()}
131
+ </div>
132
+ ${!this.hideClose && this.variant !== "blockquote"
133
+ ? html `<div part="close" tabindex=0 @click="${this.close}">${iconXmark()}</div>`
134
+ : ""}
135
+ </div>`,
136
+ htmlStyle(this.variant === "light" ? lightStyles[color] : darkStyles[color]),
137
+ ];
138
+ }
139
+ close() {
140
+ this.remove();
141
+ this.dispatchEvent(new CustomEvent("close", { bubbles: true, composed: true }));
142
+ }
143
+ firstUpdated() {
144
+ if (this.autoclose) {
145
+ setTimeout(() => this.close(), this.autoclose);
146
+ }
147
+ }
148
+ static alert(root, option) {
149
+ const ai = new this();
150
+ Object.assign(ai, option);
151
+ root.appendChild(ai);
152
+ return ai;
153
+ }
154
+ };
155
+ __decorate([
156
+ property()
157
+ ], Alert.prototype, "call", void 0);
158
+ __decorate([
159
+ property()
160
+ ], Alert.prototype, "color", void 0);
161
+ __decorate([
162
+ property({ type: Number })
163
+ ], Alert.prototype, "autoclose", void 0);
164
+ __decorate([
165
+ property()
166
+ ], Alert.prototype, "title", void 0);
167
+ __decorate([
168
+ property()
169
+ ], Alert.prototype, "content", void 0);
170
+ __decorate([
171
+ property({ type: Boolean })
172
+ ], Alert.prototype, "hideClose", void 0);
173
+ __decorate([
174
+ property()
175
+ ], Alert.prototype, "variant", void 0);
176
+ Alert = __decorate([
177
+ godown(protoName),
178
+ styles(css `
179
+ :host {
180
+ border-radius: var(${cssScope}--border-radius);
181
+ ${cssScope}--border-radius: .25em;
182
+ ${cssScope}--border-width: .075em;
183
+ ${cssScope}--blockquote-width: .2em;
184
+ ${cssScope}--padding: .5em;
185
+ display: block;
186
+ width: 100%;
187
+ }
188
+
189
+ [part=root] {
190
+ --color: var(${cssScope}--color);
191
+ color: var(--color);
192
+ width: 100%;
193
+ transition: 0.25s;
194
+ display: flex;
195
+ justify-content: space-between;
196
+ padding: var(${cssScope}--padding);
197
+ border-radius: inherit;
198
+ border: var(${cssScope}--border-width) solid var(--color);
199
+ background: var(${cssScope}--background);
200
+ }
201
+
202
+ [variant=blockquote] {
203
+ border-radius: 0;
204
+ border-left: var(${cssScope}--blockquote-width) solid var(--color);
205
+ border-bottom: none;
206
+ border-right: none;
207
+ border-top: none;
208
+ background: transparent;
209
+ }
210
+
211
+ [part=content]{
212
+ color: var(--color);
213
+ }
214
+
215
+ [part=root] {
216
+ display: grid;
217
+ align-items: center;
218
+ grid-template-columns: auto 1fr auto;
219
+ grid-template-rows: auto 1fr;
220
+ }
221
+
222
+ [part=title] {
223
+ line-height: 2em;
224
+ }
225
+
226
+ [part=icon] {
227
+ display: inline-grid;
228
+ align-items: center;
229
+ height: 2em;
230
+ }
231
+
232
+ [part=icon] svg {
233
+ margin-right: .5em;
234
+ width: 1.25em;
235
+ height: 1.25em;
236
+ }
237
+
238
+ [part=content] {
239
+ grid-row: span 2 / span 2;
240
+ line-height: 1.5em;
241
+ }
242
+ `)
243
+ ], Alert);
244
+ export default Alert;
245
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/components/alert.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,kBAAkB,MAAM,+CAA+C,CAAC;AAC/E,OAAO,qBAAqB,MAAM,iDAAiD,CAAC;AACpF,OAAO,cAAc,MAAM,sCAAsC,CAAC;AACl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E,MAAsB;QACpD,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AA5FC;IADC,QAAQ,EAAE;mCAC+E;AAO1F;IADC,QAAQ,EAAE;oCAaS;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACb;AAMd;IADC,QAAQ,EAAE;oCACG;AAMd;IADC,QAAQ,EAAE;sCACK;AAQhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wCACV;AAQlB;IADC,QAAQ,EAAE;sCACuC;AA1D9C,KAAK;IApEV,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;2BAEsB,QAAQ;QAC3B,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,QAAQ;;;;;;qBAMK,QAAQ;;;;;;qBAMR,QAAQ;;oBAET,QAAQ;wBACJ,QAAQ;;;;;yBAKP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsC5B,CACJ;GACK,KAAK,CAiGV;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Avatar} renders a avatar.
4
+ *
5
+ * Renders as an image if it has a src property,
6
+ * otherwise falls back to name or nameless slot.
7
+ *
8
+ * @slot - Display content if no `src` or `name` provided.
9
+ * @category display
10
+ */
11
+ declare class Avatar extends GlobalStyle {
12
+ /**
13
+ * Image src.
14
+ */
15
+ src: string | undefined | null;
16
+ /**
17
+ * If the image is not available, display name (call {@linkcode Avatar.format}).
18
+ */
19
+ name: string;
20
+ /**
21
+ * Display rounded.
22
+ */
23
+ round: boolean;
24
+ protected render(): import("lit").TemplateResult<1>;
25
+ private _renderAvatar;
26
+ format(): string;
27
+ _handleError(): void;
28
+ }
29
+ export default Avatar;
30
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/components/avatar.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAKnE;;;;;;;;GAQG;AACH,cAiCM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAE/B;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,KAAK,UAAS;IAEd,SAAS,CAAC,MAAM;IAIhB,OAAO,CAAC,aAAa;IAUrB,MAAM;IAIN,YAAY;CAGb;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { __decorate } from "tslib";
2
+ import { godown, styles } from "@godown/element/decorators/index.js";
3
+ import { htmlSlot } from "@godown/element/directives/index.js";
4
+ import { css, html } from "lit";
5
+ import { property } from "lit/decorators.js";
6
+ import { GlobalStyle, scopePrefix } from "../core/global-style.js";
7
+ const protoName = "avatar";
8
+ const cssScope = scopePrefix(protoName);
9
+ /**
10
+ * {@linkcode Avatar} renders a avatar.
11
+ *
12
+ * Renders as an image if it has a src property,
13
+ * otherwise falls back to name or nameless slot.
14
+ *
15
+ * @slot - Display content if no `src` or `name` provided.
16
+ * @category display
17
+ */
18
+ let Avatar = class Avatar extends GlobalStyle {
19
+ constructor() {
20
+ super(...arguments);
21
+ /**
22
+ * If the image is not available, display name (call {@linkcode Avatar.format}).
23
+ */
24
+ this.name = "";
25
+ /**
26
+ * Display rounded.
27
+ */
28
+ this.round = false;
29
+ }
30
+ render() {
31
+ return html `<div part="root">${this._renderAvatar()}</div>`;
32
+ }
33
+ _renderAvatar() {
34
+ if (this.src) {
35
+ return html `<img part="image" src="${this.src}" @error=${this._handleError} alt="${this.name}">`;
36
+ }
37
+ if (this.name) {
38
+ return html `<span part="name">${this.format()}</span>`;
39
+ }
40
+ return htmlSlot();
41
+ }
42
+ format() {
43
+ return this.name;
44
+ }
45
+ _handleError() {
46
+ this.src = undefined;
47
+ }
48
+ };
49
+ __decorate([
50
+ property()
51
+ ], Avatar.prototype, "src", void 0);
52
+ __decorate([
53
+ property()
54
+ ], Avatar.prototype, "name", void 0);
55
+ __decorate([
56
+ property({ type: Boolean })
57
+ ], Avatar.prototype, "round", void 0);
58
+ Avatar = __decorate([
59
+ godown(protoName),
60
+ styles(css `
61
+ :host {
62
+ ${cssScope}--size: 2em;
63
+ width: var(${cssScope}--size);
64
+ height: var(${cssScope}--size);
65
+ display: inline-block;
66
+ vertical-align: bottom;
67
+ }
68
+
69
+ :host([round]){
70
+ border-radius:50%;
71
+ }
72
+
73
+ [part=image] {
74
+ width: 100%;
75
+ height: 100%;
76
+ object-fit: cover;
77
+ }
78
+
79
+ [part=root] {
80
+ overflow: hidden;
81
+ position: relative;
82
+ border-radius: inherit;
83
+ width: 100%;
84
+ height: 100%;
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ }
89
+ `)
90
+ ], Avatar);
91
+ export default Avatar;
92
+ //# sourceMappingURL=avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/components/avatar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;GAQG;AAkCH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,WAAW;IAAhC;;QAOE;;WAEG;QAEH,SAAI,GAAG,EAAE,CAAC;QAEV;;WAEG;QAEH,UAAK,GAAG,KAAK,CAAC;IAuBhB,CAAC;IArBW,MAAM;QACd,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;IAC9D,CAAC;IAEO,aAAa;QACnB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACb,OAAO,IAAI,CAAA,0BAA0B,IAAI,CAAC,GAAG,YAAY,IAAI,CAAC,YAAY,SAAS,IAAI,CAAC,IAAI,IAAI,CAAC;QACnG,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,IAAI,CAAA,qBAAqB,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;QACzD,CAAC;QACD,OAAO,QAAQ,EAAE,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,YAAY;QACV,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;IACvB,CAAC;CACF,CAAA;AAnCC;IADC,QAAQ,EAAE;mCACoB;AAM/B;IADC,QAAQ,EAAE;oCACD;AAMV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qCACd;AAjBV,MAAM;IAjCX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ;mBACG,QAAQ;oBACP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;GAyBzB,CACF;GACK,MAAM,CAwCX;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Breath} render the text with a breathing effect.
4
+ *
5
+ * Dynamically generate a breathing effect based on the length of the split text.
6
+ *
7
+ * If there is not enough CSS variable, overrun elements will use the.
8
+ *
9
+ * godown was a css library in its earliest days,
10
+ * and this is the component version of its first effect.
11
+ *
12
+ * Inspired by Vercel home page (2023).
13
+ *
14
+ * @slot - Breathing parts.
15
+ * @category effect
16
+ */
17
+ declare class Breath extends GlobalStyle {
18
+ /**
19
+ * Strings or array of strings,
20
+ * if array, divided each element into chunks,
21
+ * otherwise split strings by whitespace.
22
+ */
23
+ text: string | string[];
24
+ /**
25
+ * Effect duration, ending in s or ms.
26
+ */
27
+ duration: string;
28
+ protected render(): (symbol | import("lit").TemplateResult<1> | import("lit").TemplateResult<1>[])[];
29
+ protected renderText(text: string): import("lit").TemplateResult<1>;
30
+ protected getTexts(): string[];
31
+ protected computeStyle(len: number): string;
32
+ protected parseDuration(): number;
33
+ }
34
+ export default Breath;
35
+ //# sourceMappingURL=breath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breath.d.ts","sourceRoot":"","sources":["../../src/components/breath.ts"],"names":[],"mappings":"AAMA,OAAO,EAAiB,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAKlF;;;;;;;;;;;;;;GAcG;AACH,cA4DM,MAAO,SAAQ,WAAW;IAC9B;;;;OAIG;IAEH,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,MAAM;IAQhB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM;IAOjC,SAAS,CAAC,QAAQ,IAAI,MAAM,EAAE;IAI9B,SAAS,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM;IAoBlC,SAAS,CAAC,aAAa;CAUxB;AAED,eAAe,MAAM,CAAC"}