godown 3.13.0 → 3.13.2

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 (433) hide show
  1. package/alert.d.ts +0 -1
  2. package/alert.d.ts.map +1 -1
  3. package/alert.js.map +1 -1
  4. package/avatar.d.ts +0 -1
  5. package/avatar.d.ts.map +1 -1
  6. package/avatar.js.map +1 -1
  7. package/badge.d.ts +0 -1
  8. package/badge.d.ts.map +1 -1
  9. package/badge.js.map +1 -1
  10. package/breath.d.ts +0 -1
  11. package/breath.d.ts.map +1 -1
  12. package/breath.js.map +1 -1
  13. package/build/godown+lit.iife.js +16 -57
  14. package/build/godown+lit.iife.js.map +1 -1
  15. package/build/godown+lit.js +16 -57
  16. package/build/godown+lit.js.map +1 -1
  17. package/build/godown+lit.umd.js +16 -57
  18. package/build/godown+lit.umd.js.map +1 -1
  19. package/build/godown.iife.js +15 -47
  20. package/build/godown.iife.js.map +1 -1
  21. package/build/godown.js +15 -47
  22. package/build/godown.js.map +1 -1
  23. package/build/godown.umd.js +15 -47
  24. package/build/godown.umd.js.map +1 -1
  25. package/button.d.ts +0 -1
  26. package/button.d.ts.map +1 -1
  27. package/button.js.map +1 -1
  28. package/card.d.ts +0 -1
  29. package/card.d.ts.map +1 -1
  30. package/card.js.map +1 -1
  31. package/carousel.d.ts +0 -1
  32. package/carousel.d.ts.map +1 -1
  33. package/carousel.js.map +1 -1
  34. package/chip.d.ts +0 -1
  35. package/chip.d.ts.map +1 -1
  36. package/chip.js.map +1 -1
  37. package/custom-elements.json +1 -1
  38. package/details.d.ts +0 -1
  39. package/details.d.ts.map +1 -1
  40. package/details.js.map +1 -1
  41. package/dialog.d.ts +0 -1
  42. package/dialog.d.ts.map +1 -1
  43. package/dialog.js.map +1 -1
  44. package/divider.d.ts +0 -1
  45. package/divider.d.ts.map +1 -1
  46. package/divider.js.map +1 -1
  47. package/dragbox.d.ts +0 -1
  48. package/dragbox.d.ts.map +1 -1
  49. package/dragbox.js.map +1 -1
  50. package/flex.d.ts +0 -1
  51. package/flex.d.ts.map +1 -1
  52. package/flex.js.map +1 -1
  53. package/form.d.ts +0 -1
  54. package/form.d.ts.map +1 -1
  55. package/form.js.map +1 -1
  56. package/grid.d.ts +0 -1
  57. package/grid.d.ts.map +1 -1
  58. package/grid.js.map +1 -1
  59. package/heading.d.ts +0 -1
  60. package/heading.d.ts.map +1 -1
  61. package/heading.js.map +1 -1
  62. package/index.d.ts +0 -1
  63. package/index.d.ts.map +1 -1
  64. package/index.js.map +1 -1
  65. package/input.d.ts +0 -1
  66. package/input.d.ts.map +1 -1
  67. package/input.js.map +1 -1
  68. package/internal/global-style.d.ts +13 -15
  69. package/internal/global-style.d.ts.map +1 -1
  70. package/internal/global-style.js +1 -1
  71. package/internal/global-style.js.map +1 -1
  72. package/internal/icons/caret-down.d.ts +0 -1
  73. package/internal/icons/caret-down.d.ts.map +1 -1
  74. package/internal/icons/caret-down.js +1 -1
  75. package/internal/icons/caret-down.js.map +1 -1
  76. package/internal/icons/caret-left.d.ts +0 -1
  77. package/internal/icons/caret-left.d.ts.map +1 -1
  78. package/internal/icons/caret-left.js +1 -1
  79. package/internal/icons/caret-left.js.map +1 -1
  80. package/internal/icons/caret-right.d.ts +0 -1
  81. package/internal/icons/caret-right.d.ts.map +1 -1
  82. package/internal/icons/caret-right.js +1 -1
  83. package/internal/icons/caret-right.js.map +1 -1
  84. package/internal/icons/eye-slash.d.ts +0 -1
  85. package/internal/icons/eye-slash.d.ts.map +1 -1
  86. package/internal/icons/eye-slash.js +1 -1
  87. package/internal/icons/eye-slash.js.map +1 -1
  88. package/internal/popover.d.ts +0 -1
  89. package/internal/popover.d.ts.map +1 -1
  90. package/internal/popover.js +1 -1
  91. package/internal/popover.js.map +1 -1
  92. package/internal/reset-style.d.ts +0 -1
  93. package/internal/reset-style.d.ts.map +1 -1
  94. package/internal/reset-style.js +2 -1
  95. package/internal/reset-style.js.map +1 -1
  96. package/internal/ring.d.ts +9 -10
  97. package/internal/ring.d.ts.map +1 -1
  98. package/internal/ring.js +1 -1
  99. package/internal/ring.js.map +1 -1
  100. package/internal/super-input.d.ts +32 -33
  101. package/internal/super-input.d.ts.map +1 -1
  102. package/internal/super-input.js +2 -1
  103. package/internal/super-input.js.map +1 -1
  104. package/internal/utils.d.ts +0 -1
  105. package/internal/utils.d.ts.map +1 -1
  106. package/internal/utils.js +1 -1
  107. package/internal/utils.js.map +1 -1
  108. package/layout.d.ts +0 -1
  109. package/layout.d.ts.map +1 -1
  110. package/layout.js.map +1 -1
  111. package/link.d.ts +0 -1
  112. package/link.d.ts.map +1 -1
  113. package/link.js.map +1 -1
  114. package/package.json +5 -5
  115. package/popover.d.ts +0 -1
  116. package/popover.d.ts.map +1 -1
  117. package/popover.js.map +1 -1
  118. package/progress.d.ts +0 -1
  119. package/progress.d.ts.map +1 -1
  120. package/progress.js.map +1 -1
  121. package/range.d.ts +0 -1
  122. package/range.d.ts.map +1 -1
  123. package/range.js.map +1 -1
  124. package/rotate.d.ts +0 -1
  125. package/rotate.d.ts.map +1 -1
  126. package/rotate.js.map +1 -1
  127. package/router.d.ts +0 -1
  128. package/router.d.ts.map +1 -1
  129. package/router.js.map +1 -1
  130. package/select.d.ts +0 -1
  131. package/select.d.ts.map +1 -1
  132. package/select.js.map +1 -1
  133. package/skeleton.d.ts +0 -1
  134. package/skeleton.d.ts.map +1 -1
  135. package/skeleton.js.map +1 -1
  136. package/split.d.ts +0 -1
  137. package/split.d.ts.map +1 -1
  138. package/split.js.map +1 -1
  139. package/src/internal/global-style.ts +2 -2
  140. package/src/internal/popover.ts +9 -9
  141. package/src/web-components/alert/component.ts +6 -14
  142. package/src/web-components/breath/component.ts +1 -1
  143. package/src/web-components/button/component.ts +6 -12
  144. package/src/web-components/card/component.ts +1 -2
  145. package/src/web-components/input/component.ts +4 -4
  146. package/src/web-components/router/component.ts +12 -12
  147. package/src/web-components/select/component.ts +1 -0
  148. package/src/web-components/skeleton/component.ts +2 -2
  149. package/src/web-components/tabs/component.ts +1 -1
  150. package/src/web-components/time/component.ts +1 -1
  151. package/switch.d.ts +0 -1
  152. package/switch.d.ts.map +1 -1
  153. package/switch.js.map +1 -1
  154. package/tabs.d.ts +0 -1
  155. package/tabs.d.ts.map +1 -1
  156. package/tabs.js.map +1 -1
  157. package/text.d.ts +0 -1
  158. package/text.d.ts.map +1 -1
  159. package/text.js.map +1 -1
  160. package/time.d.ts +0 -1
  161. package/time.d.ts.map +1 -1
  162. package/time.js.map +1 -1
  163. package/tooltip.d.ts +0 -1
  164. package/tooltip.d.ts.map +1 -1
  165. package/tooltip.js.map +1 -1
  166. package/typewriter.d.ts +0 -1
  167. package/typewriter.d.ts.map +1 -1
  168. package/typewriter.js.map +1 -1
  169. package/web-components/alert/component.d.ts +20 -21
  170. package/web-components/alert/component.d.ts.map +1 -1
  171. package/web-components/alert/component.js +1 -1
  172. package/web-components/alert/component.js.map +1 -1
  173. package/web-components/alert/definition.d.ts +3 -4
  174. package/web-components/alert/definition.d.ts.map +1 -1
  175. package/web-components/alert/definition.js +1 -1
  176. package/web-components/alert/definition.js.map +1 -1
  177. package/web-components/avatar/component.d.ts +25 -26
  178. package/web-components/avatar/component.d.ts.map +1 -1
  179. package/web-components/avatar/component.js +1 -1
  180. package/web-components/avatar/component.js.map +1 -1
  181. package/web-components/avatar/definition.d.ts +3 -4
  182. package/web-components/avatar/definition.d.ts.map +1 -1
  183. package/web-components/avatar/definition.js +1 -1
  184. package/web-components/avatar/definition.js.map +1 -1
  185. package/web-components/badge/component.d.ts +7 -8
  186. package/web-components/badge/component.d.ts.map +1 -1
  187. package/web-components/badge/component.js +2 -1
  188. package/web-components/badge/component.js.map +1 -1
  189. package/web-components/badge/definition.d.ts +3 -4
  190. package/web-components/badge/definition.d.ts.map +1 -1
  191. package/web-components/badge/definition.js +1 -1
  192. package/web-components/badge/definition.js.map +1 -1
  193. package/web-components/breath/component.d.ts +28 -29
  194. package/web-components/breath/component.d.ts.map +1 -1
  195. package/web-components/breath/component.js +1 -1
  196. package/web-components/breath/component.js.map +1 -1
  197. package/web-components/breath/definition.d.ts +3 -4
  198. package/web-components/breath/definition.d.ts.map +1 -1
  199. package/web-components/breath/definition.js +1 -1
  200. package/web-components/breath/definition.js.map +1 -1
  201. package/web-components/button/component.d.ts +35 -36
  202. package/web-components/button/component.d.ts.map +1 -1
  203. package/web-components/button/component.js +1 -1
  204. package/web-components/button/component.js.map +1 -1
  205. package/web-components/button/definition.d.ts +3 -4
  206. package/web-components/button/definition.d.ts.map +1 -1
  207. package/web-components/button/definition.js +1 -1
  208. package/web-components/button/definition.js.map +1 -1
  209. package/web-components/card/component.d.ts +21 -22
  210. package/web-components/card/component.d.ts.map +1 -1
  211. package/web-components/card/component.js +1 -1
  212. package/web-components/card/component.js.map +1 -1
  213. package/web-components/card/definition.d.ts +3 -4
  214. package/web-components/card/definition.d.ts.map +1 -1
  215. package/web-components/card/definition.js +1 -1
  216. package/web-components/card/definition.js.map +1 -1
  217. package/web-components/carousel/component.d.ts +32 -33
  218. package/web-components/carousel/component.d.ts.map +1 -1
  219. package/web-components/carousel/component.js +2 -1
  220. package/web-components/carousel/component.js.map +1 -1
  221. package/web-components/carousel/definition.d.ts +3 -4
  222. package/web-components/carousel/definition.d.ts.map +1 -1
  223. package/web-components/carousel/definition.js +1 -1
  224. package/web-components/carousel/definition.js.map +1 -1
  225. package/web-components/chip/component.d.ts +21 -22
  226. package/web-components/chip/component.d.ts.map +1 -1
  227. package/web-components/chip/component.js +1 -1
  228. package/web-components/chip/component.js.map +1 -1
  229. package/web-components/chip/definition.d.ts +3 -4
  230. package/web-components/chip/definition.d.ts.map +1 -1
  231. package/web-components/chip/definition.js +1 -1
  232. package/web-components/chip/definition.js.map +1 -1
  233. package/web-components/details/component.d.ts +16 -17
  234. package/web-components/details/component.d.ts.map +1 -1
  235. package/web-components/details/component.js +1 -1
  236. package/web-components/details/component.js.map +1 -1
  237. package/web-components/details/definition.d.ts +3 -4
  238. package/web-components/details/definition.d.ts.map +1 -1
  239. package/web-components/details/definition.js +1 -1
  240. package/web-components/details/definition.js.map +1 -1
  241. package/web-components/dialog/component.d.ts +30 -31
  242. package/web-components/dialog/component.d.ts.map +1 -1
  243. package/web-components/dialog/component.js +1 -1
  244. package/web-components/dialog/component.js.map +1 -1
  245. package/web-components/dialog/definition.d.ts +3 -4
  246. package/web-components/dialog/definition.d.ts.map +1 -1
  247. package/web-components/dialog/definition.js +1 -1
  248. package/web-components/dialog/definition.js.map +1 -1
  249. package/web-components/divider/component.d.ts +9 -10
  250. package/web-components/divider/component.d.ts.map +1 -1
  251. package/web-components/divider/component.js +1 -1
  252. package/web-components/divider/component.js.map +1 -1
  253. package/web-components/divider/definition.d.ts +3 -4
  254. package/web-components/divider/definition.d.ts.map +1 -1
  255. package/web-components/divider/definition.js +1 -1
  256. package/web-components/divider/definition.js.map +1 -1
  257. package/web-components/dragbox/component.d.ts +31 -32
  258. package/web-components/dragbox/component.d.ts.map +1 -1
  259. package/web-components/dragbox/component.js +2 -1
  260. package/web-components/dragbox/component.js.map +1 -1
  261. package/web-components/dragbox/definition.d.ts +3 -4
  262. package/web-components/dragbox/definition.d.ts.map +1 -1
  263. package/web-components/dragbox/definition.js +1 -1
  264. package/web-components/dragbox/definition.js.map +1 -1
  265. package/web-components/flex/component.d.ts +26 -27
  266. package/web-components/flex/component.d.ts.map +1 -1
  267. package/web-components/flex/component.js +2 -1
  268. package/web-components/flex/component.js.map +1 -1
  269. package/web-components/flex/definition.d.ts +3 -4
  270. package/web-components/flex/definition.d.ts.map +1 -1
  271. package/web-components/flex/definition.js +1 -1
  272. package/web-components/flex/definition.js.map +1 -1
  273. package/web-components/form/component.d.ts +16 -17
  274. package/web-components/form/component.d.ts.map +1 -1
  275. package/web-components/form/component.js +2 -1
  276. package/web-components/form/component.js.map +1 -1
  277. package/web-components/form/definition.d.ts +3 -4
  278. package/web-components/form/definition.d.ts.map +1 -1
  279. package/web-components/form/definition.js +1 -1
  280. package/web-components/form/definition.js.map +1 -1
  281. package/web-components/grid/component.d.ts +30 -31
  282. package/web-components/grid/component.d.ts.map +1 -1
  283. package/web-components/grid/component.js +2 -1
  284. package/web-components/grid/component.js.map +1 -1
  285. package/web-components/grid/definition.d.ts +3 -4
  286. package/web-components/grid/definition.d.ts.map +1 -1
  287. package/web-components/grid/definition.js +1 -1
  288. package/web-components/grid/definition.js.map +1 -1
  289. package/web-components/heading/component.d.ts +23 -24
  290. package/web-components/heading/component.d.ts.map +1 -1
  291. package/web-components/heading/component.js +2 -1
  292. package/web-components/heading/component.js.map +1 -1
  293. package/web-components/heading/definition.d.ts +3 -4
  294. package/web-components/heading/definition.d.ts.map +1 -1
  295. package/web-components/heading/definition.js +1 -1
  296. package/web-components/heading/definition.js.map +1 -1
  297. package/web-components/input/component.d.ts +17 -18
  298. package/web-components/input/component.d.ts.map +1 -1
  299. package/web-components/input/component.js +1 -1
  300. package/web-components/input/component.js.map +1 -1
  301. package/web-components/input/definition.d.ts +3 -4
  302. package/web-components/input/definition.d.ts.map +1 -1
  303. package/web-components/input/definition.js +1 -1
  304. package/web-components/input/definition.js.map +1 -1
  305. package/web-components/layout/component.d.ts +18 -19
  306. package/web-components/layout/component.d.ts.map +1 -1
  307. package/web-components/layout/component.js +2 -1
  308. package/web-components/layout/component.js.map +1 -1
  309. package/web-components/layout/definition.d.ts +3 -4
  310. package/web-components/layout/definition.d.ts.map +1 -1
  311. package/web-components/layout/definition.js +1 -1
  312. package/web-components/layout/definition.js.map +1 -1
  313. package/web-components/link/component.d.ts +54 -55
  314. package/web-components/link/component.d.ts.map +1 -1
  315. package/web-components/link/component.js +2 -1
  316. package/web-components/link/component.js.map +1 -1
  317. package/web-components/link/definition.d.ts +3 -4
  318. package/web-components/link/definition.d.ts.map +1 -1
  319. package/web-components/link/definition.js +1 -1
  320. package/web-components/link/definition.js.map +1 -1
  321. package/web-components/popover/component.d.ts +28 -29
  322. package/web-components/popover/component.d.ts.map +1 -1
  323. package/web-components/popover/component.js +2 -1
  324. package/web-components/popover/component.js.map +1 -1
  325. package/web-components/popover/definition.d.ts +3 -4
  326. package/web-components/popover/definition.d.ts.map +1 -1
  327. package/web-components/popover/definition.js +1 -1
  328. package/web-components/popover/definition.js.map +1 -1
  329. package/web-components/progress/component.d.ts +8 -9
  330. package/web-components/progress/component.d.ts.map +1 -1
  331. package/web-components/progress/component.js +1 -1
  332. package/web-components/progress/component.js.map +1 -1
  333. package/web-components/progress/definition.d.ts +3 -4
  334. package/web-components/progress/definition.d.ts.map +1 -1
  335. package/web-components/progress/definition.js +1 -1
  336. package/web-components/progress/definition.js.map +1 -1
  337. package/web-components/range/component.d.ts +108 -109
  338. package/web-components/range/component.d.ts.map +1 -1
  339. package/web-components/range/component.js +1 -1
  340. package/web-components/range/component.js.map +1 -1
  341. package/web-components/range/definition.d.ts +3 -4
  342. package/web-components/range/definition.d.ts.map +1 -1
  343. package/web-components/range/definition.js +1 -1
  344. package/web-components/range/definition.js.map +1 -1
  345. package/web-components/rotate/component.d.ts +22 -23
  346. package/web-components/rotate/component.d.ts.map +1 -1
  347. package/web-components/rotate/component.js +1 -1
  348. package/web-components/rotate/component.js.map +1 -1
  349. package/web-components/rotate/definition.d.ts +3 -4
  350. package/web-components/rotate/definition.d.ts.map +1 -1
  351. package/web-components/rotate/definition.js +1 -1
  352. package/web-components/rotate/definition.js.map +1 -1
  353. package/web-components/router/component.d.ts +99 -100
  354. package/web-components/router/component.d.ts.map +1 -1
  355. package/web-components/router/component.js +2 -1
  356. package/web-components/router/component.js.map +1 -1
  357. package/web-components/router/definition.d.ts +3 -4
  358. package/web-components/router/definition.d.ts.map +1 -1
  359. package/web-components/router/definition.js +1 -1
  360. package/web-components/router/definition.js.map +1 -1
  361. package/web-components/select/component.d.ts +30 -31
  362. package/web-components/select/component.d.ts.map +1 -1
  363. package/web-components/select/component.js +2 -1
  364. package/web-components/select/component.js.map +1 -1
  365. package/web-components/select/definition.d.ts +3 -4
  366. package/web-components/select/definition.d.ts.map +1 -1
  367. package/web-components/select/definition.js +1 -1
  368. package/web-components/select/definition.js.map +1 -1
  369. package/web-components/skeleton/component.d.ts +11 -12
  370. package/web-components/skeleton/component.d.ts.map +1 -1
  371. package/web-components/skeleton/component.js +1 -1
  372. package/web-components/skeleton/component.js.map +1 -1
  373. package/web-components/skeleton/definition.d.ts +3 -4
  374. package/web-components/skeleton/definition.d.ts.map +1 -1
  375. package/web-components/skeleton/definition.js +1 -1
  376. package/web-components/skeleton/definition.js.map +1 -1
  377. package/web-components/split/component.d.ts +48 -49
  378. package/web-components/split/component.d.ts.map +1 -1
  379. package/web-components/split/component.js +1 -1
  380. package/web-components/split/component.js.map +1 -1
  381. package/web-components/split/definition.d.ts +3 -4
  382. package/web-components/split/definition.d.ts.map +1 -1
  383. package/web-components/split/definition.js +1 -1
  384. package/web-components/split/definition.js.map +1 -1
  385. package/web-components/switch/component.d.ts +20 -21
  386. package/web-components/switch/component.d.ts.map +1 -1
  387. package/web-components/switch/component.js +1 -1
  388. package/web-components/switch/component.js.map +1 -1
  389. package/web-components/switch/definition.d.ts +3 -4
  390. package/web-components/switch/definition.d.ts.map +1 -1
  391. package/web-components/switch/definition.js +1 -1
  392. package/web-components/switch/definition.js.map +1 -1
  393. package/web-components/tabs/component.d.ts +39 -40
  394. package/web-components/tabs/component.d.ts.map +1 -1
  395. package/web-components/tabs/component.js +1 -1
  396. package/web-components/tabs/component.js.map +1 -1
  397. package/web-components/tabs/definition.d.ts +3 -4
  398. package/web-components/tabs/definition.d.ts.map +1 -1
  399. package/web-components/tabs/definition.js +1 -1
  400. package/web-components/tabs/definition.js.map +1 -1
  401. package/web-components/text/component.d.ts +10 -11
  402. package/web-components/text/component.d.ts.map +1 -1
  403. package/web-components/text/component.js +1 -1
  404. package/web-components/text/component.js.map +1 -1
  405. package/web-components/text/definition.d.ts +3 -4
  406. package/web-components/text/definition.d.ts.map +1 -1
  407. package/web-components/text/definition.js +1 -1
  408. package/web-components/text/definition.js.map +1 -1
  409. package/web-components/time/component.d.ts +28 -29
  410. package/web-components/time/component.d.ts.map +1 -1
  411. package/web-components/time/component.js +1 -1
  412. package/web-components/time/component.js.map +1 -1
  413. package/web-components/time/definition.d.ts +3 -4
  414. package/web-components/time/definition.d.ts.map +1 -1
  415. package/web-components/time/definition.js +1 -1
  416. package/web-components/time/definition.js.map +1 -1
  417. package/web-components/tooltip/component.d.ts +19 -20
  418. package/web-components/tooltip/component.d.ts.map +1 -1
  419. package/web-components/tooltip/component.js +1 -1
  420. package/web-components/tooltip/component.js.map +1 -1
  421. package/web-components/tooltip/definition.d.ts +3 -4
  422. package/web-components/tooltip/definition.d.ts.map +1 -1
  423. package/web-components/tooltip/definition.js +1 -1
  424. package/web-components/tooltip/definition.js.map +1 -1
  425. package/web-components/typewriter/component.d.ts +43 -44
  426. package/web-components/typewriter/component.d.ts.map +1 -1
  427. package/web-components/typewriter/component.js +1 -1
  428. package/web-components/typewriter/component.js.map +1 -1
  429. package/web-components/typewriter/definition.d.ts +3 -4
  430. package/web-components/typewriter/definition.d.ts.map +1 -1
  431. package/web-components/typewriter/definition.js +1 -1
  432. package/web-components/typewriter/definition.js.map +1 -1
  433. package/web-types.json +1 -1
