godown 3.0.0-canary.16 → 3.0.0-canary.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/badge.d.ts +9 -0
  2. package/badge.d.ts.map +1 -0
  3. package/badge.js +2 -0
  4. package/badge.js.map +1 -0
  5. package/build/godown+lit.iife.js +59 -0
  6. package/build/godown+lit.iife.js.map +1 -0
  7. package/build/godown+lit.js +59 -0
  8. package/build/godown+lit.js.map +1 -0
  9. package/build/godown+lit.umd.js +59 -0
  10. package/build/godown+lit.umd.js.map +1 -0
  11. package/build/godown.iife.js +47 -0
  12. package/build/godown.js +48 -0
  13. package/build/godown.js.map +1 -0
  14. package/build/godown.umd.js +48 -0
  15. package/build/godown.umd.js.map +1 -0
  16. package/components/alert.d.ts.map +1 -1
  17. package/components/alert.js +1 -1
  18. package/components/alert.js.map +1 -1
  19. package/components/avatar.d.ts.map +1 -1
  20. package/components/avatar.js +1 -1
  21. package/components/avatar.js.map +1 -1
  22. package/components/badge.d.ts +23 -0
  23. package/components/badge.d.ts.map +1 -0
  24. package/components/badge.js +2 -0
  25. package/components/badge.js.map +1 -0
  26. package/components/breath.d.ts.map +1 -1
  27. package/components/breath.js +1 -1
  28. package/components/breath.js.map +1 -1
  29. package/components/button.d.ts.map +1 -1
  30. package/components/button.js +1 -1
  31. package/components/button.js.map +1 -1
  32. package/components/card.d.ts.map +1 -1
  33. package/components/card.js +1 -1
  34. package/components/card.js.map +1 -1
  35. package/components/carousel.d.ts.map +1 -1
  36. package/components/carousel.js +1 -1
  37. package/components/carousel.js.map +1 -1
  38. package/components/details.d.ts.map +1 -1
  39. package/components/details.js +1 -1
  40. package/components/details.js.map +1 -1
  41. package/components/dialog.d.ts +1 -1
  42. package/components/dialog.d.ts.map +1 -1
  43. package/components/dialog.js +1 -1
  44. package/components/dialog.js.map +1 -1
  45. package/components/divider.d.ts.map +1 -1
  46. package/components/divider.js +1 -1
  47. package/components/divider.js.map +1 -1
  48. package/components/dragbox.d.ts +1 -1
  49. package/components/dragbox.d.ts.map +1 -1
  50. package/components/dragbox.js +1 -1
  51. package/components/dragbox.js.map +1 -1
  52. package/components/flex.d.ts.map +1 -1
  53. package/components/flex.js +1 -1
  54. package/components/flex.js.map +1 -1
  55. package/components/form.d.ts.map +1 -1
  56. package/components/form.js +1 -1
  57. package/components/form.js.map +1 -1
  58. package/components/grid.d.ts.map +1 -1
  59. package/components/grid.js +1 -1
  60. package/components/grid.js.map +1 -1
  61. package/components/heading.d.ts +29 -0
  62. package/components/heading.d.ts.map +1 -0
  63. package/components/heading.js +2 -0
  64. package/components/heading.js.map +1 -0
  65. package/components/input.d.ts.map +1 -1
  66. package/components/input.js +1 -1
  67. package/components/input.js.map +1 -1
  68. package/components/layout.d.ts.map +1 -1
  69. package/components/layout.js +1 -1
  70. package/components/layout.js.map +1 -1
  71. package/components/link.js +1 -1
  72. package/components/link.js.map +1 -1
  73. package/components/progress.d.ts.map +1 -1
  74. package/components/progress.js +1 -1
  75. package/components/progress.js.map +1 -1
  76. package/components/range.d.ts.map +1 -1
  77. package/components/range.js +1 -1
  78. package/components/range.js.map +1 -1
  79. package/components/rotate.d.ts.map +1 -1
  80. package/components/rotate.js +1 -1
  81. package/components/rotate.js.map +1 -1
  82. package/components/router.d.ts.map +1 -1
  83. package/components/router.js +1 -1
  84. package/components/router.js.map +1 -1
  85. package/components/select.d.ts +1 -1
  86. package/components/select.d.ts.map +1 -1
  87. package/components/select.js +1 -1
  88. package/components/select.js.map +1 -1
  89. package/components/skeleton.d.ts.map +1 -1
  90. package/components/skeleton.js +1 -1
  91. package/components/skeleton.js.map +1 -1
  92. package/components/split.d.ts +2 -1
  93. package/components/split.d.ts.map +1 -1
  94. package/components/split.js +1 -1
  95. package/components/split.js.map +1 -1
  96. package/components/switch.d.ts.map +1 -1
  97. package/components/switch.js +1 -1
  98. package/components/switch.js.map +1 -1
  99. package/components/text.d.ts.map +1 -1
  100. package/components/text.js +1 -1
  101. package/components/text.js.map +1 -1
  102. package/components/time.d.ts.map +1 -1
  103. package/components/time.js +1 -1
  104. package/components/time.js.map +1 -1
  105. package/components/tooltip.d.ts.map +1 -1
  106. package/components/tooltip.js +1 -1
  107. package/components/tooltip.js.map +1 -1
  108. package/components/typewriter.d.ts +3 -10
  109. package/components/typewriter.d.ts.map +1 -1
  110. package/components/typewriter.js +1 -1
  111. package/components/typewriter.js.map +1 -1
  112. package/core/global-style.d.ts +1 -1
  113. package/core/global-style.d.ts.map +1 -1
  114. package/core/global-style.js +1 -1
  115. package/core/global-style.js.map +1 -1
  116. package/core/super-anchor.d.ts.map +1 -1
  117. package/core/super-anchor.js +1 -1
  118. package/core/super-anchor.js.map +1 -1
  119. package/core/super-input.d.ts +1 -1
  120. package/core/super-input.d.ts.map +1 -1
  121. package/core/super-input.js +1 -1
  122. package/core/super-input.js.map +1 -1
  123. package/custom-elements.json +1 -1
  124. package/dev/badge.d.ts +9 -0
  125. package/dev/badge.d.ts.map +1 -0
  126. package/dev/badge.js +5 -0
  127. package/dev/badge.js.map +1 -0
  128. package/dev/components/alert.d.ts.map +1 -1
  129. package/dev/components/alert.js +1 -6
  130. package/dev/components/alert.js.map +1 -1
  131. package/dev/components/avatar.d.ts.map +1 -1
  132. package/dev/components/avatar.js +1 -5
  133. package/dev/components/avatar.js.map +1 -1
  134. package/dev/components/badge.d.ts +23 -0
  135. package/dev/components/badge.d.ts.map +1 -0
  136. package/dev/components/badge.js +107 -0
  137. package/dev/components/badge.js.map +1 -0
  138. package/dev/components/breath.d.ts.map +1 -1
  139. package/dev/components/breath.js +1 -4
  140. package/dev/components/breath.js.map +1 -1
  141. package/dev/components/button.d.ts.map +1 -1
  142. package/dev/components/button.js +4 -12
  143. package/dev/components/button.js.map +1 -1
  144. package/dev/components/card.d.ts.map +1 -1
  145. package/dev/components/card.js +1 -4
  146. package/dev/components/card.js.map +1 -1
  147. package/dev/components/carousel.d.ts.map +1 -1
  148. package/dev/components/carousel.js +2 -7
  149. package/dev/components/carousel.js.map +1 -1
  150. package/dev/components/details.d.ts.map +1 -1
  151. package/dev/components/details.js +2 -4
  152. package/dev/components/details.js.map +1 -1
  153. package/dev/components/dialog.d.ts +1 -1
  154. package/dev/components/dialog.d.ts.map +1 -1
  155. package/dev/components/dialog.js +1 -4
  156. package/dev/components/dialog.js.map +1 -1
  157. package/dev/components/divider.d.ts.map +1 -1
  158. package/dev/components/divider.js +1 -2
  159. package/dev/components/divider.js.map +1 -1
  160. package/dev/components/dragbox.d.ts +1 -1
  161. package/dev/components/dragbox.d.ts.map +1 -1
  162. package/dev/components/dragbox.js +1 -4
  163. package/dev/components/dragbox.js.map +1 -1
  164. package/dev/components/flex.d.ts.map +1 -1
  165. package/dev/components/flex.js +1 -6
  166. package/dev/components/flex.js.map +1 -1
  167. package/dev/components/form.d.ts.map +1 -1
  168. package/dev/components/form.js +1 -3
  169. package/dev/components/form.js.map +1 -1
  170. package/dev/components/grid.d.ts.map +1 -1
  171. package/dev/components/grid.js +1 -7
  172. package/dev/components/grid.js.map +1 -1
  173. package/dev/components/heading.d.ts +29 -0
  174. package/dev/components/heading.d.ts.map +1 -0
  175. package/dev/components/heading.js +103 -0
  176. package/dev/components/heading.js.map +1 -0
  177. package/dev/components/input.d.ts.map +1 -1
  178. package/dev/components/input.js +1 -5
  179. package/dev/components/input.js.map +1 -1
  180. package/dev/components/layout.d.ts.map +1 -1
  181. package/dev/components/layout.js +1 -4
  182. package/dev/components/layout.js.map +1 -1
  183. package/dev/components/link.js +1 -1
  184. package/dev/components/link.js.map +1 -1
  185. package/dev/components/progress.d.ts.map +1 -1
  186. package/dev/components/progress.js +1 -4
  187. package/dev/components/progress.js.map +1 -1
  188. package/dev/components/range.d.ts.map +1 -1
  189. package/dev/components/range.js +1 -7
  190. package/dev/components/range.js.map +1 -1
  191. package/dev/components/rotate.d.ts.map +1 -1
  192. package/dev/components/rotate.js +1 -4
  193. package/dev/components/rotate.js.map +1 -1
  194. package/dev/components/router.d.ts.map +1 -1
  195. package/dev/components/router.js +1 -4
  196. package/dev/components/router.js.map +1 -1
  197. package/dev/components/select.d.ts +1 -1
  198. package/dev/components/select.d.ts.map +1 -1
  199. package/dev/components/select.js +2 -7
  200. package/dev/components/select.js.map +1 -1
  201. package/dev/components/skeleton.d.ts.map +1 -1
  202. package/dev/components/skeleton.js +1 -4
  203. package/dev/components/skeleton.js.map +1 -1
  204. package/dev/components/split.d.ts +2 -1
  205. package/dev/components/split.d.ts.map +1 -1
  206. package/dev/components/split.js +2 -4
  207. package/dev/components/split.js.map +1 -1
  208. package/dev/components/switch.d.ts.map +1 -1
  209. package/dev/components/switch.js +1 -3
  210. package/dev/components/switch.js.map +1 -1
  211. package/dev/components/text.d.ts.map +1 -1
  212. package/dev/components/text.js +1 -5
  213. package/dev/components/text.js.map +1 -1
  214. package/dev/components/time.d.ts.map +1 -1
  215. package/dev/components/time.js +2 -4
  216. package/dev/components/time.js.map +1 -1
  217. package/dev/components/tooltip.d.ts.map +1 -1
  218. package/dev/components/tooltip.js +1 -4
  219. package/dev/components/tooltip.js.map +1 -1
  220. package/dev/components/typewriter.d.ts +3 -10
  221. package/dev/components/typewriter.d.ts.map +1 -1
  222. package/dev/components/typewriter.js +15 -37
  223. package/dev/components/typewriter.js.map +1 -1
  224. package/dev/core/global-style.d.ts +1 -1
  225. package/dev/core/global-style.d.ts.map +1 -1
  226. package/dev/core/global-style.js +1 -3
  227. package/dev/core/global-style.js.map +1 -1
  228. package/dev/core/super-anchor.d.ts.map +1 -1
  229. package/dev/core/super-anchor.js +3 -6
  230. package/dev/core/super-anchor.js.map +1 -1
  231. package/dev/core/super-input.d.ts +1 -1
  232. package/dev/core/super-input.d.ts.map +1 -1
  233. package/dev/core/super-input.js +1 -3
  234. package/dev/core/super-input.js.map +1 -1
  235. package/dev/heading.d.ts +9 -0
  236. package/dev/heading.d.ts.map +1 -0
  237. package/dev/heading.js +5 -0
  238. package/dev/heading.js.map +1 -0
  239. package/dev/index.d.ts +2 -0
  240. package/dev/index.d.ts.map +1 -1
  241. package/dev/index.js +2 -0
  242. package/dev/index.js.map +1 -1
  243. package/heading.d.ts +9 -0
  244. package/heading.d.ts.map +1 -0
  245. package/heading.js +2 -0
  246. package/heading.js.map +1 -0
  247. package/index.d.ts +2 -0
  248. package/index.d.ts.map +1 -1
  249. package/index.js +1 -1
  250. package/package.json +3 -2
  251. package/split.js +1 -1
  252. package/split.js.map +1 -1
  253. package/src/badge.ts +13 -0
  254. package/src/components/alert.ts +1 -6
  255. package/src/components/avatar.ts +1 -5
  256. package/src/components/badge.ts +107 -0
  257. package/src/components/breath.ts +1 -4
  258. package/src/components/button.ts +4 -12
  259. package/src/components/card.ts +1 -4
  260. package/src/components/carousel.ts +2 -7
  261. package/src/components/details.ts +2 -4
  262. package/src/components/dialog.ts +1 -5
  263. package/src/components/divider.ts +1 -2
  264. package/src/components/dragbox.ts +1 -5
  265. package/src/components/flex.ts +1 -6
  266. package/src/components/form.ts +1 -3
  267. package/src/components/grid.ts +1 -7
  268. package/src/components/heading.ts +105 -0
  269. package/src/components/input.ts +1 -5
  270. package/src/components/layout.ts +1 -4
  271. package/src/components/link.ts +1 -1
  272. package/src/components/progress.ts +1 -4
  273. package/src/components/range.ts +1 -7
  274. package/src/components/rotate.ts +1 -4
  275. package/src/components/router.ts +1 -4
  276. package/src/components/select.ts +2 -8
  277. package/src/components/skeleton.ts +1 -4
  278. package/src/components/split.ts +2 -5
  279. package/src/components/switch.ts +1 -3
  280. package/src/components/text.ts +1 -5
  281. package/src/components/time.ts +2 -4
  282. package/src/components/tooltip.ts +1 -4
  283. package/src/components/typewriter.ts +13 -34
  284. package/src/core/global-style.ts +1 -3
  285. package/src/core/super-anchor.ts +3 -6
  286. package/src/core/super-input.ts +1 -4
  287. package/src/heading.ts +13 -0
  288. package/src/index.ts +2 -0
  289. package/vscode.html-custom-data.json +1 -1
  290. package/web-types.json +1 -1
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.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js";import"./breath.js";import"./button.js";import"./card.js";import"./carousel.js";import"./details.js";import"./dialog.js";import"./divider.js";import"./dragbox.js";import"./flex.js";import"./form.js";import"./grid.js";import"./input.js";import"./layout.js";import"./link.js";import"./progress.js";import"./range.js";import"./rotate.js";import"./router.js";import"./select.js";import"./skeleton.js";import"./split.js";import"./switch.js";import"./text.js";import"./time.js";import"./tooltip.js";import"./typewriter.js";export{default as Alert}from"./components/alert.js";export{default as Avatar}from"./components/avatar.js";export{default as Breath}from"./components/breath.js";export{default as Button}from"./components/button.js";export{default as Card}from"./components/card.js";export{default as Carousel}from"./components/carousel.js";export{default as Details}from"./components/details.js";export{default as Dialog}from"./components/dialog.js";export{default as Divider}from"./components/divider.js";export{default as Dragbox}from"./components/dragbox.js";export{default as Flex}from"./components/flex.js";export{default as Form}from"./components/form.js";export{default as Grid}from"./components/grid.js";export{default as Input}from"./components/input.js";export{default as Layout}from"./components/layout.js";export{default as Link}from"./components/link.js";export{default as Progress}from"./components/progress.js";export{default as Range}from"./components/range.js";export{default as Rotate}from"./components/rotate.js";export{default as Router}from"./components/router.js";export{default as Select}from"./components/select.js";export{default as Skeleton}from"./components/skeleton.js";export{default as Split}from"./components/split.js";export{default as Switch}from"./components/switch.js";export{default as Text}from"./components/text.js";export{default as Time}from"./components/time.js";export{default as Tooltip}from"./components/tooltip.js";export{default as Typewriter}from"./components/typewriter.js";
1
+ import"./alert.js";import"./avatar.js";import"./badge.js";import"./breath.js";import"./button.js";import"./card.js";import"./carousel.js";import"./details.js";import"./dialog.js";import"./divider.js";import"./dragbox.js";import"./flex.js";import"./form.js";import"./grid.js";import"./heading.js";import"./input.js";import"./layout.js";import"./link.js";import"./progress.js";import"./range.js";import"./rotate.js";import"./router.js";import"./select.js";import"./skeleton.js";import"./split.js";import"./switch.js";import"./text.js";import"./time.js";import"./tooltip.js";import"./typewriter.js";export{default as Alert}from"./components/alert.js";export{default as Avatar}from"./components/avatar.js";export{default as Badge}from"./components/badge.js";export{default as Breath}from"./components/breath.js";export{default as Button}from"./components/button.js";export{default as Card}from"./components/card.js";export{default as Carousel}from"./components/carousel.js";export{default as Details}from"./components/details.js";export{default as Dialog}from"./components/dialog.js";export{default as Divider}from"./components/divider.js";export{default as Dragbox}from"./components/dragbox.js";export{default as Flex}from"./components/flex.js";export{default as Form}from"./components/form.js";export{default as Grid}from"./components/grid.js";export{default as Heading}from"./components/heading.js";export{default as Input}from"./components/input.js";export{default as Layout}from"./components/layout.js";export{default as Link}from"./components/link.js";export{default as Progress}from"./components/progress.js";export{default as Range}from"./components/range.js";export{default as Rotate}from"./components/rotate.js";export{default as Router}from"./components/router.js";export{default as Select}from"./components/select.js";export{default as Skeleton}from"./components/skeleton.js";export{default as Split}from"./components/split.js";export{default as Switch}from"./components/switch.js";export{default as Text}from"./components/text.js";export{default as Time}from"./components/time.js";export{default as Tooltip}from"./components/tooltip.js";export{default as Typewriter}from"./components/typewriter.js";
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godown",
3
- "version": "3.0.0-canary.16",
3
+ "version": "3.0.0-canary.18",
4
4
  "description": "Non Composite Web Components Library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,6 +13,7 @@
