godown 2.7.6 → 3.0.0-canary.0

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 (498) hide show
  1. package/README.md +44 -80
  2. package/alert.d.ts +2 -3
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +5 -4
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +2 -3
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +5 -4
  9. package/avatar.js.map +1 -1
  10. package/breath.d.ts +9 -0
  11. package/breath.d.ts.map +1 -0
  12. package/breath.js +6 -0
  13. package/breath.js.map +1 -0
  14. package/button.d.ts +2 -3
  15. package/button.d.ts.map +1 -1
  16. package/button.js +5 -4
  17. package/button.js.map +1 -1
  18. package/card.d.ts +2 -3
  19. package/card.d.ts.map +1 -1
  20. package/card.js +5 -4
  21. package/card.js.map +1 -1
  22. package/carousel.d.ts +2 -3
  23. package/carousel.d.ts.map +1 -1
  24. package/carousel.js +5 -4
  25. package/carousel.js.map +1 -1
  26. package/components/alert.d.ts +50 -0
  27. package/components/alert.d.ts.map +1 -0
  28. package/components/alert.js +167 -0
  29. package/components/alert.js.map +1 -0
  30. package/components/avatar.d.ts +26 -0
  31. package/components/avatar.d.ts.map +1 -0
  32. package/components/avatar.js +62 -0
  33. package/components/avatar.js.map +1 -0
  34. package/components/breath.d.ts +34 -0
  35. package/components/breath.d.ts.map +1 -0
  36. package/components/breath.js +80 -0
  37. package/components/breath.js.map +1 -0
  38. package/{web-components/button → components}/button.d.ts +6 -5
  39. package/components/button.d.ts.map +1 -0
  40. package/components/button.js +167 -0
  41. package/components/button.js.map +1 -0
  42. package/components/card.d.ts +20 -0
  43. package/components/card.d.ts.map +1 -0
  44. package/components/card.js +55 -0
  45. package/components/card.js.map +1 -0
  46. package/components/carousel.d.ts +40 -0
  47. package/components/carousel.d.ts.map +1 -0
  48. package/components/carousel.js +113 -0
  49. package/components/carousel.js.map +1 -0
  50. package/{web-components/details → components}/details.d.ts +5 -3
  51. package/components/details.d.ts.map +1 -0
  52. package/components/details.js +50 -0
  53. package/components/details.js.map +1 -0
  54. package/components/dialog.d.ts +33 -0
  55. package/components/dialog.d.ts.map +1 -0
  56. package/components/dialog.js +92 -0
  57. package/components/dialog.js.map +1 -0
  58. package/components/divider.d.ts +17 -0
  59. package/components/divider.d.ts.map +1 -0
  60. package/components/divider.js +37 -0
  61. package/components/divider.js.map +1 -0
  62. package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
  63. package/components/dragbox.d.ts.map +1 -0
  64. package/{web-components/wrapper → components}/dragbox.js +32 -27
  65. package/components/dragbox.js.map +1 -0
  66. package/components/flex.d.ts +31 -0
  67. package/components/flex.d.ts.map +1 -0
  68. package/components/flex.js +55 -0
  69. package/components/flex.js.map +1 -0
  70. package/{web-components/form → components}/form.d.ts +4 -2
  71. package/components/form.d.ts.map +1 -0
  72. package/{web-components/form → components}/form.js +16 -17
  73. package/components/form.js.map +1 -0
  74. package/components/grid.d.ts +31 -0
  75. package/components/grid.d.ts.map +1 -0
  76. package/components/grid.js +56 -0
  77. package/components/grid.js.map +1 -0
  78. package/components/input.d.ts +20 -0
  79. package/components/input.d.ts.map +1 -0
  80. package/components/input.js +54 -0
  81. package/components/input.js.map +1 -0
  82. package/components/layout.d.ts +29 -0
  83. package/components/layout.d.ts.map +1 -0
  84. package/components/layout.js +48 -0
  85. package/components/layout.js.map +1 -0
  86. package/components/link.d.ts +20 -0
  87. package/components/link.d.ts.map +1 -0
  88. package/components/link.js +43 -0
  89. package/components/link.js.map +1 -0
  90. package/{web-components/progress → components}/progress.d.ts +5 -3
  91. package/components/progress.d.ts.map +1 -0
  92. package/components/progress.js +68 -0
  93. package/components/progress.js.map +1 -0
  94. package/components/range.d.ts +60 -0
  95. package/components/range.d.ts.map +1 -0
  96. package/components/range.js +193 -0
  97. package/components/range.js.map +1 -0
  98. package/{web-components/wrapper → components}/rotate.d.ts +4 -8
  99. package/components/rotate.d.ts.map +1 -0
  100. package/components/rotate.js +57 -0
  101. package/components/rotate.js.map +1 -0
  102. package/components/router.d.ts +121 -0
  103. package/components/router.d.ts.map +1 -0
  104. package/components/router.js +251 -0
  105. package/components/router.js.map +1 -0
  106. package/components/select.d.ts +50 -0
  107. package/components/select.d.ts.map +1 -0
  108. package/components/select.js +211 -0
  109. package/components/select.js.map +1 -0
  110. package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
  111. package/components/skeleton.d.ts.map +1 -0
  112. package/components/skeleton.js +56 -0
  113. package/components/skeleton.js.map +1 -0
  114. package/components/split.d.ts +32 -0
  115. package/components/split.d.ts.map +1 -0
  116. package/components/split.js +121 -0
  117. package/components/split.js.map +1 -0
  118. package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
  119. package/components/switch.d.ts.map +1 -0
  120. package/components/switch.js +93 -0
  121. package/components/switch.js.map +1 -0
  122. package/{web-components/text → components}/text.d.ts +5 -3
  123. package/components/text.d.ts.map +1 -0
  124. package/components/text.js +44 -0
  125. package/components/text.js.map +1 -0
  126. package/{web-components/text → components}/time.d.ts +5 -3
  127. package/components/time.d.ts.map +1 -0
  128. package/{web-components/text → components}/time.js +18 -21
  129. package/components/time.js.map +1 -0
  130. package/components/tooltip.d.ts +38 -0
  131. package/components/tooltip.d.ts.map +1 -0
  132. package/components/tooltip.js +67 -0
  133. package/components/tooltip.js.map +1 -0
  134. package/{web-components/text → components}/typewriter.d.ts +5 -3
  135. package/components/typewriter.d.ts.map +1 -0
  136. package/{web-components/text → components}/typewriter.js +24 -48
  137. package/components/typewriter.js.map +1 -0
  138. package/core/global-style.d.ts +21 -0
  139. package/core/global-style.d.ts.map +1 -0
  140. package/core/global-style.js +46 -0
  141. package/core/global-style.js.map +1 -0
  142. package/core/super-anchor.d.ts +15 -0
  143. package/core/super-anchor.d.ts.map +1 -0
  144. package/core/super-anchor.js +39 -0
  145. package/core/super-anchor.js.map +1 -0
  146. package/core/super-input.d.ts +39 -0
  147. package/core/super-input.d.ts.map +1 -0
  148. package/core/super-input.js +115 -0
  149. package/core/super-input.js.map +1 -0
  150. package/{proto → core}/super-openable.d.ts +4 -8
  151. package/core/super-openable.d.ts.map +1 -0
  152. package/{proto → core}/super-openable.js +10 -15
  153. package/core/super-openable.js.map +1 -0
  154. package/custom-elements.json +1 -0
  155. package/details.d.ts +2 -3
  156. package/details.d.ts.map +1 -1
  157. package/details.js +5 -4
  158. package/details.js.map +1 -1
  159. package/dialog.d.ts +2 -3
  160. package/dialog.d.ts.map +1 -1
  161. package/dialog.js +5 -4
  162. package/dialog.js.map +1 -1
  163. package/divider.d.ts +2 -3
  164. package/divider.d.ts.map +1 -1
  165. package/divider.js +5 -4
  166. package/divider.js.map +1 -1
  167. package/dragbox.d.ts +2 -3
  168. package/dragbox.d.ts.map +1 -1
  169. package/dragbox.js +5 -4
  170. package/dragbox.js.map +1 -1
  171. package/flex.d.ts +8 -0
  172. package/flex.d.ts.map +1 -0
  173. package/flex.js +6 -0
  174. package/flex.js.map +1 -0
  175. package/form.d.ts +2 -3
  176. package/form.d.ts.map +1 -1
  177. package/form.js +5 -4
  178. package/form.js.map +1 -1
  179. package/grid.d.ts +8 -0
  180. package/grid.d.ts.map +1 -0
  181. package/grid.js +6 -0
  182. package/grid.js.map +1 -0
  183. package/index.d.ts +28 -32
  184. package/index.d.ts.map +1 -1
  185. package/index.js +57 -33
  186. package/index.js.map +1 -1
  187. package/input.d.ts +3 -3
  188. package/input.d.ts.map +1 -1
  189. package/input.js +5 -4
  190. package/input.js.map +1 -1
  191. package/layout.d.ts +3 -3
  192. package/layout.d.ts.map +1 -1
  193. package/layout.js +5 -4
  194. package/layout.js.map +1 -1
  195. package/link.d.ts +3 -3
  196. package/link.d.ts.map +1 -1
  197. package/link.js +5 -4
  198. package/link.js.map +1 -1
  199. package/package.json +42 -81
  200. package/progress.d.ts +3 -3
  201. package/progress.d.ts.map +1 -1
  202. package/progress.js +5 -4
  203. package/progress.js.map +1 -1
  204. package/range.d.ts +9 -0
  205. package/range.d.ts.map +1 -0
  206. package/range.js +6 -0
  207. package/range.js.map +1 -0
  208. package/rotate.d.ts +3 -3
  209. package/rotate.d.ts.map +1 -1
  210. package/rotate.js +5 -4
  211. package/rotate.js.map +1 -1
  212. package/router.d.ts +3 -3
  213. package/router.d.ts.map +1 -1
  214. package/router.js +5 -4
  215. package/router.js.map +1 -1
  216. package/select.d.ts +9 -0
  217. package/select.d.ts.map +1 -0
  218. package/select.js +6 -0
  219. package/select.js.map +1 -0
  220. package/skeleton.d.ts +3 -3
  221. package/skeleton.d.ts.map +1 -1
  222. package/skeleton.js +5 -4
  223. package/skeleton.js.map +1 -1
  224. package/split.d.ts +9 -0
  225. package/split.d.ts.map +1 -0
  226. package/split.js +6 -0
  227. package/split.js.map +1 -0
  228. package/switch.d.ts +9 -0
  229. package/switch.d.ts.map +1 -0
  230. package/switch.js +6 -0
  231. package/switch.js.map +1 -0
  232. package/text.d.ts +3 -3
  233. package/text.d.ts.map +1 -1
  234. package/text.js +5 -4
  235. package/text.js.map +1 -1
  236. package/time.d.ts +3 -3
  237. package/time.d.ts.map +1 -1
  238. package/time.js +5 -4
  239. package/time.js.map +1 -1
  240. package/tooltip.d.ts +3 -3
  241. package/tooltip.d.ts.map +1 -1
  242. package/tooltip.js +5 -4
  243. package/tooltip.js.map +1 -1
  244. package/typewriter.d.ts +2 -3
  245. package/typewriter.d.ts.map +1 -1
  246. package/typewriter.js +5 -4
  247. package/typewriter.js.map +1 -1
  248. package/vscode.css-custom-data.json +1 -0
  249. package/vscode.html-custom-data.json +1 -0
  250. package/web-types.json +1 -0
  251. package/_deps.d.ts +0 -4
  252. package/_deps.d.ts.map +0 -1
  253. package/_deps.js +0 -4
  254. package/_deps.js.map +0 -1
  255. package/avatar-group.d.ts +0 -9
  256. package/avatar-group.d.ts.map +0 -1
  257. package/avatar-group.js +0 -5
  258. package/avatar-group.js.map +0 -1
  259. package/components.json +0 -194
  260. package/conf.d.ts +0 -12
  261. package/conf.d.ts.map +0 -1
  262. package/conf.js +0 -24
  263. package/conf.js.map +0 -1
  264. package/decorators/godown.d.ts +0 -4
  265. package/decorators/godown.d.ts.map +0 -1
  266. package/decorators/godown.js +0 -9
  267. package/decorators/godown.js.map +0 -1
  268. package/decorators/part.d.ts +0 -7
  269. package/decorators/part.d.ts.map +0 -1
  270. package/decorators/part.js +0 -8
  271. package/decorators/part.js.map +0 -1
  272. package/decorators/styles.d.ts +0 -3
  273. package/decorators/styles.d.ts.map +0 -1
  274. package/decorators/styles.js +0 -8
  275. package/decorators/styles.js.map +0 -1
  276. package/flex-flow.d.ts +0 -9
  277. package/flex-flow.d.ts.map +0 -1
  278. package/flex-flow.js +0 -5
  279. package/flex-flow.js.map +0 -1
  280. package/grid-flow.d.ts +0 -9
  281. package/grid-flow.d.ts.map +0 -1
  282. package/grid-flow.js +0 -5
  283. package/grid-flow.js.map +0 -1
  284. package/label-input.d.ts +0 -9
  285. package/label-input.d.ts.map +0 -1
  286. package/label-input.js +0 -5
  287. package/label-input.js.map +0 -1
  288. package/lib/css.d.ts +0 -13
  289. package/lib/css.d.ts.map +0 -1
  290. package/lib/css.js +0 -29
  291. package/lib/css.js.map +0 -1
  292. package/lib/directives.d.ts +0 -25
  293. package/lib/directives.d.ts.map +0 -1
  294. package/lib/directives.js +0 -40
  295. package/lib/directives.js.map +0 -1
  296. package/lib/event-coll.d.ts +0 -13
  297. package/lib/event-coll.d.ts.map +0 -1
  298. package/lib/event-coll.js +0 -45
  299. package/lib/event-coll.js.map +0 -1
  300. package/lib/icons.d.ts +0 -25
  301. package/lib/icons.d.ts.map +0 -1
  302. package/lib/icons.js +0 -73
  303. package/lib/icons.js.map +0 -1
  304. package/lib/jsx.d.ts +0 -4
  305. package/lib/jsx.d.ts.map +0 -1
  306. package/lib/jsx.js +0 -52
  307. package/lib/jsx.js.map +0 -1
  308. package/lib/route-tree.d.ts +0 -28
  309. package/lib/route-tree.d.ts.map +0 -1
  310. package/lib/route-tree.js +0 -141
  311. package/lib/route-tree.js.map +0 -1
  312. package/lib/utils.d.ts +0 -10
  313. package/lib/utils.d.ts.map +0 -1
  314. package/lib/utils.js +0 -71
  315. package/lib/utils.js.map +0 -1
  316. package/overbreath.d.ts +0 -9
  317. package/overbreath.d.ts.map +0 -1
  318. package/overbreath.js +0 -5
  319. package/overbreath.js.map +0 -1
  320. package/proto/godown-config.d.ts +0 -41
  321. package/proto/godown-config.d.ts.map +0 -1
  322. package/proto/godown-config.js +0 -27
  323. package/proto/godown-config.js.map +0 -1
  324. package/proto/godown-element.d.ts +0 -125
  325. package/proto/godown-element.d.ts.map +0 -1
  326. package/proto/godown-element.js +0 -204
  327. package/proto/godown-element.js.map +0 -1
  328. package/proto/super-a.d.ts +0 -30
  329. package/proto/super-a.d.ts.map +0 -1
  330. package/proto/super-a.js +0 -141
  331. package/proto/super-a.js.map +0 -1
  332. package/proto/super-input.d.ts +0 -44
  333. package/proto/super-input.d.ts.map +0 -1
  334. package/proto/super-input.js +0 -119
  335. package/proto/super-input.js.map +0 -1
  336. package/proto/super-openable.d.ts.map +0 -1
  337. package/proto/super-openable.js.map +0 -1
  338. package/range-input.d.ts +0 -9
  339. package/range-input.d.ts.map +0 -1
  340. package/range-input.js +0 -5
  341. package/range-input.js.map +0 -1
  342. package/react/create.d.ts +0 -5
  343. package/react/create.d.ts.map +0 -1
  344. package/react/create.js +0 -16
  345. package/react/create.js.map +0 -1
  346. package/react/index.d.ts +0 -65
  347. package/react/index.d.ts.map +0 -1
  348. package/react/index.js +0 -132
  349. package/react/index.js.map +0 -1
  350. package/router-link.d.ts +0 -9
  351. package/router-link.d.ts.map +0 -1
  352. package/router-link.js +0 -5
  353. package/router-link.js.map +0 -1
  354. package/search-input.d.ts +0 -9
  355. package/search-input.d.ts.map +0 -1
  356. package/search-input.js +0 -5
  357. package/search-input.js.map +0 -1
  358. package/select-input.d.ts +0 -9
  359. package/select-input.d.ts.map +0 -1
  360. package/select-input.js +0 -5
  361. package/select-input.js.map +0 -1
  362. package/split-input.d.ts +0 -9
  363. package/split-input.d.ts.map +0 -1
  364. package/split-input.js +0 -5
  365. package/split-input.js.map +0 -1
  366. package/styles/colors/presets.d.ts +0 -13
  367. package/styles/colors/presets.d.ts.map +0 -1
  368. package/styles/colors/presets.js +0 -6
  369. package/styles/colors/presets.js.map +0 -1
  370. package/styles/colors/presetsRGB.d.ts +0 -16
  371. package/styles/colors/presetsRGB.d.ts.map +0 -1
  372. package/styles/colors/presetsRGB.js +0 -134
  373. package/styles/colors/presetsRGB.js.map +0 -1
  374. package/styles/global.d.ts +0 -18
  375. package/styles/global.d.ts.map +0 -1
  376. package/styles/global.js +0 -78
  377. package/styles/global.js.map +0 -1
  378. package/styles/inputStyle.d.ts +0 -3
  379. package/styles/inputStyle.d.ts.map +0 -1
  380. package/styles/inputStyle.js +0 -59
  381. package/styles/inputStyle.js.map +0 -1
  382. package/switch-input.d.ts +0 -9
  383. package/switch-input.d.ts.map +0 -1
  384. package/switch-input.js +0 -5
  385. package/switch-input.js.map +0 -1
  386. package/web-components/alert/alert.d.ts +0 -36
  387. package/web-components/alert/alert.d.ts.map +0 -1
  388. package/web-components/alert/alert.js +0 -161
  389. package/web-components/alert/alert.js.map +0 -1
  390. package/web-components/avatar/avatar-group.d.ts +0 -21
  391. package/web-components/avatar/avatar-group.d.ts.map +0 -1
  392. package/web-components/avatar/avatar-group.js +0 -86
  393. package/web-components/avatar/avatar-group.js.map +0 -1
  394. package/web-components/avatar/avatar.d.ts +0 -28
  395. package/web-components/avatar/avatar.d.ts.map +0 -1
  396. package/web-components/avatar/avatar.js +0 -120
  397. package/web-components/avatar/avatar.js.map +0 -1
  398. package/web-components/button/button.d.ts.map +0 -1
  399. package/web-components/button/button.js +0 -256
  400. package/web-components/button/button.js.map +0 -1
  401. package/web-components/card/card.d.ts +0 -9
  402. package/web-components/card/card.d.ts.map +0 -1
  403. package/web-components/card/card.js +0 -75
  404. package/web-components/card/card.js.map +0 -1
  405. package/web-components/carousel/carousel.d.ts +0 -29
  406. package/web-components/carousel/carousel.d.ts.map +0 -1
  407. package/web-components/carousel/carousel.js +0 -185
  408. package/web-components/carousel/carousel.js.map +0 -1
  409. package/web-components/details/details.d.ts.map +0 -1
  410. package/web-components/details/details.js +0 -124
  411. package/web-components/details/details.js.map +0 -1
  412. package/web-components/dialog/dialog.d.ts +0 -31
  413. package/web-components/dialog/dialog.d.ts.map +0 -1
  414. package/web-components/dialog/dialog.js +0 -143
  415. package/web-components/dialog/dialog.js.map +0 -1
  416. package/web-components/divider/divider.d.ts +0 -13
  417. package/web-components/divider/divider.d.ts.map +0 -1
  418. package/web-components/divider/divider.js +0 -95
  419. package/web-components/divider/divider.js.map +0 -1
  420. package/web-components/form/form.d.ts.map +0 -1
  421. package/web-components/form/form.js.map +0 -1
  422. package/web-components/input/input.d.ts +0 -37
  423. package/web-components/input/input.d.ts.map +0 -1
  424. package/web-components/input/input.js +0 -152
  425. package/web-components/input/input.js.map +0 -1
  426. package/web-components/input/label-input.d.ts +0 -15
  427. package/web-components/input/label-input.d.ts.map +0 -1
  428. package/web-components/input/label-input.js +0 -96
  429. package/web-components/input/label-input.js.map +0 -1
  430. package/web-components/input/range-input.d.ts +0 -53
  431. package/web-components/input/range-input.d.ts.map +0 -1
  432. package/web-components/input/range-input.js +0 -316
  433. package/web-components/input/range-input.js.map +0 -1
  434. package/web-components/input/search-input.d.ts +0 -42
  435. package/web-components/input/search-input.d.ts.map +0 -1
  436. package/web-components/input/search-input.js +0 -214
  437. package/web-components/input/search-input.js.map +0 -1
  438. package/web-components/input/select-input.d.ts +0 -36
  439. package/web-components/input/select-input.d.ts.map +0 -1
  440. package/web-components/input/select-input.js +0 -210
  441. package/web-components/input/select-input.js.map +0 -1
  442. package/web-components/input/split-input.d.ts +0 -29
  443. package/web-components/input/split-input.d.ts.map +0 -1
  444. package/web-components/input/split-input.js +0 -184
  445. package/web-components/input/split-input.js.map +0 -1
  446. package/web-components/input/switch-input.d.ts.map +0 -1
  447. package/web-components/input/switch-input.js +0 -189
  448. package/web-components/input/switch-input.js.map +0 -1
  449. package/web-components/layout/flex-flow.d.ts +0 -17
  450. package/web-components/layout/flex-flow.d.ts.map +0 -1
  451. package/web-components/layout/flex-flow.js +0 -73
  452. package/web-components/layout/flex-flow.js.map +0 -1
  453. package/web-components/layout/grid-flow.d.ts +0 -14
  454. package/web-components/layout/grid-flow.d.ts.map +0 -1
  455. package/web-components/layout/grid-flow.js +0 -56
  456. package/web-components/layout/grid-flow.js.map +0 -1
  457. package/web-components/layout/layout.d.ts +0 -18
  458. package/web-components/layout/layout.d.ts.map +0 -1
  459. package/web-components/layout/layout.js +0 -76
  460. package/web-components/layout/layout.js.map +0 -1
  461. package/web-components/link/link.d.ts +0 -10
  462. package/web-components/link/link.d.ts.map +0 -1
  463. package/web-components/link/link.js +0 -17
  464. package/web-components/link/link.js.map +0 -1
  465. package/web-components/link/router-link.d.ts +0 -19
  466. package/web-components/link/router-link.d.ts.map +0 -1
  467. package/web-components/link/router-link.js +0 -60
  468. package/web-components/link/router-link.js.map +0 -1
  469. package/web-components/progress/progress.d.ts.map +0 -1
  470. package/web-components/progress/progress.js +0 -107
  471. package/web-components/progress/progress.js.map +0 -1
  472. package/web-components/router/router.d.ts +0 -86
  473. package/web-components/router/router.d.ts.map +0 -1
  474. package/web-components/router/router.js +0 -246
  475. package/web-components/router/router.js.map +0 -1
  476. package/web-components/skeleton/skeleton.d.ts.map +0 -1
  477. package/web-components/skeleton/skeleton.js +0 -130
  478. package/web-components/skeleton/skeleton.js.map +0 -1
  479. package/web-components/text/overbreath.d.ts +0 -22
  480. package/web-components/text/overbreath.d.ts.map +0 -1
  481. package/web-components/text/overbreath.js +0 -132
  482. package/web-components/text/overbreath.js.map +0 -1
  483. package/web-components/text/text.d.ts.map +0 -1
  484. package/web-components/text/text.js +0 -94
  485. package/web-components/text/text.js.map +0 -1
  486. package/web-components/text/time.d.ts.map +0 -1
  487. package/web-components/text/time.js.map +0 -1
  488. package/web-components/text/typewriter.d.ts.map +0 -1
  489. package/web-components/text/typewriter.js.map +0 -1
  490. package/web-components/tooltip/tooltip.d.ts +0 -30
  491. package/web-components/tooltip/tooltip.d.ts.map +0 -1
  492. package/web-components/tooltip/tooltip.js +0 -123
  493. package/web-components/tooltip/tooltip.js.map +0 -1
  494. package/web-components/wrapper/dragbox.d.ts.map +0 -1
  495. package/web-components/wrapper/dragbox.js.map +0 -1
  496. package/web-components/wrapper/rotate.d.ts.map +0 -1
  497. package/web-components/wrapper/rotate.js +0 -92
  498. package/web-components/wrapper/rotate.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/form.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,SAAS,GAAG,MAAM,CAAC;AACzB;;;;;GAKG;AASI,IAAM,IAAI,YAAV,MAAM,IAAiB,SAAQ,aAAa;IAA5C;;QACO,SAAI,GAAG,EAAE,CAAC;QAKtB,cAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IA+C7B,CAAC;IAnDC,IAAI,KAAK;QACP,OAAO,MAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAM,CAAC;IAC7D,CAAC;IAIS,MAAM;QACd,OAAO,QAAQ,EAAE,CAAC;IACpB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,oBAAoB,CAAuC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YAClF,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EA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ACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AApDa;IAAX,QAAQ,EAAE;kCAAW;AADX,IAAI;IARhB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;GAIF;KACF,CAAC;GACW,IAAI,CAqDhB;;AAED,eAAe,IAAI,CAAC","sourcesContent":["import { css, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"form\";\n/**\n * {@linkcode Form} Gets child element key-value object,\n * which will be nested if the child element is the same as this element.\n *\n * @slot - Child elements.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: block;\n }\n `,\n])\nexport class Form<T = object> extends GodownElement {\n @property() name = \"\";\n get value(): T {\n return Form.buildValue(this._slot.assignedElements()) as T;\n }\n\n nameValue = this.namevalue;\n\n protected render() {\n return htmlSlot();\n }\n\n reset() {\n this.deepQuerySelectorAll<HTMLElement & { reset?: () => void }>(\"*\").forEach((el) => {\n if (el.tagName === this.tagName) {\n return;\n }\n if (el.reset) {\n el.reset();\n }\n });\n }\n\n namevalue(): [string, T] {\n return [this.name, this.value];\n }\n\n static buildValue(\n elements: (Element & {\n name?: string;\n value?: unknown;\n namevalue?: () => [string, unknown];\n })[],\n ): Record<string, any> {\n const result = {};\n for (const el of elements) {\n if (el.tagName === \"FORM\") {\n Object.assign(result, Object.fromEntries(new FormData(el as HTMLFormElement).entries()));\n } else if (el.namevalue) {\n const [name, value] = el.namevalue();\n if (name) {\n result[name] = value;\n }\n } else if (el.name && el.value !== undefined) {\n result[el.name] = el.value;\n } else if (el.shadowRoot) {\n for (const slot of el.shadowRoot.querySelectorAll(\"slot\")) {\n Object.assign(result, this.buildValue(slot.assignedElements()));\n }\n }\n }\n return result;\n }\n}\n\nexport default Form;\n"]}
