godown 2.7.7 → 3.0.0-canary.1
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 +44 -80
- package/alert.d.ts +2 -3
- package/alert.d.ts.map +1 -1
- package/alert.js +5 -4
- package/alert.js.map +1 -1
- package/avatar.d.ts +2 -3
- package/avatar.d.ts.map +1 -1
- package/avatar.js +5 -4
- package/avatar.js.map +1 -1
- package/breath.d.ts +9 -0
- package/breath.d.ts.map +1 -0
- package/breath.js +6 -0
- package/breath.js.map +1 -0
- package/button.d.ts +2 -3
- package/button.d.ts.map +1 -1
- package/button.js +5 -4
- package/button.js.map +1 -1
- package/card.d.ts +2 -3
- package/card.d.ts.map +1 -1
- package/card.js +5 -4
- package/card.js.map +1 -1
- package/carousel.d.ts +2 -3
- package/carousel.d.ts.map +1 -1
- package/carousel.js +5 -4
- package/carousel.js.map +1 -1
- package/components/alert.d.ts +50 -0
- package/components/alert.d.ts.map +1 -0
- package/components/alert.js +167 -0
- package/components/alert.js.map +1 -0
- package/components/avatar.d.ts +26 -0
- package/components/avatar.d.ts.map +1 -0
- package/components/avatar.js +62 -0
- package/components/avatar.js.map +1 -0
- package/components/breath.d.ts +34 -0
- package/components/breath.d.ts.map +1 -0
- package/components/breath.js +80 -0
- package/components/breath.js.map +1 -0
- package/{web-components/button → components}/button.d.ts +6 -5
- package/components/button.d.ts.map +1 -0
- package/components/button.js +167 -0
- package/components/button.js.map +1 -0
- package/components/card.d.ts +20 -0
- package/components/card.d.ts.map +1 -0
- package/components/card.js +55 -0
- package/components/card.js.map +1 -0
- package/components/carousel.d.ts +40 -0
- package/components/carousel.d.ts.map +1 -0
- package/components/carousel.js +113 -0
- package/components/carousel.js.map +1 -0
- package/{web-components/details → components}/details.d.ts +5 -3
- package/components/details.d.ts.map +1 -0
- package/components/details.js +50 -0
- package/components/details.js.map +1 -0
- package/components/dialog.d.ts +33 -0
- package/components/dialog.d.ts.map +1 -0
- package/components/dialog.js +92 -0
- package/components/dialog.js.map +1 -0
- package/components/divider.d.ts +17 -0
- package/components/divider.d.ts.map +1 -0
- package/components/divider.js +37 -0
- package/components/divider.js.map +1 -0
- package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
- package/components/dragbox.d.ts.map +1 -0
- package/components/dragbox.js +110 -0
- package/components/dragbox.js.map +1 -0
- package/components/flex.d.ts +31 -0
- package/components/flex.d.ts.map +1 -0
- package/components/flex.js +55 -0
- package/components/flex.js.map +1 -0
- package/{web-components/form → components}/form.d.ts +4 -2
- package/components/form.d.ts.map +1 -0
- package/components/form.js +78 -0
- package/components/form.js.map +1 -0
- package/components/grid.d.ts +31 -0
- package/components/grid.d.ts.map +1 -0
- package/components/grid.js +56 -0
- package/components/grid.js.map +1 -0
- package/components/input.d.ts +20 -0
- package/components/input.d.ts.map +1 -0
- package/components/input.js +54 -0
- package/components/input.js.map +1 -0
- package/components/layout.d.ts +29 -0
- package/components/layout.d.ts.map +1 -0
- package/components/layout.js +48 -0
- package/components/layout.js.map +1 -0
- package/components/link.d.ts +20 -0
- package/components/link.d.ts.map +1 -0
- package/components/link.js +43 -0
- package/components/link.js.map +1 -0
- package/{web-components/progress → components}/progress.d.ts +5 -3
- package/components/progress.d.ts.map +1 -0
- package/components/progress.js +68 -0
- package/components/progress.js.map +1 -0
- package/components/range.d.ts +60 -0
- package/components/range.d.ts.map +1 -0
- package/components/range.js +193 -0
- package/components/range.js.map +1 -0
- package/{web-components/wrapper → components}/rotate.d.ts +4 -8
- package/components/rotate.d.ts.map +1 -0
- package/components/rotate.js +57 -0
- package/components/rotate.js.map +1 -0
- package/components/router.d.ts +121 -0
- package/components/router.d.ts.map +1 -0
- package/components/router.js +251 -0
- package/components/router.js.map +1 -0
- package/components/select.d.ts +50 -0
- package/components/select.d.ts.map +1 -0
- package/components/select.js +211 -0
- package/components/select.js.map +1 -0
- package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
- package/components/skeleton.d.ts.map +1 -0
- package/components/skeleton.js +56 -0
- package/components/skeleton.js.map +1 -0
- package/components/split.d.ts +32 -0
- package/components/split.d.ts.map +1 -0
- package/components/split.js +121 -0
- package/components/split.js.map +1 -0
- package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
- package/components/switch.d.ts.map +1 -0
- package/components/switch.js +93 -0
- package/components/switch.js.map +1 -0
- package/{web-components/text → components}/text.d.ts +5 -3
- package/components/text.d.ts.map +1 -0
- package/components/text.js +44 -0
- package/components/text.js.map +1 -0
- package/{web-components/text → components}/time.d.ts +5 -3
- package/components/time.d.ts.map +1 -0
- package/components/time.js +139 -0
- package/components/time.js.map +1 -0
- package/components/tooltip.d.ts +38 -0
- package/components/tooltip.d.ts.map +1 -0
- package/components/tooltip.js +67 -0
- package/components/tooltip.js.map +1 -0
- package/{web-components/text → components}/typewriter.d.ts +5 -3
- package/components/typewriter.d.ts.map +1 -0
- package/components/typewriter.js +130 -0
- package/components/typewriter.js.map +1 -0
- package/core/global-style.d.ts +21 -0
- package/core/global-style.d.ts.map +1 -0
- package/core/global-style.js +46 -0
- package/core/global-style.js.map +1 -0
- package/core/super-anchor.d.ts +15 -0
- package/core/super-anchor.d.ts.map +1 -0
- package/core/super-anchor.js +39 -0
- package/core/super-anchor.js.map +1 -0
- package/core/super-input.d.ts +39 -0
- package/core/super-input.d.ts.map +1 -0
- package/core/super-input.js +115 -0
- package/core/super-input.js.map +1 -0
- package/{proto → core}/super-openable.d.ts +4 -8
- package/core/super-openable.d.ts.map +1 -0
- package/core/super-openable.js +38 -0
- package/core/super-openable.js.map +1 -0
- package/custom-elements.json +1 -0
- package/details.d.ts +2 -3
- package/details.d.ts.map +1 -1
- package/details.js +5 -4
- package/details.js.map +1 -1
- package/dev/alert.d.ts +8 -0
- package/dev/alert.d.ts.map +1 -0
- package/dev/alert.js +4 -0
- package/dev/alert.js.map +1 -0
- package/dev/avatar.d.ts +8 -0
- package/dev/avatar.d.ts.map +1 -0
- package/dev/avatar.js +4 -0
- package/dev/avatar.js.map +1 -0
- package/dev/breath.d.ts +9 -0
- package/dev/breath.d.ts.map +1 -0
- package/dev/breath.js +5 -0
- package/dev/breath.js.map +1 -0
- package/dev/button.d.ts +8 -0
- package/dev/button.d.ts.map +1 -0
- package/dev/button.js +4 -0
- package/dev/button.js.map +1 -0
- package/dev/card.d.ts +8 -0
- package/dev/card.d.ts.map +1 -0
- package/dev/card.js +4 -0
- package/dev/card.js.map +1 -0
- package/dev/carousel.d.ts +8 -0
- package/dev/carousel.d.ts.map +1 -0
- package/dev/carousel.js +4 -0
- package/dev/carousel.js.map +1 -0
- package/dev/components/alert.d.ts +50 -0
- package/dev/components/alert.d.ts.map +1 -0
- package/dev/components/alert.js +234 -0
- package/dev/components/alert.js.map +1 -0
- package/dev/components/avatar.d.ts +26 -0
- package/dev/components/avatar.d.ts.map +1 -0
- package/dev/components/avatar.js +91 -0
- package/dev/components/avatar.js.map +1 -0
- package/dev/components/breath.d.ts +34 -0
- package/dev/components/breath.d.ts.map +1 -0
- package/dev/components/breath.js +133 -0
- package/dev/components/breath.js.map +1 -0
- package/dev/components/button.d.ts +45 -0
- package/dev/components/button.d.ts.map +1 -0
- package/{web-components/button → dev/components}/button.js +76 -76
- package/dev/components/button.js.map +1 -0
- package/dev/components/card.d.ts +20 -0
- package/dev/components/card.d.ts.map +1 -0
- package/dev/components/card.js +89 -0
- package/dev/components/card.js.map +1 -0
- package/dev/components/carousel.d.ts +40 -0
- package/dev/components/carousel.d.ts.map +1 -0
- package/dev/components/carousel.js +155 -0
- package/dev/components/carousel.js.map +1 -0
- package/dev/components/details.d.ts +20 -0
- package/dev/components/details.d.ts.map +1 -0
- package/dev/components/details.js +115 -0
- package/dev/components/details.js.map +1 -0
- package/dev/components/dialog.d.ts +33 -0
- package/dev/components/dialog.d.ts.map +1 -0
- package/dev/components/dialog.js +154 -0
- package/dev/components/dialog.js.map +1 -0
- package/dev/components/divider.d.ts +17 -0
- package/dev/components/divider.d.ts.map +1 -0
- package/dev/components/divider.js +46 -0
- package/dev/components/divider.js.map +1 -0
- package/dev/components/dragbox.d.ts +40 -0
- package/dev/components/dragbox.d.ts.map +1 -0
- package/{web-components/wrapper → dev/components}/dragbox.js +27 -15
- package/dev/components/dragbox.js.map +1 -0
- package/dev/components/flex.d.ts +31 -0
- package/dev/components/flex.d.ts.map +1 -0
- package/dev/components/flex.js +52 -0
- package/dev/components/flex.js.map +1 -0
- package/dev/components/form.d.ts +24 -0
- package/dev/components/form.d.ts.map +1 -0
- package/{web-components/form → dev/components}/form.js +11 -11
- package/dev/components/form.js.map +1 -0
- package/dev/components/grid.d.ts +31 -0
- package/dev/components/grid.d.ts.map +1 -0
- package/dev/components/grid.js +53 -0
- package/dev/components/grid.js.map +1 -0
- package/dev/components/input.d.ts +20 -0
- package/dev/components/input.d.ts.map +1 -0
- package/dev/components/input.js +89 -0
- package/dev/components/input.js.map +1 -0
- package/dev/components/layout.d.ts +29 -0
- package/dev/components/layout.d.ts.map +1 -0
- package/dev/components/layout.js +69 -0
- package/dev/components/layout.js.map +1 -0
- package/dev/components/link.d.ts +20 -0
- package/dev/components/link.d.ts.map +1 -0
- package/dev/components/link.js +40 -0
- package/dev/components/link.js.map +1 -0
- package/dev/components/progress.d.ts +30 -0
- package/dev/components/progress.d.ts.map +1 -0
- package/{web-components/progress → dev/components}/progress.js +12 -11
- package/dev/components/progress.js.map +1 -0
- package/dev/components/range.d.ts +60 -0
- package/dev/components/range.d.ts.map +1 -0
- package/{web-components/input/range-input.js → dev/components/range.js} +82 -92
- package/dev/components/range.js.map +1 -0
- package/dev/components/rotate.d.ts +26 -0
- package/dev/components/rotate.d.ts.map +1 -0
- package/{web-components/wrapper → dev/components}/rotate.js +14 -20
- package/dev/components/rotate.js.map +1 -0
- package/dev/components/router.d.ts +121 -0
- package/dev/components/router.d.ts.map +1 -0
- package/dev/components/router.js +248 -0
- package/dev/components/router.js.map +1 -0
- package/dev/components/select.d.ts +50 -0
- package/dev/components/select.d.ts.map +1 -0
- package/dev/components/select.js +243 -0
- package/dev/components/select.js.map +1 -0
- package/dev/components/skeleton.d.ts +26 -0
- package/dev/components/skeleton.d.ts.map +1 -0
- package/dev/components/skeleton.js +119 -0
- package/dev/components/skeleton.js.map +1 -0
- package/dev/components/split.d.ts +32 -0
- package/dev/components/split.d.ts.map +1 -0
- package/dev/components/split.js +173 -0
- package/dev/components/split.js.map +1 -0
- package/dev/components/switch.d.ts +39 -0
- package/dev/components/switch.d.ts.map +1 -0
- package/{web-components/input/switch-input.js → dev/components/switch.js} +53 -59
- package/dev/components/switch.js.map +1 -0
- package/dev/components/text.d.ts +19 -0
- package/dev/components/text.d.ts.map +1 -0
- package/{web-components/text → dev/components}/text.js +22 -23
- package/dev/components/text.js.map +1 -0
- package/dev/components/time.d.ts +53 -0
- package/dev/components/time.d.ts.map +1 -0
- package/{web-components/text → dev/components}/time.js +12 -18
- package/dev/components/time.js.map +1 -0
- package/dev/components/tooltip.d.ts +38 -0
- package/dev/components/tooltip.d.ts.map +1 -0
- package/dev/components/tooltip.js +114 -0
- package/dev/components/tooltip.js.map +1 -0
- package/dev/components/typewriter.d.ts +55 -0
- package/dev/components/typewriter.d.ts.map +1 -0
- package/{web-components/text → dev/components}/typewriter.js +21 -19
- package/dev/components/typewriter.js.map +1 -0
- package/dev/core/global-style.d.ts +21 -0
- package/dev/core/global-style.d.ts.map +1 -0
- package/dev/core/global-style.js +77 -0
- package/dev/core/global-style.js.map +1 -0
- package/dev/core/super-anchor.d.ts +15 -0
- package/dev/core/super-anchor.d.ts.map +1 -0
- package/dev/core/super-anchor.js +58 -0
- package/dev/core/super-anchor.js.map +1 -0
- package/dev/core/super-input.d.ts +39 -0
- package/dev/core/super-input.d.ts.map +1 -0
- package/dev/core/super-input.js +181 -0
- package/dev/core/super-input.js.map +1 -0
- package/dev/core/super-openable.d.ts +19 -0
- package/dev/core/super-openable.d.ts.map +1 -0
- package/{proto → dev/core}/super-openable.js +6 -13
- package/dev/core/super-openable.js.map +1 -0
- package/dev/details.d.ts +8 -0
- package/dev/details.d.ts.map +1 -0
- package/dev/details.js +4 -0
- package/dev/details.js.map +1 -0
- package/dev/dialog.d.ts +8 -0
- package/dev/dialog.d.ts.map +1 -0
- package/dev/dialog.js +4 -0
- package/dev/dialog.js.map +1 -0
- package/dev/divider.d.ts +8 -0
- package/dev/divider.d.ts.map +1 -0
- package/dev/divider.js +4 -0
- package/dev/divider.js.map +1 -0
- package/dev/dragbox.d.ts +8 -0
- package/dev/dragbox.d.ts.map +1 -0
- package/dev/dragbox.js +4 -0
- package/dev/dragbox.js.map +1 -0
- package/dev/flex.d.ts +8 -0
- package/dev/flex.d.ts.map +1 -0
- package/dev/flex.js +4 -0
- package/dev/flex.js.map +1 -0
- package/dev/form.d.ts +8 -0
- package/dev/form.d.ts.map +1 -0
- package/dev/form.js +4 -0
- package/dev/form.js.map +1 -0
- package/dev/grid.d.ts +8 -0
- package/dev/grid.d.ts.map +1 -0
- package/dev/grid.js +4 -0
- package/dev/grid.js.map +1 -0
- package/dev/index.d.ts +29 -0
- package/dev/index.d.ts.map +1 -0
- package/dev/index.js +29 -0
- package/dev/index.js.map +1 -0
- package/dev/input.d.ts +9 -0
- package/dev/input.d.ts.map +1 -0
- package/dev/input.js +5 -0
- package/dev/input.js.map +1 -0
- package/dev/layout.d.ts +9 -0
- package/dev/layout.d.ts.map +1 -0
- package/dev/layout.js +5 -0
- package/dev/layout.js.map +1 -0
- package/dev/link.d.ts +9 -0
- package/dev/link.d.ts.map +1 -0
- package/dev/link.js +5 -0
- package/dev/link.js.map +1 -0
- package/dev/progress.d.ts +9 -0
- package/dev/progress.d.ts.map +1 -0
- package/dev/progress.js +5 -0
- package/dev/progress.js.map +1 -0
- package/dev/range.d.ts +9 -0
- package/dev/range.d.ts.map +1 -0
- package/dev/range.js +5 -0
- package/dev/range.js.map +1 -0
- package/dev/rotate.d.ts +9 -0
- package/dev/rotate.d.ts.map +1 -0
- package/dev/rotate.js +5 -0
- package/dev/rotate.js.map +1 -0
- package/dev/router.d.ts +9 -0
- package/dev/router.d.ts.map +1 -0
- package/dev/router.js +5 -0
- package/dev/router.js.map +1 -0
- package/dev/select.d.ts +9 -0
- package/dev/select.d.ts.map +1 -0
- package/dev/select.js +5 -0
- package/dev/select.js.map +1 -0
- package/dev/skeleton.d.ts +9 -0
- package/dev/skeleton.d.ts.map +1 -0
- package/dev/skeleton.js +5 -0
- package/dev/skeleton.js.map +1 -0
- package/dev/split.d.ts +9 -0
- package/dev/split.d.ts.map +1 -0
- package/dev/split.js +5 -0
- package/dev/split.js.map +1 -0
- package/dev/switch.d.ts +9 -0
- package/dev/switch.d.ts.map +1 -0
- package/dev/switch.js +5 -0
- package/dev/switch.js.map +1 -0
- package/dev/text.d.ts +9 -0
- package/dev/text.d.ts.map +1 -0
- package/dev/text.js +5 -0
- package/dev/text.js.map +1 -0
- package/dev/time.d.ts +9 -0
- package/dev/time.d.ts.map +1 -0
- package/dev/time.js +5 -0
- package/dev/time.js.map +1 -0
- package/dev/tooltip.d.ts +9 -0
- package/dev/tooltip.d.ts.map +1 -0
- package/dev/tooltip.js +5 -0
- package/dev/tooltip.js.map +1 -0
- package/dev/typewriter.d.ts +8 -0
- package/dev/typewriter.d.ts.map +1 -0
- package/dev/typewriter.js +4 -0
- package/dev/typewriter.js.map +1 -0
- package/dialog.d.ts +2 -3
- package/dialog.d.ts.map +1 -1
- package/dialog.js +5 -4
- package/dialog.js.map +1 -1
- package/divider.d.ts +2 -3
- package/divider.d.ts.map +1 -1
- package/divider.js +5 -4
- package/divider.js.map +1 -1
- package/dragbox.d.ts +2 -3
- package/dragbox.d.ts.map +1 -1
- package/dragbox.js +5 -4
- package/dragbox.js.map +1 -1
- package/flex.d.ts +8 -0
- package/flex.d.ts.map +1 -0
- package/flex.js +6 -0
- package/flex.js.map +1 -0
- package/form.d.ts +2 -3
- package/form.d.ts.map +1 -1
- package/form.js +5 -4
- package/form.js.map +1 -1
- package/grid.d.ts +8 -0
- package/grid.d.ts.map +1 -0
- package/grid.js +6 -0
- package/grid.js.map +1 -0
- package/index.d.ts +28 -32
- package/index.d.ts.map +1 -1
- package/index.js +57 -33
- package/index.js.map +1 -1
- package/input.d.ts +3 -3
- package/input.d.ts.map +1 -1
- package/input.js +5 -4
- package/input.js.map +1 -1
- package/layout.d.ts +3 -3
- package/layout.d.ts.map +1 -1
- package/layout.js +5 -4
- package/layout.js.map +1 -1
- package/link.d.ts +3 -3
- package/link.d.ts.map +1 -1
- package/link.js +5 -4
- package/link.js.map +1 -1
- package/package.json +42 -81
- package/progress.d.ts +3 -3
- package/progress.d.ts.map +1 -1
- package/progress.js +5 -4
- package/progress.js.map +1 -1
- package/range.d.ts +9 -0
- package/range.d.ts.map +1 -0
- package/range.js +6 -0
- package/range.js.map +1 -0
- package/rotate.d.ts +3 -3
- package/rotate.d.ts.map +1 -1
- package/rotate.js +5 -4
- package/rotate.js.map +1 -1
- package/router.d.ts +3 -3
- package/router.d.ts.map +1 -1
- package/router.js +5 -4
- package/router.js.map +1 -1
- package/select.d.ts +9 -0
- package/select.d.ts.map +1 -0
- package/select.js +6 -0
- package/select.js.map +1 -0
- package/skeleton.d.ts +3 -3
- package/skeleton.d.ts.map +1 -1
- package/skeleton.js +5 -4
- package/skeleton.js.map +1 -1
- package/split.d.ts +9 -0
- package/split.d.ts.map +1 -0
- package/split.js +6 -0
- package/split.js.map +1 -0
- package/switch.d.ts +9 -0
- package/switch.d.ts.map +1 -0
- package/switch.js +6 -0
- package/switch.js.map +1 -0
- package/text.d.ts +3 -3
- package/text.d.ts.map +1 -1
- package/text.js +5 -4
- package/text.js.map +1 -1
- package/time.d.ts +3 -3
- package/time.d.ts.map +1 -1
- package/time.js +5 -4
- package/time.js.map +1 -1
- package/tooltip.d.ts +3 -3
- package/tooltip.d.ts.map +1 -1
- package/tooltip.js +5 -4
- package/tooltip.js.map +1 -1
- package/typewriter.d.ts +2 -3
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js +5 -4
- package/typewriter.js.map +1 -1
- package/vscode.css-custom-data.json +1 -0
- package/vscode.html-custom-data.json +1 -0
- package/web-types.json +1 -0
- package/_deps.d.ts +0 -4
- package/_deps.d.ts.map +0 -1
- package/_deps.js +0 -4
- package/_deps.js.map +0 -1
- package/avatar-group.d.ts +0 -9
- package/avatar-group.d.ts.map +0 -1
- package/avatar-group.js +0 -5
- package/avatar-group.js.map +0 -1
- package/components.json +0 -194
- package/conf.d.ts +0 -12
- package/conf.d.ts.map +0 -1
- package/conf.js +0 -24
- package/conf.js.map +0 -1
- package/decorators/godown.d.ts +0 -4
- package/decorators/godown.d.ts.map +0 -1
- package/decorators/godown.js +0 -9
- package/decorators/godown.js.map +0 -1
- package/decorators/part.d.ts +0 -7
- package/decorators/part.d.ts.map +0 -1
- package/decorators/part.js +0 -8
- package/decorators/part.js.map +0 -1
- package/decorators/styles.d.ts +0 -3
- package/decorators/styles.d.ts.map +0 -1
- package/decorators/styles.js +0 -8
- package/decorators/styles.js.map +0 -1
- package/flex-flow.d.ts +0 -9
- package/flex-flow.d.ts.map +0 -1
- package/flex-flow.js +0 -5
- package/flex-flow.js.map +0 -1
- package/grid-flow.d.ts +0 -9
- package/grid-flow.d.ts.map +0 -1
- package/grid-flow.js +0 -5
- package/grid-flow.js.map +0 -1
- package/label-input.d.ts +0 -9
- package/label-input.d.ts.map +0 -1
- package/label-input.js +0 -5
- package/label-input.js.map +0 -1
- package/lib/css.d.ts +0 -13
- package/lib/css.d.ts.map +0 -1
- package/lib/css.js +0 -29
- package/lib/css.js.map +0 -1
- package/lib/directives.d.ts +0 -25
- package/lib/directives.d.ts.map +0 -1
- package/lib/directives.js +0 -40
- package/lib/directives.js.map +0 -1
- package/lib/event-coll.d.ts +0 -13
- package/lib/event-coll.d.ts.map +0 -1
- package/lib/event-coll.js +0 -45
- package/lib/event-coll.js.map +0 -1
- package/lib/icons.d.ts +0 -25
- package/lib/icons.d.ts.map +0 -1
- package/lib/icons.js +0 -73
- package/lib/icons.js.map +0 -1
- package/lib/jsx.d.ts +0 -4
- package/lib/jsx.d.ts.map +0 -1
- package/lib/jsx.js +0 -52
- package/lib/jsx.js.map +0 -1
- package/lib/route-tree.d.ts +0 -28
- package/lib/route-tree.d.ts.map +0 -1
- package/lib/route-tree.js +0 -141
- package/lib/route-tree.js.map +0 -1
- package/lib/utils.d.ts +0 -10
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js +0 -71
- package/lib/utils.js.map +0 -1
- package/overbreath.d.ts +0 -9
- package/overbreath.d.ts.map +0 -1
- package/overbreath.js +0 -5
- package/overbreath.js.map +0 -1
- package/proto/godown-config.d.ts +0 -41
- package/proto/godown-config.d.ts.map +0 -1
- package/proto/godown-config.js +0 -27
- package/proto/godown-config.js.map +0 -1
- package/proto/godown-element.d.ts +0 -125
- package/proto/godown-element.d.ts.map +0 -1
- package/proto/godown-element.js +0 -204
- package/proto/godown-element.js.map +0 -1
- package/proto/super-a.d.ts +0 -30
- package/proto/super-a.d.ts.map +0 -1
- package/proto/super-a.js +0 -141
- package/proto/super-a.js.map +0 -1
- package/proto/super-input.d.ts +0 -44
- package/proto/super-input.d.ts.map +0 -1
- package/proto/super-input.js +0 -119
- package/proto/super-input.js.map +0 -1
- package/proto/super-openable.d.ts.map +0 -1
- package/proto/super-openable.js.map +0 -1
- package/range-input.d.ts +0 -9
- package/range-input.d.ts.map +0 -1
- package/range-input.js +0 -5
- package/range-input.js.map +0 -1
- package/react/create.d.ts +0 -5
- package/react/create.d.ts.map +0 -1
- package/react/create.js +0 -16
- package/react/create.js.map +0 -1
- package/react/index.d.ts +0 -65
- package/react/index.d.ts.map +0 -1
- package/react/index.js +0 -132
- package/react/index.js.map +0 -1
- package/router-link.d.ts +0 -9
- package/router-link.d.ts.map +0 -1
- package/router-link.js +0 -5
- package/router-link.js.map +0 -1
- package/search-input.d.ts +0 -9
- package/search-input.d.ts.map +0 -1
- package/search-input.js +0 -5
- package/search-input.js.map +0 -1
- package/select-input.d.ts +0 -9
- package/select-input.d.ts.map +0 -1
- package/select-input.js +0 -5
- package/select-input.js.map +0 -1
- package/split-input.d.ts +0 -9
- package/split-input.d.ts.map +0 -1
- package/split-input.js +0 -5
- package/split-input.js.map +0 -1
- package/styles/colors/presets.d.ts +0 -13
- package/styles/colors/presets.d.ts.map +0 -1
- package/styles/colors/presets.js +0 -6
- package/styles/colors/presets.js.map +0 -1
- package/styles/colors/presetsRGB.d.ts +0 -16
- package/styles/colors/presetsRGB.d.ts.map +0 -1
- package/styles/colors/presetsRGB.js +0 -134
- package/styles/colors/presetsRGB.js.map +0 -1
- package/styles/global.d.ts +0 -18
- package/styles/global.d.ts.map +0 -1
- package/styles/global.js +0 -78
- package/styles/global.js.map +0 -1
- package/styles/inputStyle.d.ts +0 -3
- package/styles/inputStyle.d.ts.map +0 -1
- package/styles/inputStyle.js +0 -59
- package/styles/inputStyle.js.map +0 -1
- package/switch-input.d.ts +0 -9
- package/switch-input.d.ts.map +0 -1
- package/switch-input.js +0 -5
- package/switch-input.js.map +0 -1
- package/web-components/alert/alert.d.ts +0 -36
- package/web-components/alert/alert.d.ts.map +0 -1
- package/web-components/alert/alert.js +0 -161
- package/web-components/alert/alert.js.map +0 -1
- package/web-components/avatar/avatar-group.d.ts +0 -21
- package/web-components/avatar/avatar-group.d.ts.map +0 -1
- package/web-components/avatar/avatar-group.js +0 -86
- package/web-components/avatar/avatar-group.js.map +0 -1
- package/web-components/avatar/avatar.d.ts +0 -28
- package/web-components/avatar/avatar.d.ts.map +0 -1
- package/web-components/avatar/avatar.js +0 -120
- package/web-components/avatar/avatar.js.map +0 -1
- package/web-components/button/button.d.ts.map +0 -1
- package/web-components/button/button.js.map +0 -1
- package/web-components/card/card.d.ts +0 -9
- package/web-components/card/card.d.ts.map +0 -1
- package/web-components/card/card.js +0 -75
- package/web-components/card/card.js.map +0 -1
- package/web-components/carousel/carousel.d.ts +0 -29
- package/web-components/carousel/carousel.d.ts.map +0 -1
- package/web-components/carousel/carousel.js +0 -185
- package/web-components/carousel/carousel.js.map +0 -1
- package/web-components/details/details.d.ts.map +0 -1
- package/web-components/details/details.js +0 -124
- package/web-components/details/details.js.map +0 -1
- package/web-components/dialog/dialog.d.ts +0 -31
- package/web-components/dialog/dialog.d.ts.map +0 -1
- package/web-components/dialog/dialog.js +0 -143
- package/web-components/dialog/dialog.js.map +0 -1
- package/web-components/divider/divider.d.ts +0 -13
- package/web-components/divider/divider.d.ts.map +0 -1
- package/web-components/divider/divider.js +0 -95
- package/web-components/divider/divider.js.map +0 -1
- package/web-components/form/form.d.ts.map +0 -1
- package/web-components/form/form.js.map +0 -1
- package/web-components/input/input.d.ts +0 -37
- package/web-components/input/input.d.ts.map +0 -1
- package/web-components/input/input.js +0 -152
- package/web-components/input/input.js.map +0 -1
- package/web-components/input/label-input.d.ts +0 -15
- package/web-components/input/label-input.d.ts.map +0 -1
- package/web-components/input/label-input.js +0 -96
- package/web-components/input/label-input.js.map +0 -1
- package/web-components/input/range-input.d.ts +0 -53
- package/web-components/input/range-input.d.ts.map +0 -1
- package/web-components/input/range-input.js.map +0 -1
- package/web-components/input/search-input.d.ts +0 -42
- package/web-components/input/search-input.d.ts.map +0 -1
- package/web-components/input/search-input.js +0 -214
- package/web-components/input/search-input.js.map +0 -1
- package/web-components/input/select-input.d.ts +0 -36
- package/web-components/input/select-input.d.ts.map +0 -1
- package/web-components/input/select-input.js +0 -210
- package/web-components/input/select-input.js.map +0 -1
- package/web-components/input/split-input.d.ts +0 -29
- package/web-components/input/split-input.d.ts.map +0 -1
- package/web-components/input/split-input.js +0 -184
- package/web-components/input/split-input.js.map +0 -1
- package/web-components/input/switch-input.d.ts.map +0 -1
- package/web-components/input/switch-input.js.map +0 -1
- package/web-components/layout/flex-flow.d.ts +0 -17
- package/web-components/layout/flex-flow.d.ts.map +0 -1
- package/web-components/layout/flex-flow.js +0 -73
- package/web-components/layout/flex-flow.js.map +0 -1
- package/web-components/layout/grid-flow.d.ts +0 -14
- package/web-components/layout/grid-flow.d.ts.map +0 -1
- package/web-components/layout/grid-flow.js +0 -56
- package/web-components/layout/grid-flow.js.map +0 -1
- package/web-components/layout/layout.d.ts +0 -18
- package/web-components/layout/layout.d.ts.map +0 -1
- package/web-components/layout/layout.js +0 -76
- package/web-components/layout/layout.js.map +0 -1
- package/web-components/link/link.d.ts +0 -10
- package/web-components/link/link.d.ts.map +0 -1
- package/web-components/link/link.js +0 -17
- package/web-components/link/link.js.map +0 -1
- package/web-components/link/router-link.d.ts +0 -19
- package/web-components/link/router-link.d.ts.map +0 -1
- package/web-components/link/router-link.js +0 -60
- package/web-components/link/router-link.js.map +0 -1
- package/web-components/progress/progress.d.ts.map +0 -1
- package/web-components/progress/progress.js.map +0 -1
- package/web-components/router/router.d.ts +0 -86
- package/web-components/router/router.d.ts.map +0 -1
- package/web-components/router/router.js +0 -246
- package/web-components/router/router.js.map +0 -1
- package/web-components/skeleton/skeleton.d.ts.map +0 -1
- package/web-components/skeleton/skeleton.js +0 -130
- package/web-components/skeleton/skeleton.js.map +0 -1
- package/web-components/text/overbreath.d.ts +0 -22
- package/web-components/text/overbreath.d.ts.map +0 -1
- package/web-components/text/overbreath.js +0 -132
- package/web-components/text/overbreath.js.map +0 -1
- package/web-components/text/text.d.ts.map +0 -1
- package/web-components/text/text.js.map +0 -1
- package/web-components/text/time.d.ts.map +0 -1
- package/web-components/text/time.js.map +0 -1
- package/web-components/text/typewriter.d.ts.map +0 -1
- package/web-components/text/typewriter.js.map +0 -1
- package/web-components/tooltip/tooltip.d.ts +0 -30
- package/web-components/tooltip/tooltip.d.ts.map +0 -1
- package/web-components/tooltip/tooltip.js +0 -123
- package/web-components/tooltip/tooltip.js.map +0 -1
- package/web-components/wrapper/dragbox.d.ts.map +0 -1
- package/web-components/wrapper/dragbox.js.map +0 -1
- package/web-components/wrapper/rotate.d.ts.map +0 -1
- package/web-components/wrapper/rotate.js.map +0 -1
@@ -1,16 +1,19 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
2
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
3
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { classList } from "@godown/element/directives/class-list.js";
|
5
|
+
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
|
+
import { css, html } from "lit";
|
7
|
+
import { property } from "lit/decorators.js";
|
8
|
+
import { cssGlobalVars, GlobalStyle, scopePrefix } from "../core/global-style.js";
|
8
9
|
const protoName = "text";
|
9
|
-
const cssScope =
|
10
|
+
const cssScope = scopePrefix(protoName);
|
10
11
|
/**
|
11
|
-
* {@linkcode Text
|
12
|
+
* {@linkcode Text} renders nowrap text.
|
13
|
+
*
|
14
|
+
* @category display
|
12
15
|
*/
|
13
|
-
let Text = class Text extends
|
16
|
+
let Text = class Text extends GlobalStyle {
|
14
17
|
constructor() {
|
15
18
|
super(...arguments);
|
16
19
|
/**
|
@@ -21,8 +24,7 @@ let Text = class Text extends GodownElement {
|
|
21
24
|
render() {
|
22
25
|
return html `<span
|
23
26
|
part="root"
|
24
|
-
class="${
|
25
|
-
[this.underline || "always"]: true,
|
27
|
+
class="${classList(this.underline, {
|
26
28
|
clip: this.clip,
|
27
29
|
})}"
|
28
30
|
>
|
@@ -38,12 +40,11 @@ __decorate([
|
|
38
40
|
], Text.prototype, "clip", void 0);
|
39
41
|
Text = __decorate([
|
40
42
|
godown(protoName),
|
41
|
-
styles(
|
42
|
-
css `
|
43
|
+
styles(css `
|
43
44
|
:host {
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
${cssScope}--color: currentColor;
|
46
|
+
${cssScope}--color-hover: currentColor;
|
47
|
+
${cssScope}--color-active: currentColor;
|
47
48
|
display: inline-block;
|
48
49
|
text-overflow: ellipsis;
|
49
50
|
overflow-wrap: break-word;
|
@@ -57,15 +58,15 @@ Text = __decorate([
|
|
57
58
|
text-overflow: inherit;
|
58
59
|
overflow-wrap: inherit;
|
59
60
|
overflow: hidden;
|
60
|
-
color: var(
|
61
|
+
color: var(${cssScope}--color);
|
61
62
|
}
|
62
63
|
|
63
64
|
span:hover {
|
64
|
-
color: var(
|
65
|
+
color: var(${cssScope}--color-hover, var(${cssScope}--color));
|
65
66
|
}
|
66
67
|
|
67
68
|
span:active {
|
68
|
-
color: var(
|
69
|
+
color: var(${cssScope}--color-active, var(${cssScope}--color));
|
69
70
|
}
|
70
71
|
|
71
72
|
.hover:hover,
|
@@ -79,16 +80,14 @@ Text = __decorate([
|
|
79
80
|
}
|
80
81
|
|
81
82
|
.clip{
|
82
|
-
background: var(
|
83
|
+
background: var(${cssGlobalVars.clipBackground});
|
83
84
|
display: inline-block;
|
84
85
|
color: transparent;
|
85
86
|
-webkit-text-fill-color: transparent;
|
86
87
|
background-clip: text;
|
87
88
|
-webkit-background-clip: text;
|
88
89
|
}
|
89
|
-
|
90
|
-
])
|
90
|
+
`)
|
91
91
|
], Text);
|
92
|
-
export { Text };
|
93
92
|
export default Text;
|
94
93
|
//# sourceMappingURL=text.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAElF,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;GAIG;AAkDH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW;IAA9B;;QACE;;WAEG;QAEH,cAAS,GAA2C,MAAM,CAAC;IAoB7D,CAAC;IAZW,MAAM;QACd,OAAO,IAAI,CAAA;;eAGT,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE;YACxB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CACH;;QAEI,QAAQ,EAAE;YACN,CAAC;IACX,CAAC;CACF,CAAA;AApBC;IADC,QAAQ,EAAE;uCACgD;AAM3D;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kCACd;AAXV,IAAI;IAjDT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;QAEH,QAAQ;QACR,QAAQ;QACR,QAAQ;;;;;;;;;;;;;;mBAcG,QAAQ;;;;mBAIR,QAAQ,sBAAsB,QAAQ;;;;mBAItC,QAAQ,uBAAuB,QAAQ;;;;;;;;;;;;;;wBAclC,aAAa,CAAC,cAAc;;;;;;;CAOnD,CAAC;GACI,IAAI,CAyBT;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { type PropertyValues } from "lit";
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Time} renders a formatting time.
|
5
|
+
*
|
6
|
+
* @category display
|
7
|
+
*/
|
8
|
+
declare class Time extends GlobalStyle {
|
9
|
+
/**
|
10
|
+
* Cancels the next character formatting.
|
11
|
+
*/
|
12
|
+
escape: string;
|
13
|
+
/**
|
14
|
+
* Format strings.
|
15
|
+
* {@linkcode Time.fmt}
|
16
|
+
*/
|
17
|
+
format: string;
|
18
|
+
/**
|
19
|
+
* Time.
|
20
|
+
*/
|
21
|
+
time: Date;
|
22
|
+
/**
|
23
|
+
* If there is a value, update every gap or timeout.
|
24
|
+
*/
|
25
|
+
timeout: number;
|
26
|
+
/**
|
27
|
+
* The number of milliseconds that change with each update.
|
28
|
+
*/
|
29
|
+
gap: number;
|
30
|
+
timeoutId: number;
|
31
|
+
protected render(): string;
|
32
|
+
protected firstUpdated(): void;
|
33
|
+
protected updated(changedProperties: PropertyValues): void;
|
34
|
+
disconnectedCallback(): void;
|
35
|
+
startTimeout(): number;
|
36
|
+
/**
|
37
|
+
* Y for year\
|
38
|
+
* M for month\
|
39
|
+
* D for day\
|
40
|
+
* h for hour\
|
41
|
+
* m for minute\
|
42
|
+
* s for second\
|
43
|
+
* S for milli second\
|
44
|
+
* Z for time zone.
|
45
|
+
*
|
46
|
+
* @param fm Format string.
|
47
|
+
* @param tm Time.
|
48
|
+
* @returns Format result
|
49
|
+
*/
|
50
|
+
static fmt(fm: string, tm: Date, em: string): string;
|
51
|
+
}
|
52
|
+
export default Time;
|
53
|
+
//# sourceMappingURL=time.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/components/time.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,MAAM,SAAO;IACb;;;OAGG;IAEH,MAAM,SAA8B;IACpC;;OAEG;IAEH,IAAI,OAAc;IAClB;;OAEG;IAEH,OAAO,SAAK;IACZ;;OAEG;IAEH,GAAG,SAAK;IAER,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,MAAM,IAAI,MAAM;IAI1B,SAAS,CAAC,YAAY;IAMtB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAS1D,oBAAoB;IAIpB,YAAY;IAMZ;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM;CAwCrD;AAED,eAAe,IAAI,CAAC"}
|
@@ -1,14 +1,17 @@
|
|
1
1
|
var Time_1;
|
2
2
|
import { __decorate } from "tslib";
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
import {
|
3
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
4
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
5
|
+
import { css } from "lit";
|
6
|
+
import { property } from "lit/decorators.js";
|
7
|
+
import { GlobalStyle } from "../core/global-style.js";
|
7
8
|
const protoName = "time";
|
8
9
|
/**
|
9
10
|
* {@linkcode Time} renders a formatting time.
|
11
|
+
*
|
12
|
+
* @category display
|
10
13
|
*/
|
11
|
-
let Time = Time_1 = class Time extends
|
14
|
+
let Time = Time_1 = class Time extends GlobalStyle {
|
12
15
|
constructor() {
|
13
16
|
super(...arguments);
|
14
17
|
/**
|
@@ -53,7 +56,7 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
53
56
|
clearInterval(this.timeoutId);
|
54
57
|
}
|
55
58
|
startTimeout() {
|
56
|
-
return setInterval(() => {
|
59
|
+
return window.setInterval(() => {
|
57
60
|
this.time = new Date(this.time.getTime() + (this.gap || this.timeout));
|
58
61
|
}, Math.abs(this.timeout));
|
59
62
|
}
|
@@ -64,7 +67,7 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
64
67
|
* h for hour\
|
65
68
|
* m for minute\
|
66
69
|
* s for second\
|
67
|
-
* S for milli
|
70
|
+
* S for milli second\
|
68
71
|
* Z for time zone.
|
69
72
|
*
|
70
73
|
* @param fm Format string.
|
@@ -107,9 +110,7 @@ let Time = Time_1 = class Time extends GodownElement {
|
|
107
110
|
return result
|
108
111
|
.reverse()
|
109
112
|
.join("")
|
110
|
-
.replace(new RegExp(replaced, "g"), () =>
|
111
|
-
return rest.shift();
|
112
|
-
});
|
113
|
+
.replace(new RegExp(replaced, "g"), () => rest.shift());
|
113
114
|
}
|
114
115
|
};
|
115
116
|
__decorate([
|
@@ -129,14 +130,7 @@ __decorate([
|
|
129
130
|
], Time.prototype, "gap", void 0);
|
130
131
|
Time = Time_1 = __decorate([
|
131
132
|
godown(protoName),
|
132
|
-
styles(
|
133
|
-
css `
|
134
|
-
:host {
|
135
|
-
text-align: center;
|
136
|
-
}
|
137
|
-
`,
|
138
|
-
])
|
133
|
+
styles(css `:host{text-align: center;}`)
|
139
134
|
], Time);
|
140
|
-
export { Time };
|
141
135
|
export default Time;
|
142
136
|
//# sourceMappingURL=time.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"","sources":["../../src/components/time.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAuB,MAAM,KAAK,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;GAIG;AAGH,IAAM,IAAI,YAAV,MAAM,IAAK,SAAQ,WAAW;IAA9B;;QACE;;WAEG;QAEH,WAAM,GAAG,GAAG,CAAC;QACb;;;WAGG;QAEH,WAAM,GAAG,0BAA0B,CAAC;QACpC;;WAEG;QAEH,SAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;;WAEG;QAEH,YAAO,GAAG,CAAC,CAAC;QACZ;;WAEG;QAEH,QAAG,GAAG,CAAC,CAAC;IAuFV,CAAC;IAnFW,MAAM;QACd,OAAO,MAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;IAES,YAAY;QACpB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,SA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C,CAAC,OAAO,EAAE,EAAE,CAAC;YACvC,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,MAAM;aACV,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC;aACR,OAAO,CAAC,IAAI,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF,CAAA;AA5GC;IADC,QAAQ,EAAE;oCACE;AAMb;IADC,QAAQ,EAAE;oCACyB;AAKpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCACT;AAKlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACf;AAKZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iCACnB;AA1BJ,IAAI;IAFT,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA,4BAA4B,CAAC;GAClC,IAAI,CAiHT;AAED,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import SuperOpenable, { type Direction8 } from "../core/super-openable.js";
|
2
|
+
/**
|
3
|
+
* {@linkcode Tooltip} provide tooltip for slot elements.
|
4
|
+
*
|
5
|
+
* If it has the tip property, ignore the slot tip.
|
6
|
+
*
|
7
|
+
* @slot tip - Tip element.
|
8
|
+
* @slot - Content.
|
9
|
+
* @category feedback
|
10
|
+
*/
|
11
|
+
declare class Tooltip extends SuperOpenable {
|
12
|
+
/**
|
13
|
+
* Tip text, if there is a value, the slot will be ignored.
|
14
|
+
*/
|
15
|
+
tip: string;
|
16
|
+
/**
|
17
|
+
* Direction of opening the tip.
|
18
|
+
*/
|
19
|
+
direction: Direction8;
|
20
|
+
/**
|
21
|
+
* Content alignment.
|
22
|
+
*/
|
23
|
+
align: "center" | "flex-start" | "flex-end" | "start" | "end";
|
24
|
+
/**
|
25
|
+
* If true, allow penetration of the tip.
|
26
|
+
*/
|
27
|
+
propagation: boolean;
|
28
|
+
static aligns: {
|
29
|
+
start: string;
|
30
|
+
end: string;
|
31
|
+
center: string;
|
32
|
+
"flex-start": string;
|
33
|
+
"flex-end": string;
|
34
|
+
};
|
35
|
+
protected render(): import("lit").TemplateResult<1>;
|
36
|
+
}
|
37
|
+
export default Tooltip;
|
38
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.ts"],"names":[],"mappings":"AAOA,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAmDM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,SAAS,EAAE,UAAU,CAAS;IAC9B;;OAEG;IAEH,KAAK,EAAE,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAY;IAEzE;;OAEG;IAEH,WAAW,EAAE,OAAO,CAAC;IAErB,MAAM,CAAC,MAAM;;;;;;MAMX;IAEF,SAAS,CAAC,MAAM;CAYjB;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
var Tooltip_1;
|
2
|
+
import { __decorate } from "tslib";
|
3
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
4
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
5
|
+
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
|
+
import { css, html } from "lit";
|
7
|
+
import { property } from "lit/decorators.js";
|
8
|
+
import { cssGlobalVars, scopePrefix } from "../core/global-style.js";
|
9
|
+
import SuperOpenable from "../core/super-openable.js";
|
10
|
+
const protoName = "tooltip";
|
11
|
+
const cssScope = scopePrefix(protoName);
|
12
|
+
/**
|
13
|
+
* {@linkcode Tooltip} provide tooltip for slot elements.
|
14
|
+
*
|
15
|
+
* If it has the tip property, ignore the slot tip.
|
16
|
+
*
|
17
|
+
* @slot tip - Tip element.
|
18
|
+
* @slot - Content.
|
19
|
+
* @category feedback
|
20
|
+
*/
|
21
|
+
let Tooltip = Tooltip_1 = class Tooltip extends SuperOpenable {
|
22
|
+
constructor() {
|
23
|
+
super(...arguments);
|
24
|
+
/**
|
25
|
+
* Direction of opening the tip.
|
26
|
+
*/
|
27
|
+
this.direction = "top";
|
28
|
+
/**
|
29
|
+
* Content alignment.
|
30
|
+
*/
|
31
|
+
this.align = "center";
|
32
|
+
}
|
33
|
+
render() {
|
34
|
+
const align = Tooltip_1.aligns[this.align] || "inherit";
|
35
|
+
return html `<div part="root" style="justify-content:${align};align-items:${align}">
|
36
|
+
${htmlSlot()}
|
37
|
+
<div part="tip" direction="${this.direction}" style="pointer-events:${this.propagation ? "none" : "all"}">
|
38
|
+
${this.tip
|
39
|
+
? html `<span class="passive">${this.tip}</span>`
|
40
|
+
: htmlSlot("tip")}</div>
|
41
|
+
</div>`;
|
42
|
+
}
|
43
|
+
};
|
44
|
+
Tooltip.aligns = {
|
45
|
+
start: "flex-start",
|
46
|
+
end: "flex-end",
|
47
|
+
center: "center",
|
48
|
+
"flex-start": "flex-start",
|
49
|
+
"flex-end": "flex-end",
|
50
|
+
};
|
51
|
+
__decorate([
|
52
|
+
property()
|
53
|
+
], Tooltip.prototype, "tip", void 0);
|
54
|
+
__decorate([
|
55
|
+
property()
|
56
|
+
], Tooltip.prototype, "direction", void 0);
|
57
|
+
__decorate([
|
58
|
+
property()
|
59
|
+
], Tooltip.prototype, "align", void 0);
|
60
|
+
__decorate([
|
61
|
+
property({ type: Boolean })
|
62
|
+
], Tooltip.prototype, "propagation", void 0);
|
63
|
+
Tooltip = Tooltip_1 = __decorate([
|
64
|
+
godown(protoName),
|
65
|
+
styles(css `
|
66
|
+
:host {
|
67
|
+
${cssScope}--tip-background: var(${cssGlobalVars.background});
|
68
|
+
display: inline-block;
|
69
|
+
width: fit-content;
|
70
|
+
}
|
71
|
+
|
72
|
+
[part="root"] {
|
73
|
+
display: flex;
|
74
|
+
position: relative;
|
75
|
+
transition: inherit;
|
76
|
+
border-radius: inherit;
|
77
|
+
}
|
78
|
+
|
79
|
+
[part="tip"] {
|
80
|
+
width: fit-content;
|
81
|
+
height: fit-content;
|
82
|
+
position: absolute;
|
83
|
+
visibility: hidden;
|
84
|
+
transition: inherit;
|
85
|
+
user-select: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
:host([open]) [part="tip"],
|
89
|
+
:host(:hover) [part="tip"],
|
90
|
+
[part="tip"]:hover {
|
91
|
+
visibility: visible;
|
92
|
+
}
|
93
|
+
|
94
|
+
.passive{
|
95
|
+
background: var(${cssScope}--tip-background);
|
96
|
+
padding: 0 .5em;
|
97
|
+
}
|
98
|
+
`, css `
|
99
|
+
[direction^="top"] {
|
100
|
+
bottom: 100%;
|
101
|
+
}
|
102
|
+
[direction^="bottom"] {
|
103
|
+
top: 100%;
|
104
|
+
}
|
105
|
+
[direction$="right"] {
|
106
|
+
left: 100%;
|
107
|
+
}
|
108
|
+
[direction$="left"] {
|
109
|
+
right: 100%;
|
110
|
+
}
|
111
|
+
`)
|
112
|
+
], Tooltip);
|
113
|
+
export default Tooltip;
|
114
|
+
//# sourceMappingURL=tooltip.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../src/components/tooltip.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CA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,CAAC;4CACP;AArBjB,OAAO;IAnDZ,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA;;QAEG,QAAQ,yBAAyB,aAAa,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4BzC,QAAQ;;;GAG7B,EACD,GAAG,CAAA;;;;;;;;;;;;;GAaF,CACF;GACK,OAAO,CA2CZ;AAED,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { type PropertyValueMap } from "lit";
|
2
|
+
import { GlobalStyle } from "../core/global-style.js";
|
3
|
+
/**
|
4
|
+
* {@linkcode Typewriter} renders a typewriter effect to text.
|
5
|
+
*
|
6
|
+
* @category effect
|
7
|
+
*/
|
8
|
+
declare class Typewriter extends GlobalStyle {
|
9
|
+
/**
|
10
|
+
* Raw text.
|
11
|
+
*/
|
12
|
+
text: string;
|
13
|
+
/**
|
14
|
+
* Start immediately after {@linkcode Typewriter.firstUpdated}.
|
15
|
+
*/
|
16
|
+
stopped: boolean;
|
17
|
+
/**
|
18
|
+
* If true, hide the cursor
|
19
|
+
*/
|
20
|
+
ended: boolean;
|
21
|
+
/**
|
22
|
+
* Maximum random time.
|
23
|
+
*/
|
24
|
+
max: number;
|
25
|
+
/**
|
26
|
+
* Minimum random time.
|
27
|
+
*/
|
28
|
+
min: number;
|
29
|
+
/**
|
30
|
+
* Fixed time.
|
31
|
+
*/
|
32
|
+
delay: number;
|
33
|
+
/**
|
34
|
+
* The index at the beginning.
|
35
|
+
*/
|
36
|
+
index: number;
|
37
|
+
/**
|
38
|
+
* Internal text.
|
39
|
+
*/
|
40
|
+
content: string;
|
41
|
+
timeoutID: number;
|
42
|
+
_i: HTMLElement;
|
43
|
+
/**
|
44
|
+
* {@linkcode Typewriter.text} length.
|
45
|
+
*/
|
46
|
+
get len(): number;
|
47
|
+
protected render(): import("lit").TemplateResult<1>;
|
48
|
+
protected firstUpdated(): void;
|
49
|
+
protected updated(changedProperties: PropertyValueMap<this>): void;
|
50
|
+
write(at?: number): void;
|
51
|
+
stop(): void;
|
52
|
+
end(): void;
|
53
|
+
}
|
54
|
+
export default Typewriter;
|
55
|
+
//# sourceMappingURL=typewriter.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../../src/components/typewriter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAe,MAAM,yBAAyB,CAAC;AAKnE;;;;GAIG;AACH,cA+BM,UAAW,SAAQ,WAAW;IAClC;;OAEG;IAEH,IAAI,SAAM;IACV;;OAEG;IAEH,OAAO,UAAS;IAChB;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAO;IACV;;OAEG;IAEH,GAAG,SAAM;IACT;;OAEG;IAEH,KAAK,SAAK;IACV;;OAEG;IAEH,KAAK,SAAK;IACV;;OAEG;IAEH,OAAO,SAAM;IAEb,SAAS,EAAE,MAAM,CAAC;IAElB,EAAE,EAAE,WAAW,CAAC;IAEhB;;OAEG;IACH,IAAI,GAAG,WAEN;IAED,SAAS,CAAC,MAAM;IAQhB,SAAS,CAAC,YAAY;IAStB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAM3D,KAAK,CAAC,EAAE,SAAa;IAYrB,IAAI;IAIJ,GAAG;CAGJ;AAED,eAAe,UAAU,CAAC"}
|
@@ -1,17 +1,20 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { htmlSlot } from "
|
6
|
-
import { random } from "
|
7
|
-
import {
|
8
|
-
import {
|
2
|
+
import { godown } from "@godown/element/decorators/godown.js";
|
3
|
+
import { styles } from "@godown/element/decorators/styles.js";
|
4
|
+
import { classList } from "@godown/element/directives/class-list.js";
|
5
|
+
import { htmlSlot } from "@godown/element/directives/html-slot.js";
|
6
|
+
import { random } from "@godown/element/tools/lib.js";
|
7
|
+
import { css, html } from "lit";
|
8
|
+
import { property, query, state } from "lit/decorators.js";
|
9
|
+
import { GlobalStyle, scopePrefix } from "../core/global-style.js";
|
9
10
|
const protoName = "typewriter";
|
10
|
-
const cssScope =
|
11
|
+
const cssScope = scopePrefix(protoName);
|
11
12
|
/**
|
12
13
|
* {@linkcode Typewriter} renders a typewriter effect to text.
|
14
|
+
*
|
15
|
+
* @category effect
|
13
16
|
*/
|
14
|
-
let Typewriter = class Typewriter extends
|
17
|
+
let Typewriter = class Typewriter extends GlobalStyle {
|
15
18
|
constructor() {
|
16
19
|
super(...arguments);
|
17
20
|
/**
|
@@ -54,11 +57,13 @@ let Typewriter = class Typewriter extends GodownElement {
|
|
54
57
|
return this.text.length;
|
55
58
|
}
|
56
59
|
render() {
|
57
|
-
return html `${htmlSlot()}${this.content}<i part="cursor" class="${(
|
60
|
+
return html `${htmlSlot()}${this.content}<i part="cursor" class="${classList({
|
61
|
+
hidden: this.ended,
|
62
|
+
})}"></i>`;
|
58
63
|
}
|
59
64
|
firstUpdated() {
|
60
65
|
if (!this.text) {
|
61
|
-
this.text = this.assignedNodes[0]?.textContent.trim() || "";
|
66
|
+
this.text = this._slot?.assignedNodes()[0]?.textContent.trim() || "";
|
62
67
|
}
|
63
68
|
if (!this.stopped && this.len) {
|
64
69
|
this.write();
|
@@ -72,7 +77,7 @@ let Typewriter = class Typewriter extends GodownElement {
|
|
72
77
|
write(at = this.index) {
|
73
78
|
this.content = this.text.slice(0, at + 1);
|
74
79
|
const timeout = this.delay || random(this.max, this.min);
|
75
|
-
this.timeoutID = setTimeout(() => {
|
80
|
+
this.timeoutID = window.setTimeout(() => {
|
76
81
|
const nx = at + 1;
|
77
82
|
if (nx <= this.len) {
|
78
83
|
this.index = nx;
|
@@ -116,16 +121,15 @@ __decorate([
|
|
116
121
|
], Typewriter.prototype, "_i", void 0);
|
117
122
|
Typewriter = __decorate([
|
118
123
|
godown(protoName),
|
119
|
-
styles(
|
120
|
-
css `
|
124
|
+
styles(css `
|
121
125
|
:host {
|
122
|
-
|
126
|
+
${cssScope}--cursor-width: .05em;
|
123
127
|
font-family: monospace;
|
124
128
|
white-space: nowrap;
|
125
129
|
}
|
126
130
|
|
127
131
|
i {
|
128
|
-
border-right: var(
|
132
|
+
border-right: var(${cssScope}--cursor-width) solid;
|
129
133
|
margin-left: 0.02em;
|
130
134
|
animation: s 1.5s steps(1) infinite;
|
131
135
|
}
|
@@ -146,9 +150,7 @@ Typewriter = __decorate([
|
|
146
150
|
.hidden {
|
147
151
|
visibility: hidden;
|
148
152
|
}
|
149
|
-
|
150
|
-
])
|
153
|
+
`)
|
151
154
|
], Typewriter);
|
152
|
-
export { Typewriter };
|
153
155
|
export default Typewriter;
|
154
156
|
//# sourceMappingURL=typewriter.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typewriter.js","sourceRoot":"","sources":["../../src/components/typewriter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAyB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,SAAS,GAAG,YAAY,CAAC;AAC/B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;GAIG;AAgCH,IAAM,UAA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ADC,KAAK,EAAE;2CACK;AAIb;IADC,KAAK,CAAC,GAAG,CAAC;sCACK;AA5CZ,UAAU;IA/Bf,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;QAEH,QAAQ;;;;;;0BAMU,QAAQ;;;;;;;;;;;;;;;;;;;;;GAqB/B,CAAC;GACE,UAAU,CA+Ff;AAED,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { type Gradients, presetsRGB } from "@godown/colors/presets-rgb.js";
|
2
|
+
import GodownElement from "@godown/element";
|
3
|
+
import { CSSResult } from "lit";
|
4
|
+
export declare class GlobalStyle extends GodownElement {
|
5
|
+
}
|
6
|
+
export declare function scopePrefix(scope: string, len?: number): CSSResult;
|
7
|
+
export declare function variablePrefix(variable: string): CSSResult;
|
8
|
+
export declare const cssGlobalVars: {
|
9
|
+
foreground: CSSResult;
|
10
|
+
background: CSSResult;
|
11
|
+
clipBackground: CSSResult;
|
12
|
+
active: CSSResult;
|
13
|
+
passive: CSSResult;
|
14
|
+
_colors: PresetsGradientsCSSResult;
|
15
|
+
input: CSSResult;
|
16
|
+
white: CSSResult;
|
17
|
+
black: CSSResult;
|
18
|
+
};
|
19
|
+
type PresetsGradientsCSSResult = Record<keyof typeof presetsRGB, Gradients<CSSResult>>;
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=global-style.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global-style.d.ts","sourceRoot":"","sources":["../../src/core/global-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAO,SAAS,EAAa,MAAM,KAAK,CAAC;AAIhD,qBAAa,WAAY,SAAQ,aAAa;CAC7C;AAID,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAI,aAEjD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,aAE9C;AAED,eAAO,MAAM,aAAa;;;;;;aAMT,yBAAyB;;;;CAIzC,CAAC;AAEF,KAAK,yBAAyB,GAAG,MAAM,CAAC,MAAM,OAAO,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { presetsRGB } from "@godown/colors/presets-rgb.js";
|
2
|
+
import { travel } from "@godown/colors/travel.js";
|
3
|
+
import GodownElement from "@godown/element";
|
4
|
+
import GodownConfig from "@godown/element/config.js";
|
5
|
+
import { trim } from "@godown/element/tools/lib.js";
|
6
|
+
import { css, unsafeCSS } from "lit";
|
7
|
+
GodownElement.godownConfig ||= new GodownConfig();
|
8
|
+
export class GlobalStyle extends GodownElement {
|
9
|
+
}
|
10
|
+
const cssvar = trim(GlobalStyle.godownConfig.prefix, "-");
|
11
|
+
export function scopePrefix(scope, len = 1) {
|
12
|
+
return variablePrefix(cssvar + "-".repeat(len) + scope);
|
13
|
+
}
|
14
|
+
export function variablePrefix(variable) {
|
15
|
+
return unsafeCSS("--" + variable);
|
16
|
+
}
|
17
|
+
export const cssGlobalVars = {
|
18
|
+
foreground: scopePrefix("foreground", 2),
|
19
|
+
background: scopePrefix("background", 2),
|
20
|
+
clipBackground: scopePrefix("clip-background", 2),
|
21
|
+
active: scopePrefix("active", 2),
|
22
|
+
passive: scopePrefix("passive", 2),
|
23
|
+
_colors: {},
|
24
|
+
input: scopePrefix("input", 2),
|
25
|
+
white: scopePrefix("color-white", 2),
|
26
|
+
black: scopePrefix("color-black", 2),
|
27
|
+
};
|
28
|
+
GlobalStyle.styles = [
|
29
|
+
unsafeCSS(":host{"
|
30
|
+
+ `${cssGlobalVars.black}:rgb(0 0 0);`
|
31
|
+
+ `${cssGlobalVars.white}:rgb(255 255 255);`
|
32
|
+
+ travel((key, gradient, rgb) => {
|
33
|
+
cssGlobalVars._colors[key] ||= [];
|
34
|
+
cssGlobalVars._colors[key].push(unsafeCSS(scopePrefix("color", 2) + "-" + key + "-" + gradient));
|
35
|
+
const endKey = `-${key}-${gradient}`;
|
36
|
+
const colorKey = scopePrefix("color", 2) + endKey;
|
37
|
+
return `${colorKey}:rgb(${rgb});`;
|
38
|
+
}, presetsRGB).join("")
|
39
|
+
+ "}"),
|
40
|
+
css `
|
41
|
+
:host {
|
42
|
+
${cssGlobalVars.background}: var(${cssGlobalVars._colors.darkgray[9]});
|
43
|
+
${cssGlobalVars.foreground}: var(${cssGlobalVars._colors.lightgray[0]});
|
44
|
+
${cssGlobalVars.active}: var(${cssGlobalVars._colors.blue[6]});
|
45
|
+
${cssGlobalVars.passive}: var(${cssGlobalVars._colors.darkgray[6]});
|
46
|
+
${cssGlobalVars.clipBackground}: linear-gradient(180deg, var(${cssGlobalVars.foreground}), var(${cssGlobalVars.passive}));
|
47
|
+
}
|
48
|
+
`,
|
49
|
+
css `
|
50
|
+
* {
|
51
|
+
border: 0;
|
52
|
+
outline: 0;
|
53
|
+
margin: 0;
|
54
|
+
padding: 0;
|
55
|
+
font-size: 100%;
|
56
|
+
font-style: normal;
|
57
|
+
box-sizing: border-box;
|
58
|
+
}
|
59
|
+
|
60
|
+
:host {
|
61
|
+
box-sizing: border-box;
|
62
|
+
}
|
63
|
+
|
64
|
+
a {
|
65
|
+
text-decoration: none;
|
66
|
+
}
|
67
|
+
|
68
|
+
span {
|
69
|
+
white-space: nowrap;
|
70
|
+
}
|
71
|
+
|
72
|
+
svg {
|
73
|
+
user-select: none;
|
74
|
+
}
|
75
|
+
`,
|
76
|
+
];
|
77
|
+
//# sourceMappingURL=global-style.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global-style.js","sourceRoot":"","sources":["../../src/core/global-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACl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