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.
- package/badge.d.ts +9 -0
- package/badge.d.ts.map +1 -0
- package/badge.js +2 -0
- package/badge.js.map +1 -0
- package/build/godown+lit.iife.js +59 -0
- package/build/godown+lit.iife.js.map +1 -0
- package/build/godown+lit.js +59 -0
- package/build/godown+lit.js.map +1 -0
- package/build/godown+lit.umd.js +59 -0
- package/build/godown+lit.umd.js.map +1 -0
- package/build/godown.iife.js +47 -0
- package/build/godown.js +48 -0
- package/build/godown.js.map +1 -0
- package/build/godown.umd.js +48 -0
- package/build/godown.umd.js.map +1 -0
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +1 -1
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +1 -1
- package/components/avatar.js.map +1 -1
- package/components/badge.d.ts +23 -0
- package/components/badge.d.ts.map +1 -0
- package/components/badge.js +2 -0
- package/components/badge.js.map +1 -0
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +1 -1
- package/components/breath.js.map +1 -1
- package/components/button.d.ts.map +1 -1
- package/components/button.js +1 -1
- package/components/button.js.map +1 -1
- package/components/card.d.ts.map +1 -1
- package/components/card.js +1 -1
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +1 -1
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts.map +1 -1
- package/components/details.js +1 -1
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +1 -1
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +1 -1
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts.map +1 -1
- package/components/divider.js +1 -1
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +1 -1
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +1 -1
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +1 -1
- package/components/flex.js.map +1 -1
- package/components/form.d.ts.map +1 -1
- package/components/form.js +1 -1
- package/components/form.js.map +1 -1
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +1 -1
- package/components/grid.js.map +1 -1
- package/components/heading.d.ts +29 -0
- package/components/heading.d.ts.map +1 -0
- package/components/heading.js +2 -0
- package/components/heading.js.map +1 -0
- package/components/input.d.ts.map +1 -1
- package/components/input.js +1 -1
- package/components/input.js.map +1 -1
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +1 -1
- package/components/layout.js.map +1 -1
- package/components/link.js +1 -1
- package/components/link.js.map +1 -1
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +1 -1
- package/components/progress.js.map +1 -1
- package/components/range.d.ts.map +1 -1
- package/components/range.js +1 -1
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts.map +1 -1
- package/components/rotate.js +1 -1
- package/components/rotate.js.map +1 -1
- package/components/router.d.ts.map +1 -1
- package/components/router.js +1 -1
- package/components/router.js.map +1 -1
- package/components/select.d.ts +1 -1
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -1
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +1 -1
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +2 -1
- package/components/split.d.ts.map +1 -1
- package/components/split.js +1 -1
- package/components/split.js.map +1 -1
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +1 -1
- package/components/switch.js.map +1 -1
- package/components/text.d.ts.map +1 -1
- package/components/text.js +1 -1
- package/components/text.js.map +1 -1
- package/components/time.d.ts.map +1 -1
- package/components/time.js +1 -1
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +1 -1
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +3 -10
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +1 -1
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts +1 -1
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +1 -1
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.d.ts.map +1 -1
- package/core/super-anchor.js +1 -1
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +1 -1
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +1 -1
- package/core/super-input.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dev/badge.d.ts +9 -0
- package/dev/badge.d.ts.map +1 -0
- package/dev/badge.js +5 -0
- package/dev/badge.js.map +1 -0
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +1 -6
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +1 -5
- package/dev/components/avatar.js.map +1 -1
- package/dev/components/badge.d.ts +23 -0
- package/dev/components/badge.d.ts.map +1 -0
- package/dev/components/badge.js +107 -0
- package/dev/components/badge.js.map +1 -0
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +1 -4
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +4 -12
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +1 -4
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +2 -7
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +2 -4
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +1 -1
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +1 -4
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts.map +1 -1
- package/dev/components/divider.js +1 -2
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +1 -1
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +1 -4
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +1 -6
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +1 -3
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +1 -7
- package/dev/components/grid.js.map +1 -1
- package/dev/components/heading.d.ts +29 -0
- package/dev/components/heading.d.ts.map +1 -0
- package/dev/components/heading.js +103 -0
- package/dev/components/heading.js.map +1 -0
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +1 -5
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +1 -4
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.js +1 -1
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +1 -4
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +1 -7
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +1 -4
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +1 -4
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +1 -1
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +2 -7
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +1 -4
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +2 -1
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +2 -4
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +1 -3
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.d.ts.map +1 -1
- package/dev/components/text.js +1 -5
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +2 -4
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +1 -4
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +3 -10
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +15 -37
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts +1 -1
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +1 -3
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-anchor.d.ts.map +1 -1
- package/dev/core/super-anchor.js +3 -6
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +1 -1
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +1 -3
- package/dev/core/super-input.js.map +1 -1
- package/dev/heading.d.ts +9 -0
- package/dev/heading.d.ts.map +1 -0
- package/dev/heading.js +5 -0
- package/dev/heading.js.map +1 -0
- package/dev/index.d.ts +2 -0
- package/dev/index.d.ts.map +1 -1
- package/dev/index.js +2 -0
- package/dev/index.js.map +1 -1
- package/heading.d.ts +9 -0
- package/heading.d.ts.map +1 -0
- package/heading.js +2 -0
- package/heading.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +3 -2
- package/split.js +1 -1
- package/split.js.map +1 -1
- package/src/badge.ts +13 -0
- package/src/components/alert.ts +1 -6
- package/src/components/avatar.ts +1 -5
- package/src/components/badge.ts +107 -0
- package/src/components/breath.ts +1 -4
- package/src/components/button.ts +4 -12
- package/src/components/card.ts +1 -4
- package/src/components/carousel.ts +2 -7
- package/src/components/details.ts +2 -4
- package/src/components/dialog.ts +1 -5
- package/src/components/divider.ts +1 -2
- package/src/components/dragbox.ts +1 -5
- package/src/components/flex.ts +1 -6
- package/src/components/form.ts +1 -3
- package/src/components/grid.ts +1 -7
- package/src/components/heading.ts +105 -0
- package/src/components/input.ts +1 -5
- package/src/components/layout.ts +1 -4
- package/src/components/link.ts +1 -1
- package/src/components/progress.ts +1 -4
- package/src/components/range.ts +1 -7
- package/src/components/rotate.ts +1 -4
- package/src/components/router.ts +1 -4
- package/src/components/select.ts +2 -8
- package/src/components/skeleton.ts +1 -4
- package/src/components/split.ts +2 -5
- package/src/components/switch.ts +1 -3
- package/src/components/text.ts +1 -5
- package/src/components/time.ts +2 -4
- package/src/components/tooltip.ts +1 -4
- package/src/components/typewriter.ts +13 -34
- package/src/core/global-style.ts +1 -3
- package/src/core/super-anchor.ts +3 -6
- package/src/core/super-input.ts +1 -4
- package/src/heading.ts +13 -0
- package/src/index.ts +2 -0
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
package/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import"./alert.js";import"./avatar.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.
|
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.
|
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
|
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":"
|
1
|
+
{"version":3,"file":"split.js","sources":["src/split.ts"],"sourcesContent":null,"names":["Split","define"],"mappings":"8EAEAA,EAAMC"}
|
package/src/badge.ts
ADDED
package/src/components/alert.ts
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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";
|
package/src/components/avatar.ts
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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 };
|
package/src/components/breath.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/button.ts
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
276
|
-
const
|
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`;
|
package/src/components/card.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
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 =
|
168
|
+
this.intervalID = setInterval(() => {
|
174
169
|
this.next();
|
175
170
|
}, this.autoChange);
|
176
171
|
}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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;
|
package/src/components/dialog.ts
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
import type
|
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
|
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
|
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
|
|
package/src/components/flex.ts
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/form.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/grid.ts
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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 };
|
package/src/components/input.ts
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/layout.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/link.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/range.ts
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/rotate.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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";
|
package/src/components/router.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/select.ts
CHANGED
@@ -1,13 +1,7 @@
|
|
1
|
-
import type
|
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="${
|
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
|
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";
|
package/src/components/split.ts
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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 };
|
package/src/components/switch.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/text.ts
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
|
package/src/components/time.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import { godown } from "@godown/element
|
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
|
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
|
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
|
|