13
13
  "development": "./dev/*",
14
14
  "default": "./*"
15
15
  },
16
+ "./build/*": "./build/*",
16
17
  "./src/*": "./src/*",
17
18
  "./*.json": "./*.json"
18
19
  },
@@ -33,7 +34,7 @@
33
34
  "tslib": "^2.7.0",
34
35
  "@godown/colors": "^0.0.2",
35
36
  "@godown/f7-icon": "^0.0.4",
36
- "@godown/element": "^0.3.0"
37
+ "@godown/element": "^0.4.0"
37
38
  },
38
39
  "publishConfig": {
39
40
  "access": "public"
package/split.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"./components/split.js";e.define();export{e as default};
1
+ import o from"./components/split.js";export{Split}from"./components/split.js";o.define();export{o as default};
2
2
  //# sourceMappingURL=split.js.map
package/split.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"split.js","sources":["src/split.ts"],"sourcesContent":null,"names":["Split","define"],"mappings":"qCAEAA,EAAMC"}
1
+ {"version":3,"file":"split.js","sources":["src/split.ts"],"sourcesContent":null,"names":["Split","define"],"mappings":"8EAEAA,EAAMC"}
package/src/badge.ts ADDED
@@ -0,0 +1,13 @@
1
+ import Badge from "./components/badge.js";
2
+
3
+ Badge.define();
4
+
5
+ export default Badge;
6
+
7
+ export * from "./components/badge.js";
8
+
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ "godown-badge": Badge;
12
+ }
13
+ }
@@ -1,9 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
5
- import { htmlStyle } from "@godown/element/directives/html-style.js";
6
- import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
1
+ import { attr, constructCSSObject, godown, htmlSlot, htmlStyle, styles, toVar } from "@godown/element";
7
2
  import iconCheckAltCircle from "@godown/f7-icon/icons/checkmark-alt-circle.js";
