godown 3.0.0-canary.9 → 3.0.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.
- package/README.md +38 -9
- package/alert.d.ts +1 -0
- package/alert.d.ts.map +1 -1
- package/alert.js +1 -5
- package/alert.js.map +1 -1
- package/avatar.d.ts +1 -0
- package/avatar.d.ts.map +1 -1
- package/avatar.js +1 -5
- package/avatar.js.map +1 -1
- 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/breath.js +1 -5
- package/breath.js.map +1 -1
- 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/button.d.ts +1 -0
- package/button.d.ts.map +1 -1
- package/button.js +1 -5
- package/button.js.map +1 -1
- package/card.d.ts +1 -0
- package/card.d.ts.map +1 -1
- package/card.js +1 -5
- package/card.js.map +1 -1
- package/carousel.d.ts +1 -0
- package/carousel.d.ts.map +1 -1
- package/carousel.js +1 -5
- package/carousel.js.map +1 -1
- package/components/alert.d.ts +4 -1
- package/components/alert.d.ts.map +1 -1
- package/components/alert.js +1 -176
- package/components/alert.js.map +1 -1
- package/components/avatar.d.ts +7 -2
- package/components/avatar.d.ts.map +1 -1
- package/components/avatar.js +1 -62
- 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 +6 -4
- package/components/breath.d.ts.map +1 -1
- package/components/breath.js +1 -80
- package/components/breath.js.map +1 -1
- package/components/button.d.ts +8 -5
- package/components/button.d.ts.map +1 -1
- package/components/button.js +1 -168
- package/components/button.js.map +1 -1
- package/components/card.d.ts +3 -1
- package/components/card.d.ts.map +1 -1
- package/components/card.js +1 -48
- package/components/card.js.map +1 -1
- package/components/carousel.d.ts +5 -1
- package/components/carousel.d.ts.map +1 -1
- package/components/carousel.js +1 -113
- package/components/carousel.js.map +1 -1
- package/components/details.d.ts +4 -3
- package/components/details.d.ts.map +1 -1
- package/components/details.js +1 -52
- package/components/details.js.map +1 -1
- package/components/dialog.d.ts +4 -2
- package/components/dialog.d.ts.map +1 -1
- package/components/dialog.js +1 -96
- package/components/dialog.js.map +1 -1
- package/components/divider.d.ts +3 -3
- package/components/divider.d.ts.map +1 -1
- package/components/divider.js +1 -36
- package/components/divider.js.map +1 -1
- package/components/dragbox.d.ts +4 -2
- package/components/dragbox.d.ts.map +1 -1
- package/components/dragbox.js +1 -109
- package/components/dragbox.js.map +1 -1
- package/components/flex.d.ts +3 -1
- package/components/flex.d.ts.map +1 -1
- package/components/flex.js +1 -62
- package/components/flex.js.map +1 -1
- package/components/form.d.ts +3 -1
- package/components/form.d.ts.map +1 -1
- package/components/form.js +1 -75
- package/components/form.js.map +1 -1
- package/components/grid.d.ts +3 -1
- package/components/grid.d.ts.map +1 -1
- package/components/grid.js +1 -56
- 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 +5 -1
- package/components/input.d.ts.map +1 -1
- package/components/input.js +1 -50
- package/components/input.js.map +1 -1
- package/components/layout.d.ts +6 -4
- package/components/layout.d.ts.map +1 -1
- package/components/layout.js +1 -58
- package/components/layout.js.map +1 -1
- package/components/link.d.ts +5 -0
- package/components/link.d.ts.map +1 -1
- package/components/link.js +1 -44
- package/components/link.js.map +1 -1
- package/components/progress.d.ts +3 -1
- package/components/progress.d.ts.map +1 -1
- package/components/progress.js +1 -58
- package/components/progress.js.map +1 -1
- package/components/range.d.ts +10 -4
- package/components/range.d.ts.map +1 -1
- package/components/range.js +1 -266
- package/components/range.js.map +1 -1
- package/components/rotate.d.ts +3 -1
- package/components/rotate.d.ts.map +1 -1
- package/components/rotate.js +1 -56
- package/components/rotate.js.map +1 -1
- package/components/router.d.ts +14 -16
- package/components/router.d.ts.map +1 -1
- package/components/router.js +1 -250
- package/components/router.js.map +1 -1
- package/components/select.d.ts +7 -2
- package/components/select.d.ts.map +1 -1
- package/components/select.js +1 -211
- package/components/select.js.map +1 -1
- package/components/skeleton.d.ts +3 -1
- package/components/skeleton.d.ts.map +1 -1
- package/components/skeleton.js +1 -54
- package/components/skeleton.js.map +1 -1
- package/components/split.d.ts +8 -2
- package/components/split.d.ts.map +1 -1
- package/components/split.js +1 -153
- package/components/split.js.map +1 -1
- package/components/switch.d.ts +5 -2
- package/components/switch.d.ts.map +1 -1
- package/components/switch.js +1 -92
- package/components/switch.js.map +1 -1
- package/components/text.d.ts +3 -1
- package/components/text.d.ts.map +1 -1
- package/components/text.js +1 -43
- package/components/text.js.map +1 -1
- package/components/time.d.ts +4 -2
- package/components/time.d.ts.map +1 -1
- package/components/time.js +1 -77
- package/components/time.js.map +1 -1
- package/components/tooltip.d.ts +4 -2
- package/components/tooltip.d.ts.map +1 -1
- package/components/tooltip.js +1 -80
- package/components/tooltip.js.map +1 -1
- package/components/typewriter.d.ts +6 -12
- package/components/typewriter.d.ts.map +1 -1
- package/components/typewriter.js +1 -129
- package/components/typewriter.js.map +1 -1
- package/core/global-style.d.ts +2 -2
- package/core/global-style.d.ts.map +1 -1
- package/core/global-style.js +1 -52
- package/core/global-style.js.map +1 -1
- package/core/super-anchor.d.ts +2 -1
- package/core/super-anchor.d.ts.map +1 -1
- package/core/super-anchor.js +1 -38
- package/core/super-anchor.js.map +1 -1
- package/core/super-input.d.ts +4 -3
- package/core/super-input.d.ts.map +1 -1
- package/core/super-input.js +1 -111
- package/core/super-input.js.map +1 -1
- package/core/super-openable.d.ts +1 -1
- package/core/super-openable.d.ts.map +1 -1
- package/core/super-openable.js +1 -37
- package/core/super-openable.js.map +1 -1
- package/custom-elements.json +1 -1
- package/details.d.ts +1 -0
- package/details.d.ts.map +1 -1
- package/details.js +1 -5
- package/details.js.map +1 -1
- package/dev/alert.d.ts +1 -0
- package/dev/alert.d.ts.map +1 -1
- package/dev/alert.js +1 -0
- package/dev/alert.js.map +1 -1
- package/dev/avatar.d.ts +1 -0
- package/dev/avatar.d.ts.map +1 -1
- package/dev/avatar.js +1 -0
- package/dev/avatar.js.map +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/button.d.ts +1 -0
- package/dev/button.d.ts.map +1 -1
- package/dev/button.js +1 -0
- package/dev/button.js.map +1 -1
- package/dev/card.d.ts +1 -0
- package/dev/card.d.ts.map +1 -1
- package/dev/card.js +1 -0
- package/dev/card.js.map +1 -1
- package/dev/carousel.d.ts +1 -0
- package/dev/carousel.d.ts.map +1 -1
- package/dev/carousel.js +1 -0
- package/dev/carousel.js.map +1 -1
- package/dev/components/alert.d.ts +4 -1
- package/dev/components/alert.d.ts.map +1 -1
- package/dev/components/alert.js +20 -23
- package/dev/components/alert.js.map +1 -1
- package/dev/components/avatar.d.ts +7 -2
- package/dev/components/avatar.d.ts.map +1 -1
- package/dev/components/avatar.js +22 -10
- 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 +6 -4
- package/dev/components/breath.d.ts.map +1 -1
- package/dev/components/breath.js +29 -26
- package/dev/components/breath.js.map +1 -1
- package/dev/components/button.d.ts +8 -5
- package/dev/components/button.d.ts.map +1 -1
- package/dev/components/button.js +31 -17
- package/dev/components/button.js.map +1 -1
- package/dev/components/card.d.ts +3 -1
- package/dev/components/card.d.ts.map +1 -1
- package/dev/components/card.js +8 -11
- package/dev/components/card.js.map +1 -1
- package/dev/components/carousel.d.ts +5 -1
- package/dev/components/carousel.d.ts.map +1 -1
- package/dev/components/carousel.js +32 -26
- package/dev/components/carousel.js.map +1 -1
- package/dev/components/details.d.ts +4 -3
- package/dev/components/details.d.ts.map +1 -1
- package/dev/components/details.js +22 -27
- package/dev/components/details.js.map +1 -1
- package/dev/components/dialog.d.ts +4 -2
- package/dev/components/dialog.d.ts.map +1 -1
- package/dev/components/dialog.js +17 -16
- package/dev/components/dialog.js.map +1 -1
- package/dev/components/divider.d.ts +3 -3
- package/dev/components/divider.d.ts.map +1 -1
- package/dev/components/divider.js +29 -17
- package/dev/components/divider.js.map +1 -1
- package/dev/components/dragbox.d.ts +4 -2
- package/dev/components/dragbox.d.ts.map +1 -1
- package/dev/components/dragbox.js +11 -4
- package/dev/components/dragbox.js.map +1 -1
- package/dev/components/flex.d.ts +3 -1
- package/dev/components/flex.d.ts.map +1 -1
- package/dev/components/flex.js +17 -9
- package/dev/components/flex.js.map +1 -1
- package/dev/components/form.d.ts +3 -1
- package/dev/components/form.d.ts.map +1 -1
- package/dev/components/form.js +2 -3
- package/dev/components/form.js.map +1 -1
- package/dev/components/grid.d.ts +3 -1
- package/dev/components/grid.d.ts.map +1 -1
- package/dev/components/grid.js +17 -10
- 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 +5 -1
- package/dev/components/input.d.ts.map +1 -1
- package/dev/components/input.js +17 -17
- package/dev/components/input.js.map +1 -1
- package/dev/components/layout.d.ts +6 -4
- package/dev/components/layout.d.ts.map +1 -1
- package/dev/components/layout.js +23 -22
- package/dev/components/layout.js.map +1 -1
- package/dev/components/link.d.ts +5 -0
- package/dev/components/link.d.ts.map +1 -1
- package/dev/components/link.js +12 -2
- package/dev/components/link.js.map +1 -1
- package/dev/components/progress.d.ts +3 -1
- package/dev/components/progress.d.ts.map +1 -1
- package/dev/components/progress.js +41 -38
- package/dev/components/progress.js.map +1 -1
- package/dev/components/range.d.ts +10 -4
- package/dev/components/range.d.ts.map +1 -1
- package/dev/components/range.js +53 -51
- package/dev/components/range.js.map +1 -1
- package/dev/components/rotate.d.ts +3 -1
- package/dev/components/rotate.d.ts.map +1 -1
- package/dev/components/rotate.js +3 -5
- package/dev/components/rotate.js.map +1 -1
- package/dev/components/router.d.ts +14 -16
- package/dev/components/router.d.ts.map +1 -1
- package/dev/components/router.js +14 -27
- package/dev/components/router.js.map +1 -1
- package/dev/components/select.d.ts +7 -2
- package/dev/components/select.d.ts.map +1 -1
- package/dev/components/select.js +44 -31
- package/dev/components/select.js.map +1 -1
- package/dev/components/skeleton.d.ts +3 -1
- package/dev/components/skeleton.d.ts.map +1 -1
- package/dev/components/skeleton.js +9 -9
- package/dev/components/skeleton.js.map +1 -1
- package/dev/components/split.d.ts +8 -2
- package/dev/components/split.d.ts.map +1 -1
- package/dev/components/split.js +32 -24
- package/dev/components/split.js.map +1 -1
- package/dev/components/switch.d.ts +5 -2
- package/dev/components/switch.d.ts.map +1 -1
- package/dev/components/switch.js +22 -25
- package/dev/components/switch.js.map +1 -1
- package/dev/components/text.d.ts +3 -1
- package/dev/components/text.d.ts.map +1 -1
- package/dev/components/text.js +12 -15
- package/dev/components/text.js.map +1 -1
- package/dev/components/time.d.ts +4 -2
- package/dev/components/time.d.ts.map +1 -1
- package/dev/components/time.js +7 -5
- package/dev/components/time.js.map +1 -1
- package/dev/components/tooltip.d.ts +4 -2
- package/dev/components/tooltip.d.ts.map +1 -1
- package/dev/components/tooltip.js +37 -27
- package/dev/components/tooltip.js.map +1 -1
- package/dev/components/typewriter.d.ts +6 -12
- package/dev/components/typewriter.d.ts.map +1 -1
- package/dev/components/typewriter.js +22 -36
- package/dev/components/typewriter.js.map +1 -1
- package/dev/core/global-style.d.ts +2 -2
- package/dev/core/global-style.d.ts.map +1 -1
- package/dev/core/global-style.js +11 -6
- package/dev/core/global-style.js.map +1 -1
- package/dev/core/super-anchor.d.ts +2 -1
- package/dev/core/super-anchor.d.ts.map +1 -1
- package/dev/core/super-anchor.js +25 -23
- package/dev/core/super-anchor.js.map +1 -1
- package/dev/core/super-input.d.ts +4 -3
- package/dev/core/super-input.d.ts.map +1 -1
- package/dev/core/super-input.js +43 -36
- package/dev/core/super-input.js.map +1 -1
- package/dev/core/super-openable.d.ts +1 -1
- package/dev/core/super-openable.d.ts.map +1 -1
- package/dev/core/super-openable.js +2 -2
- package/dev/core/super-openable.js.map +1 -1
- package/dev/details.d.ts +1 -0
- package/dev/details.d.ts.map +1 -1
- package/dev/details.js +1 -0
- package/dev/details.js.map +1 -1
- package/dev/dialog.d.ts +1 -0
- package/dev/dialog.d.ts.map +1 -1
- package/dev/dialog.js +1 -0
- package/dev/dialog.js.map +1 -1
- package/dev/divider.d.ts +1 -0
- package/dev/divider.d.ts.map +1 -1
- package/dev/divider.js +1 -0
- package/dev/divider.js.map +1 -1
- package/dev/dragbox.d.ts +1 -0
- package/dev/dragbox.d.ts.map +1 -1
- package/dev/dragbox.js +1 -0
- package/dev/dragbox.js.map +1 -1
- package/dev/flex.d.ts +1 -0
- package/dev/flex.d.ts.map +1 -1
- package/dev/flex.js +1 -0
- package/dev/flex.js.map +1 -1
- package/dev/form.d.ts +1 -0
- package/dev/form.d.ts.map +1 -1
- package/dev/form.js +1 -0
- package/dev/form.js.map +1 -1
- package/dev/grid.d.ts +1 -0
- package/dev/grid.d.ts.map +1 -1
- package/dev/grid.js +1 -0
- package/dev/grid.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/dev/layout.d.ts.map +1 -1
- package/dev/progress.d.ts.map +1 -1
- package/dev/router.d.ts.map +1 -1
- package/dev/split.d.ts +1 -1
- package/dev/split.d.ts.map +1 -1
- package/dev/typewriter.d.ts +1 -0
- package/dev/typewriter.d.ts.map +1 -1
- package/dev/typewriter.js +1 -0
- package/dev/typewriter.js.map +1 -1
- package/dialog.d.ts +1 -0
- package/dialog.d.ts.map +1 -1
- package/dialog.js +1 -5
- package/dialog.js.map +1 -1
- package/divider.d.ts +1 -0
- package/divider.d.ts.map +1 -1
- package/divider.js +1 -5
- package/divider.js.map +1 -1
- package/dragbox.d.ts +1 -0
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +1 -5
- package/dragbox.js.map +1 -1
- package/flex.d.ts +1 -0
- package/flex.d.ts.map +1 -1
- package/flex.js +1 -5
- package/flex.js.map +1 -1
- package/form.d.ts +1 -0
- package/form.d.ts.map +1 -1
- package/form.js +1 -5
- package/form.js.map +1 -1
- package/grid.d.ts +1 -0
- package/grid.d.ts.map +1 -1
- package/grid.js +1 -5
- package/grid.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 -56
- package/index.js.map +1 -1
- package/input.js +1 -5
- package/input.js.map +1 -1
- package/layout.d.ts.map +1 -1
- package/layout.js +1 -5
- package/layout.js.map +1 -1
- package/link.js +1 -5
- package/link.js.map +1 -1
- package/package.json +11 -6
- package/progress.d.ts.map +1 -1
- package/progress.js +1 -5
- package/progress.js.map +1 -1
- package/range.js +1 -5
- package/range.js.map +1 -1
- package/rotate.js +1 -5
- package/rotate.js.map +1 -1
- package/router.d.ts.map +1 -1
- package/router.js +1 -5
- package/router.js.map +1 -1
- package/select.js +1 -5
- package/select.js.map +1 -1
- package/skeleton.js +1 -5
- package/skeleton.js.map +1 -1
- package/split.d.ts +1 -1
- package/split.d.ts.map +1 -1
- package/split.js +1 -5
- package/split.js.map +1 -1
- package/src/alert.ts +2 -0
- package/src/avatar.ts +2 -0
- package/src/badge.ts +13 -0
- package/src/button.ts +2 -0
- package/src/card.ts +2 -0
- package/src/carousel.ts +2 -0
- package/src/components/alert.ts +26 -29
- package/src/components/avatar.ts +26 -14
- package/src/components/badge.ts +107 -0
- package/src/components/breath.ts +36 -31
- package/src/components/button.ts +31 -32
- package/src/components/card.ts +9 -12
- package/src/components/carousel.ts +41 -34
- package/src/components/details.ts +24 -29
- package/src/components/dialog.ts +24 -25
- package/src/components/divider.ts +29 -17
- package/src/components/dragbox.ts +18 -13
- package/src/components/flex.ts +20 -10
- package/src/components/form.ts +6 -7
- package/src/components/grid.ts +20 -11
- package/src/components/heading.ts +105 -0
- package/src/components/input.ts +20 -20
- package/src/components/layout.ts +20 -23
- package/src/components/link.ts +12 -3
- package/src/components/progress.ts +46 -41
- package/src/components/range.ts +69 -76
- package/src/components/rotate.ts +11 -10
- package/src/components/router.ts +42 -40
- package/src/components/select.ts +57 -45
- package/src/components/skeleton.ts +11 -11
- package/src/components/split.ts +45 -35
- package/src/components/switch.ts +27 -30
- package/src/components/text.ts +14 -21
- package/src/components/time.ts +14 -12
- package/src/components/tooltip.ts +36 -32
- package/src/components/typewriter.ts +32 -45
- package/src/core/global-style.ts +25 -11
- package/src/core/super-anchor.ts +30 -26
- package/src/core/super-input.ts +53 -53
- package/src/core/super-openable.ts +7 -7
- package/src/details.ts +2 -0
- package/src/dialog.ts +2 -0
- package/src/divider.ts +2 -0
- package/src/dragbox.ts +2 -0
- package/src/flex.ts +2 -0
- package/src/form.ts +2 -0
- package/src/grid.ts +2 -0
- package/src/heading.ts +13 -0
- package/src/index.ts +2 -0
- package/src/layout.ts +1 -0
- package/src/progress.ts +1 -0
- package/src/router.ts +1 -0
- package/src/split.ts +1 -1
- package/src/typewriter.ts +2 -0
- package/switch.js +1 -5
- package/switch.js.map +1 -1
- package/text.js +1 -5
- package/text.js.map +1 -1
- package/time.js +1 -5
- package/time.js.map +1 -1
- package/tooltip.js +1 -5
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +1 -0
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +1 -5
- package/typewriter.js.map +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
package/progress.js
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
Progress.define();
|
4
|
-
|
5
|
-
export { Progress as default };
|
1
|
+
import o from"./components/progress.js";export{Progress}from"./components/progress.js";o.define();export{o as default};
|
6
2
|
//# sourceMappingURL=progress.js.map
|
package/progress.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.js","sources":["src/progress.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.js","sources":["src/progress.ts"],"sourcesContent":null,"names":["Progress","define"],"mappings":"uFAEAA,EAASC"}
|
package/range.js
CHANGED
package/range.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range.js","sources":["src/range.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"range.js","sources":["src/range.ts"],"sourcesContent":null,"names":["Range","define"],"mappings":"8EAEAA,EAAMC"}
|
package/rotate.js
CHANGED
package/rotate.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rotate.js","sources":["src/rotate.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"rotate.js","sources":["src/rotate.ts"],"sourcesContent":null,"names":["Rotate","define"],"mappings":"iFAEAA,EAAOC"}
|
package/router.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["src/router.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAI5C,eAAe,MAAM,CAAC;AAEtB,cAAc,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["src/router.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAI5C,eAAe,MAAM,CAAC;AAEtB,cAAc,wBAAwB,CAAC;AAEvC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
|
package/router.js
CHANGED
package/router.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"router.js","sources":["src/router.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"router.js","sources":["src/router.ts"],"sourcesContent":null,"names":["Router","define"],"mappings":"iFAEAA,EAAOC"}
|
package/select.js
CHANGED
package/select.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select.js","sources":["src/select.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"select.js","sources":["src/select.ts"],"sourcesContent":null,"names":["Select","define"],"mappings":"iFAEAA,EAAOC"}
|
package/skeleton.js
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
Skeleton.define();
|
4
|
-
|
5
|
-
export { Skeleton as default };
|
1
|
+
import e from"./components/skeleton.js";export{Skeleton}from"./components/skeleton.js";e.define();export{e as default};
|
6
2
|
//# sourceMappingURL=skeleton.js.map
|
package/skeleton.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skeleton.js","sources":["src/skeleton.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"skeleton.js","sources":["src/skeleton.ts"],"sourcesContent":null,"names":["Skeleton","define"],"mappings":"uFAEAA,EAASC"}
|
package/split.d.ts
CHANGED
package/split.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["src/split.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAI1C,eAAe,KAAK,CAAC;AAErB,cAAc,uBAAuB,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["src/split.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAI1C,eAAe,KAAK,CAAC;AAErB,cAAc,uBAAuB,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,KAAK,CAAC;KACvB;CACF"}
|
package/split.js
CHANGED
package/split.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"split.js","sources":["src/split.ts"],"sourcesContent":null,"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"split.js","sources":["src/split.ts"],"sourcesContent":null,"names":["Split","define"],"mappings":"8EAEAA,EAAMC"}
|
package/src/alert.ts
CHANGED
package/src/avatar.ts
CHANGED
package/src/badge.ts
ADDED
package/src/button.ts
CHANGED
package/src/card.ts
CHANGED
package/src/carousel.ts
CHANGED
package/src/components/alert.ts
CHANGED
@@ -1,8 +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 { htmlStyle } from "@godown/element/directives/html-style.js";
|
5
|
-
import { constructCSSObject, toVar } from "@godown/element/tools/css.js";
|
1
|
+
import { attr, constructCSSObject, godown, htmlSlot, htmlStyle, styles, toVar } from "@godown/element";
|
6
2
|
import iconCheckAltCircle from "@godown/f7-icon/icons/checkmark-alt-circle.js";
|
7
3
|
import iconExclamationCircle from "@godown/f7-icon/icons/exclamationmark-circle.js";
|
8
4
|
import iconInfoCircle from "@godown/f7-icon/icons/info-circle.js";
|
@@ -11,7 +7,7 @@ import iconQuestionCircle from "@godown/f7-icon/icons/question-circle.js";
|
|
11
7
|
import iconSlashCircle from "@godown/f7-icon/icons/slash-circle.js";
|
12
8
|
import iconXmark from "@godown/f7-icon/icons/xmark.js";
|
13
9
|
import iconXmarkCircle from "@godown/f7-icon/icons/xmark-circle.js";
|
14
|
-
import { css, html } from "lit";
|
10
|
+
import { css, html, type TemplateResult } from "lit";
|
15
11
|
import { property } from "lit/decorators.js";
|
16
12
|
|
17
13
|
import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
|
@@ -40,7 +36,7 @@ const darkStyles = constructCSSObject(
|
|
40
36
|
white: [cssGlobalVars._colors.lightgray[2], cssGlobalVars._colors.darkgray[7]],
|
41
37
|
black: [cssGlobalVars._colors.darkgray[8], cssGlobalVars._colors.lightgray[5]],
|
42
38
|
},
|
43
|
-
() =>
|
39
|
+
() => ":host",
|
44
40
|
(prop) => toVar(prop),
|
45
41
|
);
|
46
42
|
|
@@ -63,7 +59,7 @@ const lightStyles = constructCSSObject(
|
|
63
59
|
white: [cssGlobalVars._colors.lightgray[0], cssGlobalVars._colors.darkgray[0]],
|
64
60
|
black: [cssGlobalVars._colors.darkgray[7], cssGlobalVars._colors.lightgray[3]],
|
65
61
|
},
|
66
|
-
() =>
|
62
|
+
() => ":host",
|
67
63
|
(prop) => toVar(prop),
|
68
64
|
);
|
69
65
|
|
@@ -110,12 +106,14 @@ const calls = {
|
|
110
106
|
* @slot - Alert content.
|
111
107
|
* @slot title - Alert title.
|
112
108
|
* @slot icon - Alert icon.
|
109
|
+
* @fires close - Fires when the alert is closed.
|
113
110
|
* @category feedback
|
114
111
|
*/
|
115
112
|
@godown(protoName)
|
116
113
|
@styles(
|
117
114
|
css`
|
118
|
-
:host
|
115
|
+
:host,
|
116
|
+
:where(:host([contents]) [part=root]) {
|
119
117
|
border-radius: var(${cssScope}--border-radius);
|
120
118
|
${cssScope}--border-radius: .25em;
|
121
119
|
${cssScope}--border-width: .075em;
|
@@ -125,7 +123,7 @@ const calls = {
|
|
125
123
|
width: 100%;
|
126
124
|
}
|
127
125
|
|
128
|
-
[part=
|
126
|
+
[part=root] {
|
129
127
|
--color: var(${cssScope}--color);
|
130
128
|
color: var(--color);
|
131
129
|
width: 100%;
|
@@ -138,7 +136,7 @@ const calls = {
|
|
138
136
|
background: var(${cssScope}--background);
|
139
137
|
}
|
140
138
|
|
141
|
-
[variant=
|
139
|
+
[variant=blockquote] {
|
142
140
|
border-radius: 0;
|
143
141
|
border-left: var(${cssScope}--blockquote-width) solid var(--color);
|
144
142
|
border-bottom: none;
|
@@ -147,34 +145,34 @@ const calls = {
|
|
147
145
|
background: transparent;
|
148
146
|
}
|
149
147
|
|
150
|
-
[part=
|
148
|
+
[part=content] {
|
151
149
|
color: var(--color);
|
152
150
|
}
|
153
151
|
|
154
|
-
[part=
|
152
|
+
[part=root] {
|
155
153
|
display: grid;
|
156
154
|
align-items: center;
|
157
155
|
grid-template-columns: auto 1fr auto;
|
158
156
|
grid-template-rows: auto 1fr;
|
159
157
|
}
|
160
158
|
|
161
|
-
[part=
|
159
|
+
[part=title] {
|
162
160
|
line-height: 2em;
|
163
161
|
}
|
164
162
|
|
165
|
-
[part=
|
163
|
+
[part=icon] {
|
166
164
|
display: inline-grid;
|
167
165
|
align-items: center;
|
168
166
|
height: 2em;
|
169
167
|
}
|
170
168
|
|
171
|
-
[part=
|
169
|
+
[part=icon] svg {
|
172
170
|
margin-right: .5em;
|
173
171
|
width: 1.25em;
|
174
172
|
height: 1.25em;
|
175
173
|
}
|
176
174
|
|
177
|
-
[part=
|
175
|
+
[part=content] {
|
178
176
|
grid-row: span 2 / span 2;
|
179
177
|
line-height: 1.5em;
|
180
178
|
}
|
@@ -240,32 +238,30 @@ class Alert extends GlobalStyle {
|
|
240
238
|
@property()
|
241
239
|
variant: "blockquote" | "dark" | "light" = "dark";
|
242
240
|
|
243
|
-
protected render() {
|
241
|
+
protected render(): TemplateResult<1> {
|
244
242
|
const color = calls[this.call]?.color || this.color;
|
245
243
|
const icon = this.call ? calls[this.call].icon() : htmlSlot("icon");
|
246
|
-
return
|
247
|
-
html`<div part="root" variant="${this.variant}">
|
244
|
+
return html`<div part="root" ${attr(this.observedRecord)}>
|
248
245
|
<div part="icon">${icon}</div>
|
249
246
|
<div part="content">
|
250
247
|
<strong part="title">${this.title || htmlSlot("title")}</strong>
|
251
248
|
${this.content || htmlSlot()}
|
252
249
|
</div>
|
253
250
|
${
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
];
|
251
|
+
!this.hideClose && this.variant !== "blockquote"
|
252
|
+
? html`<div part="close" tabindex="0" @click="${this.close}">${iconXmark()}</div>`
|
253
|
+
: ""
|
254
|
+
}
|
255
|
+
${htmlStyle(this.variant === "light" ? lightStyles[color] : darkStyles[color])}
|
256
|
+
</div>`;
|
261
257
|
}
|
262
258
|
|
263
|
-
close() {
|
259
|
+
close(): void {
|
264
260
|
this.remove();
|
265
261
|
this.dispatchEvent(new CustomEvent("close", { bubbles: true, composed: true }));
|
266
262
|
}
|
267
263
|
|
268
|
-
protected firstUpdated() {
|
264
|
+
protected firstUpdated(): void {
|
269
265
|
if (this.autoclose) {
|
270
266
|
setTimeout(() => this.close(), this.autoclose);
|
271
267
|
}
|
@@ -280,3 +276,4 @@ class Alert extends GlobalStyle {
|
|
280
276
|
}
|
281
277
|
|
282
278
|
export default Alert;
|
279
|
+
export { Alert };
|
package/src/components/avatar.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { godown, styles } from "@godown/element
|
2
|
-
import {
|
3
|
-
import { css, html } from "lit";
|
1
|
+
import { attr, godown, htmlSlot, omit, styles } from "@godown/element";
|
2
|
+
import { css, html, type TemplateResult } from "lit";
|
4
3
|
import { property } from "lit/decorators.js";
|
5
4
|
|
6
5
|
import { GlobalStyle, scopePrefix } from "../core/global-style.js";
|
@@ -24,27 +23,36 @@ const cssScope = scopePrefix(protoName);
|
|
24
23
|
${cssScope}--size: 2em;
|
25
24
|
width: var(${cssScope}--size);
|
26
25
|
height: var(${cssScope}--size);
|
27
|
-
display: inline-block;
|
28
26
|
vertical-align: bottom;
|
29
27
|
}
|
30
28
|
|
31
|
-
:host
|
29
|
+
:host,
|
30
|
+
[part=root] {
|
31
|
+
display: inline-flex;
|
32
|
+
}
|
33
|
+
|
34
|
+
:host([contents]) [part=root] {
|
35
|
+
display: inline-flex;
|
36
|
+
width: inherit;
|
37
|
+
height: inherit;
|
38
|
+
}
|
39
|
+
|
40
|
+
:host([round]) {
|
32
41
|
border-radius:50%;
|
33
42
|
}
|
34
43
|
|
35
|
-
[part=
|
44
|
+
[part=image] {
|
36
45
|
width: 100%;
|
37
46
|
height: 100%;
|
38
47
|
object-fit: cover;
|
39
48
|
}
|
40
49
|
|
41
|
-
[part=
|
50
|
+
[part=root] {
|
42
51
|
overflow: hidden;
|
43
52
|
position: relative;
|
44
53
|
border-radius: inherit;
|
45
54
|
width: 100%;
|
46
55
|
height: 100%;
|
47
|
-
display: flex;
|
48
56
|
align-items: center;
|
49
57
|
justify-content: center;
|
50
58
|
}
|
@@ -58,21 +66,24 @@ class Avatar extends GlobalStyle {
|
|
58
66
|
src: string | undefined | null;
|
59
67
|
|
60
68
|
/**
|
61
|
-
* If the image is not available,
|
69
|
+
* If the image is not available, display name (call {@linkcode Avatar.format}).
|
62
70
|
*/
|
63
71
|
@property()
|
64
72
|
name = "";
|
65
73
|
|
74
|
+
/**
|
75
|
+
* Display rounded.
|
76
|
+
*/
|
66
77
|
@property({ type: Boolean })
|
67
78
|
round = false;
|
68
79
|
|
69
|
-
protected render() {
|
70
|
-
return html`<div part="root">${this._renderAvatar()}</div>`;
|
80
|
+
protected render(): TemplateResult<1> {
|
81
|
+
return html`<div part="root" ${attr(omit(this.observedRecord, "src"))}>${this._renderAvatar()}</div>`;
|
71
82
|
}
|
72
83
|
|
73
84
|
private _renderAvatar() {
|
74
85
|
if (this.src) {
|
75
|
-
return html`<img part="image" src="${this.src}" @error=${this._handleError} alt="${this.name}"
|
86
|
+
return html`<img part="image" src="${this.src}" @error=${this._handleError} alt="${this.name}" />`;
|
76
87
|
}
|
77
88
|
if (this.name) {
|
78
89
|
return html`<span part="name">${this.format()}</span>`;
|
@@ -80,13 +91,14 @@ class Avatar extends GlobalStyle {
|
|
80
91
|
return htmlSlot();
|
81
92
|
}
|
82
93
|
|
83
|
-
format() {
|
94
|
+
format(): string {
|
84
95
|
return this.name;
|
85
96
|
}
|
86
97
|
|
87
|
-
_handleError() {
|
98
|
+
_handleError(): void {
|
88
99
|
this.src = undefined;
|
89
100
|
}
|
90
101
|
}
|
91
102
|
|
92
103
|
export default Avatar;
|
104
|
+
export { Avatar };
|
@@ -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,5 @@
|
|
1
|
-
import { godown } from "@godown/element
|
2
|
-
import {
|
3
|
-
import { htmlStyle } from "@godown/element/directives/html-style.js";
|
4
|
-
import { css, html } from "lit";
|
1
|
+
import { attr, godown, htmlStyle, styles } from "@godown/element";
|
2
|
+
import { css, html, type TemplateResult } from "lit";
|
5
3
|
import { property } from "lit/decorators.js";
|
6
4
|
|
7
5
|
import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
|
@@ -42,15 +40,22 @@ const cssScope = scopePrefix(defineName);
|
|
42
40
|
`,
|
43
41
|
css`
|
44
42
|
:host {
|
45
|
-
display: flex;
|
46
43
|
margin: auto;
|
47
|
-
width: -moz-fit-content;
|
48
44
|
width: fit-content;
|
49
45
|
font-size: 2em;
|
50
46
|
align-items: center;
|
51
47
|
direction: ltr;
|
52
48
|
}
|
53
49
|
|
50
|
+
:host,
|
51
|
+
:host([contents]) [part=root] {
|
52
|
+
display: flex;
|
53
|
+
}
|
54
|
+
|
55
|
+
[part=root] {
|
56
|
+
display: contents;
|
57
|
+
}
|
58
|
+
|
54
59
|
::selection {
|
55
60
|
background: none;
|
56
61
|
}
|
@@ -69,14 +74,16 @@ const cssScope = scopePrefix(defineName);
|
|
69
74
|
box-sizing: border-box;
|
70
75
|
display: inline-block;
|
71
76
|
animation-iteration-count: infinite;
|
72
|
-
|
77
|
+
color: transparent;
|
73
78
|
-webkit-background-clip: text !important;
|
74
79
|
background-clip: text !important;
|
75
80
|
}
|
81
|
+
|
76
82
|
.colorful {
|
77
83
|
opacity: 0;
|
78
84
|
animation-name: colorfulN;
|
79
85
|
}
|
86
|
+
|
80
87
|
.nocolor {
|
81
88
|
position: absolute;
|
82
89
|
top: 0;
|
@@ -99,15 +106,14 @@ class Breath extends GlobalStyle {
|
|
99
106
|
@property()
|
100
107
|
duration: string;
|
101
108
|
|
102
|
-
protected render() {
|
109
|
+
protected render(): TemplateResult<1> {
|
103
110
|
const texts = this.getTexts();
|
104
|
-
return
|
105
|
-
|
106
|
-
|
107
|
-
];
|
111
|
+
return html`<div part="root" ${attr(this.observedRecord)}>
|
112
|
+
${[texts.map(this.renderText), htmlStyle(this._computeStyle(texts.length))]}
|
113
|
+
</div>`;
|
108
114
|
}
|
109
115
|
|
110
|
-
protected renderText(text: string) {
|
116
|
+
protected renderText(text: string): TemplateResult<1> {
|
111
117
|
return html`<span class="rel">
|
112
118
|
<span class="nocolor">${text}</span>
|
113
119
|
<span class="colorful">${text}</span>
|
@@ -118,36 +124,35 @@ class Breath extends GlobalStyle {
|
|
118
124
|
return Array.isArray(this.text) ? this.text : (this.text || this.textContent).split(/\s+/).filter((x) => x);
|
119
125
|
}
|
120
126
|
|
121
|
-
protected
|
127
|
+
protected _computeStyle(len: number): string {
|
122
128
|
const gap = 100 / 2 / len;
|
123
129
|
const duration = this.parseDuration() || len * 2 + 2;
|
124
|
-
|
130
|
+
let style1 = "";
|
131
|
+
for (let number = 1; number <= len; number++) {
|
132
|
+
const delay = -duration / len * (len - number + 1);
|
133
|
+
const defaultNumber = ((number - 1) % 3) + 1;
|
134
|
+
style1 +=
|
135
|
+
`.rel:nth-child(${number}) .colorful{animation-delay:${delay}s;background:var(${cssScope}--${number},var(${cssScope}--${defaultNumber}));}`;
|
136
|
+
}
|
125
137
|
return (
|
126
|
-
`.colorful{animation-duration:${duration}s;}
|
127
|
-
|
128
|
-
|
129
|
-
let style1 = "";
|
130
|
-
for (let number = 1; number <= len; number++) {
|
131
|
-
const delay = -duration / len * (len - number + 1);
|
132
|
-
const defaultNumber = ((number - 1) % 3) + 1;
|
133
|
-
style1 +=
|
134
|
-
`.rel:nth-child(${number}) .colorful{animation-delay:${delay}s;background:var(${cssScope}--${number},var(${cssScope}--${defaultNumber}));}`;
|
135
|
-
}
|
136
|
-
return style1;
|
137
|
-
})()
|
138
|
+
`.colorful{animation-duration:${duration}s;}@keyframes colorfulN{0%,${gap * 3}%{opacity:0;}${gap}%,${
|
139
|
+
gap * 2
|
140
|
+
}%{opacity:1;}}${style1}`
|
138
141
|
);
|
139
142
|
}
|
140
143
|
|
141
|
-
protected parseDuration() {
|
144
|
+
protected parseDuration(): number | undefined {
|
142
145
|
const { duration } = this;
|
143
146
|
if (duration) {
|
144
147
|
if (duration.endsWith("s")) {
|
145
|
-
return parseFloat(duration.slice(0, -1));
|
146
|
-
}
|
147
|
-
|
148
|
+
return Number.parseFloat(duration.slice(0, -1));
|
149
|
+
}
|
150
|
+
if (duration.endsWith("ms")) {
|
151
|
+
return Number.parseFloat(duration.slice(0, -2)) / 1000;
|
148
152
|
}
|
149
153
|
}
|
150
154
|
}
|
151
155
|
}
|
152
156
|
|
153
157
|
export default Breath;
|
158
|
+
export { Breath };
|