@@ -1,37 +0,0 @@
1
- import GodownInput from "../../proto/super-input.js";
2
- /**
3
- * {@linkcode Input }.
4
- */
5
- export declare class Input extends GodownInput {
6
- variant: "default" | "outline";
7
- /**
8
- * Input accept.
9
- */
10
- accept: string;
11
- /**
12
- * Value.
13
- */
14
- value: string | File | FileList;
15
- /**
16
- * Only single files are allowed to be selected.
17
- */
18
- only: boolean;
19
- /**
20
- * Input min.
21
- */
22
- min: number;
23
- /**
24
- * Input max.
25
- */
26
- max: number;
27
- /**
28
- * Input step.
29
- */
30
- step: number;
31
- protected render(): import("lit").TemplateResult<1>;
32
- connectedCallback(): void;
33
- protected _handleFile(e: any | Event): void;
34
- reset(): void;
35
- }
36
- export default Input;
37
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/input.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAMrD;;GAEG;AACH,qBAyCa,KAAM,SAAQ,WAAW;IACxB,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IACvD;;OAEG;IACS,MAAM,EAAE,MAAM,CAAa;IACvC;;OAEG;IACS,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAa;IACxD;;OAEG;IAC0B,IAAI,UAAS;IAC1C;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAO;IACtC;;OAEG;IACyB,IAAI,SAAK;IAErC,SAAS,CAAC,MAAM;IAkBhB,iBAAiB;IAajB,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,KAAK;IAKpC,KAAK;CAQN;AAED,eAAe,KAAK,CAAC"}
@@ -1,152 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import { combine } from "../../lib/directives.js";
6
- import GodownInput from "../../proto/super-input.js";
7
- import { cssGlobalVars } from "../../styles/global.js";
8
- import { fieldStyle, inputStyle } from "../../styles/inputStyle.js";
9
- const protoName = "input";
10
- /**
11
- * {@linkcode Input }.
12
- */
13
- let Input = class Input extends GodownInput {
14
- constructor() {
15
- super(...arguments);
16
- this.variant = "default";
17
- /**
18
- * Input accept.
19
- */
20
- this.accept = undefined;
21
- /**
22
- * Value.
23
- */
24
- this.value = undefined;
25
- /**
26
- * Only single files are allowed to be selected.
27
- */
28
- this.only = false;
29
- /**
30
- * Input min.
31
- */
32
- this.min = 0;
33
- /**
34
- * Input max.
35
- */
36
- this.max = 100;
37
- /**
38
- * Input step.
39
- */
40
- this.step = 1;
41
- }
42
- render() {
43
- return html `<div part="root" class="${combine({ "input-field": true, outline: this.variant === "outline" })}">
44
- <input
45
- part="input"
46
- class="input"
47
- id=${this.makeId}
48
- .value="${this.value}"
49
- ?autofocus="${this.autofocus}"
50
- type="${this.type}"
51
- placeholder="${this.placeholder}"
52
- min="${this.min}"
53
- max="${this.max}"
54
- @input="${this._handleInput}"
55
- />
56
- ${this._renderSuffix()}
57
- </div>`;
58
- }
59
- connectedCallback() {
60
- super.connectedCallback();
61
- if (this.type === "file") {
62
- this.value = null;
63
- }
64
- else {
65
- if (!this.default) {
66
- this.default = this.value || "";
67
- }
68
- if (!this.value) {
69
- this.value = this.default;
70
- }
71
- }
72
- }
73
- _handleFile(e) {
74
- this.value = !this.only ? e.target.files : e.target.files[0];
75
- this.dispatchEvent(new CustomEvent("change", { detail: this.value }));
76
- }
77
- reset() {
78
- if (this.type === "file") {
79
- this.value = null;
80
- return;
81
- }
82
- this._input.value = this.default.toString();
83
- this.value = this.default;
84
- }
85
- };
86
- __decorate([
87
- property()
88
- ], Input.prototype, "variant", void 0);
89
- __decorate([
90
- property()
91
- ], Input.prototype, "accept", void 0);
92
- __decorate([
93
- property()
94
- ], Input.prototype, "value", void 0);
95
- __decorate([
96
- property({ type: Boolean })
97
- ], Input.prototype, "only", void 0);
98
- __decorate([
99
- property({ type: Number })
100
- ], Input.prototype, "min", void 0);
101
- __decorate([
102
- property({ type: Number })
103
- ], Input.prototype, "max", void 0);
104
- __decorate([
105
- property({ type: Number })
106
- ], Input.prototype, "step", void 0);
107
- Input = __decorate([
108
- godown(protoName),
109
- styles([
110
- inputStyle,
111
- fieldStyle,
112
- css `
113
- :host {
114
- width: var(--${cssGlobalVars.input}--width);
115
- height: var(--${cssGlobalVars.input}--height);
116
- color: var(--${cssGlobalVars.foreground});
117
- background: var(--${cssGlobalVars.input}--background);
118
- margin: var(--${cssGlobalVars.input}--outline-width);
119
- border-radius: var(--${cssGlobalVars.input}--radius);
120
- display: block;
121
- }
122
-
123
- input[type="file"] {
124
- display: none;
125
- }
126
-
127
- [part="root"] {
128
- width: 100%;
129
- display: flex;
130
- align-items: center;
131
- }
132
-
133
- * {
134
- border-radius: inherit;
135
- cursor: inherit;
136
- }
137
-
138
- input {
139
- box-sizing: border-box;
140
- height: 100%;
141
- width: 100%;
142
- margin: 0;
143
- color: inherit;
144
- background: transparent;
145
- border-radius: 0.25em;
146
- }
147
- `,
148
- ])
149
- ], Input);
150
- export { Input };
151
- export default Input;
152
- //# sourceMappingURL=input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,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a,CAAC,KAAK;sBACvB,aAAa,CAAC,KAAK;6BACZ,aAAa,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B7C;KACF,CAAC;GACW,KAAK,CAuEjB;;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine } from \"../../lib/directives.js\";\nimport GodownInput from \"../../proto/super-input.js\";\nimport { cssGlobalVars } from \"../../styles/global.js\";\nimport { fieldStyle, inputStyle } from \"../../styles/inputStyle.js\";\n\nconst protoName = \"input\";\n\n/**\n * {@linkcode Input }.\n */\n@godown(protoName)\n@styles([\n inputStyle,\n fieldStyle,\n css`\n :host {\n width: var(--${cssGlobalVars.input}--width);\n height: var(--${cssGlobalVars.input}--height);\n color: var(--${cssGlobalVars.foreground});\n background: var(--${cssGlobalVars.input}--background);\n margin: var(--${cssGlobalVars.input}--outline-width);\n border-radius: var(--${cssGlobalVars.input}--radius);\n display: block;\n }\n\n input[type=\"file\"] {\n display: none;\n }\n\n [part=\"root\"] {\n width: 100%;\n display: flex;\n align-items: center;\n }\n\n * {\n border-radius: inherit;\n cursor: inherit;\n }\n\n input {\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n margin: 0;\n color: inherit;\n background: transparent;\n border-radius: 0.25em;\n }\n `,\n])\nexport class Input extends GodownInput {\n @property() variant: \"default\" | \"outline\" = \"default\";\n /**\n * Input accept.\n */\n @property() accept: string = undefined;\n /**\n * Value.\n */\n @property() value: string | File | FileList = undefined;\n /**\n * Only single files are allowed to be selected.\n */\n @property({ type: Boolean }) only = false;\n /**\n * Input min.\n */\n @property({ type: Number }) min = 0;\n /**\n * Input max.\n */\n @property({ type: Number }) max = 100;\n /**\n * Input step.\n */\n @property({ type: Number }) step = 1;\n\n protected render() {\n return html`<div part=\"root\" class=\"${combine({ \"input-field\": true, outline: this.variant === \"outline\" })}\">\n <input\n part=\"input\"\n class=\"input\"\n id=${this.makeId}\n .value=\"${this.value as string}\"\n ?autofocus=\"${this.autofocus}\"\n type=\"${this.type}\"\n placeholder=\"${this.placeholder}\"\n min=\"${this.min}\"\n max=\"${this.max}\"\n @input=\"${this._handleInput}\"\n />\n ${this._renderSuffix()}\n </div>`;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.type === \"file\") {\n this.value = null;\n } else {\n if (!this.default) {\n this.default = (this.value as string) || \"\";\n }\n if (!this.value) {\n this.value = this.default;\n }\n }\n }\n protected _handleFile(e: any | Event) {\n this.value = !this.only ? e.target.files : e.target.files[0];\n this.dispatchEvent(new CustomEvent(\"change\", { detail: this.value }));\n }\n\n reset() {\n if (this.type === \"file\") {\n this.value = null;\n return;\n }\n this._input.value = this.default.toString();\n this.value = this.default;\n }\n}\n\nexport default Input;\n"]}
@@ -1,15 +0,0 @@
1
- import GodownInput from "../../proto/super-input.js";
2
- /**
3
- * {@linkcode LabelInput } renders label and input.
4
- *
5
- * When there is a label, the layout will be adjusted according to the width of the screen.
6
- *
7
- * Otherwise it behaves similarly to the `Input`.
8
- *
9
- */
10
- export declare class LabelInput extends GodownInput {
11
- variant: "default" | "outline";
12
- protected render(): import("lit").TemplateResult<1>;
13
- }
14
- export default LabelInput;
15
- //# sourceMappingURL=label-input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/label-input.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAMrD;;;;;;;GAOG;AACH,qBA+Ca,UAAW,SAAQ,WAAW;IAC7B,OAAO,EAAE,SAAS,GAAG,SAAS,CAAa;IAEvD,SAAS,CAAC,MAAM;CAkBjB;AAED,eAAe,UAAU,CAAC"}
@@ -1,96 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import { combine, htmlSlot } from "../../lib/directives.js";
6
- import GodownInput from "../../proto/super-input.js";
7
- import { cssGlobalVars } from "../../styles/global.js";
8
- import { fieldStyle, inputStyle } from "../../styles/inputStyle.js";
9
- const protoName = "label-input";
10
- /**
11
- * {@linkcode LabelInput } renders label and input.
12
- *
13
- * When there is a label, the layout will be adjusted according to the width of the screen.
14
- *
15
- * Otherwise it behaves similarly to the `Input`.
16
- *
17
- */
18
- let LabelInput = class LabelInput extends GodownInput {
19
- constructor() {
20
- super(...arguments);
21
- this.variant = "default";
22
- }
23
- render() {
24
- const { makeId: htmlFor } = this;
25
- return html `<label for="${htmlFor}" part="label">
26
- <span part="label">${this.label}${htmlSlot()}</span>
27
- <div class="${combine({ "input-field": true, outline: this.variant === "outline" })}">
28
- <input
29
- part="input"
30
- id="${htmlFor}"
31
- type="${this.type}"
32
- ?autofocus="${this.autofocus}"
33
- placeholder="${this.placeholder}"
34
- class="${this.type}"
35
- @input="${this._handleInput}"
36
- />
37
- ${this._renderSuffix()}
38
- </div>
39
- </label>`;
40
- }
41
- };
42
- __decorate([
43
- property()
44
- ], LabelInput.prototype, "variant", void 0);
45
- LabelInput = __decorate([
46
- godown(protoName),
47
- styles([
48
- inputStyle,
49
- fieldStyle,
50
- css `
51
- :host {
52
- --${cssGlobalVars.input}--label-width: var(--${cssGlobalVars.input}--width);
53
- width: calc(var(--${cssGlobalVars.input}--width) + var(--${cssGlobalVars.input}--label-width));
54
- height: var(--${cssGlobalVars.input}--height);
55
- margin: var(--${cssGlobalVars.input}--outline-width);
56
- border-radius: var(--${cssGlobalVars.input}--radius);
57
- margin: var(--${cssGlobalVars.input}--outline-width);
58
- border-radius: var(--${cssGlobalVars.input}--radius);
59
- justify-content: space-between;
60
- display: flex;
61
- }
62
-
63
- div {
64
- height: inherit;
65
- width: var(--${cssGlobalVars.input}--width);
66
- }
67
-
68
- label {
69
- display: contents;
70
- border-radius: inherit;
71
- height: inherit;
72
- }
73
-
74
- span {
75
- flex: 1;
76
- white-space: nowrap;
77
- width: var(--${cssGlobalVars.input}--width);
78
- }
79
-
80
- input {
81
- flex: 1;
82
- width: 100%;
83
- height: inherit;
84
- background: transparent;
85
- border-radius: inherit;
86
- color: var(--${cssGlobalVars.foreground});
87
- }
88
- .input-field {
89
- background: var(--${cssGlobalVars.input}--background);
90
- }
91
- `,
92
- ])
93
- ], LabelInput);
94
- export { LabelInput };
95
- export default LabelInput;
96
- //# sourceMappingURL=label-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label-input.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/label-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;;;;;;GAOG;AAgDI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,WAAW;IAApC;;QACO,YAAO,GAA0B,SAAS,CAAC;IAoBzD,CAAC;IAlBW,MAAM;QACd,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACjC,OAAO,IAAI,CAAA,eAAe,OAAO;2BACV,IAAI,CAAC,KAAK,GAAG,QAAQ,EAAE;oBAC9B,OAAO,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;;;gBAGzE,OAAO;kBACL,IAAI,CAAC,IAAI;wBACH,IAAI,CAAC,SAAS;yBACb,IAAI,CAAC,WAAW;mBACtB,IAAI,CAAC,IAAI;oBACR,IAAI,CAAC,YAAY;;UAE3B,IAAI,CAAC,aAAa,EAAE;;aAEjB,CAAC;IACZ,CAAC;CACF,CAAA;AApBa;IAAX,QAAQ,EAAE;2CAA4C;AAD5C,UAAU;IA/CtB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,UAAU;QACV,UAAU;QACV,GAAG,CAAA;;UAEK,aAAa,CAAC,KAAK,wBAAwB,aAAa,CAAC,KAAK;0BAC9C,aAAa,CAAC,KAAK,oBAAoB,aAAa,CAAC,KAAK;sBAC9D,aAAa,CAAC,KAAK;sBACnB,aAAa,CAAC,KAAK;6BACZ,aAAa,CAAC,KAAK;sBAC1B,aAAa,CAAC,KAAK;6BACZ,aAAa,CAAC,KAAK;;;;;;;qBAO3B,aAAa,CAAC,KAAK;;;;;;;;;;;;qBAYnB,aAAa,CAAC,KAAK;;;;;;;;;qBASnB,aAAa,CAAC,UAAU;;;0BAGnB,aAAa,CAAC,KAAK;;GAE1C;KACF,CAAC;GACW,UAAU,CAqBtB;;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { combine, htmlSlot } from \"../../lib/directives.js\";\nimport GodownInput from \"../../proto/super-input.js\";\nimport { cssGlobalVars } from \"../../styles/global.js\";\nimport { fieldStyle, inputStyle } from \"../../styles/inputStyle.js\";\n\nconst protoName = \"label-input\";\n\n/**\n * {@linkcode LabelInput } renders label and input.\n *\n * When there is a label, the layout will be adjusted according to the width of the screen.\n *\n * Otherwise it behaves similarly to the `Input`.\n *\n */\n@godown(protoName)\n@styles([\n inputStyle,\n fieldStyle,\n css`\n :host {\n --${cssGlobalVars.input}--label-width: var(--${cssGlobalVars.input}--width);\n width: calc(var(--${cssGlobalVars.input}--width) + var(--${cssGlobalVars.input}--label-width));\n height: var(--${cssGlobalVars.input}--height);\n margin: var(--${cssGlobalVars.input}--outline-width);\n border-radius: var(--${cssGlobalVars.input}--radius);\n margin: var(--${cssGlobalVars.input}--outline-width);\n border-radius: var(--${cssGlobalVars.input}--radius);\n justify-content: space-between;\n display: flex;\n }\n\n div {\n height: inherit;\n width: var(--${cssGlobalVars.input}--width);\n }\n\n label {\n display: contents;\n border-radius: inherit;\n height: inherit;\n }\n\n span {\n flex: 1;\n white-space: nowrap;\n width: var(--${cssGlobalVars.input}--width);\n }\n\n input {\n flex: 1;\n width: 100%;\n height: inherit;\n background: transparent;\n border-radius: inherit;\n color: var(--${cssGlobalVars.foreground});\n }\n .input-field {\n background: var(--${cssGlobalVars.input}--background);\n }\n `,\n])\nexport class LabelInput extends GodownInput {\n @property() variant: \"default\" | \"outline\" = \"default\";\n\n protected render() {\n const { makeId: htmlFor } = this;\n return html`<label for=\"${htmlFor}\" part=\"label\">\n <span part=\"label\">${this.label}${htmlSlot()}</span>\n <div class=\"${combine({ \"input-field\": true, outline: this.variant === \"outline\" })}\">\n <input\n part=\"input\"\n id=\"${htmlFor}\"\n type=\"${this.type}\"\n ?autofocus=\"${this.autofocus}\"\n placeholder=\"${this.placeholder}\"\n class=\"${this.type}\"\n @input=\"${this._handleInput}\"\n />\n ${this._renderSuffix()}\n </div>\n </label>`;\n }\n}\n\nexport default LabelInput;\n"]}
@@ -1,53 +0,0 @@
1
- import GodownInput from "../../proto/super-input.js";
2
- /**
3
- * {@linkcode RangeInput }.
4
- */
5
- export declare class RangeInput extends GodownInput {
6
- /**
7
- * Minimum value.
8
- */
9
- min: number;
10
- /**
11
- * Maximum value.
12
- */
13
- max: number;
14
- /**
15
- * Sliding step length.
16
- */
17
- step: number;
18
- /**
19
- * Enable range sliding.
20
- */
21
- range: boolean;
22
- vertical: boolean;
23
- /**
24
- * When `this.range` is true, it should be [number, number], otherwise number.
25
- */
26
- value: number | [number, number];
27
- /**
28
- * The default of `this.value`.
29
- */
30
- default: number | [number, number];
31
- _root: HTMLElement;
32
- lastFocus: undefined | 1 | 2;
33
- /**
34
- * Returns true when the second number is greater than the first number
35
- */
36
- get reverse(): boolean;
37
- render(): import("lit").TemplateResult<1>;
38
- _handleMousedownStart(e: MouseEvent): void;
39
- _handleMousedownEnd(e: MouseEvent): void;
40
- setStart(value: number): void;
41
- setEnd(value: number): void;
42
- _computeValue(e: MouseEvent): number;
43
- _handleMousedownRoot(e: MouseEvent): void;
44
- createMousedownListener(mouseMoveCallback: (arg0: number) => void): (e: MouseEvent) => void;
45
- createMousemoveListener(callback: (arg0: number) => void): (e: MouseEvent) => void;
46
- _connectedInit(): void;
47
- reset(): void;
48
- swap(): void;
49
- sort(): void;
50
- toSorted(): number | [number, number];
51
- }
52
- export default RangeInput;
53
- //# sourceMappingURL=range-input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"range-input.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/input/range-input.ts"],"names":[],"mappings":"AAMA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAOrD;;GAEG;AACH,qBAoHa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACyB,GAAG,SAAK;IACpC;;OAEG;IACyB,GAAG,SAAO;IACtC;;OAEG;IACyB,IAAI,SAAK;IACrC;;OAEG;IACyC,KAAK,EAAE,OAAO,CAAC;IAEf,QAAQ,EAAE,OAAO,CAAC;IAE9D;;OAEG;IACwB,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5D;;OAEG;IACwB,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD,KAAK,EAAE,WAAW,CAAC;IAEjC,SAAS,EAAE,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IAE7B;;OAEG;IACH,IAAI,OAAO,YAEV;IAED,MAAM;IA6CN,qBAAqB,CAAC,CAAC,EAAE,UAAU;IAGnC,mBAAmB,CAAC,CAAC,EAAE,UAAU;IAIjC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAMtB,MAAM,CAAC,KAAK,EAAE,MAAM;IAMpB,aAAa,CAAC,CAAC,EAAE,UAAU;IAY3B,oBAAoB,CAAC,CAAC,EAAE,UAAU;IAWlC,uBAAuB,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OACpD,UAAU;IAavB,uBAAuB,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,OAC3C,UAAU;IASvB,cAAc;IAcd,KAAK;IAIL,IAAI;IAOJ,IAAI;IAIJ,QAAQ,IAAI,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;CAOtC;AAED,eAAe,UAAU,CAAC"}