8
3
  import iconExclamationCircle from "@godown/f7-icon/icons/exclamationmark-circle.js";
9
4
  import iconInfoCircle from "@godown/f7-icon/icons/info-circle.js";
@@ -1,8 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
5
- import { omit } from "@godown/element/tools/lib.js";
1
+ import { attr, godown, htmlSlot, omit, styles } from "@godown/element";
6
2
  import { css, html, type TemplateResult } from "lit";
7
3
  import { property } from "lit/decorators.js";
8
4
 
@@ -0,0 +1,107 @@
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
2
+ import { css, html, type TemplateResult } from "lit";
3
+ import { property } from "lit/decorators.js";
4
+
5
+ import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
6
+
7
+ type Position = "top-right" | "top-left" | "bottom-right" | "bottom-left";
8
+
9
+ const protoName = "badge";
10
+ const cssScope = scopePrefix(protoName);
11
+
12
+ /**
13
+ * {@linkcode Badge} renders a badge.
14
+ *
15
+ * @slot - Badge content.
16
+ * @category display
17
+ */
18
+ @godown(protoName)
19
+ @styles(
20
+ css`
21
+ :host {
22
+ ${cssScope}--background: var(${cssGlobalVars.active});
23
+ ${cssScope}--offset: 0%;
24
+ ${cssScope}--offset-x: var(${cssScope}--offset);
25
+ ${cssScope}--offset-y: var(${cssScope}--offset);
26
+ }
27
+
28
+ :host,
29
+ :host([contents]) [part=root] {
30
+ display: inline-block;
31
+ }
32
+
33
+ [part=root] {
34
+ position: relative;
35
+ }
36
+
37
+ [part=badge] {
38
+ position: absolute;
39
+ font-size: 75%;
40
+ padding: 0 0.5em;
41
+ user-select: none;
42
+ border-radius: calc(infinity * 1px);
43
+ transform: translate(-50%, -50%);
44
+ left: var(--left);
45
+ top: var(--top);
46
+ background: var(${cssScope}--background);
47
+ }
48
+
49
+ [part=badge]:empty {
50
+ width: 0.5em;
51
+ height: 0.5em;
52
+ font-size: 100%;
53
+ padding: 0;
54
+ border-radius: 50%;
55
+ }
56
+
57
+ [position^=top] {
58
+ --top: calc(0% + var(${cssScope}--offset-y));
59
+ }
60
+
61
+ [position$=right] {
62
+ --left: calc(100% - var(${cssScope}--offset-x));
63
+ }
64
+
65
+ [position^=bottom] {
66
+ --top: calc(100% - var(${cssScope}--offset-y));
67
+ }
68
+
69
+ [position$=left] {
70
+ --left: calc(0% + var(${cssScope}--offset-x));
71
+ }
72
+ `,
73
+ )
74
+ class Badge extends GlobalStyle {
75
+ @property()
76
+ position: Position = "top-right";
77
+
78
+ @property({ type: Number })
79
+ value = 0;
80
+
81
+ /**
82
+ * If `true`, render a dot badge.
83
+ */
84
+ @property({ type: Boolean })
85
+ dot = false;
86
+
87
+ @property({ type: Number })
88
+ max = 99;
89
+
90
+ private formatValue(value: number): string {
91
+ return value > this.max ? this.max + "+" : value + "";
92
+ }
93
+
94
+ render(): TemplateResult<1> {
95
+ return html`<div part="root" ${attr(this.observedRecord)}>
96
+ ${htmlSlot()}
97
+ ${
98
+ this.value || this.dot
99
+ ? html`<div part="badge">${this.dot ? "" : this.formatValue(this.value)}</div>`
100
+ : ""
101
+ }
102
+ </div>`;
103
+ }
104
+ }
105
+
106
+ export default Badge;
107
+ export { Badge };
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlStyle } from "@godown/element/directives/html-style.js";
1
+ import { attr, godown, htmlStyle, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
  import { property } from "lit/decorators.js";
7
4
 
@@ -1,10 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { part } from "@godown/element/decorators/part.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { attr } from "@godown/element/directives/attr.js";
5
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
6
- import { htmlStyle } from "@godown/element/directives/html-style.js";
7
- import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
1
+ import { attr, constructCSSObject, godown, htmlSlot, htmlStyle, part, styles, toVar } from "@godown/element";
8
2
  import { css, html, type TemplateResult } from "lit";
9
3
  import { property } from "lit/decorators.js";
10
4
 
@@ -134,7 +128,6 @@ const colors: Record<Colors, string> = constructCSSObject(
134
128
  var(${cssScope}--gradients, var(${cssScope}--background))
135
129
  );
136
130
  border-radius: 0.3em;
137
- width: -moz-fit-content;
138
131
  width: fit-content;
139
132
  transition: 0.1s;
140
133
  display: block;
@@ -271,10 +264,9 @@ class Button extends GlobalStyle {
271
264
 
272
265
  protected _handleModal(e: MouseEvent): void {
273
266
  const modal = document.createElement("i");
274
- const rect = this.getBoundingClientRect();
275
- const h = rect.height;
276
- const w = rect.width;
277
- const size = `${Math.sqrt(h * h + w * w) * 2}px`;
267
+ const rect = this._root.getBoundingClientRect();
268
+ const { height, width } = rect;
269
+ const size = `${Math.sqrt(height * height + width * width) * 2}px`;
278
270
  modal.style.height = size;
279
271
  modal.style.width = size;
280
272
  modal.style.left = `${e.clientX - rect.left}px`;
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
  import { property } from "lit/decorators.js";
7
4
 
@@ -1,9 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { part } from "@godown/element/decorators/part.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { attr } from "@godown/element/directives/attr.js";
5
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
6
- import { htmlStyle } from "@godown/element/directives/html-style.js";
1
+ import { attr, godown, htmlSlot, htmlStyle, part, styles } from "@godown/element";
7
2
  import iconChevronLeft from "@godown/f7-icon/icons/chevron-left.js";
8
3
  import iconChevronRight from "@godown/f7-icon/icons/chevron-right.js";
9
4
  import { css, html, type TemplateResult } from "lit";
@@ -170,7 +165,7 @@ class Carousel extends GlobalStyle {
170
165
  if (this.intervalID) {
171
166
  clearInterval(this.intervalID);
172
167
  }
173
- this.intervalID = window.setInterval(() => {
168
+ this.intervalID = setInterval(() => {
174
169
  this.next();
175
170
  }, this.autoChange);
176
171
  }
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
5
2
  import svgCaretDown from "@godown/f7-icon/icons/chevron-down.js";
6
3
  import { css, html, type TemplateResult } from "lit";
7
4
  import { property } from "lit/decorators.js";
@@ -42,6 +39,7 @@ const cssScope = scopePrefix(protoName);
42
39
  }
43
40
 
44
41
  [part=title] {
42
+ direction: ltr;
45
43
  height: 100%;
46
44
  display: flex;
47
45
  flex-wrap: nowrap;
@@ -1,8 +1,4 @@
1
- import type { HandlerEvent } from "@godown/element";
2
- import { godown } from "@godown/element/decorators/godown.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { attr } from "@godown/element/directives/attr.js";
5
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, type HandlerEvent, htmlSlot, styles } from "@godown/element";
6
2
  import { css, html, type PropertyValues, type TemplateResult } from "lit";
7
3
  import { property } from "lit/decorators.js";
8
4
 
@@ -1,5 +1,4 @@
1
- import { godown, styles } from "@godown/element/decorators/index.js";
2
- import { attr } from "@godown/element/directives/attr.js";
1
+ import { attr, godown, styles } from "@godown/element";
3
2
  import { css, html, type TemplateResult } from "lit";
4
3
  import { property } from "lit/decorators.js";
5
4
 
@@ -1,8 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
5
- import type { EventListenerFunc } from "@godown/element/tools/events.js";
1
+ import { attr, type EventListenerFunc, godown, htmlSlot, styles } from "@godown/element";
6
2
  import { css, html, type TemplateResult } from "lit";
7
3
  import { property } from "lit/decorators.js";
8
4
 
@@ -1,9 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
5
- import { htmlStyle } from "@godown/element/directives/html-style.js";
6
- import { joinRules } from "@godown/element/tools/css.js";
1
+ import { attr, godown, htmlSlot, htmlStyle, joinRules, styles } from "@godown/element";
7
2
  import { css, html, type TemplateResult } from "lit";
8
3
  import { property } from "lit/decorators.js";
9
4
 
@@ -1,6 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { godown, htmlSlot, styles } from "@godown/element";
4
2
  import { css, type TemplateResult } from "lit";
5
3
  import { property } from "lit/decorators.js";
6
4
 
@@ -1,10 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
5
- import { htmlStyle } from "@godown/element/directives/html-style.js";
6
- import { joinRules } from "@godown/element/tools/css.js";
7
- import { isNumerical } from "@godown/element/tools/lib.js";
1
+ import { attr, godown, htmlSlot, htmlStyle, isNumerical, joinRules, styles } from "@godown/element";
8
2
  import { css, html, type TemplateResult } from "lit";
9
3
  import { property } from "lit/decorators.js";
10
4
 
@@ -0,0 +1,105 @@
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
2
+ import { css, html, nothing, type TemplateResult } from "lit";
3
+ import { property } from "lit/decorators.js";
4
+
5
+ import { GlobalStyle } from "../core/global-style.js";
6
+
7
+ const protoName = "heading";
8
+
9
+ /**
10
+ * {@linkcode Heading} renders a heading.
11
+ *
12
+ * If the id is provided, the anchor will be displayed.
13
+ *
14
+ * @slot - Heading content.
15
+ * @category layout
16
+ */
17
+ @godown(protoName)
18
+ @styles(
19
+ css`
20
+ :host {
21
+ display: block;
22
+ text-align: start;
23
+ }
24
+
25
+ [part=anchor] {
26
+ position: absolute;
27
+ text-align: center;
28
+ min-width: 1.25em;
29
+ right: 100%;
30
+ }
31
+
32
+ [side=left] [part=anchor] {
33
+ right: 100%;
34
+ }
35
+ [side=right] [part=anchor] {
36
+ left: 100%;
37
+ }
38
+
39
+ a {
40
+ color: inherit;
41
+ }
42
+
43
+ h1,
44
+ h2,
45
+ h3,
46
+ h4,
47
+ h5,
48
+ h6 {
49
+ direction: ltr;
50
+ font-size: revert;
51
+ position: relative;
52
+ width: fit-content;
53
+ }
54
+ `,
55
+ )
56
+ class Heading extends GlobalStyle {
57
+ /**
58
+ * The heading level.
59
+ */
60
+ @property()
61
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" = "h1";
62
+
63
+ /**
64
+ * The anchor prefix.
65
+ */
66
+ @property()
67
+ anchor = "#";
68
+
69
+ /**
70
+ * The anchor side.
71
+ */
72
+ @property()
73
+ side: "left" | "right" = "left";
74
+
75
+ protected render(): TemplateResult<1> {
76
+ return html`<a part="root" href="${this.id ? "#" + this.id : nothing}" ${attr(this.observedRecord)}>
77
+ ${
78
+ this.wrapHeading(
79
+ htmlSlot(),
80
+ this.id ? html`<i part="anchor">${this.anchor}</i>` : "",
81
+ )
82
+ }
83
+ </a> `;
84
+ }
85
+
86
+ protected wrapHeading(...children: any[]): TemplateResult<1> {
87
+ switch (this.as) {
88
+ case "h2":
89
+ return html`<h2>${children}</h2>`;
90
+ case "h3":
91
+ return html`<h3>${children}</h3>`;
92
+ case "h4":
93
+ return html`<h4>${children}</h4>`;
94
+ case "h5":
95
+ return html`<h5>${children}</h5>`;
96
+ case "h6":
97
+ return html`<h6>${children}</h6>`;
98
+ default:
99
+ return html`<h1>${children}</h1>`;
100
+ }
101
+ }
102
+ }
103
+
104
+ export default Heading;
105
+ export { Heading };
@@ -1,8 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { part } from "@godown/element/decorators/part.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { attr } from "@godown/element/directives/attr.js";
5
- import { classList } from "@godown/element/directives/class-list.js";
1
+ import { attr, classList, godown, part, styles } from "@godown/element";
6
2
  import { css, html, nothing, type TemplateResult } from "lit";
7
3
  import { property } from "lit/decorators.js";
8
4
 
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
  import { property } from "lit/decorators.js";
7
4
 
@@ -1,4 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
1
+ import { godown } from "@godown/element";
2
2
  import { property } from "lit/decorators.js";
3
3
 
4
4
  import SuperAnchor from "../core/super-anchor.js";
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { isNil } from "@godown/element/tools/lib.js";
1
+ import { attr, godown, isNil, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
  import { property } from "lit/decorators.js";
7
4
 
@@ -1,10 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { part } from "@godown/element/decorators/part.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { attr } from "@godown/element/directives/attr.js";
5
- import { classList } from "@godown/element/directives/class-list.js";
6
- import { joinProperties } from "@godown/element/tools/css.js";
7
- import { isNil } from "@godown/element/tools/lib.js";
1
+ import { attr, classList, godown, isNil, joinProperties, part, styles } from "@godown/element";
8
2
  import { css, html, type TemplateResult } from "lit";
9
3
  import { property, queryAll, state } from "lit/decorators.js";
10
4
 
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { part } from "@godown/element/decorators/part.js";
3
- import { styles } from "@godown/element/decorators/styles.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { godown, htmlSlot, part, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
 
7
4
  import { GlobalStyle, scopePrefix } from "../core/global-style.js";
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
4
- import { RouteTree } from "@godown/element/tools/route-tree.js";
1
+ import { godown, htmlSlot, RouteTree, styles } from "@godown/element";
5
2
  import { css, type PropertyValueMap, type TemplateResult } from "lit";
6
3
  import { property, state } from "lit/decorators.js";
7
4
 
@@ -1,13 +1,7 @@
1
- import type { HandlerEvent } from "@godown/element";
2
- import { godown } from "@godown/element/decorators/godown.js";
3
- import { part } from "@godown/element/decorators/part.js";
4
- import { styles } from "@godown/element/decorators/styles.js";
5
- import { attr } from "@godown/element/directives/attr.js";
6
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, type HandlerEvent, htmlSlot, part, styles } from "@godown/element";
7
2
  import svgCaretDown from "@godown/f7-icon/icons/chevron-down.js";
8
3
  import { css, html, nothing, type TemplateResult } from "lit";
9
4
  import { property, state } from "lit/decorators.js";
10
- import { ifDefined } from "lit/directives/if-defined.js";
11
5
 
12
6
  import Input from "./input.js";
13
7
 
@@ -122,7 +116,7 @@ class Select extends Input {
122
116
  this._renderPrefix(),
123
117
  html`<input
124
118
  part="input"
125
- dir="${ifDefined(this.dir)}"
119
+ dir="${this.dir || nothing}"
126
120
  id="${this.makeId}"
127
121
  .value="${this.text}"
128
122
  type="${this.type}"
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
5
2
  import iconPhoto from "@godown/f7-icon/icons/photo.js";
6
3
  import { css, html, type TemplateResult } from "lit";
7
4
  import { property, state } from "lit/decorators.js";
@@ -1,8 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { classList } from "@godown/element/directives/class-list.js";
5
- import type { HandlerEvent } from "@godown/element/element.js";
1
+ import { attr, classList, godown, type HandlerEvent, styles } from "@godown/element";
6
2
  import { css, html, nothing, type TemplateResult } from "lit";
7
3
  import { property, state } from "lit/decorators.js";
8
4
 
@@ -232,3 +228,4 @@ class Split extends SuperInput {
232
228
  }
233
229
 
234
230
  export default Split;
231
+ export { Split };
@@ -1,6 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
1
+ import { attr, godown, styles } from "@godown/element";
4
2
  import { css, html, type TemplateResult } from "lit";
5
3
  import { property, query } from "lit/decorators.js";
6
4
 
@@ -1,8 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { classList } from "@godown/element/directives/class-list.js";
5
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, classList, godown, htmlSlot, styles } from "@godown/element";
6
2
  import { css, html, type TemplateResult } from "lit";
7
3
  import { property } from "lit/decorators.js";
8
4
 
@@ -1,6 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
1
+ import { attr, godown, styles } from "@godown/element";
4
2
  import fmtime from "fmtime";
5
3
  import { css, html, type PropertyValues, type TemplateResult } from "lit";
6
4
  import { property } from "lit/decorators.js";
@@ -74,7 +72,7 @@ class Time extends GlobalStyle {
74
72
  }
75
73
 
76
74
  startTimeout(): number {
77
- return window.setInterval(() => {
75
+ return setInterval(() => {
78
76
  this.dispatchEvent(new CustomEvent("time", { detail: this.time, composed: true }));
79
77
  this.time = new Date(this.time.getTime() + (this.gap || this.timeout));
80
78
  }, Math.abs(this.timeout));
@@ -1,7 +1,4 @@
1
- import { godown } from "@godown/element/decorators/godown.js";
2
- import { styles } from "@godown/element/decorators/styles.js";
3
- import { attr } from "@godown/element/directives/attr.js";
4
- import { htmlSlot } from "@godown/element/directives/html-slot.js";
1
+ import { attr, godown, htmlSlot, styles } from "@godown/element";
5
2
  import { css, html, type TemplateResult } from "lit";
6
3
  import { property } from "lit/decorators.js";
7
4