@xtyle/core 0.7.1 → 0.8.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 +149 -189
- package/algorithms.d.ts +3 -1
- package/dist/baked.d.ts +15 -5
- package/dist/baked.d.ts.map +1 -1
- package/dist/baked.js +32 -11
- package/dist/baked.js.map +1 -1
- package/dist/batteries.js +4 -4
- package/dist/css/components/accordion.d.ts.map +1 -1
- package/dist/css/components/accordion.js +3 -0
- package/dist/css/components/accordion.js.map +1 -1
- package/dist/css/components/bar.d.ts.map +1 -1
- package/dist/css/components/bar.js +1 -0
- package/dist/css/components/bar.js.map +1 -1
- package/dist/css/components/button.d.ts.map +1 -1
- package/dist/css/components/button.js +5 -0
- package/dist/css/components/button.js.map +1 -1
- package/dist/css/components/calendar.d.ts +2 -0
- package/dist/css/components/calendar.d.ts.map +1 -0
- package/dist/css/components/calendar.js +200 -0
- package/dist/css/components/calendar.js.map +1 -0
- package/dist/css/components/carousel.d.ts.map +1 -1
- package/dist/css/components/carousel.js +7 -0
- package/dist/css/components/carousel.js.map +1 -1
- package/dist/css/components/chart.d.ts +2 -0
- package/dist/css/components/chart.d.ts.map +1 -0
- package/dist/css/components/chart.js +158 -0
- package/dist/css/components/chart.js.map +1 -0
- package/dist/css/components/code.d.ts.map +1 -1
- package/dist/css/components/code.js +2 -5
- package/dist/css/components/code.js.map +1 -1
- package/dist/css/components/combobox.d.ts +2 -0
- package/dist/css/components/combobox.d.ts.map +1 -0
- package/dist/css/components/combobox.js +233 -0
- package/dist/css/components/combobox.js.map +1 -0
- package/dist/css/components/command-palette.d.ts +2 -0
- package/dist/css/components/command-palette.d.ts.map +1 -0
- package/dist/css/components/command-palette.js +167 -0
- package/dist/css/components/command-palette.js.map +1 -0
- package/dist/css/components/date-picker.d.ts +2 -0
- package/dist/css/components/date-picker.d.ts.map +1 -0
- package/dist/css/components/date-picker.js +201 -0
- package/dist/css/components/date-picker.js.map +1 -0
- package/dist/css/components/dock-zone.d.ts.map +1 -1
- package/dist/css/components/dock-zone.js +15 -29
- package/dist/css/components/dock-zone.js.map +1 -1
- package/dist/css/components/dropzone.d.ts +2 -0
- package/dist/css/components/dropzone.d.ts.map +1 -0
- package/dist/css/components/dropzone.js +227 -0
- package/dist/css/components/dropzone.js.map +1 -0
- package/dist/css/components/heatmap.d.ts.map +1 -1
- package/dist/css/components/heatmap.js +1 -0
- package/dist/css/components/heatmap.js.map +1 -1
- package/dist/css/components/image.d.ts.map +1 -1
- package/dist/css/components/image.js +22 -3
- package/dist/css/components/image.js.map +1 -1
- package/dist/css/components/menu.d.ts.map +1 -1
- package/dist/css/components/menu.js +7 -0
- package/dist/css/components/menu.js.map +1 -1
- package/dist/css/components/pie.d.ts.map +1 -1
- package/dist/css/components/pie.js +3 -0
- package/dist/css/components/pie.js.map +1 -1
- package/dist/css/components/popover.d.ts +2 -0
- package/dist/css/components/popover.d.ts.map +1 -0
- package/dist/css/components/popover.js +107 -0
- package/dist/css/components/popover.js.map +1 -0
- package/dist/css/components/radio.d.ts.map +1 -1
- package/dist/css/components/radio.js +5 -6
- package/dist/css/components/radio.js.map +1 -1
- package/dist/css/components/rating.d.ts.map +1 -1
- package/dist/css/components/rating.js +3 -0
- package/dist/css/components/rating.js.map +1 -1
- package/dist/css/components/redact.d.ts +2 -0
- package/dist/css/components/redact.d.ts.map +1 -0
- package/dist/css/components/redact.js +101 -0
- package/dist/css/components/redact.js.map +1 -0
- package/dist/css/components/sheet.d.ts +2 -0
- package/dist/css/components/sheet.d.ts.map +1 -0
- package/dist/css/components/sheet.js +248 -0
- package/dist/css/components/sheet.js.map +1 -0
- package/dist/css/components/slider.d.ts.map +1 -1
- package/dist/css/components/slider.js +1 -2
- package/dist/css/components/slider.js.map +1 -1
- package/dist/css/components/split-button.d.ts +2 -0
- package/dist/css/components/split-button.d.ts.map +1 -0
- package/dist/css/components/split-button.js +70 -0
- package/dist/css/components/split-button.js.map +1 -0
- package/dist/css/components/spotlight.d.ts +2 -0
- package/dist/css/components/spotlight.d.ts.map +1 -0
- package/dist/css/components/spotlight.js +156 -0
- package/dist/css/components/spotlight.js.map +1 -0
- package/dist/css/components/steps.d.ts.map +1 -1
- package/dist/css/components/steps.js +9 -13
- package/dist/css/components/steps.js.map +1 -1
- package/dist/css/components/table.d.ts.map +1 -1
- package/dist/css/components/table.js +2 -4
- package/dist/css/components/table.js.map +1 -1
- package/dist/css/components/timeline.d.ts.map +1 -1
- package/dist/css/components/timeline.js +10 -12
- package/dist/css/components/timeline.js.map +1 -1
- package/dist/css/components/toast.d.ts.map +1 -1
- package/dist/css/components/toast.js +8 -0
- package/dist/css/components/toast.js.map +1 -1
- package/dist/css/components/tooltip.d.ts.map +1 -1
- package/dist/css/components/tooltip.js +1 -0
- package/dist/css/components/tooltip.js.map +1 -1
- package/dist/css/components/tour.d.ts +2 -0
- package/dist/css/components/tour.d.ts.map +1 -0
- package/dist/css/components/tour.js +97 -0
- package/dist/css/components/tour.js.map +1 -0
- package/dist/css/components.d.ts.map +1 -1
- package/dist/css/components.js +38 -0
- package/dist/css/components.js.map +1 -1
- package/dist/css/index.d.ts +8 -0
- package/dist/css/index.d.ts.map +1 -1
- package/dist/css/index.js +8 -0
- package/dist/css/index.js.map +1 -1
- package/dist/elements/bar.d.ts +1 -1
- package/dist/elements/bar.d.ts.map +1 -1
- package/dist/elements/bar.js +11 -11
- package/dist/elements/bar.js.map +1 -1
- package/dist/elements/built-in-fills.d.ts +13 -0
- package/dist/elements/built-in-fills.d.ts.map +1 -0
- package/dist/elements/built-in-fills.js +100 -0
- package/dist/elements/built-in-fills.js.map +1 -0
- package/dist/elements/calendar.d.ts +125 -0
- package/dist/elements/calendar.d.ts.map +1 -0
- package/dist/elements/calendar.js +512 -0
- package/dist/elements/calendar.js.map +1 -0
- package/dist/elements/carousel.d.ts +82 -31
- package/dist/elements/carousel.d.ts.map +1 -1
- package/dist/elements/carousel.js +293 -194
- package/dist/elements/carousel.js.map +1 -1
- package/dist/elements/chart.d.ts +66 -0
- package/dist/elements/chart.d.ts.map +1 -0
- package/dist/elements/chart.js +392 -0
- package/dist/elements/chart.js.map +1 -0
- package/dist/elements/code.d.ts +9 -11
- package/dist/elements/code.d.ts.map +1 -1
- package/dist/elements/code.js +19 -31
- package/dist/elements/code.js.map +1 -1
- package/dist/elements/color-picker.d.ts +5 -0
- package/dist/elements/color-picker.d.ts.map +1 -1
- package/dist/elements/color-picker.js +37 -27
- package/dist/elements/color-picker.js.map +1 -1
- package/dist/elements/combobox.d.ts +199 -0
- package/dist/elements/combobox.d.ts.map +1 -0
- package/dist/elements/combobox.js +768 -0
- package/dist/elements/combobox.js.map +1 -0
- package/dist/elements/command-palette.d.ts +144 -0
- package/dist/elements/command-palette.d.ts.map +1 -0
- package/dist/elements/command-palette.js +621 -0
- package/dist/elements/command-palette.js.map +1 -0
- package/dist/elements/date-picker.d.ts +213 -0
- package/dist/elements/date-picker.d.ts.map +1 -0
- package/dist/elements/date-picker.js +913 -0
- package/dist/elements/date-picker.js.map +1 -0
- package/dist/elements/dock-zone.d.ts +74 -30
- package/dist/elements/dock-zone.d.ts.map +1 -1
- package/dist/elements/dock-zone.js +266 -277
- package/dist/elements/dock-zone.js.map +1 -1
- package/dist/elements/dropzone.d.ts +172 -0
- package/dist/elements/dropzone.d.ts.map +1 -0
- package/dist/elements/dropzone.js +662 -0
- package/dist/elements/dropzone.js.map +1 -0
- package/dist/elements/fragment-host.d.ts +73 -1
- package/dist/elements/fragment-host.d.ts.map +1 -1
- package/dist/elements/fragment-host.js +133 -7
- package/dist/elements/fragment-host.js.map +1 -1
- package/dist/elements/fragment-ssr.d.ts +3 -3
- package/dist/elements/fragment-ssr.d.ts.map +1 -1
- package/dist/elements/fragment-ssr.js +62 -10
- package/dist/elements/fragment-ssr.js.map +1 -1
- package/dist/elements/fragments/accordion/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/accordion/source.generated.js +1 -1
- package/dist/elements/fragments/accordion/source.generated.js.map +1 -1
- package/dist/elements/fragments/alert/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/alert/source.generated.js +1 -1
- package/dist/elements/fragments/alert/source.generated.js.map +1 -1
- package/dist/elements/fragments/bar/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/bar/source.generated.js +1 -1
- package/dist/elements/fragments/bar/source.generated.js.map +1 -1
- package/dist/elements/fragments/breadcrumb/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/breadcrumb/source.generated.js +1 -1
- package/dist/elements/fragments/breadcrumb/source.generated.js.map +1 -1
- package/dist/elements/fragments/calendar/source.generated.d.ts +31 -0
- package/dist/elements/fragments/calendar/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/calendar/source.generated.js +4 -0
- package/dist/elements/fragments/calendar/source.generated.js.map +1 -0
- package/dist/elements/fragments/carousel/source.generated.d.ts +30 -0
- package/dist/elements/fragments/carousel/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/carousel/source.generated.js +4 -0
- package/dist/elements/fragments/carousel/source.generated.js.map +1 -0
- package/dist/elements/fragments/chart/source.generated.d.ts +25 -0
- package/dist/elements/fragments/chart/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/chart/source.generated.js +4 -0
- package/dist/elements/fragments/chart/source.generated.js.map +1 -0
- package/dist/elements/fragments/checkbox/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/checkbox/source.generated.js +1 -1
- package/dist/elements/fragments/checkbox/source.generated.js.map +1 -1
- package/dist/elements/fragments/code/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/code/source.generated.js +1 -1
- package/dist/elements/fragments/code/source.generated.js.map +1 -1
- package/dist/elements/fragments/color-picker/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/color-picker/source.generated.js +1 -1
- package/dist/elements/fragments/color-picker/source.generated.js.map +1 -1
- package/dist/elements/fragments/combobox/source.generated.d.ts +30 -0
- package/dist/elements/fragments/combobox/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/combobox/source.generated.js +4 -0
- package/dist/elements/fragments/combobox/source.generated.js.map +1 -0
- package/dist/elements/fragments/command-palette/source.generated.d.ts +30 -0
- package/dist/elements/fragments/command-palette/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/command-palette/source.generated.js +4 -0
- package/dist/elements/fragments/command-palette/source.generated.js.map +1 -0
- package/dist/elements/fragments/component-host.json +290 -52
- package/dist/elements/fragments/date-picker/source.generated.d.ts +30 -0
- package/dist/elements/fragments/date-picker/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/date-picker/source.generated.js +4 -0
- package/dist/elements/fragments/date-picker/source.generated.js.map +1 -0
- package/dist/elements/fragments/dock-zone/source.generated.d.ts +25 -0
- package/dist/elements/fragments/dock-zone/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/dock-zone/source.generated.js +4 -0
- package/dist/elements/fragments/dock-zone/source.generated.js.map +1 -0
- package/dist/elements/fragments/dropzone/source.generated.d.ts +30 -0
- package/dist/elements/fragments/dropzone/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/dropzone/source.generated.js +4 -0
- package/dist/elements/fragments/dropzone/source.generated.js.map +1 -0
- package/dist/elements/fragments/field/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/field/source.generated.js +1 -1
- package/dist/elements/fragments/field/source.generated.js.map +1 -1
- package/dist/elements/fragments/form-group/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/form-group/source.generated.js +1 -1
- package/dist/elements/fragments/form-group/source.generated.js.map +1 -1
- package/dist/elements/fragments/heatmap/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/heatmap/source.generated.js +1 -1
- package/dist/elements/fragments/heatmap/source.generated.js.map +1 -1
- package/dist/elements/fragments/image/source.generated.d.ts +5 -0
- package/dist/elements/fragments/image/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/image/source.generated.js +2 -2
- package/dist/elements/fragments/image/source.generated.js.map +1 -1
- package/dist/elements/fragments/menu/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/menu/source.generated.js +1 -1
- package/dist/elements/fragments/menu/source.generated.js.map +1 -1
- package/dist/elements/fragments/number-input/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/number-input/source.generated.js +1 -1
- package/dist/elements/fragments/number-input/source.generated.js.map +1 -1
- package/dist/elements/fragments/pagination/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/pagination/source.generated.js +1 -1
- package/dist/elements/fragments/pagination/source.generated.js.map +1 -1
- package/dist/elements/fragments/panel/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/panel/source.generated.js +1 -1
- package/dist/elements/fragments/panel/source.generated.js.map +1 -1
- package/dist/elements/fragments/pie/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/pie/source.generated.js +1 -1
- package/dist/elements/fragments/pie/source.generated.js.map +1 -1
- package/dist/elements/fragments/popover/source.generated.d.ts +25 -0
- package/dist/elements/fragments/popover/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/popover/source.generated.js +4 -0
- package/dist/elements/fragments/popover/source.generated.js.map +1 -0
- package/dist/elements/fragments/radio/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/radio/source.generated.js +1 -1
- package/dist/elements/fragments/radio/source.generated.js.map +1 -1
- package/dist/elements/fragments/rating/source.generated.d.ts +25 -0
- package/dist/elements/fragments/rating/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/rating/source.generated.js +4 -0
- package/dist/elements/fragments/rating/source.generated.js.map +1 -0
- package/dist/elements/fragments/redact/source.generated.d.ts +26 -0
- package/dist/elements/fragments/redact/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/redact/source.generated.js +4 -0
- package/dist/elements/fragments/redact/source.generated.js.map +1 -0
- package/dist/elements/fragments/segmented/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/segmented/source.generated.js +1 -1
- package/dist/elements/fragments/segmented/source.generated.js.map +1 -1
- package/dist/elements/fragments/select/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/select/source.generated.js +1 -1
- package/dist/elements/fragments/select/source.generated.js.map +1 -1
- package/dist/elements/fragments/sheet/source.generated.d.ts +30 -0
- package/dist/elements/fragments/sheet/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/sheet/source.generated.js +4 -0
- package/dist/elements/fragments/sheet/source.generated.js.map +1 -0
- package/dist/elements/fragments/slider/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/slider/source.generated.js +2 -2
- package/dist/elements/fragments/slider/source.generated.js.map +1 -1
- package/dist/elements/fragments/split-button/source.generated.d.ts +30 -0
- package/dist/elements/fragments/split-button/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/split-button/source.generated.js +4 -0
- package/dist/elements/fragments/split-button/source.generated.js.map +1 -0
- package/dist/elements/fragments/spotlight/source.generated.d.ts +30 -0
- package/dist/elements/fragments/spotlight/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/spotlight/source.generated.js +4 -0
- package/dist/elements/fragments/spotlight/source.generated.js.map +1 -0
- package/dist/elements/fragments/steps/source.generated.d.ts +25 -0
- package/dist/elements/fragments/steps/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/steps/source.generated.js +4 -0
- package/dist/elements/fragments/steps/source.generated.js.map +1 -0
- package/dist/elements/fragments/switch/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/switch/source.generated.js +1 -1
- package/dist/elements/fragments/switch/source.generated.js.map +1 -1
- package/dist/elements/fragments/tabs/source.generated.js +1 -1
- package/dist/elements/fragments/textarea/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/textarea/source.generated.js +1 -1
- package/dist/elements/fragments/textarea/source.generated.js.map +1 -1
- package/dist/elements/fragments/timeline/source.generated.d.ts +25 -0
- package/dist/elements/fragments/timeline/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/timeline/source.generated.js +4 -0
- package/dist/elements/fragments/timeline/source.generated.js.map +1 -0
- package/dist/elements/fragments/toast/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/toast/source.generated.js +1 -1
- package/dist/elements/fragments/toast/source.generated.js.map +1 -1
- package/dist/elements/fragments/toc/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/toc/source.generated.js +1 -1
- package/dist/elements/fragments/toc/source.generated.js.map +1 -1
- package/dist/elements/fragments/tooltip/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/tooltip/source.generated.js +1 -1
- package/dist/elements/fragments/tooltip/source.generated.js.map +1 -1
- package/dist/elements/fragments/tour/source.generated.d.ts +30 -0
- package/dist/elements/fragments/tour/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/tour/source.generated.js +4 -0
- package/dist/elements/fragments/tour/source.generated.js.map +1 -0
- package/dist/elements/fragments/tree/source.generated.js +1 -1
- package/dist/elements/heatmap.d.ts +1 -2
- package/dist/elements/heatmap.d.ts.map +1 -1
- package/dist/elements/heatmap.js +11 -25
- package/dist/elements/heatmap.js.map +1 -1
- package/dist/elements/icon.d.ts +6 -5
- package/dist/elements/icon.d.ts.map +1 -1
- package/dist/elements/icon.js +5 -4
- package/dist/elements/icon.js.map +1 -1
- package/dist/elements/image.d.ts +23 -4
- package/dist/elements/image.d.ts.map +1 -1
- package/dist/elements/image.js +86 -78
- package/dist/elements/image.js.map +1 -1
- package/dist/elements/index.d.ts +32 -1
- package/dist/elements/index.d.ts.map +1 -1
- package/dist/elements/index.js +25 -0
- package/dist/elements/index.js.map +1 -1
- package/dist/elements/menu.d.ts +47 -0
- package/dist/elements/menu.d.ts.map +1 -1
- package/dist/elements/menu.js +118 -11
- package/dist/elements/menu.js.map +1 -1
- package/dist/elements/overlay-position.d.ts +38 -6
- package/dist/elements/overlay-position.d.ts.map +1 -1
- package/dist/elements/overlay-position.js +65 -11
- package/dist/elements/overlay-position.js.map +1 -1
- package/dist/elements/pie.d.ts.map +1 -1
- package/dist/elements/pie.js +10 -12
- package/dist/elements/pie.js.map +1 -1
- package/dist/elements/popover.d.ts +252 -0
- package/dist/elements/popover.d.ts.map +1 -0
- package/dist/elements/popover.js +764 -0
- package/dist/elements/popover.js.map +1 -0
- package/dist/elements/progress.d.ts +6 -6
- package/dist/elements/progress.d.ts.map +1 -1
- package/dist/elements/progress.js +6 -6
- package/dist/elements/progress.js.map +1 -1
- package/dist/elements/rating.d.ts +24 -11
- package/dist/elements/rating.d.ts.map +1 -1
- package/dist/elements/rating.js +60 -28
- package/dist/elements/rating.js.map +1 -1
- package/dist/elements/redact.d.ts +71 -0
- package/dist/elements/redact.d.ts.map +1 -0
- package/dist/elements/redact.js +260 -0
- package/dist/elements/redact.js.map +1 -0
- package/dist/elements/sheet.d.ts +88 -0
- package/dist/elements/sheet.d.ts.map +1 -0
- package/dist/elements/sheet.js +323 -0
- package/dist/elements/sheet.js.map +1 -0
- package/dist/elements/slider.d.ts +20 -9
- package/dist/elements/slider.d.ts.map +1 -1
- package/dist/elements/slider.js +91 -80
- package/dist/elements/slider.js.map +1 -1
- package/dist/elements/split-button.d.ts +68 -0
- package/dist/elements/split-button.d.ts.map +1 -0
- package/dist/elements/split-button.js +216 -0
- package/dist/elements/split-button.js.map +1 -0
- package/dist/elements/spotlight.d.ts +117 -0
- package/dist/elements/spotlight.d.ts.map +1 -0
- package/dist/elements/spotlight.js +407 -0
- package/dist/elements/spotlight.js.map +1 -0
- package/dist/elements/steps.d.ts +44 -11
- package/dist/elements/steps.d.ts.map +1 -1
- package/dist/elements/steps.js +136 -40
- package/dist/elements/steps.js.map +1 -1
- package/dist/elements/table.d.ts +1 -0
- package/dist/elements/table.d.ts.map +1 -1
- package/dist/elements/table.js +16 -2
- package/dist/elements/table.js.map +1 -1
- package/dist/elements/timeline.d.ts +42 -9
- package/dist/elements/timeline.d.ts.map +1 -1
- package/dist/elements/timeline.js +131 -28
- package/dist/elements/timeline.js.map +1 -1
- package/dist/elements/toast.d.ts +11 -2
- package/dist/elements/toast.d.ts.map +1 -1
- package/dist/elements/toast.js +56 -38
- package/dist/elements/toast.js.map +1 -1
- package/dist/elements/tooltip.js +1 -1
- package/dist/elements/tooltip.js.map +1 -1
- package/dist/elements/tour.d.ts +77 -0
- package/dist/elements/tour.d.ts.map +1 -0
- package/dist/elements/tour.js +300 -0
- package/dist/elements/tour.js.map +1 -0
- package/dist/elements/tree.d.ts +30 -0
- package/dist/elements/tree.d.ts.map +1 -1
- package/dist/elements/tree.js +101 -7
- package/dist/elements/tree.js.map +1 -1
- package/dist/fonts/embed.d.ts +89 -0
- package/dist/fonts/embed.d.ts.map +1 -0
- package/dist/fonts/embed.js +180 -0
- package/dist/fonts/embed.js.map +1 -0
- package/dist/fonts/google.d.ts +119 -0
- package/dist/fonts/google.d.ts.map +1 -0
- package/dist/fonts/google.js +143 -0
- package/dist/fonts/google.js.map +1 -0
- package/dist/host/algorithms-bundle.generated.d.ts.map +1 -1
- package/dist/host/algorithms-bundle.generated.js +1 -1
- package/dist/host/algorithms-bundle.generated.js.map +1 -1
- package/dist/host/bundle.d.ts +7 -0
- package/dist/host/bundle.d.ts.map +1 -1
- package/dist/host/bundle.js +10 -1
- package/dist/host/bundle.js.map +1 -1
- package/dist/host/index.d.ts +35 -1
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.js +70 -3
- package/dist/host/index.js.map +1 -1
- package/dist/host/registry.d.ts +36 -3
- package/dist/host/registry.d.ts.map +1 -1
- package/dist/host/registry.js +74 -22
- package/dist/host/registry.js.map +1 -1
- package/dist/icon-builder.d.ts +61 -13
- package/dist/icon-builder.d.ts.map +1 -1
- package/dist/icon-builder.js +146 -35
- package/dist/icon-builder.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest/accordion.manifest.d.ts.map +1 -1
- package/dist/manifest/accordion.manifest.js +3 -2
- package/dist/manifest/accordion.manifest.js.map +1 -1
- package/dist/manifest/alert.manifest.d.ts.map +1 -1
- package/dist/manifest/alert.manifest.js +1 -0
- package/dist/manifest/alert.manifest.js.map +1 -1
- package/dist/manifest/app-shell.manifest.d.ts.map +1 -1
- package/dist/manifest/app-shell.manifest.js +2 -1
- package/dist/manifest/app-shell.manifest.js.map +1 -1
- package/dist/manifest/avatar.manifest.d.ts.map +1 -1
- package/dist/manifest/avatar.manifest.js +1 -0
- package/dist/manifest/avatar.manifest.js.map +1 -1
- package/dist/manifest/badge.manifest.d.ts.map +1 -1
- package/dist/manifest/badge.manifest.js +1 -0
- package/dist/manifest/badge.manifest.js.map +1 -1
- package/dist/manifest/bar.manifest.d.ts.map +1 -1
- package/dist/manifest/bar.manifest.js +13 -7
- package/dist/manifest/bar.manifest.js.map +1 -1
- package/dist/manifest/bottom-nav.manifest.js +2 -2
- package/dist/manifest/bottom-nav.manifest.js.map +1 -1
- package/dist/manifest/breadcrumb.manifest.d.ts.map +1 -1
- package/dist/manifest/breadcrumb.manifest.js +1 -0
- package/dist/manifest/breadcrumb.manifest.js.map +1 -1
- package/dist/manifest/button.manifest.d.ts.map +1 -1
- package/dist/manifest/button.manifest.js +1 -0
- package/dist/manifest/button.manifest.js.map +1 -1
- package/dist/manifest/calendar.manifest.d.ts +3 -0
- package/dist/manifest/calendar.manifest.d.ts.map +1 -0
- package/dist/manifest/calendar.manifest.js +405 -0
- package/dist/manifest/calendar.manifest.js.map +1 -0
- package/dist/manifest/card-link.manifest.d.ts.map +1 -1
- package/dist/manifest/card-link.manifest.js +1 -0
- package/dist/manifest/card-link.manifest.js.map +1 -1
- package/dist/manifest/card.manifest.d.ts.map +1 -1
- package/dist/manifest/card.manifest.js +1 -0
- package/dist/manifest/card.manifest.js.map +1 -1
- package/dist/manifest/carousel.manifest.d.ts.map +1 -1
- package/dist/manifest/carousel.manifest.js +23 -5
- package/dist/manifest/carousel.manifest.js.map +1 -1
- package/dist/manifest/chart.manifest.d.ts +3 -0
- package/dist/manifest/chart.manifest.d.ts.map +1 -0
- package/dist/manifest/chart.manifest.js +430 -0
- package/dist/manifest/chart.manifest.js.map +1 -0
- package/dist/manifest/checkbox.manifest.d.ts.map +1 -1
- package/dist/manifest/checkbox.manifest.js +1 -0
- package/dist/manifest/checkbox.manifest.js.map +1 -1
- package/dist/manifest/cluster.manifest.d.ts.map +1 -1
- package/dist/manifest/cluster.manifest.js +1 -0
- package/dist/manifest/cluster.manifest.js.map +1 -1
- package/dist/manifest/code.manifest.d.ts.map +1 -1
- package/dist/manifest/code.manifest.js +8 -2
- package/dist/manifest/code.manifest.js.map +1 -1
- package/dist/manifest/color-picker.manifest.d.ts.map +1 -1
- package/dist/manifest/color-picker.manifest.js +2 -1
- package/dist/manifest/color-picker.manifest.js.map +1 -1
- package/dist/manifest/combobox.manifest.d.ts +3 -0
- package/dist/manifest/combobox.manifest.d.ts.map +1 -0
- package/dist/manifest/combobox.manifest.js +484 -0
- package/dist/manifest/combobox.manifest.js.map +1 -0
- package/dist/manifest/command-palette.manifest.d.ts +3 -0
- package/dist/manifest/command-palette.manifest.d.ts.map +1 -0
- package/dist/manifest/command-palette.manifest.js +413 -0
- package/dist/manifest/command-palette.manifest.js.map +1 -0
- package/dist/manifest/date-picker.manifest.d.ts +3 -0
- package/dist/manifest/date-picker.manifest.d.ts.map +1 -0
- package/dist/manifest/date-picker.manifest.js +296 -0
- package/dist/manifest/date-picker.manifest.js.map +1 -0
- package/dist/manifest/dialog.manifest.d.ts.map +1 -1
- package/dist/manifest/dialog.manifest.js +1 -0
- package/dist/manifest/dialog.manifest.js.map +1 -1
- package/dist/manifest/dock-zone.manifest.d.ts.map +1 -1
- package/dist/manifest/dock-zone.manifest.js +30 -8
- package/dist/manifest/dock-zone.manifest.js.map +1 -1
- package/dist/manifest/dock.manifest.d.ts.map +1 -1
- package/dist/manifest/dock.manifest.js +2 -0
- package/dist/manifest/dock.manifest.js.map +1 -1
- package/dist/manifest/dropzone.manifest.d.ts +3 -0
- package/dist/manifest/dropzone.manifest.d.ts.map +1 -0
- package/dist/manifest/dropzone.manifest.js +410 -0
- package/dist/manifest/dropzone.manifest.js.map +1 -0
- package/dist/manifest/eyebrow.manifest.d.ts.map +1 -1
- package/dist/manifest/eyebrow.manifest.js +1 -0
- package/dist/manifest/eyebrow.manifest.js.map +1 -1
- package/dist/manifest/field.manifest.d.ts.map +1 -1
- package/dist/manifest/field.manifest.js +1 -0
- package/dist/manifest/field.manifest.js.map +1 -1
- package/dist/manifest/form-group.manifest.d.ts.map +1 -1
- package/dist/manifest/form-group.manifest.js +2 -1
- package/dist/manifest/form-group.manifest.js.map +1 -1
- package/dist/manifest/grid.manifest.d.ts.map +1 -1
- package/dist/manifest/grid.manifest.js +1 -0
- package/dist/manifest/grid.manifest.js.map +1 -1
- package/dist/manifest/heading.manifest.d.ts.map +1 -1
- package/dist/manifest/heading.manifest.js +1 -0
- package/dist/manifest/heading.manifest.js.map +1 -1
- package/dist/manifest/heatmap.manifest.d.ts.map +1 -1
- package/dist/manifest/heatmap.manifest.js +24 -18
- package/dist/manifest/heatmap.manifest.js.map +1 -1
- package/dist/manifest/icon.manifest.d.ts.map +1 -1
- package/dist/manifest/icon.manifest.js +67 -10
- package/dist/manifest/icon.manifest.js.map +1 -1
- package/dist/manifest/image.manifest.d.ts.map +1 -1
- package/dist/manifest/image.manifest.js +8 -2
- package/dist/manifest/image.manifest.js.map +1 -1
- package/dist/manifest/kbd.manifest.d.ts.map +1 -1
- package/dist/manifest/kbd.manifest.js +1 -0
- package/dist/manifest/kbd.manifest.js.map +1 -1
- package/dist/manifest/link.manifest.d.ts.map +1 -1
- package/dist/manifest/link.manifest.js +1 -0
- package/dist/manifest/link.manifest.js.map +1 -1
- package/dist/manifest/menu.manifest.d.ts.map +1 -1
- package/dist/manifest/menu.manifest.js +93 -3
- package/dist/manifest/menu.manifest.js.map +1 -1
- package/dist/manifest/mobile-shell.manifest.js +1 -1
- package/dist/manifest/mobile-shell.manifest.js.map +1 -1
- package/dist/manifest/number-input.manifest.d.ts.map +1 -1
- package/dist/manifest/number-input.manifest.js +1 -0
- package/dist/manifest/number-input.manifest.js.map +1 -1
- package/dist/manifest/pagination.manifest.d.ts.map +1 -1
- package/dist/manifest/pagination.manifest.js +1 -0
- package/dist/manifest/pagination.manifest.js.map +1 -1
- package/dist/manifest/panel.manifest.d.ts.map +1 -1
- package/dist/manifest/panel.manifest.js +7 -0
- package/dist/manifest/panel.manifest.js.map +1 -1
- package/dist/manifest/pie.manifest.d.ts.map +1 -1
- package/dist/manifest/pie.manifest.js +12 -6
- package/dist/manifest/pie.manifest.js.map +1 -1
- package/dist/manifest/popover.manifest.d.ts +3 -0
- package/dist/manifest/popover.manifest.d.ts.map +1 -0
- package/dist/manifest/popover.manifest.js +470 -0
- package/dist/manifest/popover.manifest.js.map +1 -0
- package/dist/manifest/progress.manifest.d.ts.map +1 -1
- package/dist/manifest/progress.manifest.js +5 -4
- package/dist/manifest/progress.manifest.js.map +1 -1
- package/dist/manifest/radio.manifest.d.ts.map +1 -1
- package/dist/manifest/radio.manifest.js +8 -2
- package/dist/manifest/radio.manifest.js.map +1 -1
- package/dist/manifest/rating.manifest.d.ts.map +1 -1
- package/dist/manifest/rating.manifest.js +33 -8
- package/dist/manifest/rating.manifest.js.map +1 -1
- package/dist/manifest/redact.manifest.d.ts +3 -0
- package/dist/manifest/redact.manifest.d.ts.map +1 -0
- package/dist/manifest/redact.manifest.js +160 -0
- package/dist/manifest/redact.manifest.js.map +1 -0
- package/dist/manifest/registry.d.ts.map +1 -1
- package/dist/manifest/registry.js +24 -0
- package/dist/manifest/registry.js.map +1 -1
- package/dist/manifest/section.manifest.d.ts.map +1 -1
- package/dist/manifest/section.manifest.js +1 -0
- package/dist/manifest/section.manifest.js.map +1 -1
- package/dist/manifest/segmented.manifest.d.ts.map +1 -1
- package/dist/manifest/segmented.manifest.js +1 -0
- package/dist/manifest/segmented.manifest.js.map +1 -1
- package/dist/manifest/select.manifest.d.ts.map +1 -1
- package/dist/manifest/select.manifest.js +1 -0
- package/dist/manifest/select.manifest.js.map +1 -1
- package/dist/manifest/separator.manifest.d.ts.map +1 -1
- package/dist/manifest/separator.manifest.js +1 -0
- package/dist/manifest/separator.manifest.js.map +1 -1
- package/dist/manifest/sheet.manifest.d.ts +3 -0
- package/dist/manifest/sheet.manifest.d.ts.map +1 -0
- package/dist/manifest/sheet.manifest.js +356 -0
- package/dist/manifest/sheet.manifest.js.map +1 -0
- package/dist/manifest/skeleton.manifest.d.ts.map +1 -1
- package/dist/manifest/skeleton.manifest.js +1 -0
- package/dist/manifest/skeleton.manifest.js.map +1 -1
- package/dist/manifest/slider.manifest.d.ts.map +1 -1
- package/dist/manifest/slider.manifest.js +21 -2
- package/dist/manifest/slider.manifest.js.map +1 -1
- package/dist/manifest/spinner.manifest.d.ts.map +1 -1
- package/dist/manifest/spinner.manifest.js +1 -0
- package/dist/manifest/spinner.manifest.js.map +1 -1
- package/dist/manifest/split-button.manifest.d.ts +3 -0
- package/dist/manifest/split-button.manifest.d.ts.map +1 -0
- package/dist/manifest/split-button.manifest.js +243 -0
- package/dist/manifest/split-button.manifest.js.map +1 -0
- package/dist/manifest/splitter.manifest.d.ts.map +1 -1
- package/dist/manifest/splitter.manifest.js +1 -0
- package/dist/manifest/splitter.manifest.js.map +1 -1
- package/dist/manifest/spotlight.manifest.d.ts +3 -0
- package/dist/manifest/spotlight.manifest.d.ts.map +1 -0
- package/dist/manifest/spotlight.manifest.js +287 -0
- package/dist/manifest/spotlight.manifest.js.map +1 -0
- package/dist/manifest/stack.manifest.d.ts.map +1 -1
- package/dist/manifest/stack.manifest.js +1 -0
- package/dist/manifest/stack.manifest.js.map +1 -1
- package/dist/manifest/stat.manifest.d.ts.map +1 -1
- package/dist/manifest/stat.manifest.js +1 -0
- package/dist/manifest/stat.manifest.js.map +1 -1
- package/dist/manifest/statusbar.manifest.d.ts.map +1 -1
- package/dist/manifest/statusbar.manifest.js +1 -0
- package/dist/manifest/statusbar.manifest.js.map +1 -1
- package/dist/manifest/steps.manifest.d.ts.map +1 -1
- package/dist/manifest/steps.manifest.js +23 -10
- package/dist/manifest/steps.manifest.js.map +1 -1
- package/dist/manifest/swatch.manifest.d.ts.map +1 -1
- package/dist/manifest/swatch.manifest.js +1 -0
- package/dist/manifest/swatch.manifest.js.map +1 -1
- package/dist/manifest/switch.manifest.d.ts.map +1 -1
- package/dist/manifest/switch.manifest.js +1 -0
- package/dist/manifest/switch.manifest.js.map +1 -1
- package/dist/manifest/table.manifest.d.ts.map +1 -1
- package/dist/manifest/table.manifest.js +12 -9
- package/dist/manifest/table.manifest.js.map +1 -1
- package/dist/manifest/tabs.manifest.d.ts.map +1 -1
- package/dist/manifest/tabs.manifest.js +1 -0
- package/dist/manifest/tabs.manifest.js.map +1 -1
- package/dist/manifest/text.manifest.d.ts.map +1 -1
- package/dist/manifest/text.manifest.js +1 -0
- package/dist/manifest/text.manifest.js.map +1 -1
- package/dist/manifest/textarea.manifest.d.ts.map +1 -1
- package/dist/manifest/textarea.manifest.js +1 -0
- package/dist/manifest/textarea.manifest.js.map +1 -1
- package/dist/manifest/timeline.manifest.d.ts.map +1 -1
- package/dist/manifest/timeline.manifest.js +28 -9
- package/dist/manifest/timeline.manifest.js.map +1 -1
- package/dist/manifest/toast.manifest.d.ts.map +1 -1
- package/dist/manifest/toast.manifest.js +10 -1
- package/dist/manifest/toast.manifest.js.map +1 -1
- package/dist/manifest/toc.manifest.d.ts.map +1 -1
- package/dist/manifest/toc.manifest.js +1 -0
- package/dist/manifest/toc.manifest.js.map +1 -1
- package/dist/manifest/toolbar.manifest.d.ts.map +1 -1
- package/dist/manifest/toolbar.manifest.js +1 -0
- package/dist/manifest/toolbar.manifest.js.map +1 -1
- package/dist/manifest/tooltip.manifest.d.ts.map +1 -1
- package/dist/manifest/tooltip.manifest.js +1 -0
- package/dist/manifest/tooltip.manifest.js.map +1 -1
- package/dist/manifest/tour.manifest.d.ts +3 -0
- package/dist/manifest/tour.manifest.d.ts.map +1 -0
- package/dist/manifest/tour.manifest.js +243 -0
- package/dist/manifest/tour.manifest.js.map +1 -0
- package/dist/manifest/tree.manifest.d.ts.map +1 -1
- package/dist/manifest/tree.manifest.js +42 -2
- package/dist/manifest/tree.manifest.js.map +1 -1
- package/dist/manifest/types.d.ts +4 -2
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/markup/bar.d.ts +4 -4
- package/dist/markup/bar.d.ts.map +1 -1
- package/dist/markup/calendar.d.ts +213 -0
- package/dist/markup/calendar.d.ts.map +1 -0
- package/dist/markup/calendar.js +372 -0
- package/dist/markup/calendar.js.map +1 -0
- package/dist/markup/chart.d.ts +55 -0
- package/dist/markup/chart.d.ts.map +1 -0
- package/dist/markup/chart.js +73 -0
- package/dist/markup/chart.js.map +1 -0
- package/dist/markup/code.d.ts +12 -10
- package/dist/markup/code.d.ts.map +1 -1
- package/dist/markup/code.js +14 -11
- package/dist/markup/code.js.map +1 -1
- package/dist/markup/combobox.d.ts +19 -0
- package/dist/markup/combobox.d.ts.map +1 -0
- package/dist/markup/combobox.js +22 -0
- package/dist/markup/combobox.js.map +1 -0
- package/dist/markup/command-palette.d.ts +57 -0
- package/dist/markup/command-palette.d.ts.map +1 -0
- package/dist/markup/command-palette.js +88 -0
- package/dist/markup/command-palette.js.map +1 -0
- package/dist/markup/date-picker.d.ts +142 -0
- package/dist/markup/date-picker.d.ts.map +1 -0
- package/dist/markup/date-picker.js +455 -0
- package/dist/markup/date-picker.js.map +1 -0
- package/dist/markup/dropzone.d.ts +112 -0
- package/dist/markup/dropzone.d.ts.map +1 -0
- package/dist/markup/dropzone.js +166 -0
- package/dist/markup/dropzone.js.map +1 -0
- package/dist/markup/escape.d.ts +9 -0
- package/dist/markup/escape.d.ts.map +1 -1
- package/dist/markup/escape.js +11 -0
- package/dist/markup/escape.js.map +1 -1
- package/dist/markup/heatmap.d.ts +4 -2
- package/dist/markup/heatmap.d.ts.map +1 -1
- package/dist/markup/heatmap.js.map +1 -1
- package/dist/markup/image.d.ts +2 -0
- package/dist/markup/image.d.ts.map +1 -1
- package/dist/markup/image.js +4 -0
- package/dist/markup/image.js.map +1 -1
- package/dist/markup/index.d.ts +21 -1
- package/dist/markup/index.d.ts.map +1 -1
- package/dist/markup/index.js +11 -1
- package/dist/markup/index.js.map +1 -1
- package/dist/markup/menu.d.ts +4 -2
- package/dist/markup/menu.d.ts.map +1 -1
- package/dist/markup/menu.js +4 -2
- package/dist/markup/menu.js.map +1 -1
- package/dist/markup/pie.d.ts +4 -4
- package/dist/markup/pie.d.ts.map +1 -1
- package/dist/markup/popover.d.ts +25 -0
- package/dist/markup/popover.d.ts.map +1 -0
- package/dist/markup/popover.js +6 -0
- package/dist/markup/popover.js.map +1 -0
- package/dist/markup/redact.d.ts +11 -0
- package/dist/markup/redact.d.ts.map +1 -0
- package/dist/markup/redact.js +5 -0
- package/dist/markup/redact.js.map +1 -0
- package/dist/markup/sheet.d.ts +8 -0
- package/dist/markup/sheet.d.ts.map +1 -0
- package/dist/markup/sheet.js +3 -0
- package/dist/markup/sheet.js.map +1 -0
- package/dist/markup/split-button.d.ts +6 -0
- package/dist/markup/split-button.d.ts.map +1 -0
- package/dist/markup/split-button.js +3 -0
- package/dist/markup/split-button.js.map +1 -0
- package/dist/markup/spotlight.d.ts +35 -0
- package/dist/markup/spotlight.d.ts.map +1 -0
- package/dist/markup/spotlight.js +46 -0
- package/dist/markup/spotlight.js.map +1 -0
- package/dist/markup/tour.d.ts +7 -0
- package/dist/markup/tour.d.ts.map +1 -0
- package/dist/markup/tour.js +4 -0
- package/dist/markup/tour.js.map +1 -0
- package/dist/series.d.ts +109 -62
- package/dist/series.d.ts.map +1 -1
- package/dist/series.js +150 -139
- package/dist/series.js.map +1 -1
- package/manifest.json +3 -2
- package/package.json +2 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/** Extension → mime, so a native drop that hands over nothing but `C:\pics\cat.png` still answers an
|
|
2
|
+
* `accept="image/*"` honestly. A miss leaves the type empty, and an empty type only matches an
|
|
3
|
+
* extension pattern. */
|
|
4
|
+
const EXT_TYPES = {
|
|
5
|
+
apng: "image/apng",
|
|
6
|
+
avif: "image/avif",
|
|
7
|
+
bmp: "image/bmp",
|
|
8
|
+
gif: "image/gif",
|
|
9
|
+
heic: "image/heic",
|
|
10
|
+
ico: "image/x-icon",
|
|
11
|
+
jpeg: "image/jpeg",
|
|
12
|
+
jpg: "image/jpeg",
|
|
13
|
+
png: "image/png",
|
|
14
|
+
svg: "image/svg+xml",
|
|
15
|
+
tif: "image/tiff",
|
|
16
|
+
tiff: "image/tiff",
|
|
17
|
+
webp: "image/webp",
|
|
18
|
+
aac: "audio/aac",
|
|
19
|
+
flac: "audio/flac",
|
|
20
|
+
m4a: "audio/mp4",
|
|
21
|
+
mp3: "audio/mpeg",
|
|
22
|
+
ogg: "audio/ogg",
|
|
23
|
+
opus: "audio/opus",
|
|
24
|
+
wav: "audio/wav",
|
|
25
|
+
avi: "video/x-msvideo",
|
|
26
|
+
mkv: "video/x-matroska",
|
|
27
|
+
mov: "video/quicktime",
|
|
28
|
+
mp4: "video/mp4",
|
|
29
|
+
webm: "video/webm",
|
|
30
|
+
csv: "text/csv",
|
|
31
|
+
htm: "text/html",
|
|
32
|
+
html: "text/html",
|
|
33
|
+
md: "text/markdown",
|
|
34
|
+
txt: "text/plain",
|
|
35
|
+
css: "text/css",
|
|
36
|
+
js: "text/javascript",
|
|
37
|
+
json: "application/json",
|
|
38
|
+
pdf: "application/pdf",
|
|
39
|
+
xml: "application/xml",
|
|
40
|
+
yaml: "application/yaml",
|
|
41
|
+
yml: "application/yaml",
|
|
42
|
+
doc: "application/msword",
|
|
43
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
44
|
+
xls: "application/vnd.ms-excel",
|
|
45
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
46
|
+
ppt: "application/vnd.ms-powerpoint",
|
|
47
|
+
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
48
|
+
"7z": "application/x-7z-compressed",
|
|
49
|
+
gz: "application/gzip",
|
|
50
|
+
rar: "application/vnd.rar",
|
|
51
|
+
tar: "application/x-tar",
|
|
52
|
+
zip: "application/zip",
|
|
53
|
+
};
|
|
54
|
+
const SIZE_UNITS = ["B", "KB", "MB", "GB", "TB"];
|
|
55
|
+
/** The trailing segment of a path or a name, either separator — a native drop hands over whole paths. */
|
|
56
|
+
export function baseName(pathOrName) {
|
|
57
|
+
const cut = Math.max(pathOrName.lastIndexOf("/"), pathOrName.lastIndexOf("\\"));
|
|
58
|
+
return cut === -1 ? pathOrName : pathOrName.slice(cut + 1);
|
|
59
|
+
}
|
|
60
|
+
export function extensionOf(name) {
|
|
61
|
+
const dot = name.lastIndexOf(".");
|
|
62
|
+
return dot <= 0 ? "" : name.slice(dot + 1).toLowerCase();
|
|
63
|
+
}
|
|
64
|
+
/** The mime type a bare name implies, so a path-only drop can still be matched against `accept`. */
|
|
65
|
+
export function inferType(name) {
|
|
66
|
+
return EXT_TYPES[extensionOf(name)] ?? "";
|
|
67
|
+
}
|
|
68
|
+
/** `5mb`, `500kb`, `1.5 GB`, or a raw byte count. Returns `undefined` for anything unparseable, so a
|
|
69
|
+
* typo'd limit fails open rather than rejecting every file. */
|
|
70
|
+
export function parseByteSize(raw) {
|
|
71
|
+
if (raw === null || raw === undefined)
|
|
72
|
+
return undefined;
|
|
73
|
+
if (typeof raw === "number")
|
|
74
|
+
return Number.isFinite(raw) ? Math.round(raw) : undefined;
|
|
75
|
+
const match = /^\s*([\d.]+)\s*(b|kb|mb|gb|tb|k|m|g|t)?\s*$/i.exec(raw);
|
|
76
|
+
if (!match?.[1])
|
|
77
|
+
return undefined;
|
|
78
|
+
const value = Number.parseFloat(match[1]);
|
|
79
|
+
if (!Number.isFinite(value))
|
|
80
|
+
return undefined;
|
|
81
|
+
const unit = (match[2] ?? "b").toLowerCase();
|
|
82
|
+
const power = { b: 0, k: 1, kb: 1, m: 2, mb: 2, g: 3, gb: 3, t: 4, tb: 4 }[unit] ?? 0;
|
|
83
|
+
return Math.round(value * 1024 ** power);
|
|
84
|
+
}
|
|
85
|
+
export function formatBytes(bytes) {
|
|
86
|
+
if (!Number.isFinite(bytes) || bytes < 0)
|
|
87
|
+
return "—";
|
|
88
|
+
let value = bytes;
|
|
89
|
+
let unit = 0;
|
|
90
|
+
while (value >= 1024 && unit < SIZE_UNITS.length - 1) {
|
|
91
|
+
value /= 1024;
|
|
92
|
+
unit += 1;
|
|
93
|
+
}
|
|
94
|
+
const rounded = unit === 0 ? String(value) : value.toFixed(value < 10 ? 1 : 0);
|
|
95
|
+
return `${rounded} ${SIZE_UNITS[unit]}`;
|
|
96
|
+
}
|
|
97
|
+
/** One `accept` token (`.png`, `image/*`, `application/pdf`, `*`) against a candidate's name and type. */
|
|
98
|
+
export function matchesPattern(pattern, name, type) {
|
|
99
|
+
const token = pattern.trim().toLowerCase();
|
|
100
|
+
if (token === "")
|
|
101
|
+
return false;
|
|
102
|
+
if (token === "*" || token === "*/*")
|
|
103
|
+
return true;
|
|
104
|
+
if (token.startsWith("."))
|
|
105
|
+
return name.toLowerCase().endsWith(token);
|
|
106
|
+
if (token.endsWith("/*"))
|
|
107
|
+
return type.toLowerCase().startsWith(token.slice(0, -1));
|
|
108
|
+
return type.toLowerCase() === token;
|
|
109
|
+
}
|
|
110
|
+
/** How many files the zone will hold: unlimited under `multiple` with no ceiling set, and always 1 without it. */
|
|
111
|
+
export function dropzoneMaxFiles(multiple, maxFiles) {
|
|
112
|
+
if (!multiple)
|
|
113
|
+
return 1;
|
|
114
|
+
return maxFiles !== null && maxFiles !== undefined && Number.isFinite(maxFiles) && maxFiles > 0
|
|
115
|
+
? maxFiles
|
|
116
|
+
: Number.POSITIVE_INFINITY;
|
|
117
|
+
}
|
|
118
|
+
/** The hint under the prompt when the consumer wrote none: whatever the constraints actually are, so
|
|
119
|
+
* the line cannot drift from the rules it describes. */
|
|
120
|
+
export function dropzoneHint(props) {
|
|
121
|
+
const parts = [];
|
|
122
|
+
const accept = (props.accept ?? "").trim();
|
|
123
|
+
if (accept !== "") {
|
|
124
|
+
parts.push(accept
|
|
125
|
+
.split(",")
|
|
126
|
+
.map((token) => token.trim())
|
|
127
|
+
.filter(Boolean)
|
|
128
|
+
.join(", "));
|
|
129
|
+
}
|
|
130
|
+
const max = parseByteSize(props.maxSize ?? null);
|
|
131
|
+
if (max !== undefined)
|
|
132
|
+
parts.push(`up to ${formatBytes(max)}`);
|
|
133
|
+
const multiple = props.multiple ?? false;
|
|
134
|
+
const count = dropzoneMaxFiles(multiple, props.maxFiles);
|
|
135
|
+
if (multiple && Number.isFinite(count))
|
|
136
|
+
parts.push(`${count} files max`);
|
|
137
|
+
return parts.join(" · ");
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The dropzone fill's binding contract, in one place. The custom element calls it on every render with
|
|
141
|
+
* its live file list; the `@xtyle/astro` binding calls it at build with an empty one, so the
|
|
142
|
+
* server-rendered surface is what the element paints on its first frame and hydration patches rather
|
|
143
|
+
* than rebuilds. Pure and DOM-free, so it is safe to import in any environment (SSR included).
|
|
144
|
+
*/
|
|
145
|
+
export function dropzoneBindings(props) {
|
|
146
|
+
const files = props.files ?? [];
|
|
147
|
+
return {
|
|
148
|
+
inputId: props.inputId,
|
|
149
|
+
hintId: `${props.inputId}-hint`,
|
|
150
|
+
prompt: props.prompt ?? "Drop files here",
|
|
151
|
+
hint: props.hint ?? dropzoneHint(props),
|
|
152
|
+
browseLabel: props.browseLabel ?? "or browse",
|
|
153
|
+
slotted: props.slotted ?? false,
|
|
154
|
+
dragging: props.dragging ?? false,
|
|
155
|
+
rejecting: props.rejecting ?? false,
|
|
156
|
+
disabled: props.disabled ?? false,
|
|
157
|
+
multiple: props.multiple ?? false,
|
|
158
|
+
files,
|
|
159
|
+
rejections: props.rejections ?? [],
|
|
160
|
+
removeLabel: "Remove",
|
|
161
|
+
clearLabel: "Clear all",
|
|
162
|
+
countLabel: `${files.length} files`,
|
|
163
|
+
rebuildList: props.rebuildList ?? false,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=dropzone.js.map
|
|
@@ -0,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KAAK,CAAC;QACvC,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,WAAW;QAC7C,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,KAAK;QACjC,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,KAAK;QACjC,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,KAAK;QACjC,KAAK;QACL,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,EAAE;QAClC,WAAW,EAAE,QAAQ;QACrB,UAAU,EAAE,WAAW;QACvB,UAAU,EAAE,GAAG,KAAK,CAAC,MAAM,QAAQ;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,KAAK;KACvC,CAAC;AACH,CAAC"}
|
package/dist/markup/escape.d.ts
CHANGED
|
@@ -8,4 +8,13 @@
|
|
|
8
8
|
export declare function escapeHtml(value: string): string;
|
|
9
9
|
/** Escapes `&`, `<`, `>`, and `"` for safe interpolation into HTML attribute values. */
|
|
10
10
|
export declare function escapeAttr(value: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Escapes a value for interpolation inside a quoted CSS string — `url('…')`, a `content:`, a font family.
|
|
13
|
+
*
|
|
14
|
+
* A well-formed URL contains none of these characters, so this is a no-op on good input and a muzzle on
|
|
15
|
+
* bad: a quote can no longer close the string, a `)` can no longer close the `url()`, and a `<` can no
|
|
16
|
+
* longer open a `</style>` and escape the stylesheet entirely. CSS hex escapes (`\27 `) are inert
|
|
17
|
+
* everywhere the raw character would not be.
|
|
18
|
+
*/
|
|
19
|
+
export declare function escapeCssUrl(value: string): string;
|
|
11
20
|
//# sourceMappingURL=escape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/markup/escape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wFAAwF;AACxF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
|
|
1
|
+
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/markup/escape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wFAAwF;AACxF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
package/dist/markup/escape.js
CHANGED
|
@@ -12,4 +12,15 @@ export function escapeHtml(value) {
|
|
|
12
12
|
export function escapeAttr(value) {
|
|
13
13
|
return escapeHtml(value).replace(/"/g, """);
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Escapes a value for interpolation inside a quoted CSS string — `url('…')`, a `content:`, a font family.
|
|
17
|
+
*
|
|
18
|
+
* A well-formed URL contains none of these characters, so this is a no-op on good input and a muzzle on
|
|
19
|
+
* bad: a quote can no longer close the string, a `)` can no longer close the `url()`, and a `<` can no
|
|
20
|
+
* longer open a `</style>` and escape the stylesheet entirely. CSS hex escapes (`\27 `) are inert
|
|
21
|
+
* everywhere the raw character would not be.
|
|
22
|
+
*/
|
|
23
|
+
export function escapeCssUrl(value) {
|
|
24
|
+
return value.replace(/[\\'"()<>\s;]/g, (c) => `\\${c.codePointAt(0).toString(16)} `);
|
|
25
|
+
}
|
|
15
26
|
//# sourceMappingURL=escape.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/markup/escape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,6EAA6E;AAC7E,MAAM,UAAU,UAAU,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACjF,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,UAAU,CAAC,KAAa;IACvC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAClD,CAAC"}
|
|
1
|
+
{"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/markup/escape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,6EAA6E;AAC7E,MAAM,UAAU,UAAU,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACjF,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,UAAU,CAAC,KAAa;IACvC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAClG,CAAC"}
|
package/dist/markup/heatmap.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Palette } from "../series.js";
|
|
2
|
+
/** Any named palette (or an explicit list of colors). A continuous grid interpolates its stops; a
|
|
3
|
+
* `categorical` grid samples them, one per category. */
|
|
4
|
+
export type HeatmapScheme = Palette | string[];
|
|
3
5
|
/** Shared by the element's scaffold and the SSR shadow root. */
|
|
4
6
|
export declare const heatmapHostCss = ":host { display: block; }";
|
|
5
7
|
//# sourceMappingURL=heatmap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../src/markup/heatmap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../src/markup/heatmap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;wDACwD;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAE/C,gEAAgE;AAChE,eAAO,MAAM,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.js","sourceRoot":"","sources":["../../src/markup/heatmap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heatmap.js","sourceRoot":"","sources":["../../src/markup/heatmap.ts"],"names":[],"mappings":"AAMA,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG,2BAA2B,CAAC"}
|
package/dist/markup/image.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type ImageTrigger = "frame" | "button";
|
|
|
6
6
|
export type ImageHoverAudio = "on" | "off";
|
|
7
7
|
/** The host-layout rule for an image: the one `:host` rule, shared by the element's scaffold and the SSR declarative shadow root. */
|
|
8
8
|
export declare const imageHostCss = ":host { display: block; }";
|
|
9
|
+
/** Whether a `hover-src` resolves to a `<video>` (and so can carry sound) rather than an `<img>`. */
|
|
10
|
+
export declare function isHoverVideo(src: string | null | undefined): boolean;
|
|
9
11
|
/**
|
|
10
12
|
* The hover-preview media generated from a `hover-src`: a muted, looping `<video>` for a video URL
|
|
11
13
|
* (the element plays it on hover) or an `<img>` for a gif / animated source. Shared by the element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/markup/image.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC9C,kGAAkG;AAClG,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,CAAC;AAE3C,qIAAqI;AACrI,eAAO,MAAM,YAAY,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/markup/image.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC9C,kGAAkG;AAClG,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,CAAC;AAE3C,qIAAqI;AACrI,eAAO,MAAM,YAAY,8BAA8B,CAAC;AAIxD,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEpE;AAUD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAQnE"}
|
package/dist/markup/image.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** The host-layout rule for an image: the one `:host` rule, shared by the element's scaffold and the SSR declarative shadow root. */
|
|
2
2
|
export const imageHostCss = ":host { display: block; }";
|
|
3
3
|
const VIDEO_EXT = /\.(mp4|webm|ogv|mov|m4v)(\?|#|$)/i;
|
|
4
|
+
/** Whether a `hover-src` resolves to a `<video>` (and so can carry sound) rather than an `<img>`. */
|
|
5
|
+
export function isHoverVideo(src) {
|
|
6
|
+
return !!src && VIDEO_EXT.test(src);
|
|
7
|
+
}
|
|
4
8
|
function escAttr(value) {
|
|
5
9
|
return value
|
|
6
10
|
.replace(/&/g, "&")
|
package/dist/markup/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/markup/image.ts"],"names":[],"mappings":"AAOA,qIAAqI;AACrI,MAAM,CAAC,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAExD,MAAM,SAAS,GAAG,mCAAmC,CAAC;AAEtD,SAAS,OAAO,CAAC,KAAa;IAC7B,OAAO,KAAK;SACV,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,MAAe;IAC1D,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,mGAAmG,UAAU,iBAAiB,CAAC,cAAc,CAAC;IACtJ,CAAC;IACD,OAAO,iEAAiE,CAAC,6CAA6C,CAAC;AACxH,CAAC"}
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/markup/image.ts"],"names":[],"mappings":"AAOA,qIAAqI;AACrI,MAAM,CAAC,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAExD,MAAM,SAAS,GAAG,mCAAmC,CAAC;AAEtD,qGAAqG;AACrG,MAAM,UAAU,YAAY,CAAC,GAA8B;IAC1D,OAAO,CAAC,CAAC,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,OAAO,CAAC,KAAa;IAC7B,OAAO,KAAK;SACV,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,MAAe;IAC1D,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,mGAAmG,UAAU,iBAAiB,CAAC,cAAc,CAAC;IACtJ,CAAC;IACD,OAAO,iEAAiE,CAAC,6CAA6C,CAAC;AACxH,CAAC"}
|
package/dist/markup/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { escapeHtml, escapeAttr } from "./escape.js";
|
|
1
|
+
export { escapeHtml, escapeAttr, escapeCssUrl } from "./escape.js";
|
|
2
2
|
export { cardHostCss } from "./card.js";
|
|
3
3
|
export { badgeHostCss } from "./badge.js";
|
|
4
4
|
export { dotHostCss, dotClass } from "./dot.js";
|
|
@@ -18,6 +18,8 @@ export { imageHostCss, hoverMediaHtml } from "./image.js";
|
|
|
18
18
|
export type { ImageFit, ImageRadius, ImageLoading, ImageTrigger, ImageHoverAudio } from "./image.js";
|
|
19
19
|
export { barHostCss } from "./bar.js";
|
|
20
20
|
export type { BarSeries, BarScheme } from "./bar.js";
|
|
21
|
+
export { chartHostCss, resolveChartPlot, CHART_VARIANTS, CHART_CURVES, CHART_X_SCALES } from "./chart.js";
|
|
22
|
+
export type { ChartSeries, ChartScheme, ChartVariant, ChartCurve, ChartXScale, ChartPlot, ChartPlotSeries, ChartPlotOptions, } from "./chart.js";
|
|
21
23
|
export { sparklineHostCss, resolveSparklineBounds, formatSparklineValue } from "./sparkline.js";
|
|
22
24
|
export type { SparklineVariant, SparklineTone, SparklineBounds, SparklineFormat } from "./sparkline.js";
|
|
23
25
|
export { heatmapHostCss } from "./heatmap.js";
|
|
@@ -91,9 +93,23 @@ export { colorPickerMarkup, colorPickerHostCss, channelSliders, clamp01, formatC
|
|
|
91
93
|
export type { ColorPickerMarkupProps, Hsv } from "./color-picker.js";
|
|
92
94
|
export { dialogHostCss } from "./dialog.js";
|
|
93
95
|
export type { DialogSize } from "./dialog.js";
|
|
96
|
+
export { sheetHostCss } from "./sheet.js";
|
|
97
|
+
export type { SheetSide, SheetSize } from "./sheet.js";
|
|
98
|
+
export { splitButtonHostCss } from "./split-button.js";
|
|
99
|
+
export type { SplitButtonSize } from "./split-button.js";
|
|
100
|
+
export { spotlightHostCss, cutoutPath } from "./spotlight.js";
|
|
101
|
+
export type { SpotlightShape, SpotlightArrow, SpotlightRect, CutoutOptions } from "./spotlight.js";
|
|
94
102
|
export { menuHostCss } from "./menu.js";
|
|
95
103
|
export type { MenuItem, MenuAction } from "./menu.js";
|
|
104
|
+
export { popoverHostCss } from "./popover.js";
|
|
105
|
+
export type { PopoverPlacement, PopoverAlign, PopoverFocus, PopoverPanelRole, PopoverCloseReason, } from "./popover.js";
|
|
106
|
+
export { commandPaletteHostCss, subsequenceMatch, subsequenceScorer, highlightRuns } from "./command-palette.js";
|
|
107
|
+
export type { CommandItem, CommandMatch, CommandScorer, CommandCloseReason } from "./command-palette.js";
|
|
108
|
+
export { comboboxHostCss, filterOptions, optionLabel } from "./combobox.js";
|
|
109
|
+
export type { ComboboxFilter } from "./combobox.js";
|
|
96
110
|
export { numberInputHostCss, clampNumber, type ClampSpec } from "./number-input.js";
|
|
111
|
+
export { datePickerHostCss, EMPTY_VALUE, TIME_LIST_FLOOR_SECONDS, clampCivilValue, compareCivilTime, compareCivilValue, datePlaceholder, effectiveTimeBounds, formatDateDisplay, formatIsoTime, formatIsoValue, formatTimeDisplay, isValidDate, isValidTime, isWithinBounds, localeDateOrder, localeDayPeriods, localeHour12, nudgeTime, parseDateText, parseDisabledDays, parseIsoTime, parseIsoValue, parseTimeText, resolveHour12, resolveListStep, secondsOfDay, snapTimeToStep, stepShowsSeconds, timeFromSeconds, timeListOptions, timePlaceholder, } from "./date-picker.js";
|
|
112
|
+
export type { CivilTime, CivilValue, DatePickerMode, HourCyclePosture } from "./date-picker.js";
|
|
97
113
|
export { segmentedHostCss, parseSegments, normalizeSegments, selectedValue } from "./segmented.js";
|
|
98
114
|
export type { Segment, SegmentInput } from "./segmented.js";
|
|
99
115
|
export { sliderHostCss } from "./slider.js";
|
|
@@ -107,4 +123,8 @@ export { codeMarkup, codeClass, codeHostCss, plainCodeHtml, splitCodeLines, code
|
|
|
107
123
|
export type { CodeMarkupProps } from "./code.js";
|
|
108
124
|
export { paginationMarkup, paginationClass, paginationHostCss, paginationRange, paginationHref } from "./pagination.js";
|
|
109
125
|
export type { PaginationMarkupProps } from "./pagination.js";
|
|
126
|
+
export { calendarBindings, calendarHostCss, civilToDate, toIso, toMonthKey, parseIso, parseMonth, daysInMonth, weekdayOf, addDays, addMonths, compareDates, clampDate, todayIn, resolveWeekInfo, startOfWeek, weekNumber, weekdayNames, monthTitle, dayNumeral, fullDateLabel, parseCalendarValue, formatCalendarValue, isDayDisabled, selectDate, isSelectionComplete, } from "./calendar.js";
|
|
127
|
+
export type { CalendarMode, CivilDate, WeekInfo, CalendarDecoration, CalendarDecorations, CalendarLimits, CalendarDayBinding, CalendarWeekBinding, CalendarBindings, CalendarBindingProps, } from "./calendar.js";
|
|
128
|
+
export { dropzoneBindings, dropzoneHint, dropzoneMaxFiles, formatBytes, parseByteSize } from "./dropzone.js";
|
|
129
|
+
export type { DropzoneBindingProps, DropzoneFileBinding, DropzoneRejectionBinding, DropFile, DropFileDescriptor, DropFileStatus, DropItem, DropRejectReason, DropRejection, DropResult, DropSource, } from "./dropzone.js";
|
|
110
130
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9F,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,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EACR,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,UAAU,GACV,MAAM,eAAe,CAAC"}
|
package/dist/markup/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { escapeHtml, escapeAttr } from "./escape.js";
|
|
1
|
+
export { escapeHtml, escapeAttr, escapeCssUrl } from "./escape.js";
|
|
2
2
|
export { cardHostCss } from "./card.js";
|
|
3
3
|
export { badgeHostCss } from "./badge.js";
|
|
4
4
|
export { dotHostCss, dotClass } from "./dot.js";
|
|
@@ -10,6 +10,7 @@ export { mobileShellHostCss } from "./mobile-shell.js";
|
|
|
10
10
|
export { bottomNavHostCss } from "./bottom-nav.js";
|
|
11
11
|
export { imageHostCss, hoverMediaHtml } from "./image.js";
|
|
12
12
|
export { barHostCss } from "./bar.js";
|
|
13
|
+
export { chartHostCss, resolveChartPlot, CHART_VARIANTS, CHART_CURVES, CHART_X_SCALES } from "./chart.js";
|
|
13
14
|
export { sparklineHostCss, resolveSparklineBounds, formatSparklineValue } from "./sparkline.js";
|
|
14
15
|
export { heatmapHostCss } from "./heatmap.js";
|
|
15
16
|
export { pieHostCss } from "./pie.js";
|
|
@@ -51,8 +52,15 @@ export { accordionHostCss } from "./accordion.js";
|
|
|
51
52
|
export { breadcrumbMarkup, breadcrumbClass, breadcrumbHostCss } from "./breadcrumb.js";
|
|
52
53
|
export { colorPickerMarkup, colorPickerHostCss, channelSliders, clamp01, formatChannelValue, namedSnapLabel, PLANE_MAX_C, PLANE_W, PLANE_H, OUT_OF_GAMUT_DESAT, PLANE_EDGE_SHADE } from "./color-picker.js";
|
|
53
54
|
export { dialogHostCss } from "./dialog.js";
|
|
55
|
+
export { sheetHostCss } from "./sheet.js";
|
|
56
|
+
export { splitButtonHostCss } from "./split-button.js";
|
|
57
|
+
export { spotlightHostCss, cutoutPath } from "./spotlight.js";
|
|
54
58
|
export { menuHostCss } from "./menu.js";
|
|
59
|
+
export { popoverHostCss } from "./popover.js";
|
|
60
|
+
export { commandPaletteHostCss, subsequenceMatch, subsequenceScorer, highlightRuns } from "./command-palette.js";
|
|
61
|
+
export { comboboxHostCss, filterOptions, optionLabel } from "./combobox.js";
|
|
55
62
|
export { numberInputHostCss, clampNumber } from "./number-input.js";
|
|
63
|
+
export { datePickerHostCss, EMPTY_VALUE, TIME_LIST_FLOOR_SECONDS, clampCivilValue, compareCivilTime, compareCivilValue, datePlaceholder, effectiveTimeBounds, formatDateDisplay, formatIsoTime, formatIsoValue, formatTimeDisplay, isValidDate, isValidTime, isWithinBounds, localeDateOrder, localeDayPeriods, localeHour12, nudgeTime, parseDateText, parseDisabledDays, parseIsoTime, parseIsoValue, parseTimeText, resolveHour12, resolveListStep, secondsOfDay, snapTimeToStep, stepShowsSeconds, timeFromSeconds, timeListOptions, timePlaceholder, } from "./date-picker.js";
|
|
56
64
|
export { segmentedHostCss, parseSegments, normalizeSegments, selectedValue } from "./segmented.js";
|
|
57
65
|
export { sliderHostCss } from "./slider.js";
|
|
58
66
|
export { statusbarHostCss } from "./statusbar.js";
|
|
@@ -61,4 +69,6 @@ export { treeMarkup, treeClass, treeHostCss, firstSelectedValue, treeBadges } fr
|
|
|
61
69
|
export { splitterHostCss } from "./splitter.js";
|
|
62
70
|
export { codeMarkup, codeClass, codeHostCss, plainCodeHtml, splitCodeLines, codeGutterWidth, parseLineSpec } from "./code.js";
|
|
63
71
|
export { paginationMarkup, paginationClass, paginationHostCss, paginationRange, paginationHref } from "./pagination.js";
|
|
72
|
+
export { calendarBindings, calendarHostCss, civilToDate, toIso, toMonthKey, parseIso, parseMonth, daysInMonth, weekdayOf, addDays, addMonths, compareDates, clampDate, todayIn, resolveWeekInfo, startOfWeek, weekNumber, weekdayNames, monthTitle, dayNumeral, fullDateLabel, parseCalendarValue, formatCalendarValue, isDayDisabled, selectDate, isSelectionComplete, } from "./calendar.js";
|
|
73
|
+
export { dropzoneBindings, dropzoneHint, dropzoneMaxFiles, formatBytes, parseByteSize } from "./dropzone.js";
|
|
64
74
|
//# sourceMappingURL=index.js.map
|
package/dist/markup/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/markup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/markup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAW1G,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC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tC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/F,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE9H,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAExH,OAAO,EACN,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,KAAK,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,SAAS,EACT,OAAO,EACP,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,mBAAmB,GACnB,MAAM,eAAe,CAAC;AAavB,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/markup/menu.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type MenuItem = MenuAction | {
|
|
|
17
17
|
} | {
|
|
18
18
|
heading: string;
|
|
19
19
|
};
|
|
20
|
-
/** The host-layout
|
|
21
|
-
|
|
20
|
+
/** The host-layout rules for a menu — the `:host` rules, shared by the element's `styles()` and the SSR declarative shadow root.
|
|
21
|
+
* A cursor-anchored (`context`) menu draws no trigger, so it collapses to `display: contents` rather than `none`: a popover
|
|
22
|
+
* inside a `display: none` subtree cannot be shown at all. */
|
|
23
|
+
export declare const menuHostCss = ":host { display: inline-block; } :host([context]) { display: contents; }";
|
|
22
24
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/markup/menu.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oKAAoK;IACpK,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uKAAuK;IACvK,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9E
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/markup/menu.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oKAAoK;IACpK,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uKAAuK;IACvK,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9E;;8DAE8D;AAC9D,eAAO,MAAM,WAAW,6EAA6E,CAAC"}
|
package/dist/markup/menu.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
/** The host-layout
|
|
2
|
-
|
|
1
|
+
/** The host-layout rules for a menu — the `:host` rules, shared by the element's `styles()` and the SSR declarative shadow root.
|
|
2
|
+
* A cursor-anchored (`context`) menu draws no trigger, so it collapses to `display: contents` rather than `none`: a popover
|
|
3
|
+
* inside a `display: none` subtree cannot be shown at all. */
|
|
4
|
+
export const menuHostCss = ":host { display: inline-block; } :host([context]) { display: contents; }";
|
|
3
5
|
//# sourceMappingURL=menu.js.map
|
package/dist/markup/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/markup/menu.ts"],"names":[],"mappings":"AAiBA
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/markup/menu.ts"],"names":[],"mappings":"AAiBA;;8DAE8D;AAC9D,MAAM,CAAC,MAAM,WAAW,GAAG,0EAA0E,CAAC"}
|
package/dist/markup/pie.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Palette, StatusTone } from "../series.js";
|
|
2
2
|
export interface PieDatum {
|
|
3
3
|
label: string;
|
|
4
4
|
value: number;
|
|
5
|
-
/** For the `statuses`
|
|
5
|
+
/** For the `statuses` palette, the semantic outcome this slice represents. Colors it by meaning
|
|
6
6
|
* regardless of which categories are present, so a filtered-out zero-value slice never shifts the
|
|
7
|
-
* mapping. Ignored by every other
|
|
7
|
+
* mapping. Ignored by every other palette. */
|
|
8
8
|
tone?: StatusTone;
|
|
9
9
|
}
|
|
10
|
-
export type PieScheme =
|
|
10
|
+
export type PieScheme = Palette | string[];
|
|
11
11
|
export type PieVariant = "pie" | "donut";
|
|
12
12
|
/** The host-layout rule for a pie chart, shared by the element's scaffold and the SSR shadow root. */
|
|
13
13
|
export declare const pieHostCss = ":host { display: block; }";
|
package/dist/markup/pie.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie.d.ts","sourceRoot":"","sources":["../../src/markup/pie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"pie.d.ts","sourceRoot":"","sources":["../../src/markup/pie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,QAAQ;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;kDAE8C;IAC9C,IAAI,CAAC,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzC,sGAAsG;AACtG,eAAO,MAAM,UAAU,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** The side of the anchor the panel prefers; it flips to the opposite side when there is no room. */
|
|
2
|
+
export type PopoverPlacement = "top" | "bottom" | "left" | "right";
|
|
3
|
+
/** Cross-axis alignment against the anchor. `start` ↔ `end` flip near a viewport edge; `center` clamps. */
|
|
4
|
+
export type PopoverAlign = "start" | "center" | "end";
|
|
5
|
+
/**
|
|
6
|
+
* Where focus goes when `show()` / `openAt()` / `openFrom()` open the panel.
|
|
7
|
+
* `first` takes the first focusable node inside it, `panel` takes the panel itself
|
|
8
|
+
* (for a body of static content), `none` leaves focus exactly where it was — what a
|
|
9
|
+
* type-ahead surface needs, since its input must keep the caret while the list floats.
|
|
10
|
+
*/
|
|
11
|
+
export type PopoverFocus = "first" | "panel" | "none";
|
|
12
|
+
/**
|
|
13
|
+
* The ARIA role the panel carries. `dialog` is the generic anchored-surface default and wants an
|
|
14
|
+
* accessible name; a surface whose content brings its own semantics (a listbox, a menu) names the
|
|
15
|
+
* role it actually is, or `none` to make the panel a transparent box around the author's own widget.
|
|
16
|
+
*/
|
|
17
|
+
export type PopoverPanelRole = "dialog" | "listbox" | "menu" | "grid" | "tree" | "none";
|
|
18
|
+
/** How the panel closes — carried on the `close` event's detail. */
|
|
19
|
+
export type PopoverCloseReason = "escape" | "dismiss" | "select" | "api";
|
|
20
|
+
/** The host-layout rules for a popover — the `:host` rules, shared by the element's `styles()` and the SSR
|
|
21
|
+
* declarative shadow root. The host collapses to `display: contents`: the trigger wrapper is the only box
|
|
22
|
+
* the component puts in flow, and a triggerless (point-anchored) popover takes no layout at all. It also
|
|
23
|
+
* keeps the panel out of a `display: none` subtree, which a popover cannot be shown from. */
|
|
24
|
+
export declare const popoverHostCss = ":host { display: contents; }";
|
|
25
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/markup/popover.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,2GAA2G;AAC3G,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAExF,oEAAoE;AACpE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEzE;;;6FAG6F;AAC7F,eAAO,MAAM,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** The host-layout rules for a popover — the `:host` rules, shared by the element's `styles()` and the SSR
|
|
2
|
+
* declarative shadow root. The host collapses to `display: contents`: the trigger wrapper is the only box
|
|
3
|
+
* the component puts in flow, and a triggerless (point-anchored) popover takes no layout at all. It also
|
|
4
|
+
* keeps the panel out of a `display: none` subtree, which a popover cannot be shown from. */
|
|
5
|
+
export const popoverHostCss = ":host { display: contents; }";
|
|
6
|
+
//# sourceMappingURL=popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/markup/popover.ts"],"names":[],"mappings":"AAwBA;;;6FAG6F;AAC7F,MAAM,CAAC,MAAM,cAAc,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** How a redaction obscures its content while concealed. `blur` softens it, `block` lays a solid
|
|
2
|
+
* bar over it, `mask` covers it with a dotted fill. */
|
|
3
|
+
export type RedactMode = "blur" | "block" | "mask";
|
|
4
|
+
/** What brings the content back. `hover` reveals while hovered or focused, `click` toggles it,
|
|
5
|
+
* `hold` shows it only while pressed, `never` leaves the reveal to the page-level switch alone. */
|
|
6
|
+
export type RedactReveal = "hover" | "click" | "hold" | "never";
|
|
7
|
+
/** The host-layout rule for a redaction — shared by the element's fragment scaffold and the SSR
|
|
8
|
+
* declarative shadow root. It flows inline with the text it sits in and gives the cover a box to
|
|
9
|
+
* absolutely fill. */
|
|
10
|
+
export declare const redactHostCss = ":host { display: inline-block; }";
|
|
11
|
+
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../src/markup/redact.ts"],"names":[],"mappings":"AAAA;uDACuD;AACvD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEnD;mGACmG;AACnG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE;;sBAEsB;AACtB,eAAO,MAAM,aAAa,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The host-layout rule for a redaction — shared by the element's fragment scaffold and the SSR
|
|
2
|
+
* declarative shadow root. It flows inline with the text it sits in and gives the cover a box to
|
|
3
|
+
* absolutely fill. */
|
|
4
|
+
export const redactHostCss = ":host { display: inline-block; }";
|
|
5
|
+
//# sourceMappingURL=redact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.js","sourceRoot":"","sources":["../../src/markup/redact.ts"],"names":[],"mappings":"AAQA;;sBAEsB;AACtB,MAAM,CAAC,MAAM,aAAa,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Which viewport edge a sheet is anchored to, and therefore the axis it slides and swipes along. */
|
|
2
|
+
export type SheetSide = "top" | "right" | "bottom" | "left";
|
|
3
|
+
/** A sheet's extent across its anchored edge: a height for `top` / `bottom`, a width for `left` / `right`.
|
|
4
|
+
* The `--sheet-block` / `--sheet-inline` custom properties override any of them. */
|
|
5
|
+
export type SheetSize = "sm" | "md" | "lg" | "full";
|
|
6
|
+
/** The host-layout rule for a sheet — the `:host` rule plus the scaffold wrapper, shared by the element's fragment scaffold and the SSR declarative shadow root. */
|
|
7
|
+
export declare const sheetHostCss = ":host { display: contents; } .xtyle-sheet-host { display: contents; }";
|
|
8
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/markup/sheet.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D;oFACoF;AACpF,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,oKAAoK;AACpK,eAAO,MAAM,YAAY,0EAA0E,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The host-layout rule for a sheet — the `:host` rule plus the scaffold wrapper, shared by the element's fragment scaffold and the SSR declarative shadow root. */
|
|
2
|
+
export const sheetHostCss = ":host { display: contents; } .xtyle-sheet-host { display: contents; }";
|
|
3
|
+
//# sourceMappingURL=sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../src/markup/sheet.ts"],"names":[],"mappings":"AAOA,oKAAoK;AACpK,MAAM,CAAC,MAAM,YAAY,GAAG,uEAAuE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Size } from "../vocab.js";
|
|
2
|
+
/** A split button's size, matching Button's steps so the pair can sit in the same row. */
|
|
3
|
+
export type SplitButtonSize = Size | "xs";
|
|
4
|
+
/** The host-layout rule for a split button — the `:host` rule, shared by the element's fragment scaffold and the SSR declarative shadow root. */
|
|
5
|
+
export declare const splitButtonHostCss = ":host { display: inline-flex; } :host([block]) { display: flex; }";
|
|
6
|
+
//# sourceMappingURL=split-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../src/markup/split-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,0FAA0F;AAC1F,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,iJAAiJ;AACjJ,eAAO,MAAM,kBAAkB,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The host-layout rule for a split button — the `:host` rule, shared by the element's fragment scaffold and the SSR declarative shadow root. */
|
|
2
|
+
export const splitButtonHostCss = ":host { display: inline-flex; } :host([block]) { display: flex; }";
|
|
3
|
+
//# sourceMappingURL=split-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button.js","sourceRoot":"","sources":["../../src/markup/split-button.ts"],"names":[],"mappings":"AAKA,iJAAiJ;AACjJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,mEAAmE,CAAC"}
|