@@ -1,8 +1,7 @@
1
1
  import Grid from "./component.js";
2
2
  export default Grid;
3
3
  declare global {
4
- interface HTMLElementTagNameMap {
5
- "godown-grid": Grid;
6
- }
4
+ interface HTMLElementTagNameMap {
5
+ "godown-grid": Grid;
6
+ }
7
7
  }
8
- //# sourceMappingURL=definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"__source__/","sources":["web-components/grid/definition.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAIlC,eAAe,IAAI,CAAC;AAEpB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,IAAI,CAAC;KACrB;CACF"}
1
+ {"mappings":"AAAA,OAAO,UAAU,gBAAiB;AAIlC,eAAe;eAEA;WACH,sBAAsB;EAC9B,eAAe;CAChB;AACF","names":[],"sources":["../../../src/web-components/grid/definition.ts"],"sourcesContent":["import Grid from \"./component.js\";\n\nGrid.define();\n\nexport default Grid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-grid\": Grid;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import e from"./component.js";e.define();export{e as default};
1
+ import Grid from"./component.js";Grid.define();export{Grid as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../src/web-components/grid/definition.ts"],"sourcesContent":null,"names":["Grid","define"],"mappings":"8BAEAA,EAAKC"}
1
+ {"version":3,"file":"definition.js","sources":["../../src/web-components/grid/definition.ts"],"sourcesContent":["import Grid from \"./component.js\";\n\nGrid.define();\n\nexport default Grid;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-grid\": Grid;\n }\n}\n"],"names":[],"mappings":"iCAEA,KAAK,QAAQ"}
@@ -1,31 +1,30 @@
1
1
  import { type TemplateResult } from "lit";
2
2
  import Link from "../link/component.js";
3
3
  /**
4
- * {@linkcode Heading} renders a heading.
5
- *
6
- * If the id is provided, the anchor will be displayed.
7
- *
8
- * @slot - Heading content.
9
- * @category layout
10
- */
4
+ * {@linkcode Heading} renders a heading.
5
+ *
6
+ * If the id is provided, the anchor will be displayed.
7
+ *
8
+ * @slot - Heading content.
9
+ * @category layout
10
+ */
11
11
  declare class Heading extends Link {
12
- /**
13
- * The heading level.
14
- */
15
- as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
16
- /**
17
- * The anchor prefix.
18
- *
19
- * Element must have an id to be displayed.
20
- */
21
- anchor: string;
22
- /**
23
- * The anchor side.
24
- */
25
- side: "left" | "right";
26
- protected render(): TemplateResult<1>;
27
- protected wrapHeading(...children: any[]): TemplateResult<1>;
12
+ /**
13
+ * The heading level.
14
+ */
15
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
16
+ /**
17
+ * The anchor prefix.
18
+ *
19
+ * Element must have an id to be displayed.
20
+ */
21
+ anchor: string;
22
+ /**
23
+ * The anchor side.
24
+ */
25
+ side: "left" | "right";
26
+ protected render(): TemplateResult<1>;
27
+ protected wrapHeading(...children: any[]): TemplateResult<1>;
28
28
  }
29
29
  export default Heading;
30
30
  export { Heading };
31
- //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"__source__/","sources":["web-components/heading/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAG9D,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAIxC;;;;;;;GAOG;AACH,cAgCM,OAAQ,SAAQ,IAAI;IACxB;;OAEG;IAEH,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEnD;;;;OAIG;IAEH,MAAM,SAAO;IAEb;;OAEG;IAEH,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IAEhC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IAmBrC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC;CA4B7D;AAED,eAAe,OAAO,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"mappings":"AACA,cAAc,sBAA0C,KAAM;AAG9D,OAAO,UAAU,sBAAuB;;;;;;;;;AAYxC,cAgCM,gBAAgB,KAAK;;;;CAIzB,AACA,IAAI,OAAO,OAAO,OAAO,OAAO,OAAO;;;;;;CAOvC,AACA;;;;CAKA,AACA,MAAM,SAAS;CAEf,UAAU,UAAU,eAAe;CAmBnC,UAAU,YAAY,GAAG,kBAAkB,eAAe;AA4B3D;AAED,eAAe;AACf,SAAS","names":[],"sources":["../../../src/web-components/heading/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles, tokenList } from \"@godown/element\";\nimport { type TemplateResult, css, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Link from \"../link/component.js\";\n\nconst protoName = \"heading\";\n\n/**\n * {@linkcode Heading} renders a heading.\n *\n * If the id is provided, the anchor will be displayed.\n *\n * @slot - Heading content.\n * @category layout\n */\n@godown(protoName)\n@styles(css`\n :host {\n display: block;\n text-align: start;\n }\n\n [part~=\"anchor\"] {\n position: absolute;\n text-align: center;\n min-width: 1.25em;\n right: 100%;\n }\n\n [part~=\"left\"][part~=\"anchor\"] {\n right: 100%;\n }\n\n [part~=\"right\"][part~=\"anchor\"] {\n left: 100%;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n width: fit-content;\n position: relative;\n }\n`)\nclass Heading extends Link {\n /**\n * The heading level.\n */\n @property()\n as: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" = \"h1\";\n\n /**\n * The anchor prefix.\n *\n * Element must have an id to be displayed.\n */\n @property()\n anchor = \"#\";\n\n /**\n * The anchor side.\n */\n @property()\n side: \"left\" | \"right\" = \"left\";\n\n protected render(): TemplateResult<1> {\n const hrefValue = this.href || (this.id ? \"#\" + this.id : undefined);\n return html`\n <a\n part=\"root\"\n href=\"${hrefValue || nothing}\"\n >\n ${this.wrapHeading(\n htmlSlot(),\n hrefValue\n ? html`\n <i part=\"${tokenList(\"anchor\", this.side)}\">${this.anchor}</i>\n `\n : \"\",\n )}\n </a>\n `;\n }\n\n protected wrapHeading(...children: any[]): TemplateResult<1> {\n switch (this.as) {\n case \"h2\":\n return html`\n <h2>${children}</h2>\n `;\n case \"h3\":\n return html`\n <h3>${children}</h3>\n `;\n case \"h4\":\n return html`\n <h4>${children}</h4>\n `;\n case \"h5\":\n return html`\n <h5>${children}</h5>\n `;\n case \"h6\":\n return html`\n <h6>${children}</h6>\n `;\n default:\n return html`\n <h1>${children}</h1>\n `;\n }\n }\n}\n\nexport default Heading;\nexport { Heading };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,3 @@
1
- import{__decorate as t}from"tslib";import{godown as r,styles as h,htmlSlot as i,tokenList as e}from"@godown/element";import{css as o,nothing as a,html as s}from"lit";import{property as n}from"lit/decorators.js";import p from"../link/component.js";let c=class Heading extends p{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return s`<a part="root" href="${t||a}"> ${this.wrapHeading(i(),t?s`<i part="${e("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return s`<h2>${t}</h2>`;case"h3":return s`<h3>${t}</h3>`;case"h4":return s`<h4>${t}</h4>`;case"h5":return s`<h5>${t}</h5>`;case"h6":return s`<h6>${t}</h6>`;default:return s`<h1>${t}</h1>`}}};t([n()],c.prototype,"as",void 0),t([n()],c.prototype,"anchor",void 0),t([n()],c.prototype,"side",void 0),c=t([r("heading"),h(o`:host{display:block;text-align:start}[part~=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{position:relative;width:-moz-fit-content;width:fit-content}`)],c);var d=c;export{c as Heading,d as default};
1
+ import{godown,styles,htmlSlot,tokenList}from"@godown/element";import{css,nothing,html}from"lit";import{property}from"lit/decorators.js";import Link from"../link/component.js";import _decorate from"@oxc-project/runtime/helpers/decorate";const protoName=`heading`;let Heading=class e extends Link{constructor(...e){super(...e),this.as=`h1`,this.anchor=`#`,this.side=`left`}render(){let e=this.href||(this.id?`#`+this.id:void 0);return html`<a part="root" href="${e||nothing}"> ${this.wrapHeading(htmlSlot(),e?html`<i part="${tokenList(`anchor`,this.side)}">${this.anchor}</i>`:``)} </a>`}wrapHeading(...e){switch(this.as){case`h2`:return html`<h2>${e}</h2>`;case`h3`:return html`<h3>${e}</h3>`;case`h4`:return html`<h4>${e}</h4>`;case`h5`:return html`<h5>${e}</h5>`;case`h6`:return html`<h6>${e}</h6>`;default:return html`<h1>${e}</h1>`}}};_decorate([property()],Heading.prototype,`as`,void 0),_decorate([property()],Heading.prototype,`anchor`,void 0),_decorate([property()],Heading.prototype,`side`,void 0),Heading=_decorate([godown(protoName),styles(css`:host{display:block;text-align:start}[part~=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{width:-moz-fit-content;width:fit-content;position:relative}
2
+ `)],Heading);var Heading$1=Heading;export{Heading,Heading$1 as default};
2
3
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/web-components/heading/component.ts"],"sourcesContent":null,"names":["Heading","Link","constructor","this","as","anchor","side","render","hrefValue","href","id","undefined","html","nothing","wrapHeading","htmlSlot","children","prototype","__decorate","property","godown","styles","css"],"mappings":"uPAgDA,IAAMA,EAAN,MAAMA,gBAAgBC,EAAtB,WAAAC,uBAKEC,KAAEC,GAA4C,KAQ9CD,KAAME,OAAG,IAMTF,KAAIG,KAAqB,OAEf,MAAAC,GACR,MAAMC,EAAYL,KAAKM,OAASN,KAAKO,GAAK,IAAMP,KAAKO,QAAKC,GAC1D,OAAOC,CAAI,wBAAAJ,GAAAK,OAAAV,KAAAW,YAAAC,IAAAP,qEAGC,mBAEN,OAAgBL,KAAAC,IAGd,iBACwB,OAAAY,SACrB,IAAA,KACC,OACPJ,CAAA,OAAAI,kBAEJ,OAAAJ,CAAA,OAAAI,SACH,IAAA,KAEsB,OAAkBJ,CAAA,OAAAI,SACtC,IAAY,KACV,OAASJ,CAAA,OAAAI,SACP,QACQ,OAAQJ,CAAA,OAAAI,SAElB,WAIAhB,EAAAiB,UAAS,UAAA,GACPC,EAAA,QAECD,UAAA,cAAA,GACHC,EAAA,CACEC,iBACgB,YAAA,KACfD,EAAA,CACHE,EApGY,WAqGVC,EAAAC,CAAA,2RAECtB"}
1
+ {"version":3,"file":"component.js","sources":["../../src/web-components/heading/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles, tokenList } from \"@godown/element\";\nimport { type TemplateResult, css, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Link from \"../link/component.js\";\n\nconst protoName = \"heading\";\n\n/**\n * {@linkcode Heading} renders a heading.\n *\n * If the id is provided, the anchor will be displayed.\n *\n * @slot - Heading content.\n * @category layout\n */\n@godown(protoName)\n@styles(css`\n :host {\n display: block;\n text-align: start;\n }\n\n [part~=\"anchor\"] {\n position: absolute;\n text-align: center;\n min-width: 1.25em;\n right: 100%;\n }\n\n [part~=\"left\"][part~=\"anchor\"] {\n right: 100%;\n }\n\n [part~=\"right\"][part~=\"anchor\"] {\n left: 100%;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n width: fit-content;\n position: relative;\n }\n`)\nclass Heading extends Link {\n /**\n * The heading level.\n */\n @property()\n as: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" = \"h1\";\n\n /**\n * The anchor prefix.\n *\n * Element must have an id to be displayed.\n */\n @property()\n anchor = \"#\";\n\n /**\n * The anchor side.\n */\n @property()\n side: \"left\" | \"right\" = \"left\";\n\n protected render(): TemplateResult<1> {\n const hrefValue = this.href || (this.id ? \"#\" + this.id : undefined);\n return html`\n <a\n part=\"root\"\n href=\"${hrefValue || nothing}\"\n >\n ${this.wrapHeading(\n htmlSlot(),\n hrefValue\n ? html`\n <i part=\"${tokenList(\"anchor\", this.side)}\">${this.anchor}</i>\n `\n : \"\",\n )}\n </a>\n `;\n }\n\n protected wrapHeading(...children: any[]): TemplateResult<1> {\n switch (this.as) {\n case \"h2\":\n return html`\n <h2>${children}</h2>\n `;\n case \"h3\":\n return html`\n <h3>${children}</h3>\n `;\n case \"h4\":\n return html`\n <h4>${children}</h4>\n `;\n case \"h5\":\n return html`\n <h5>${children}</h5>\n `;\n case \"h6\":\n return html`\n <h6>${children}</h6>\n `;\n default:\n return html`\n <h1>${children}</h1>\n `;\n }\n }\n}\n\nexport default Heading;\nexport { Heading };\n"],"names":["Heading","hrefValue","children"],"mappings":"4OAMA,MAAM,UAAY,UAUlB,IAAA,QAAA,MAgCMA,UAAgB,IAAK,oCAKzB,GAA8C,UAQ9C,OAAS,SAMT,KAAyB,OAEf,QAA4B,CACpC,IAAMC,EAAY,KAAK,OAAS,KAAK,GAAK,IAAM,KAAK,WACrD,MAAO,KAAI,CAAA,qBAGD,EAAEA,GAAa,QAAQ,GAE7B,EAAE,KAAK,YACL,UAAU,CACVA,EACI,IAAI,CAAA,SACO,EAAE,UAAU,SAAU,KAAK,KAAK,CAAC,EAAE,EAAE,KAAK,OAAO,IAC5D,CAAC,CACD,GACL,CAAA,KAEL,CAAC,AACF,CAED,YAAsB,GAAGC,EAAoC,CAC3D,OAAQ,KAAK,GAAb,CACE,IAAK,KACH,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,CACH,IAAK,KACH,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,CACH,IAAK,KACH,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,CACH,IAAK,KACH,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,CACH,IAAK,KACH,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,CACH,QACE,MAAO,KAAI,CAAA,IACL,EAAEA,EAAS,KACjB,CAAC,AACJ,CACF,CACF,EApGA,WAoCE,UAAU,AAAA,EAAA,QAAA,UAAA,YAAA,YAQV,UAAU,AAAA,EAAA,QAAA,UAAA,gBAAA,YAMV,UAAU,AAAA,EAAA,QAAA,UAAA,cAAA,CAlDZ,QAAA,UAAA,CAAA,OAAO,UAAU,CACjB,OAAO,GAAG,CAAC;AA8BZ,CAAC,CAAC,AAAA,EAAA,QAAA,CAuEF,IAAA,UAAe"}
@@ -1,8 +1,7 @@
1
1
  import Heading from "./component.js";
2
2
  export default Heading;
3
3
  declare global {
4
- interface HTMLElementTagNameMap {
5
- "godown-heading": Heading;
6
- }
4
+ interface HTMLElementTagNameMap {
5
+ "godown-heading": Heading;
6
+ }
7
7
  }
8
- //# sourceMappingURL=definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"__source__/","sources":["web-components/heading/definition.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAIrC,eAAe,OAAO,CAAC;AAEvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,OAAO,CAAC;KAC3B;CACF"}
1
+ {"mappings":"AAAA,OAAO,aAAa,gBAAiB;AAIrC,eAAe;eAEA;WACH,sBAAsB;EAC9B,kBAAkB;CACnB;AACF","names":[],"sources":["../../../src/web-components/heading/definition.ts"],"sourcesContent":["import Heading from \"./component.js\";\n\nHeading.define();\n\nexport default Heading;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-heading\": Heading;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import e from"./component.js";e.define();export{e as default};
1
+ import Heading from"./component.js";Heading.define();export{Heading as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../src/web-components/heading/definition.ts"],"sourcesContent":null,"names":["Heading","define"],"mappings":"8BAEAA,EAAQC"}
1
+ {"version":3,"file":"definition.js","sources":["../../src/web-components/heading/definition.ts"],"sourcesContent":["import Heading from \"./component.js\";\n\nHeading.define();\n\nexport default Heading;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-heading\": Heading;\n }\n}\n"],"names":[],"mappings":"oCAEA,QAAQ,QAAQ"}
@@ -2,25 +2,24 @@ import { type TemplateResult } from "lit";
2
2
  import { SuperInput } from "../../internal/super-input.js";
3
3
  type InputType = "text" | "search" | "tel" | "url" | "email" | "password" | "datetime" | "date" | "month" | "week" | "time" | "datetime-local" | "number" | "range" | "color" | "file" | "image";
4
4
  /**
5
- * {@linkcode Input} renders a input.
6
- *
7
- * @fires input - Fires when the input value changes.
8
- * @fires change - Fires when the input value changes.
9
- * @category input
10
- */
5
+ * {@linkcode Input} renders a input.
6
+ *
7
+ * @fires input - Fires when the input value changes.
8
+ * @fires change - Fires when the input value changes.
9
+ * @category input
10
+ */
11
11
  declare class Input extends SuperInput {
12
- type: InputType;
13
- value: string;
14
- /**
15
- * If outline, the outline is always present.
16
- */
17
- variant: "default" | "outline";
18
- protected _input: HTMLInputElement;
19
- constructor();
20
- protected render(): TemplateResult<1>;
21
- protected _renderSuffix(): TemplateResult<1>;
22
- protected _changeInputType(t: typeof this.type): void;
12
+ type: InputType;
13
+ value: string;
14
+ /**
15
+ * If outline, the outline is always present.
16
+ */
17
+ variant: "default" | "outline";
18
+ protected _input: HTMLInputElement;
19
+ constructor();
20
+ protected render(): TemplateResult<1>;
21
+ protected _renderSuffix(): TemplateResult<1>;
22
+ protected _changeInputType(t: typeof this.type): void;
23
23
  }
24
24
  export default Input;
25
25
  export { Input };
26
- //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"__source__/","sources":["web-components/input/component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAsB,MAAM,KAAK,CAAC;AAI9D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,KAAK,SAAS,GACV,MAAM,GACN,QAAQ,GACR,KAAK,GACL,KAAK,GACL,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,gBAAgB,GAChB,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,CAAC;AAIZ;;;;;;GAMG;AACH,cA6CM,KAAM,SAAQ,UAAU;IAE5B,IAAI,EAAE,SAAS,CAAU;IAEzB,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAG3C,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC;;IAYnC,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;IA4BrC,SAAS,CAAC,aAAa,IAAI,cAAc,CAAC,CAAC,CAAC;IAiB5C,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI;CAKtD;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"mappings":"AAEA,cAAc,sBAA0C,KAAM;AAI9D,SAAS,kBAAkB,+BAAgC;KAGtD,YACD,SACA,WACA,QACA,QACA,UACA,aACA,aACA,SACA,UACA,SACA,SACA,mBACA,WACA,UACA,UACA,SACA;;;;;;;;AAWJ,cA6CM,cAAc,WAAW;CAC7B,AACA,MAAM;CAEN;;;;CAKA,AACA,SAAS,YAAY;CAErB,UACU,QAAQ;CAElB;CAUA,UAAU,UAAU,eAAe;CA4BnC,UAAU,iBAAiB,eAAe;CAiB1C,UAAU,iBAAiBA,UAAU,KAAK;AAK3C;AAED,eAAe;AACf,SAAS","names":["t: typeof this.type"],"sources":["../../../src/web-components/input/component.ts"],"sourcesContent":["import { attr, godown, queryPart, styles, StyleController, htmlSlot } from \"@godown/element\";\nimport iconEyeSlash from \"../../internal/icons/eye-slash.js\";\nimport { type TemplateResult, css, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { cssGlobalVars } from \"../../internal/global-style.js\";\nimport { SuperInput } from \"../../internal/super-input.js\";\nimport { RingBuilder } from \"../../internal/ring.js\";\n\ntype InputType =\n | \"text\"\n | \"search\"\n | \"tel\"\n | \"url\"\n | \"email\"\n | \"password\"\n | \"datetime\"\n | \"date\"\n | \"month\"\n | \"week\"\n | \"time\"\n | \"datetime-local\"\n | \"number\"\n | \"range\"\n | \"color\"\n | \"file\"\n | \"image\";\n\nconst protoName = \"input\";\n\n/**\n * {@linkcode Input} renders a input.\n *\n * @fires input - Fires when the input value changes.\n * @fires change - Fires when the input value changes.\n * @category input\n */\n@godown(protoName)\n@styles(css`\n :host {\n display: block;\n ${cssGlobalVars.input}-icon-color: hsl(0, 0%, 50%);\n }\n\n :host(:focus-within),\n :host(:active) {\n ${cssGlobalVars.ringColor}: currentColor;\n ${cssGlobalVars.input}-icon-color: currentColor;\n }\n\n [part=\"root\"] {\n padding-inline: 0.75em;\n padding-block: 0.5em;\n display: flex;\n position: relative;\n align-items: center;\n border-radius: inherit;\n }\n\n [part=\"input\"] {\n width: 100%;\n height: 100%;\n flex-grow: 1;\n }\n\n [part=\"prefix\"],\n [part=\"suffix\"] {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(${cssGlobalVars.input}-icon-color);\n }\n\n [part=\"suffix\"] slot svg {\n margin-inline-start: 0.25em;\n }\n\n [part=\"prefix\"] slot svg {\n margin-inline-end: 0.25em;\n }\n`)\nclass Input extends SuperInput {\n @property({ reflect: true })\n type: InputType = \"text\";\n\n value: string;\n\n /**\n * If outline, the outline is always present.\n */\n @property()\n variant: \"default\" | \"outline\" = \"default\";\n\n @queryPart(\"input\")\n protected _input: HTMLInputElement;\n\n constructor() {\n super();\n new StyleController(\n this,\n () =>\n new RingBuilder({ type: this.ringType }).css +\n (this.variant === \"outline\" ? `:host{${cssGlobalVars.ringColor}:currentColor}` : \"\"),\n );\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <label\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${[\n this._renderPrefix(),\n html`\n <input\n part=\"input\"\n type=\"${this.type}\"\n .value=\"${this.value}\"\n ?autofocus=\"${this.autofocus}\"\n ?disabled=\"${this.disabled}\"\n autocapitalize=\"${this.autocapitalize || nothing}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n placeholder=\"${this.placeholder || nothing}\"\n @input=\"${this._handleInput}\"\n @change=\"${this._handleChange}\"\n />\n `,\n this._renderSuffix(),\n ]}\n </label>\n `;\n }\n\n protected _renderSuffix(): TemplateResult<1> {\n const PASSWORD = \"password\";\n if (this.type === PASSWORD) {\n return html`\n <i\n part=\"suffix\"\n @mousedown=\"${() => this._changeInputType(\"text\")}\"\n @mouseup=\"${() => this._changeInputType(PASSWORD)}\"\n @mouseleave=\"${() => this._changeInputType(PASSWORD)}\"\n >\n ${htmlSlot(\"suffix\", iconEyeSlash())}\n </i>\n `;\n }\n return super._renderSuffix();\n }\n\n protected _changeInputType(t: typeof this.type): void {\n if (this._input) {\n this._input.type = t;\n }\n }\n}\n\nexport default Input;\nexport { Input };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,2 @@
1
- import{__decorate as t}from"tslib";import{queryPart as e,godown as i,styles as r,StyleController as o,attr as n,htmlSlot as s}from"@godown/element";import p from"../../internal/icons/eye-slash.js";import{css as a,nothing as l,html as u}from"lit";import{property as h}from"lit/decorators.js";import{cssGlobalVars as c}from"../../internal/global-style.js";import{SuperInput as f}from"../../internal/super-input.js";import{RingBuilder as d}from"../../internal/ring.js";let m=class Input extends f{constructor(){super(),this.type="text",this.variant="default",new o(this,(()=>new d({type:this.ringType}).css+("outline"===this.variant?`:host{${c.ringColor}:currentColor}`:"")))}render(){return u`<label part="root" ${n(this.observedRecord)}> ${[this._renderPrefix(),u`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||l}" autocomplete="${this.autocomplete||l}" placeholder="${this.placeholder||l}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?u`<i part="suffix" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${s("suffix",p())} </i>`:super._renderSuffix()}_changeInputType(t){this._input&&(this._input.type=t)}};t([h({reflect:!0})],m.prototype,"type",void 0),t([h()],m.prototype,"variant",void 0),t([e("input")],m.prototype,"_input",void 0),m=t([i("input"),r(a`:host{display:block;${c.input}-space:0.2em;${c.input}-icon-color:grey}:host(:active),:host(:focus-within){${c.ringColor}:currentColor;${c.input}-icon-color:currentColor}[part=root]{align-items:center;border-radius:inherit;display:flex;padding:.4em .5em;position:relative}[part=input]{flex-grow:1;height:100%;width:100%}[part=prefix],[part=suffix]{align-items:center;color:var(${c.input}-icon-color);display:flex;height:100%;justify-content:center}[part=suffix] slot svg{margin-inline-start:var(${c.input}-space)}[part=prefix] slot svg{margin-inline-end:var(${c.input}-space)}`)],m);var g=m;export{m as Input,g as default};
1
+ import{queryPart,godown,styles,StyleController,attr,htmlSlot}from"@godown/element";import _default from"../../internal/icons/eye-slash.js";import{css,nothing,html}from"lit";import{property}from"lit/decorators.js";import{cssGlobalVars}from"../../internal/global-style.js";import{SuperInput}from"../../internal/super-input.js";import{RingBuilder}from"../../internal/ring.js";import _decorate from"@oxc-project/runtime/helpers/decorate";const protoName=`input`;let Input=class e extends SuperInput{constructor(){super(),this.type=`text`,this.variant=`default`,new StyleController(this,()=>new RingBuilder({type:this.ringType}).css+(this.variant===`outline`?`:host{${cssGlobalVars.ringColor}:currentColor}`:``))}render(){return html`<label part="root" ${attr(this.observedRecord)}> ${[this._renderPrefix(),html`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||nothing}" autocomplete="${this.autocomplete||nothing}" placeholder="${this.placeholder||nothing}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){let e=`password`;return this.type===e?html`<i part="suffix" @mousedown="${()=>this._changeInputType(`text`)}" @mouseup="${()=>this._changeInputType(e)}" @mouseleave="${()=>this._changeInputType(e)}"> ${htmlSlot(`suffix`,_default())} </i>`:super._renderSuffix()}_changeInputType(e){this._input&&(this._input.type=e)}};_decorate([property({reflect:!0})],Input.prototype,`type`,void 0),_decorate([property()],Input.prototype,`variant`,void 0),_decorate([queryPart(`input`)],Input.prototype,`_input`,void 0),Input=_decorate([godown(protoName),styles(css`:host{display:block;${cssGlobalVars.input}-icon-color:gray}:host(:focus-within),:host(:active){${cssGlobalVars.ringColor}:currentColor;${cssGlobalVars.input}-icon-color:currentColor}[part=root]{padding-inline:.75em;padding-block:.5em;display:flex;position:relative;align-items:center;border-radius:inherit}[part=input]{width:100%;height:100%;flex-grow:1}[part=prefix],[part=suffix]{height:100%;display:flex;align-items:center;justify-content:center;color:var(${cssGlobalVars.input}-icon-color)}[part=suffix] slot svg{margin-inline-start:.25em}[part=prefix] slot svg{margin-inline-end:.25em}`)],Input);var Input$1=Input;export{Input,Input$1 as default};
2
2
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/web-components/input/component.ts"],"sourcesContent":null,"names":["Input","SuperInput","constructor","super","this","type","variant","StyleController","RingBuilder","ringType","css","cssGlobalVars","ringColor","render","html","attr","observedRecord","_renderSuffix","PASSWORD","_changeInputType","t","property","reflect","__decorate","prototype","queryPart","godown","Input$1"],"mappings":"kdAkFA,IAAMA,EAAN,MAAMA,cAAcC,EAelB,WAAAC,GACEC,QAdFC,KAAIC,KAAc,OAQlBD,KAAOE,QAA0B,UAO/B,IAAIC,EACFH,MACA,IACE,IAAII,EAAY,CAAEH,KAAMD,KAAKK,WAAYC,KACvB,YAAjBN,KAAKE,QAAwB,SAASK,EAAcC,0BAA4B,MAI7E,MAAAC,GACR,OAAOC,CAAI,sBAAAC,EAAAX,KAAAY,oBAAA,2UAGLZ,KAAKa,2BAEL,iBAEA,MAAAC,EAAI,wNAIUf,MAAAc,eACI,CACD,gBAAAE,CAAAC,kCAEOA,EAEV,MAGbC,EAAA,CAAAC,SAAA,gCAEFC,EAAA,QAEJC,UAAA,eAAA,KACH,CAEUC,EAAa,YACfD,UAAA,cAAW,GACjBxB,EAAAuB,EAAS,CACPG,EA9GY,mlBAiHM,IAAAC,EAAA3B"}
1
+ {"version":3,"file":"component.js","sources":["../../src/web-components/input/component.ts"],"sourcesContent":["import { attr, godown, queryPart, styles, StyleController, htmlSlot } from \"@godown/element\";\nimport iconEyeSlash from \"../../internal/icons/eye-slash.js\";\nimport { type TemplateResult, css, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { cssGlobalVars } from \"../../internal/global-style.js\";\nimport { SuperInput } from \"../../internal/super-input.js\";\nimport { RingBuilder } from \"../../internal/ring.js\";\n\ntype InputType =\n | \"text\"\n | \"search\"\n | \"tel\"\n | \"url\"\n | \"email\"\n | \"password\"\n | \"datetime\"\n | \"date\"\n | \"month\"\n | \"week\"\n | \"time\"\n | \"datetime-local\"\n | \"number\"\n | \"range\"\n | \"color\"\n | \"file\"\n | \"image\";\n\nconst protoName = \"input\";\n\n/**\n * {@linkcode Input} renders a input.\n *\n * @fires input - Fires when the input value changes.\n * @fires change - Fires when the input value changes.\n * @category input\n */\n@godown(protoName)\n@styles(css`\n :host {\n display: block;\n ${cssGlobalVars.input}-icon-color: hsl(0, 0%, 50%);\n }\n\n :host(:focus-within),\n :host(:active) {\n ${cssGlobalVars.ringColor}: currentColor;\n ${cssGlobalVars.input}-icon-color: currentColor;\n }\n\n [part=\"root\"] {\n padding-inline: 0.75em;\n padding-block: 0.5em;\n display: flex;\n position: relative;\n align-items: center;\n border-radius: inherit;\n }\n\n [part=\"input\"] {\n width: 100%;\n height: 100%;\n flex-grow: 1;\n }\n\n [part=\"prefix\"],\n [part=\"suffix\"] {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(${cssGlobalVars.input}-icon-color);\n }\n\n [part=\"suffix\"] slot svg {\n margin-inline-start: 0.25em;\n }\n\n [part=\"prefix\"] slot svg {\n margin-inline-end: 0.25em;\n }\n`)\nclass Input extends SuperInput {\n @property({ reflect: true })\n type: InputType = \"text\";\n\n value: string;\n\n /**\n * If outline, the outline is always present.\n */\n @property()\n variant: \"default\" | \"outline\" = \"default\";\n\n @queryPart(\"input\")\n protected _input: HTMLInputElement;\n\n constructor() {\n super();\n new StyleController(\n this,\n () =>\n new RingBuilder({ type: this.ringType }).css +\n (this.variant === \"outline\" ? `:host{${cssGlobalVars.ringColor}:currentColor}` : \"\"),\n );\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <label\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${[\n this._renderPrefix(),\n html`\n <input\n part=\"input\"\n type=\"${this.type}\"\n .value=\"${this.value}\"\n ?autofocus=\"${this.autofocus}\"\n ?disabled=\"${this.disabled}\"\n autocapitalize=\"${this.autocapitalize || nothing}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n placeholder=\"${this.placeholder || nothing}\"\n @input=\"${this._handleInput}\"\n @change=\"${this._handleChange}\"\n />\n `,\n this._renderSuffix(),\n ]}\n </label>\n `;\n }\n\n protected _renderSuffix(): TemplateResult<1> {\n const PASSWORD = \"password\";\n if (this.type === PASSWORD) {\n return html`\n <i\n part=\"suffix\"\n @mousedown=\"${() => this._changeInputType(\"text\")}\"\n @mouseup=\"${() => this._changeInputType(PASSWORD)}\"\n @mouseleave=\"${() => this._changeInputType(PASSWORD)}\"\n >\n ${htmlSlot(\"suffix\", iconEyeSlash())}\n </i>\n `;\n }\n return super._renderSuffix();\n }\n\n protected _changeInputType(t: typeof this.type): void {\n if (this._input) {\n this._input.type = t;\n }\n }\n}\n\nexport default Input;\nexport { Input };\n"],"names":["Input","PASSWORD","iconEyeSlash","t: typeof this.type","t"],"mappings":"kbA4BA,MAAM,UAAY,QASlB,IAAA,MAAA,MA6CMA,UAAc,UAAW,CAe7B,aAAc,CAEZ,AADA,OAAO,MAdT,KAAkB,YAQlB,QAAiC,UAO/B,IAAI,gBACF,KACA,IACE,IAAI,YAAY,CAAE,KAAM,KAAK,QAAU,GAAE,KACxC,KAAK,UAAY,UAAY,CAAC,MAAM,EAAE,cAAc,UAAU,cAAc,CAAC,CAAG,IAEtF,CAES,QAA4B,CACpC,MAAO,KAAI,CAAA,mBAGP,EAAE,KAAK,KAAK,eAAe,CAAA,EAE3B,EAAE,CACA,KAAK,eAAe,CACpB,IAAI,CAAA,0BAGM,EAAE,KAAK,KAAK,UACV,EAAE,KAAK,MAAM,cACT,EAAE,KAAK,UAAU,aAClB,EAAE,KAAK,SAAS,kBACX,EAAE,KAAK,gBAAkB,QAAQ,gBACnC,EAAE,KAAK,cAAgB,QAAQ,eAChC,EAAE,KAAK,aAAe,QAAQ,UACnC,EAAE,KAAK,aAAa,WACnB,EAAE,KAAK,cAAc,GAElC,CAAC,CACD,KAAK,eAAA,AACN,EAAA,SAEL,CAAC,AACF,CAES,eAAmC,CAC3C,IAAMC,EAAW,WAajB,OAZI,KAAK,OAASA,EACT,IAAI,CAAA,6BAGK,EAAE,IAAM,KAAK,iBAAiB,OAAO,CAAC,YACxC,EAAE,IAAM,KAAK,iBAAiBA,EAAS,CAAC,eACrC,EAAE,IAAM,KAAK,iBAAiBA,EAAS,CAAC,GAErD,EAAE,SAAS,SAAUC,UAAc,CAAC,CAAA,KAExC,CAAC,CAEI,MAAM,eAAe,AAC7B,CAES,iBAAiBC,EAA2B,CACpD,AAAI,KAAK,SACP,KAAK,OAAO,KAAOC,EAEtB,CACF,EAxHA,WA8CE,SAAS,CAAE,SAAS,CAAM,EAAC,AAAA,EAAA,MAAA,UAAA,cAAA,YAQ3B,UAAU,AAAA,EAAA,MAAA,UAAA,iBAAA,CAGV,UAAA,CAAA,UAAU,QAAQ,AAAA,EAAA,MAAA,UAAA,gBAAA,CAzDpB,MAAA,UAAA,CAAA,OAAO,UAAU,CACjB,OAAO,GAAG,CAAC,oBAGR,EAAE,cAAc,MAAM,qDAKtB,EAAE,cAAc,UAAU,cAC1B,EAAE,cAAc,MAAM,8SAwBX,EAAE,cAAc,MAAM,6GAUrC,CAAC,CAAC,AAAA,EAAA,MAAA,CA8EF,IAAA,QAAe"}
@@ -1,8 +1,7 @@
1
1
  import Input from "./component.js";
2
2
  export default Input;
3
3
  declare global {
4
- interface HTMLElementTagNameMap {
5
- "godown-input": Input;
6
- }
4
+ interface HTMLElementTagNameMap {
5
+ "godown-input": Input;
6
+ }
7
7
  }
8
- //# sourceMappingURL=definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"__source__/","sources":["web-components/input/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,gBAAgB,CAAC;AAInC,eAAe,KAAK,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,KAAK,CAAC;KACvB;CACF"}
1
+ {"mappings":"AAAA,OAAO,WAAW,gBAAiB;AAInC,eAAe;eAEA;WACH,sBAAsB;EAC9B,gBAAgB;CACjB;AACF","names":[],"sources":["../../../src/web-components/input/definition.ts"],"sourcesContent":["import Input from \"./component.js\";\n\nInput.define();\n\nexport default Input;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-input\": Input;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import e from"./component.js";e.define();export{e as default};
1
+ import Input from"./component.js";Input.define();export{Input as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../src/web-components/input/definition.ts"],"sourcesContent":null,"names":["Input","define"],"mappings":"8BAEAA,EAAMC"}
1
+ {"version":3,"file":"definition.js","sources":["../../src/web-components/input/definition.ts"],"sourcesContent":["import Input from \"./component.js\";\n\nInput.define();\n\nexport default Input;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-input\": Input;\n }\n}\n"],"names":[],"mappings":"kCAEA,MAAM,QAAQ"}
@@ -1,26 +1,25 @@
1
1
  import { type TemplateResult } from "lit";
2
2
  import { GlobalStyle } from "../../internal/global-style.js";
3
3
  /**
4
- * {@linkcode Layout} renders main content, top header, bottom footer.
5
- *
6
- * If `sticky` is set to `true`, the header will be sticky.
7
- *
8
- * Main content will take up the remaining space.
9
- *
10
- * Element display should be `(inline-)flex` or `(inline-)grid`.
11
- *
12
- * @slot - The main content of the layout.
13
- * @slot header - The header of the layout.
14
- * @slot footer - The footer of the layout.
15
- * @category layout
16
- */
4
+ * {@linkcode Layout} renders main content, top header, bottom footer.
5
+ *
6
+ * If `sticky` is set to `true`, the header will be sticky.
7
+ *
8
+ * Main content will take up the remaining space.
9
+ *
10
+ * Element display should be `(inline-)flex` or `(inline-)grid`.
11
+ *
12
+ * @slot - The main content of the layout.
13
+ * @slot header - The header of the layout.
14
+ * @slot footer - The footer of the layout.
15
+ * @category layout
16
+ */
17
17
  declare class Layout extends GlobalStyle {
18
- /**
19
- * If `true`, header will sticky.
20
- */
21
- sticky: boolean;
22
- protected render(): TemplateResult<1>;
18
+ /**
19
+ * If `true`, header will sticky.
20
+ */
21
+ sticky: boolean;
22
+ protected render(): TemplateResult<1>;
23
23
  }
24
24
  export default Layout;
25
25
  export { Layout };
26
- //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"__source__/","sources":["web-components/layout/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,KAAK,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D;;;;;;;;;;;;;GAaG;AACH,cAmCM,MAAO,SAAQ,WAAW;IAC9B;;OAEG;IAEH,MAAM,UAAS;IAEf,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAYtC;AAED,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"mappings":"AACA,cAAc,sBAAiC,KAAM;AAGrD,SAAS,mBAAmB,gCAAiC;;;;;;;;;;;;;;;AAkB7D,cAmCM,eAAe,YAAY;;;;CAI/B,AACA;CAEA,UAAU,UAAU,eAAe;AAYpC;AAED,eAAe;AACf,SAAS","names":[],"sources":["../../../src/web-components/layout/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle } from \"../../internal/global-style.js\";\n\nconst protoName = \"layout\";\n\n/**\n * {@linkcode Layout} renders main content, top header, bottom footer.\n *\n * If `sticky` is set to `true`, the header will be sticky.\n *\n * Main content will take up the remaining space.\n *\n * Element display should be `(inline-)flex` or `(inline-)grid`.\n *\n * @slot - The main content of the layout.\n * @slot header - The header of the layout.\n * @slot footer - The footer of the layout.\n * @category layout\n */\n@godown(protoName)\n@styles(css`\n :host {\n width: 100%;\n height: 100%;\n min-height: 100%;\n flex-direction: column;\n grid-template-rows: auto 1fr auto;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: flex;\n }\n\n [part=\"root\"] {\n display: contents;\n }\n\n [part=\"main\"] {\n width: 100%;\n flex: 1;\n }\n\n [part=\"header\"],\n [part=\"footer\"] {\n flex-shrink: 0;\n width: 100%;\n }\n\n [sticky] header {\n position: sticky;\n top: 0;\n }\n`)\nclass Layout extends GlobalStyle {\n /**\n * If `true`, header will sticky.\n */\n @property({ type: Boolean })\n sticky = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n <header part=\"header\">${htmlSlot(\"header\")}</header>\n <main part=\"main\">${htmlSlot()}</main>\n <footer part=\"footer\">${htmlSlot(\"footer\")}</footer>\n </div>\n `;\n }\n}\n\nexport default Layout;\nexport { Layout };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,3 @@
1
- import{__decorate as t}from"tslib";import{godown as o,styles as r,attr as e,htmlSlot as i}from"@godown/element";import{css as a,html as s}from"lit";import{property as p}from"lit/decorators.js";import{GlobalStyle as d}from"../../internal/global-style.js";let n=class Layout extends d{constructor(){super(...arguments),this.sticky=!1}render(){return s`<div part="root" ${e(this.observedRecord)}> <header part="header">${i("header")}</header> <main part="main">${i()}</main> <footer part="footer">${i("footer")}</footer> </div>`}};t([p({type:Boolean})],n.prototype,"sticky",void 0),n=t([o("layout"),r(a`:host{flex-direction:column;grid-template-rows:auto 1fr auto;height:100%;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],n);var l=n;export{n as Layout,l as default};
1
+ import{godown,styles,attr,htmlSlot}from"@godown/element";import{css,html}from"lit";import{property}from"lit/decorators.js";import{GlobalStyle}from"../../internal/global-style.js";import _decorate from"@oxc-project/runtime/helpers/decorate";const protoName=`layout`;let Layout=class e extends GlobalStyle{constructor(...e){super(...e),this.sticky=!1}render(){return html`<div part="root" ${attr(this.observedRecord)}> <header part="header">${htmlSlot(`header`)}</header> <main part="main">${htmlSlot()}</main> <footer part="footer">${htmlSlot(`footer`)}</footer> </div>`}};_decorate([property({type:Boolean})],Layout.prototype,`sticky`,void 0),Layout=_decorate([godown(protoName),styles(css`:host{width:100%;height:100%;min-height:100%;flex-direction:column;grid-template-rows:auto 1fr auto}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{width:100%;flex:1}[part=header],[part=footer]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}
2
+ `)],Layout);var Layout$1=Layout;export{Layout,Layout$1 as default};
2
3
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/web-components/layout/component.ts"],"sourcesContent":null,"names":["Layout","GlobalStyle","constructor","this","sticky","render","html","attr","observedRecord","htmlSlot","__decorate"],"mappings":"8PAyDA,IAAMA,EAAN,MAAMA,eAAeC,EAArB,WAAAC,uBAKEC,KAAMC,QAAG,EAEC,MAAAC,GACR,OAAOC,CAAI,oBAAAC,EAAAJ,KAAAK,0CAAAC,EAAA,wCAAAA,oCAAAA,EAAA,8BAGLC,EAAA,iDAGkBV,EAAAU,EAAA,GAjEV,sUAqEhBV"}
1
+ {"version":3,"file":"component.js","sources":["../../src/web-components/layout/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle } from \"../../internal/global-style.js\";\n\nconst protoName = \"layout\";\n\n/**\n * {@linkcode Layout} renders main content, top header, bottom footer.\n *\n * If `sticky` is set to `true`, the header will be sticky.\n *\n * Main content will take up the remaining space.\n *\n * Element display should be `(inline-)flex` or `(inline-)grid`.\n *\n * @slot - The main content of the layout.\n * @slot header - The header of the layout.\n * @slot footer - The footer of the layout.\n * @category layout\n */\n@godown(protoName)\n@styles(css`\n :host {\n width: 100%;\n height: 100%;\n min-height: 100%;\n flex-direction: column;\n grid-template-rows: auto 1fr auto;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: flex;\n }\n\n [part=\"root\"] {\n display: contents;\n }\n\n [part=\"main\"] {\n width: 100%;\n flex: 1;\n }\n\n [part=\"header\"],\n [part=\"footer\"] {\n flex-shrink: 0;\n width: 100%;\n }\n\n [sticky] header {\n position: sticky;\n top: 0;\n }\n`)\nclass Layout extends GlobalStyle {\n /**\n * If `true`, header will sticky.\n */\n @property({ type: Boolean })\n sticky = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n <header part=\"header\">${htmlSlot(\"header\")}</header>\n <main part=\"main\">${htmlSlot()}</main>\n <footer part=\"footer\">${htmlSlot(\"footer\")}</footer>\n </div>\n `;\n }\n}\n\nexport default Layout;\nexport { Layout };\n"],"names":["Layout"],"mappings":"gPAMA,MAAM,UAAY,SAgBlB,IAAA,OAAA,MAmCMA,UAAe,WAAY,oCAK/B,QAAS,EAEC,QAA4B,CACpC,MAAO,KAAI,CAAA,iBAGP,EAAE,KAAK,KAAK,eAAe,CAAA,wBAEL,EAAE,SAAS,SAAS,CAAC,4BACzB,EAAE,UAAU,CAAC,8BACT,EAAE,SAAS,SAAS,CAAC,gBAE/C,CAAC,AACF,CACF,EAtDA,WAuCE,SAAS,CAAE,KAAM,OAAS,EAAC,AAAA,EAAA,OAAA,UAAA,gBAAA,CAvC7B,OAAA,UAAA,CAAA,OAAO,UAAU,CACjB,OAAO,GAAG,CAAC;AAiCZ,CAAC,CAAC,AAAA,EAAA,OAAA,CAsBF,IAAA,SAAe"}
@@ -1,8 +1,7 @@
1
1
  import Layout from "./component.js";
2
2
  export default Layout;
3
3
  declare global {
4
- interface HTMLElementTagNameMap {
5
- "godown-layout": Layout;
6
- }
4
+ interface HTMLElementTagNameMap {
5
+ "godown-layout": Layout;
6
+ }
7
7
  }
8
- //# sourceMappingURL=definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"__source__/","sources":["web-components/layout/definition.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAIpC,eAAe,MAAM,CAAC;AAEtB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
1
+ {"mappings":"AAAA,OAAO,YAAY,gBAAiB;AAIpC,eAAe;eAEA;WACH,sBAAsB;EAC9B,iBAAiB;CAClB;AACF","names":[],"sources":["../../../src/web-components/layout/definition.ts"],"sourcesContent":["import Layout from \"./component.js\";\n\nLayout.define();\n\nexport default Layout;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-layout\": Layout;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import e from"./component.js";e.define();export{e as default};
1
+ import Layout from"./component.js";Layout.define();export{Layout as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../src/web-components/layout/definition.ts"],"sourcesContent":null,"names":["Layout","define"],"mappings":"8BAEAA,EAAOC"}
1
+ {"version":3,"file":"definition.js","sources":["../../src/web-components/layout/definition.ts"],"sourcesContent":["import Layout from \"./component.js\";\n\nLayout.define();\n\nexport default Layout;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-layout\": Layout;\n }\n}\n"],"names":[],"mappings":"mCAEA,OAAO,QAAQ"}
@@ -1,65 +1,64 @@
1
1
  import { type TemplateResult } from "lit";
2
2
  import GlobalStyle from "../../internal/global-style.js";
3
3
  declare const linkTypes: {
4
- readonly push: "push";
5
- readonly replace: "replace";
6
- readonly normal: "normal";
7
- readonly auto: "auto";
4
+ readonly push: "push";
5
+ readonly replace: "replace";
6
+ readonly normal: "normal";
7
+ readonly auto: "auto";
8
8
  };
9
9
  type LinkType = keyof typeof linkTypes;
10
10
  /**
11
- * {@linkcode Link} is used for link jumping, works standalone or in {@linkcode Router}.
12
- *
13
- * Set `type` to `"normal"`,
14
- * behave like a normal anchor.
15
- *
16
- * Set `type` to `"push" `or `"replace"`,
17
- * update history state by `history.pushState` or `history.replaceState`,
18
- * update all routers whether current pathname is registered or not.
19
- *
20
- * Set `type` to `"auto"`,
21
- * only update the routers if the current pathname is registered,
22
- * if not registered, behave like `"normal"`.
23
- *
24
- * `replace` property will enforce `history.replaceState`.
25
- *
26
- * @fires navigate - Fires when the link is clicked.
27
- * @category navigation
28
- */
11
+ * {@linkcode Link} is used for link jumping, works standalone or in {@linkcode Router}.
12
+ *
13
+ * Set `type` to `"normal"`,
14
+ * behave like a normal anchor.
15
+ *
16
+ * Set `type` to `"push" `or `"replace"`,
17
+ * update history state by `history.pushState` or `history.replaceState`,
18
+ * update all routers whether current pathname is registered or not.
19
+ *
20
+ * Set `type` to `"auto"`,
21
+ * only update the routers if the current pathname is registered,
22
+ * if not registered, behave like `"normal"`.
23
+ *
24
+ * `replace` property will enforce `history.replaceState`.
25
+ *
26
+ * @fires navigate - Fires when the link is clicked.
27
+ * @category navigation
28
+ */
29
29
  declare class Link extends GlobalStyle {
30
- /**
31
- * If `"normal"`, behave like a normal anchor.
32
- *
33
- * If `"auto"` or `"push"`, call `history.pushState` if `replace` is false,
34
- *
35
- * If `"replace"`, call `history.replaceState`.
36
- */
37
- type: LinkType;
38
- /**
39
- * If `true`, the {@linkcode Router} will not be updated.
40
- */
41
- suppress: boolean;
42
- /**
43
- * Use `replaceState` instead of `pushState`.
44
- */
45
- replace: boolean;
46
- /**
47
- * A element href.
48
- */
49
- href: string;
50
- /**
51
- * A element target.
52
- */
53
- target: "_blank" | "_self" | "_parent" | "_top";
54
- /**
55
- * Location state object.
56
- */
57
- state: {};
58
- get pathname(): string;
59
- protected _handleClick(e: MouseEvent): void;
60
- handleState: () => void;
61
- protected render(): TemplateResult<1>;
30
+ /**
31
+ * If `"normal"`, behave like a normal anchor.
32
+ *
33
+ * If `"auto"` or `"push"`, call `history.pushState` if `replace` is false,
34
+ *
35
+ * If `"replace"`, call `history.replaceState`.
36
+ */
37
+ type: LinkType;
38
+ /**
39
+ * If `true`, the {@linkcode Router} will not be updated.
40
+ */
41
+ suppress: boolean;
42
+ /**
43
+ * Use `replaceState` instead of `pushState`.
44
+ */
45
+ replace: boolean;
46
+ /**
47
+ * A element href.
48
+ */
49
+ href: string;
50
+ /**
51
+ * A element target.
52
+ */
53
+ target: "_blank" | "_self" | "_parent" | "_top";
54
+ /**
55
+ * Location state object.
56
+ */
57
+ state: {};
58
+ get pathname(): string;
59
+ protected _handleClick(e: MouseEvent): void;
60
+ handleState: () => void;
61
+ protected render(): TemplateResult<1>;
62
62
  }
63
63
  export default Link;
64
64
  export { Link };
65
- //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"__source__/","sources":["web-components/link/component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,WAAW,MAAM,gCAAgC,CAAC;AAIzD,QAAA,MAAM,SAAS;;;;;CAKL,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAeM,IAAK,SAAQ,WAAW;IAC5B;;;;;;OAMG;IAEH,IAAI,EAAE,QAAQ,CAAkB;IAEhC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAEH,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAW;IAE1D;;OAEG;IACH,KAAK,KAAM;IAEX,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA6B3C,WAAW,EAAE,MAAM,IAAI,CAcrB;IAEF,SAAS,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAatC;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"mappings":"AAIA,cAAkC,sBAAsB,KAAM;AAC9D,OAAO,iBAAiB,gCAAiC;AAIzD,cAAM;UACJ,MAAM;UACN,SAAS;UACT,QAAQ;UACR,MAAM;;KAGH,wBAAwB;;;;;;;;;;;;;;;;;;;;AAqB7B,cAeM,aAAa,YAAY;;;;;;;;CAQ7B,AACA,MAAM;;;;CAKN,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA,QAAQ,WAAW,UAAU,YAAY;;;;CAKzC;CAEA,IAAI;CAIJ,UAAU,aAAaA,GAAG;CA6B1B;CAgBA,UAAU,UAAU,eAAe;AAapC;AAED,eAAe;AACf,SAAS","names":["e: MouseEvent"],"sources":["../../../src/web-components/link/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { property } from \"lit/decorators.js\";\n\nimport Router from \"../router/component.js\";\nimport { css, html, nothing, type TemplateResult } from \"lit\";\nimport GlobalStyle from \"../../internal/global-style.js\";\n\nconst protoName = \"link\";\n\nconst linkTypes = {\n push: \"push\",\n replace: \"replace\",\n normal: \"normal\",\n auto: \"auto\",\n} as const;\n\ntype LinkType = keyof typeof linkTypes;\n\n/**\n * {@linkcode Link} is used for link jumping, works standalone or in {@linkcode Router}.\n *\n * Set `type` to `\"normal\"`,\n * behave like a normal anchor.\n *\n * Set `type` to `\"push\" `or `\"replace\"`,\n * update history state by `history.pushState` or `history.replaceState`,\n * update all routers whether current pathname is registered or not.\n *\n * Set `type` to `\"auto\"`,\n * only update the routers if the current pathname is registered,\n * if not registered, behave like `\"normal\"`.\n *\n * `replace` property will enforce `history.replaceState`.\n *\n * @fires navigate - Fires when the link is clicked.\n * @category navigation\n */\n@godown(protoName)\n@styles(css`\n :host {\n display: inline-block;\n cursor: default;\n }\n\n :host([href]) {\n cursor: pointer;\n }\n\n a {\n display: contents;\n }\n`)\nclass Link extends GlobalStyle {\n /**\n * If `\"normal\"`, behave like a normal anchor.\n *\n * If `\"auto\"` or `\"push\"`, call `history.pushState` if `replace` is false,\n *\n * If `\"replace\"`, call `history.replaceState`.\n */\n @property()\n type: LinkType = linkTypes.auto;\n\n /**\n * If `true`, the {@linkcode Router} will not be updated.\n */\n @property({ type: Boolean })\n suppress = false;\n\n /**\n * Use `replaceState` instead of `pushState`.\n */\n @property({ type: Boolean })\n replace = false;\n\n /**\n * A element href.\n */\n @property()\n href: string;\n\n /**\n * A element target.\n */\n @property()\n target: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" = \"_self\";\n\n /**\n * Location state object.\n */\n state = {};\n\n get pathname(): string {\n return new URL(this.href, location.href).pathname;\n }\n\n protected _handleClick(e: MouseEvent): void {\n const { state, type, href, pathname, suppress } = this;\n if (!href) {\n return;\n }\n this.dispatchCustomEvent(\"navigate\", {\n ...this.observedRecord,\n pathname,\n state,\n });\n if (href.startsWith(\"#\") || type === linkTypes.normal) {\n return;\n }\n this.handleState();\n const routers = [...Router.routerInstances];\n if (\n // only runs when suppress is false\n !suppress &&\n (type !== linkTypes.auto ||\n // in auto mode, only update the routers if the current pathname is registered\n routers.some((i) => i.search(location.pathname)))\n ) {\n e.preventDefault();\n Router.routerInstances.forEach((i) => {\n i.handlePopstate();\n });\n }\n }\n\n handleState: () => void = () => {\n switch (this.type) {\n case linkTypes.auto:\n case linkTypes.push:\n if (!this.replace) {\n // type is auto or push and replace is false\n history.pushState(this.state, \"\", this.href);\n break;\n }\n // fallthrough to replace\n case linkTypes.replace:\n history.replaceState(this.state, \"\", this.href);\n break;\n }\n };\n\n protected render(): TemplateResult<1> {\n return html`\n <a\n part=\"root\"\n ${attr(this.observedRecord)}\n href=\"${this.href || nothing}\"\n target=\"${this.target}\"\n @click=${this._handleClick}\n >\n ${htmlSlot()}\n </a>\n `;\n }\n}\n\nexport default Link;\nexport { Link };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,3 @@
1
- import{__decorate as t}from"tslib";import{godown as e,styles as r,attr as s,htmlSlot as o}from"@godown/element";import{property as a}from"lit/decorators.js";import i from"../router/component.js";import{css as h,nothing as p,html as n}from"lit";import{GlobalStyle as l}from"../../internal/global-style.js";const c="push",d="replace",f="normal",m="auto";let u=class Link extends l{constructor(){super(...arguments),this.type=m,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case m:case c:if(!this.replace){history.pushState(this.state,"",this.href);break}case d:history.replaceState(this.state,"",this.href)}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(t){const{state:e,type:r,href:s,pathname:o,suppress:a}=this;if(!s)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:o,state:e}),s.startsWith("#")||r===f)return;this.handleState();const h=[...i.routerInstances];a||r===m&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),i.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return n`<a part="root" ${s(this.observedRecord)} href="${this.href||p}" target="${this.target}" @click=${this._handleClick}> ${o()} </a>`}};t([a()],u.prototype,"type",void 0),t([a({type:Boolean})],u.prototype,"suppress",void 0),t([a({type:Boolean})],u.prototype,"replace",void 0),t([a()],u.prototype,"href",void 0),t([a()],u.prototype,"target",void 0),u=t([e("link"),r(h`:host{cursor:default;display:inline-block}:host([href]){cursor:pointer}a{display:contents}`)],u);var y=u;export{u as Link,y as default};
1
+ import{godown,styles,attr,htmlSlot}from"@godown/element";import{property}from"lit/decorators.js";import Router from"../router/component.js";import{css,nothing,html}from"lit";import{GlobalStyle}from"../../internal/global-style.js";import _decorate from"@oxc-project/runtime/helpers/decorate";const protoName=`link`,linkTypes={push:`push`,replace:`replace`,normal:`normal`,auto:`auto`};let Link=class e extends GlobalStyle{constructor(...e){super(...e),this.type=linkTypes.auto,this.suppress=!1,this.replace=!1,this.target=`_self`,this.state={},this.handleState=()=>{switch(this.type){case linkTypes.auto:case linkTypes.push:if(!this.replace){history.pushState(this.state,``,this.href);break}case linkTypes.replace:history.replaceState(this.state,``,this.href);break}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(e){let{state:l,type:u,href:d,pathname:f,suppress:p}=this;if(!d||(this.dispatchCustomEvent(`navigate`,{...this.observedRecord,pathname:f,state:l}),d.startsWith(`#`)||u===linkTypes.normal))return;this.handleState();let m=[...Router.routerInstances];!p&&(u!==linkTypes.auto||m.some(e=>e.search(location.pathname)))&&(e.preventDefault(),Router.routerInstances.forEach(e=>{e.handlePopstate()}))}render(){return html`<a part="root" ${attr(this.observedRecord)} href="${this.href||nothing}" target="${this.target}" @click=${this._handleClick}> ${htmlSlot()} </a>`}};_decorate([property()],Link.prototype,`type`,void 0),_decorate([property({type:Boolean})],Link.prototype,`suppress`,void 0),_decorate([property({type:Boolean})],Link.prototype,`replace`,void 0),_decorate([property()],Link.prototype,`href`,void 0),_decorate([property()],Link.prototype,`target`,void 0),Link=_decorate([godown(protoName),styles(css`:host{display:inline-block;cursor:default}:host([href]){cursor:pointer}a{display:contents}
2
+ `)],Link);var Link$1=Link;export{Link,Link$1 as default};
2
3
  //# sourceMappingURL=component.js.map