@fusion.dev/helix 0.0.0-dev
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/LICENSE +21 -0
- package/custom-elements.json +99157 -0
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/item/accordion-item.css.d.ts +1 -0
- package/dist/accordion/item/accordion-item.css.js +92 -0
- package/dist/accordion/item/accordion-item.d.ts +39 -0
- package/dist/accordion/item/accordion-item.js +45 -0
- package/dist/accordion/root/accordion-root.css.d.ts +1 -0
- package/dist/accordion/root/accordion-root.css.js +25 -0
- package/dist/accordion/root/accordion-root.d.ts +49 -0
- package/dist/accordion/root/accordion-root.js +40 -0
- package/dist/announcement/index.d.ts +1 -0
- package/dist/announcement/index.js +1 -0
- package/dist/announcement/root/announcement-root.css.d.ts +1 -0
- package/dist/announcement/root/announcement-root.css.js +145 -0
- package/dist/announcement/root/announcement-root.d.ts +26 -0
- package/dist/announcement/root/announcement-root.js +32 -0
- package/dist/app-header/index.d.ts +1 -0
- package/dist/app-header/index.js +1 -0
- package/dist/app-header/root/app-header-root.css.d.ts +1 -0
- package/dist/app-header/root/app-header-root.css.js +112 -0
- package/dist/app-header/root/app-header-root.d.ts +103 -0
- package/dist/app-header/root/app-header-root.js +72 -0
- package/dist/aura/index.d.ts +1 -0
- package/dist/aura/index.js +1 -0
- package/dist/aura/root/aura-axis.d.ts +61 -0
- package/dist/aura/root/aura-axis.js +68 -0
- package/dist/aura/root/aura-root.css.d.ts +1 -0
- package/dist/aura/root/aura-root.css.js +35 -0
- package/dist/aura/root/aura-root.d.ts +447 -0
- package/dist/aura/root/aura-root.js +1024 -0
- package/dist/aura/root/aura-shader.d.ts +46 -0
- package/dist/aura/root/aura-shader.js +1145 -0
- package/dist/avatar/group/avatar-group.css.d.ts +1 -0
- package/dist/avatar/group/avatar-group.css.js +48 -0
- package/dist/avatar/group/avatar-group.d.ts +34 -0
- package/dist/avatar/group/avatar-group.js +40 -0
- package/dist/avatar/index.d.ts +2 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/root/avatar-root.css.d.ts +1 -0
- package/dist/avatar/root/avatar-root.css.js +55 -0
- package/dist/avatar/root/avatar-root.d.ts +41 -0
- package/dist/avatar/root/avatar-root.js +46 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/index.js +1 -0
- package/dist/badge/root/badge-root.css.d.ts +1 -0
- package/dist/badge/root/badge-root.css.js +91 -0
- package/dist/badge/root/badge-root.d.ts +38 -0
- package/dist/badge/root/badge-root.js +38 -0
- package/dist/bar-chart/index.d.ts +1 -0
- package/dist/bar-chart/index.js +1 -0
- package/dist/bar-chart/root/bar-chart-root.css.d.ts +1 -0
- package/dist/bar-chart/root/bar-chart-root.css.js +445 -0
- package/dist/bar-chart/root/bar-chart-root.d.ts +177 -0
- package/dist/bar-chart/root/bar-chart-root.js +122 -0
- package/dist/blockquote/index.d.ts +1 -0
- package/dist/blockquote/index.js +1 -0
- package/dist/blockquote/root/blockquote-root.css.d.ts +1 -0
- package/dist/blockquote/root/blockquote-root.css.js +42 -0
- package/dist/blockquote/root/blockquote-root.d.ts +27 -0
- package/dist/blockquote/root/blockquote-root.js +33 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.css.d.ts +1 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +109 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +38 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.js +44 -0
- package/dist/breadcrumbs/index.d.ts +2 -0
- package/dist/breadcrumbs/index.js +2 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.css.d.ts +1 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.css.js +23 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +29 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.js +35 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +1 -0
- package/dist/button/root/button-root.css.d.ts +1 -0
- package/dist/button/root/button-root.css.js +190 -0
- package/dist/button/root/button-root.d.ts +95 -0
- package/dist/button/root/button-root.js +59 -0
- package/dist/button-group/index.d.ts +1 -0
- package/dist/button-group/index.js +1 -0
- package/dist/button-group/root/button-group-root.css.d.ts +1 -0
- package/dist/button-group/root/button-group-root.css.js +54 -0
- package/dist/button-group/root/button-group-root.d.ts +48 -0
- package/dist/button-group/root/button-group-root.js +44 -0
- package/dist/callout/index.d.ts +1 -0
- package/dist/callout/index.js +1 -0
- package/dist/callout/root/callout-root.css.d.ts +1 -0
- package/dist/callout/root/callout-root.css.js +82 -0
- package/dist/callout/root/callout-root.d.ts +36 -0
- package/dist/callout/root/callout-root.js +42 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +1 -0
- package/dist/card/root/card-root.css.d.ts +1 -0
- package/dist/card/root/card-root.css.js +111 -0
- package/dist/card/root/card-root.d.ts +120 -0
- package/dist/card/root/card-root.js +74 -0
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +1 -0
- package/dist/carousel/root/carousel-root.css.d.ts +1 -0
- package/dist/carousel/root/carousel-root.css.js +347 -0
- package/dist/carousel/root/carousel-root.d.ts +111 -0
- package/dist/carousel/root/carousel-root.js +53 -0
- package/dist/chat/composer/chat-composer.css.d.ts +1 -0
- package/dist/chat/composer/chat-composer.css.js +103 -0
- package/dist/chat/composer/chat-composer.d.ts +37 -0
- package/dist/chat/composer/chat-composer.js +43 -0
- package/dist/chat/index.d.ts +3 -0
- package/dist/chat/index.js +3 -0
- package/dist/chat/message/chat-message.css.d.ts +1 -0
- package/dist/chat/message/chat-message.css.js +270 -0
- package/dist/chat/message/chat-message.d.ts +66 -0
- package/dist/chat/message/chat-message.js +50 -0
- package/dist/chat/root/chat-root.css.d.ts +1 -0
- package/dist/chat/root/chat-root.css.js +134 -0
- package/dist/chat/root/chat-root.d.ts +51 -0
- package/dist/chat/root/chat-root.js +57 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/checkbox/root/checkbox-root.css.d.ts +1 -0
- package/dist/checkbox/root/checkbox-root.css.js +177 -0
- package/dist/checkbox/root/checkbox-root.d.ts +51 -0
- package/dist/checkbox/root/checkbox-root.js +48 -0
- package/dist/checkbox-group/index.d.ts +1 -0
- package/dist/checkbox-group/index.js +1 -0
- package/dist/checkbox-group/root/checkbox-group-root.css.d.ts +1 -0
- package/dist/checkbox-group/root/checkbox-group-root.css.js +30 -0
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +29 -0
- package/dist/checkbox-group/root/checkbox-group-root.js +37 -0
- package/dist/code/index.d.ts +1 -0
- package/dist/code/index.js +1 -0
- package/dist/code/root/code-root.css.d.ts +1 -0
- package/dist/code/root/code-root.css.js +30 -0
- package/dist/code/root/code-root.d.ts +27 -0
- package/dist/code/root/code-root.js +33 -0
- package/dist/code-block/index.d.ts +1 -0
- package/dist/code-block/index.js +1 -0
- package/dist/code-block/root/code-block-root.css.d.ts +1 -0
- package/dist/code-block/root/code-block-root.css.js +84 -0
- package/dist/code-block/root/code-block-root.d.ts +31 -0
- package/dist/code-block/root/code-block-root.js +37 -0
- package/dist/color-input/index.d.ts +1 -0
- package/dist/color-input/index.js +1 -0
- package/dist/color-input/root/color-input-root.css.d.ts +1 -0
- package/dist/color-input/root/color-input-root.css.js +193 -0
- package/dist/color-input/root/color-input-root.d.ts +50 -0
- package/dist/color-input/root/color-input-root.js +62 -0
- package/dist/color-picker/index.d.ts +1 -0
- package/dist/color-picker/index.js +1 -0
- package/dist/color-picker/root/color-picker-root.css.d.ts +1 -0
- package/dist/color-picker/root/color-picker-root.css.js +282 -0
- package/dist/color-picker/root/color-picker-root.d.ts +53 -0
- package/dist/color-picker/root/color-picker-root.js +64 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +1 -0
- package/dist/combobox/root/combobox-root.css.d.ts +1 -0
- package/dist/combobox/root/combobox-root.css.js +249 -0
- package/dist/combobox/root/combobox-root.d.ts +37 -0
- package/dist/combobox/root/combobox-root.js +49 -0
- package/dist/command/index.d.ts +1 -0
- package/dist/command/index.js +1 -0
- package/dist/command/root/command-root.css.d.ts +1 -0
- package/dist/command/root/command-root.css.js +76 -0
- package/dist/command/root/command-root.d.ts +31 -0
- package/dist/command/root/command-root.js +40 -0
- package/dist/copy-button/index.d.ts +1 -0
- package/dist/copy-button/index.js +1 -0
- package/dist/copy-button/root/copy-button-root.css.d.ts +1 -0
- package/dist/copy-button/root/copy-button-root.css.js +37 -0
- package/dist/copy-button/root/copy-button-root.d.ts +28 -0
- package/dist/copy-button/root/copy-button-root.js +34 -0
- package/dist/data-table/index.d.ts +1 -0
- package/dist/data-table/index.js +1 -0
- package/dist/data-table/root/data-table-root.css.d.ts +1 -0
- package/dist/data-table/root/data-table-root.css.js +91 -0
- package/dist/data-table/root/data-table-root.d.ts +49 -0
- package/dist/data-table/root/data-table-root.js +55 -0
- package/dist/date-input/index.d.ts +1 -0
- package/dist/date-input/index.js +1 -0
- package/dist/date-input/root/date-input-root.css.d.ts +1 -0
- package/dist/date-input/root/date-input-root.css.js +172 -0
- package/dist/date-input/root/date-input-root.d.ts +44 -0
- package/dist/date-input/root/date-input-root.js +59 -0
- package/dist/date-picker/index.d.ts +1 -0
- package/dist/date-picker/index.js +1 -0
- package/dist/date-picker/root/date-picker-root.css.d.ts +1 -0
- package/dist/date-picker/root/date-picker-root.css.js +219 -0
- package/dist/date-picker/root/date-picker-root.d.ts +38 -0
- package/dist/date-picker/root/date-picker-root.js +44 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.js +1 -0
- package/dist/dialog/root/dialog-root.css.d.ts +1 -0
- package/dist/dialog/root/dialog-root.css.js +184 -0
- package/dist/dialog/root/dialog-root.d.ts +81 -0
- package/dist/dialog/root/dialog-root.js +54 -0
- package/dist/divider/index.d.ts +1 -0
- package/dist/divider/index.js +1 -0
- package/dist/divider/root/divider-root.css.d.ts +1 -0
- package/dist/divider/root/divider-root.css.js +82 -0
- package/dist/divider/root/divider-root.d.ts +34 -0
- package/dist/divider/root/divider-root.js +40 -0
- package/dist/donut-chart/index.d.ts +1 -0
- package/dist/donut-chart/index.js +1 -0
- package/dist/donut-chart/root/donut-chart-root.css.d.ts +1 -0
- package/dist/donut-chart/root/donut-chart-root.css.js +326 -0
- package/dist/donut-chart/root/donut-chart-root.d.ts +111 -0
- package/dist/donut-chart/root/donut-chart-root.js +76 -0
- package/dist/drawer/index.d.ts +1 -0
- package/dist/drawer/index.js +1 -0
- package/dist/drawer/root/drawer-root.css.d.ts +1 -0
- package/dist/drawer/root/drawer-root.css.js +151 -0
- package/dist/drawer/root/drawer-root.d.ts +69 -0
- package/dist/drawer/root/drawer-root.js +58 -0
- package/dist/drilldown/index.d.ts +2 -0
- package/dist/drilldown/index.js +2 -0
- package/dist/drilldown/item/drilldown-item.css.d.ts +1 -0
- package/dist/drilldown/item/drilldown-item.css.js +47 -0
- package/dist/drilldown/item/drilldown-item.d.ts +25 -0
- package/dist/drilldown/item/drilldown-item.js +31 -0
- package/dist/drilldown/root/drilldown-root.css.d.ts +1 -0
- package/dist/drilldown/root/drilldown-root.css.js +125 -0
- package/dist/drilldown/root/drilldown-root.d.ts +33 -0
- package/dist/drilldown/root/drilldown-root.js +39 -0
- package/dist/element-events.generated.d.ts +1 -0
- package/dist/element-events.generated.js +123 -0
- package/dist/empty/index.d.ts +1 -0
- package/dist/empty/index.js +1 -0
- package/dist/empty/root/empty-root.css.d.ts +1 -0
- package/dist/empty/root/empty-root.css.js +45 -0
- package/dist/empty/root/empty-root.d.ts +26 -0
- package/dist/empty/root/empty-root.js +32 -0
- package/dist/file-input/index.d.ts +1 -0
- package/dist/file-input/index.js +1 -0
- package/dist/file-input/root/file-input-root.css.d.ts +1 -0
- package/dist/file-input/root/file-input-root.css.js +194 -0
- package/dist/file-input/root/file-input-root.d.ts +40 -0
- package/dist/file-input/root/file-input-root.js +53 -0
- package/dist/flex/index.d.ts +1 -0
- package/dist/flex/index.js +1 -0
- package/dist/flex/root/flex-root.css.d.ts +1 -0
- package/dist/flex/root/flex-root.css.js +81 -0
- package/dist/flex/root/flex-root.d.ts +61 -0
- package/dist/flex/root/flex-root.js +75 -0
- package/dist/format-date/index.d.ts +1 -0
- package/dist/format-date/index.js +1 -0
- package/dist/format-date/root/format-date-root.css.d.ts +1 -0
- package/dist/format-date/root/format-date-root.css.js +15 -0
- package/dist/format-date/root/format-date-root.d.ts +28 -0
- package/dist/format-date/root/format-date-root.js +34 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +1 -0
- package/dist/grid/root/grid-root.css.d.ts +1 -0
- package/dist/grid/root/grid-root.css.js +74 -0
- package/dist/grid/root/grid-root.d.ts +79 -0
- package/dist/grid/root/grid-root.js +125 -0
- package/dist/heatmap/index.d.ts +1 -0
- package/dist/heatmap/index.js +1 -0
- package/dist/heatmap/root/heatmap-root.css.d.ts +1 -0
- package/dist/heatmap/root/heatmap-root.css.js +141 -0
- package/dist/heatmap/root/heatmap-root.d.ts +87 -0
- package/dist/heatmap/root/heatmap-root.js +96 -0
- package/dist/icon/glyph.css.d.ts +1 -0
- package/dist/icon/glyph.css.js +7 -0
- package/dist/icon/index.d.ts +1 -0
- package/dist/icon/index.js +1 -0
- package/dist/icon/root/icon-root.css.d.ts +1 -0
- package/dist/icon/root/icon-root.css.js +20 -0
- package/dist/icon/root/icon-root.d.ts +29 -0
- package/dist/icon/root/icon-root.js +35 -0
- package/dist/icon-button/index.d.ts +1 -0
- package/dist/icon-button/index.js +1 -0
- package/dist/icon-button/root/icon-button-root.css.d.ts +1 -0
- package/dist/icon-button/root/icon-button-root.css.js +165 -0
- package/dist/icon-button/root/icon-button-root.d.ts +65 -0
- package/dist/icon-button/root/icon-button-root.js +63 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +1 -0
- package/dist/image/root/image-root.css.d.ts +1 -0
- package/dist/image/root/image-root.css.js +73 -0
- package/dist/image/root/image-root.d.ts +39 -0
- package/dist/image/root/image-root.js +52 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +100 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/dist/input/root/input-root.css.d.ts +1 -0
- package/dist/input/root/input-root.css.js +123 -0
- package/dist/input/root/input-root.d.ts +36 -0
- package/dist/input/root/input-root.js +48 -0
- package/dist/kbd/index.d.ts +1 -0
- package/dist/kbd/index.js +1 -0
- package/dist/kbd/root/kbd-root.css.d.ts +1 -0
- package/dist/kbd/root/kbd-root.css.js +47 -0
- package/dist/kbd/root/kbd-root.d.ts +30 -0
- package/dist/kbd/root/kbd-root.js +36 -0
- package/dist/legend/index.d.ts +1 -0
- package/dist/legend/index.js +1 -0
- package/dist/legend/root/legend-root.css.d.ts +1 -0
- package/dist/legend/root/legend-root.css.js +90 -0
- package/dist/legend/root/legend-root.d.ts +128 -0
- package/dist/legend/root/legend-root.js +99 -0
- package/dist/line-chart/index.d.ts +1 -0
- package/dist/line-chart/index.js +1 -0
- package/dist/line-chart/root/line-chart-root.css.d.ts +1 -0
- package/dist/line-chart/root/line-chart-root.css.js +293 -0
- package/dist/line-chart/root/line-chart-root.d.ts +106 -0
- package/dist/line-chart/root/line-chart-root.js +74 -0
- package/dist/list/index.d.ts +2 -0
- package/dist/list/index.js +2 -0
- package/dist/list/item/list-item.css.d.ts +1 -0
- package/dist/list/item/list-item.css.js +70 -0
- package/dist/list/item/list-item.d.ts +49 -0
- package/dist/list/item/list-item.js +58 -0
- package/dist/list/root/list-root.css.d.ts +1 -0
- package/dist/list/root/list-root.css.js +76 -0
- package/dist/list/root/list-root.d.ts +54 -0
- package/dist/list/root/list-root.js +50 -0
- package/dist/listbox/index.d.ts +1 -0
- package/dist/listbox/index.js +1 -0
- package/dist/listbox/root/listbox-root.css.d.ts +1 -0
- package/dist/listbox/root/listbox-root.css.js +110 -0
- package/dist/listbox/root/listbox-root.d.ts +30 -0
- package/dist/listbox/root/listbox-root.js +38 -0
- package/dist/loader/index.d.ts +1 -0
- package/dist/loader/index.js +1 -0
- package/dist/loader/root/loader-root.css.d.ts +1 -0
- package/dist/loader/root/loader-root.css.js +159 -0
- package/dist/loader/root/loader-root.d.ts +49 -0
- package/dist/loader/root/loader-root.js +42 -0
- package/dist/megamenu/index.d.ts +1 -0
- package/dist/megamenu/index.js +1 -0
- package/dist/megamenu/root/megamenu-root.css.d.ts +1 -0
- package/dist/megamenu/root/megamenu-root.css.js +153 -0
- package/dist/megamenu/root/megamenu-root.d.ts +34 -0
- package/dist/megamenu/root/megamenu-root.js +40 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/item/menu-item.css.d.ts +1 -0
- package/dist/menu/item/menu-item.css.js +87 -0
- package/dist/menu/item/menu-item.d.ts +26 -0
- package/dist/menu/item/menu-item.js +32 -0
- package/dist/menu/root/menu-root.css.d.ts +1 -0
- package/dist/menu/root/menu-root.css.js +161 -0
- package/dist/menu/root/menu-root.d.ts +36 -0
- package/dist/menu/root/menu-root.js +42 -0
- package/dist/meter/index.d.ts +1 -0
- package/dist/meter/index.js +1 -0
- package/dist/meter/root/meter-root.css.d.ts +1 -0
- package/dist/meter/root/meter-root.css.js +218 -0
- package/dist/meter/root/meter-root.d.ts +79 -0
- package/dist/meter/root/meter-root.js +72 -0
- package/dist/mixins/mixin-control-surface/mixin-control-surface.d.ts +28 -0
- package/dist/mixins/mixin-control-surface/mixin-control-surface.js +21 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +1 -0
- package/dist/navigation/root/navigation-root.css.d.ts +1 -0
- package/dist/navigation/root/navigation-root.css.js +50 -0
- package/dist/navigation/root/navigation-root.d.ts +28 -0
- package/dist/navigation/root/navigation-root.js +34 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/notification/notification.css.d.ts +1 -0
- package/dist/notifications/notification/notification.css.js +194 -0
- package/dist/notifications/notification/notification.d.ts +64 -0
- package/dist/notifications/notification/notification.js +71 -0
- package/dist/notifications/root/notifications-root.css.d.ts +1 -0
- package/dist/notifications/root/notifications-root.css.js +94 -0
- package/dist/notifications/root/notifications-root.d.ts +43 -0
- package/dist/notifications/root/notifications-root.js +49 -0
- package/dist/number-input/index.d.ts +1 -0
- package/dist/number-input/index.js +1 -0
- package/dist/number-input/root/number-input-root.css.d.ts +1 -0
- package/dist/number-input/root/number-input-root.css.js +149 -0
- package/dist/number-input/root/number-input-root.d.ts +41 -0
- package/dist/number-input/root/number-input-root.js +49 -0
- package/dist/option/group/option-group.css.d.ts +1 -0
- package/dist/option/group/option-group.css.js +24 -0
- package/dist/option/group/option-group.d.ts +23 -0
- package/dist/option/group/option-group.js +29 -0
- package/dist/option/index.d.ts +2 -0
- package/dist/option/index.js +2 -0
- package/dist/option/root/option-root.css.d.ts +1 -0
- package/dist/option/root/option-root.css.js +93 -0
- package/dist/option/root/option-root.d.ts +30 -0
- package/dist/option/root/option-root.js +36 -0
- package/dist/outline/index.d.ts +1 -0
- package/dist/outline/index.js +1 -0
- package/dist/outline/root/outline-root.css.d.ts +1 -0
- package/dist/outline/root/outline-root.css.js +144 -0
- package/dist/outline/root/outline-root.d.ts +31 -0
- package/dist/outline/root/outline-root.js +37 -0
- package/dist/pagination/index.d.ts +3 -0
- package/dist/pagination/index.js +3 -0
- package/dist/pagination/root/pagination-root.css.d.ts +1 -0
- package/dist/pagination/root/pagination-root.css.js +158 -0
- package/dist/pagination/root/pagination-root.d.ts +59 -0
- package/dist/pagination/root/pagination-root.js +65 -0
- package/dist/pagination/size/pagination-size.css.d.ts +1 -0
- package/dist/pagination/size/pagination-size.css.js +24 -0
- package/dist/pagination/size/pagination-size.d.ts +31 -0
- package/dist/pagination/size/pagination-size.js +44 -0
- package/dist/pagination/summary/pagination-summary.css.d.ts +1 -0
- package/dist/pagination/summary/pagination-summary.css.js +9 -0
- package/dist/pagination/summary/pagination-summary.d.ts +23 -0
- package/dist/pagination/summary/pagination-summary.js +29 -0
- package/dist/pin-input/index.d.ts +1 -0
- package/dist/pin-input/index.js +1 -0
- package/dist/pin-input/root/pin-input-root.css.d.ts +1 -0
- package/dist/pin-input/root/pin-input-root.css.js +74 -0
- package/dist/pin-input/root/pin-input-root.d.ts +37 -0
- package/dist/pin-input/root/pin-input-root.js +45 -0
- package/dist/popover/index.d.ts +1 -0
- package/dist/popover/index.js +1 -0
- package/dist/popover/root/popover-root.css.d.ts +1 -0
- package/dist/popover/root/popover-root.css.js +93 -0
- package/dist/popover/root/popover-root.d.ts +53 -0
- package/dist/popover/root/popover-root.js +50 -0
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +1 -0
- package/dist/progress/root/progress-root.css.d.ts +1 -0
- package/dist/progress/root/progress-root.css.js +225 -0
- package/dist/progress/root/progress-root.d.ts +54 -0
- package/dist/progress/root/progress-root.js +45 -0
- package/dist/qr-code/index.d.ts +1 -0
- package/dist/qr-code/index.js +1 -0
- package/dist/qr-code/root/qr-code-root.css.d.ts +1 -0
- package/dist/qr-code/root/qr-code-root.css.js +58 -0
- package/dist/qr-code/root/qr-code-root.d.ts +37 -0
- package/dist/qr-code/root/qr-code-root.js +43 -0
- package/dist/quote/index.d.ts +1 -0
- package/dist/quote/index.js +1 -0
- package/dist/quote/root/quote-root.css.d.ts +1 -0
- package/dist/quote/root/quote-root.css.js +20 -0
- package/dist/quote/root/quote-root.d.ts +25 -0
- package/dist/quote/root/quote-root.js +31 -0
- package/dist/radio/group/radio-group.css.d.ts +1 -0
- package/dist/radio/group/radio-group.css.js +23 -0
- package/dist/radio/group/radio-group.d.ts +26 -0
- package/dist/radio/group/radio-group.js +34 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/root/radio-root.css.d.ts +1 -0
- package/dist/radio/root/radio-root.css.js +198 -0
- package/dist/radio/root/radio-root.d.ts +73 -0
- package/dist/radio/root/radio-root.js +74 -0
- package/dist/rating/index.d.ts +1 -0
- package/dist/rating/index.js +1 -0
- package/dist/rating/root/rating-root.css.d.ts +1 -0
- package/dist/rating/root/rating-root.css.js +122 -0
- package/dist/rating/root/rating-root.d.ts +52 -0
- package/dist/rating/root/rating-root.js +42 -0
- package/dist/sandbox/index.d.ts +20 -0
- package/dist/sandbox/index.js +20 -0
- package/dist/sandbox/preview/sandbox-preview.css.d.ts +1 -0
- package/dist/sandbox/preview/sandbox-preview.css.js +14 -0
- package/dist/sandbox/preview/sandbox-preview.d.ts +224 -0
- package/dist/sandbox/preview/sandbox-preview.js +306 -0
- package/dist/sandbox/root/sandbox-root.css.d.ts +1 -0
- package/dist/sandbox/root/sandbox-root.css.js +73 -0
- package/dist/sandbox/root/sandbox-root.d.ts +324 -0
- package/dist/sandbox/root/sandbox-root.js +569 -0
- package/dist/sandbox/source/sandbox-source.css.d.ts +1 -0
- package/dist/sandbox/source/sandbox-source.css.js +27 -0
- package/dist/sandbox/source/sandbox-source.d.ts +105 -0
- package/dist/sandbox/source/sandbox-source.js +173 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.css.d.ts +1 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.css.js +23 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.d.ts +59 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.js +86 -0
- package/dist/sandbox/terminal/sandbox-terminal.css.d.ts +1 -0
- package/dist/sandbox/terminal/sandbox-terminal.css.js +69 -0
- package/dist/sandbox/terminal/sandbox-terminal.d.ts +71 -0
- package/dist/sandbox/terminal/sandbox-terminal.js +130 -0
- package/dist/sandbox/toolbar/sandbox-toolbar.css.d.ts +1 -0
- package/dist/sandbox/toolbar/sandbox-toolbar.css.js +32 -0
- package/dist/sandbox/toolbar/sandbox-toolbar.d.ts +37 -0
- package/dist/sandbox/toolbar/sandbox-toolbar.js +49 -0
- package/dist/scroll-area/index.d.ts +1 -0
- package/dist/scroll-area/index.js +1 -0
- package/dist/scroll-area/root/scroll-area-root.css.d.ts +1 -0
- package/dist/scroll-area/root/scroll-area-root.css.js +118 -0
- package/dist/scroll-area/root/scroll-area-root.d.ts +34 -0
- package/dist/scroll-area/root/scroll-area-root.js +40 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +1 -0
- package/dist/select/root/select-root.css.d.ts +1 -0
- package/dist/select/root/select-root.css.js +197 -0
- package/dist/select/root/select-root.d.ts +71 -0
- package/dist/select/root/select-root.js +60 -0
- package/dist/shared/chart/series.css.d.ts +1 -0
- package/dist/shared/chart/series.css.js +35 -0
- package/dist/shared/chart/terminus.css.d.ts +1 -0
- package/dist/shared/chart/terminus.css.js +41 -0
- package/dist/shared/field/field-inline.css.d.ts +1 -0
- package/dist/shared/field/field-inline.css.js +7 -0
- package/dist/shared/field/field-stacked.css.d.ts +1 -0
- package/dist/shared/field/field-stacked.css.js +7 -0
- package/dist/shared/field/field.css.d.ts +1 -0
- package/dist/shared/field/field.css.js +59 -0
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +1 -0
- package/dist/skeleton/root/skeleton-root.css.d.ts +1 -0
- package/dist/skeleton/root/skeleton-root.css.js +74 -0
- package/dist/skeleton/root/skeleton-root.d.ts +34 -0
- package/dist/skeleton/root/skeleton-root.js +38 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +1 -0
- package/dist/slider/root/slider-root.css.d.ts +1 -0
- package/dist/slider/root/slider-root.css.js +335 -0
- package/dist/slider/root/slider-root.d.ts +42 -0
- package/dist/slider/root/slider-root.js +50 -0
- package/dist/sparkline/index.d.ts +1 -0
- package/dist/sparkline/index.js +1 -0
- package/dist/sparkline/root/sparkline-root.css.d.ts +1 -0
- package/dist/sparkline/root/sparkline-root.css.js +103 -0
- package/dist/sparkline/root/sparkline-root.d.ts +114 -0
- package/dist/sparkline/root/sparkline-root.js +67 -0
- package/dist/speed-dial/index.d.ts +2 -0
- package/dist/speed-dial/index.js +2 -0
- package/dist/speed-dial/item/speed-dial-item.css.d.ts +1 -0
- package/dist/speed-dial/item/speed-dial-item.css.js +80 -0
- package/dist/speed-dial/item/speed-dial-item.d.ts +26 -0
- package/dist/speed-dial/item/speed-dial-item.js +32 -0
- package/dist/speed-dial/root/speed-dial-root.css.d.ts +1 -0
- package/dist/speed-dial/root/speed-dial-root.css.js +140 -0
- package/dist/speed-dial/root/speed-dial-root.d.ts +27 -0
- package/dist/speed-dial/root/speed-dial-root.js +34 -0
- package/dist/splitter/index.d.ts +1 -0
- package/dist/splitter/index.js +1 -0
- package/dist/splitter/root/splitter-root.css.d.ts +1 -0
- package/dist/splitter/root/splitter-root.css.js +203 -0
- package/dist/splitter/root/splitter-root.d.ts +78 -0
- package/dist/splitter/root/splitter-root.js +70 -0
- package/dist/stat/group/stat-group.css.d.ts +1 -0
- package/dist/stat/group/stat-group.css.js +12 -0
- package/dist/stat/group/stat-group.d.ts +30 -0
- package/dist/stat/group/stat-group.js +43 -0
- package/dist/stat/index.d.ts +2 -0
- package/dist/stat/index.js +2 -0
- package/dist/stat/root/stat-root.css.d.ts +1 -0
- package/dist/stat/root/stat-root.css.js +60 -0
- package/dist/stat/root/stat-root.d.ts +27 -0
- package/dist/stat/root/stat-root.js +33 -0
- package/dist/steps/index.d.ts +2 -0
- package/dist/steps/index.js +2 -0
- package/dist/steps/root/steps-root.css.d.ts +1 -0
- package/dist/steps/root/steps-root.css.js +94 -0
- package/dist/steps/root/steps-root.d.ts +36 -0
- package/dist/steps/root/steps-root.js +42 -0
- package/dist/steps/step/step.css.d.ts +1 -0
- package/dist/steps/step/step.css.js +158 -0
- package/dist/steps/step/step.d.ts +20 -0
- package/dist/steps/step/step.js +30 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +1 -0
- package/dist/switch/root/switch-root.css.d.ts +1 -0
- package/dist/switch/root/switch-root.css.js +113 -0
- package/dist/switch/root/switch-root.d.ts +42 -0
- package/dist/switch/root/switch-root.js +50 -0
- package/dist/table/cell/table-cell.css.d.ts +1 -0
- package/dist/table/cell/table-cell.css.js +25 -0
- package/dist/table/cell/table-cell.d.ts +24 -0
- package/dist/table/cell/table-cell.js +30 -0
- package/dist/table/column/table-column.css.d.ts +1 -0
- package/dist/table/column/table-column.css.js +21 -0
- package/dist/table/column/table-column.d.ts +23 -0
- package/dist/table/column/table-column.js +29 -0
- package/dist/table/index.d.ts +4 -0
- package/dist/table/index.js +4 -0
- package/dist/table/root/table-root.css.d.ts +1 -0
- package/dist/table/root/table-root.css.js +39 -0
- package/dist/table/root/table-root.d.ts +29 -0
- package/dist/table/root/table-root.js +35 -0
- package/dist/table/row/table-row.css.d.ts +1 -0
- package/dist/table/row/table-row.css.js +5 -0
- package/dist/table/row/table-row.d.ts +24 -0
- package/dist/table/row/table-row.js +30 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.js +3 -0
- package/dist/tabs/panel/tab-panel.css.d.ts +1 -0
- package/dist/tabs/panel/tab-panel.css.js +17 -0
- package/dist/tabs/panel/tab-panel.d.ts +26 -0
- package/dist/tabs/panel/tab-panel.js +32 -0
- package/dist/tabs/root/tabs-root.css.d.ts +1 -0
- package/dist/tabs/root/tabs-root.css.js +136 -0
- package/dist/tabs/root/tabs-root.d.ts +29 -0
- package/dist/tabs/root/tabs-root.js +35 -0
- package/dist/tabs/tab/tab.css.d.ts +1 -0
- package/dist/tabs/tab/tab.css.js +57 -0
- package/dist/tabs/tab/tab.d.ts +26 -0
- package/dist/tabs/tab/tab.js +32 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/index.js +1 -0
- package/dist/tag/root/tag-root.css.d.ts +1 -0
- package/dist/tag/root/tag-root.css.js +112 -0
- package/dist/tag/root/tag-root.d.ts +66 -0
- package/dist/tag/root/tag-root.js +48 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.js +1 -0
- package/dist/text/root/text-root.css.d.ts +1 -0
- package/dist/text/root/text-root.css.js +113 -0
- package/dist/text/root/text-root.d.ts +83 -0
- package/dist/text/root/text-root.js +92 -0
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +1 -0
- package/dist/textarea/root/textarea-root.css.d.ts +1 -0
- package/dist/textarea/root/textarea-root.css.js +79 -0
- package/dist/textarea/root/textarea-root.d.ts +27 -0
- package/dist/textarea/root/textarea-root.js +35 -0
- package/dist/time-input/index.d.ts +1 -0
- package/dist/time-input/index.js +1 -0
- package/dist/time-input/root/time-input-root.css.d.ts +1 -0
- package/dist/time-input/root/time-input-root.css.js +184 -0
- package/dist/time-input/root/time-input-root.d.ts +42 -0
- package/dist/time-input/root/time-input-root.js +53 -0
- package/dist/time-picker/index.d.ts +1 -0
- package/dist/time-picker/index.js +1 -0
- package/dist/time-picker/root/time-picker-root.css.d.ts +1 -0
- package/dist/time-picker/root/time-picker-root.css.js +147 -0
- package/dist/time-picker/root/time-picker-root.d.ts +38 -0
- package/dist/time-picker/root/time-picker-root.js +48 -0
- package/dist/timeline/index.d.ts +2 -0
- package/dist/timeline/index.js +2 -0
- package/dist/timeline/item/timeline-item.css.d.ts +1 -0
- package/dist/timeline/item/timeline-item.css.js +111 -0
- package/dist/timeline/item/timeline-item.d.ts +27 -0
- package/dist/timeline/item/timeline-item.js +33 -0
- package/dist/timeline/root/timeline-root.css.d.ts +1 -0
- package/dist/timeline/root/timeline-root.css.js +12 -0
- package/dist/timeline/root/timeline-root.d.ts +25 -0
- package/dist/timeline/root/timeline-root.js +31 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/item/toast-item.css.d.ts +1 -0
- package/dist/toast/item/toast-item.css.js +233 -0
- package/dist/toast/item/toast-item.d.ts +31 -0
- package/dist/toast/item/toast-item.js +37 -0
- package/dist/toast/root/toast-root.css.d.ts +1 -0
- package/dist/toast/root/toast-root.css.js +66 -0
- package/dist/toast/root/toast-root.d.ts +37 -0
- package/dist/toast/root/toast-root.js +43 -0
- package/dist/toggle/group/toggle-group.css.d.ts +1 -0
- package/dist/toggle/group/toggle-group.css.js +118 -0
- package/dist/toggle/group/toggle-group.d.ts +49 -0
- package/dist/toggle/group/toggle-group.js +47 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/index.js +2 -0
- package/dist/toggle/root/toggle-root.css.d.ts +1 -0
- package/dist/toggle/root/toggle-root.css.js +25 -0
- package/dist/toggle/root/toggle-root.d.ts +28 -0
- package/dist/toggle/root/toggle-root.js +34 -0
- package/dist/toolbar/index.d.ts +1 -0
- package/dist/toolbar/index.js +1 -0
- package/dist/toolbar/root/toolbar-root.css.d.ts +1 -0
- package/dist/toolbar/root/toolbar-root.css.js +28 -0
- package/dist/toolbar/root/toolbar-root.d.ts +29 -0
- package/dist/toolbar/root/toolbar-root.js +35 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +1 -0
- package/dist/tooltip/root/tooltip-root.css.d.ts +1 -0
- package/dist/tooltip/root/tooltip-root.css.js +121 -0
- package/dist/tooltip/root/tooltip-root.d.ts +63 -0
- package/dist/tooltip/root/tooltip-root.js +42 -0
- package/dist/tour/index.d.ts +2 -0
- package/dist/tour/index.js +2 -0
- package/dist/tour/root/tour-root.css.d.ts +1 -0
- package/dist/tour/root/tour-root.css.js +30 -0
- package/dist/tour/root/tour-root.d.ts +24 -0
- package/dist/tour/root/tour-root.js +30 -0
- package/dist/tour/stop/tour-stop.css.d.ts +1 -0
- package/dist/tour/stop/tour-stop.css.js +77 -0
- package/dist/tour/stop/tour-stop.d.ts +34 -0
- package/dist/tour/stop/tour-stop.js +40 -0
- package/dist/tree/index.d.ts +2 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/item/tree-item.css.d.ts +1 -0
- package/dist/tree/item/tree-item.css.js +177 -0
- package/dist/tree/item/tree-item.d.ts +44 -0
- package/dist/tree/item/tree-item.js +50 -0
- package/dist/tree/root/tree-root.css.d.ts +1 -0
- package/dist/tree/root/tree-root.css.js +43 -0
- package/dist/tree/root/tree-root.d.ts +63 -0
- package/dist/tree/root/tree-root.js +47 -0
- package/dist/trend/index.d.ts +1 -0
- package/dist/trend/index.js +1 -0
- package/dist/trend/root/trend-root.css.d.ts +1 -0
- package/dist/trend/root/trend-root.css.js +50 -0
- package/dist/trend/root/trend-root.d.ts +48 -0
- package/dist/trend/root/trend-root.js +55 -0
- package/dist/video/index.d.ts +1 -0
- package/dist/video/index.js +1 -0
- package/dist/video/root/video-root.css.d.ts +1 -0
- package/dist/video/root/video-root.css.js +404 -0
- package/dist/video/root/video-root.d.ts +87 -0
- package/dist/video/root/video-root.js +61 -0
- package/dist/video-playlist/index.d.ts +3 -0
- package/dist/video-playlist/index.js +3 -0
- package/dist/video-playlist/item/video-playlist-item.css.d.ts +1 -0
- package/dist/video-playlist/item/video-playlist-item.css.js +95 -0
- package/dist/video-playlist/item/video-playlist-item.d.ts +25 -0
- package/dist/video-playlist/item/video-playlist-item.js +31 -0
- package/dist/video-playlist/menu/video-playlist-menu.css.d.ts +1 -0
- package/dist/video-playlist/menu/video-playlist-menu.css.js +44 -0
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +43 -0
- package/dist/video-playlist/menu/video-playlist-menu.js +56 -0
- package/dist/video-playlist/root/video-playlist-root.css.d.ts +1 -0
- package/dist/video-playlist/root/video-playlist-root.css.js +21 -0
- package/dist/video-playlist/root/video-playlist-root.d.ts +26 -0
- package/dist/video-playlist/root/video-playlist-root.js +32 -0
- package/dist/virtual-list/index.d.ts +1 -0
- package/dist/virtual-list/index.js +1 -0
- package/dist/virtual-list/root/virtual-list-root.css.d.ts +1 -0
- package/dist/virtual-list/root/virtual-list-root.css.js +27 -0
- package/dist/virtual-list/root/virtual-list-root.d.ts +31 -0
- package/dist/virtual-list/root/virtual-list-root.js +37 -0
- package/elements.css +287 -0
- package/jsx.d.ts +54748 -0
- package/package.json +80 -0
- package/svelte.d.ts +139 -0
- package/vue.d.ts +11511 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { HelixHeadlessHeatmap } from '@fusion.dev/helix-headless/heatmap';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A strip of cells coloured by how each one went: uptime, contributions, activity.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* One grid, filled down the column and then across, which is what a calendar
|
|
8
|
+
* heatmap is: a week is a column, so the strip reads left to right in weeks and
|
|
9
|
+
* top to bottom in days. `rows="1"` makes it a single row without a second
|
|
10
|
+
* layout.
|
|
11
|
+
*
|
|
12
|
+
* An empty cell takes the quietest ground the palette has rather than being
|
|
13
|
+
* transparent. A strip of holes reads as a broken picture; a strip of empty
|
|
14
|
+
* cells reads as a period with nothing in it, which is what it is.
|
|
15
|
+
*
|
|
16
|
+
* **This tier is what a tone name is worth.** `tones="success"` and
|
|
17
|
+
* `data-tone="danger"` reach the theme's status colors; `tones="1 2 3 4 5"`
|
|
18
|
+
* reaches a five step ramp of one hue, which is the only thing a reader can
|
|
19
|
+
* compare two cells by. Both are hooks, so a page may answer differently.
|
|
20
|
+
*
|
|
21
|
+
* @since 0.1.0
|
|
22
|
+
* @status experimental
|
|
23
|
+
* @category charts
|
|
24
|
+
* @documentation https://helix.fusion.dev/components/heatmap
|
|
25
|
+
*
|
|
26
|
+
* @slot - The `<table>` this draws, where it is not named by `for`.
|
|
27
|
+
* @slot end - Below the strip, at the trailing edge.
|
|
28
|
+
* @slot start - Below the strip, at the leading edge.
|
|
29
|
+
* @slot summary - Below the strip, in the middle.
|
|
30
|
+
*
|
|
31
|
+
* @csspart cell - One reading.
|
|
32
|
+
* @csspart footer - The three-slot row under the strip.
|
|
33
|
+
* @csspart mark - The invisible point the tooltip is anchored to.
|
|
34
|
+
* @csspart strip - The grid of cells.
|
|
35
|
+
* @csspart tooltip - The bubble, forwarded from `Tooltip`.
|
|
36
|
+
* @csspart tooltip-anchor - The `Tooltip` element itself.
|
|
37
|
+
* @csspart tooltip-cell - One column's name and value inside the tooltip.
|
|
38
|
+
* @csspart tooltip-label - The reading's own name inside the tooltip.
|
|
39
|
+
* @csspart tooltip-name - A column's name inside the tooltip.
|
|
40
|
+
* @csspart tooltip-value - A column's value inside the tooltip.
|
|
41
|
+
*
|
|
42
|
+
* @cssproperty --heatmap-cell-height - How tall a cell is. A row of a tall thin cell is what a status page draws.
|
|
43
|
+
* @cssproperty --heatmap-cell-inline-size - How wide a cell is. The strip fits as many as the container allows.
|
|
44
|
+
* @cssproperty --heatmap-cell-radius - How far a cell's corners are rounded.
|
|
45
|
+
* @cssproperty --heatmap-cell-size - The size a cell wants on both axes, where neither is given its own.
|
|
46
|
+
* @cssproperty --heatmap-gap - Space between cells. Zero is a continuous field rather than a grid of tiles.
|
|
47
|
+
* @cssproperty --heatmap-tone-1 - The quietest step of the magnitude ramp, reached by `tones="1 …"`.
|
|
48
|
+
* @cssproperty --heatmap-tone-2 - The second step of the magnitude ramp.
|
|
49
|
+
* @cssproperty --heatmap-tone-3 - The third step of the magnitude ramp.
|
|
50
|
+
* @cssproperty --heatmap-tone-4 - The fourth step of the magnitude ramp.
|
|
51
|
+
* @cssproperty --heatmap-tone-5 - The loudest step of the magnitude ramp.
|
|
52
|
+
* @cssproperty --heatmap-tone-accent - What `accent` is worth.
|
|
53
|
+
* @cssproperty --heatmap-tone-danger - What `danger` is worth.
|
|
54
|
+
* @cssproperty --heatmap-tone-info - What `info` is worth.
|
|
55
|
+
* @cssproperty --heatmap-tone-muted - What `muted` is worth: the quiet ground, for a bucket that means nothing happened.
|
|
56
|
+
* @cssproperty --heatmap-tone-primary - What `primary` is worth.
|
|
57
|
+
* @cssproperty --heatmap-tone-success - What `success` is worth, as a name or a `data-tone`.
|
|
58
|
+
* @cssproperty --heatmap-tone-warning - What `warning` is worth.
|
|
59
|
+
*/
|
|
60
|
+
export declare class HelixHeatmap extends HelixHeadlessHeatmap {
|
|
61
|
+
static tier: string;
|
|
62
|
+
static styles: CSSResultGroup;
|
|
63
|
+
/**
|
|
64
|
+
* The first guess at what this sheet draws, before it has been measured.
|
|
65
|
+
*
|
|
66
|
+
* **Not a contract any more, and it was a bad one.** `fits()` works against a
|
|
67
|
+
* measured width and a cell size it has to be told, and being told by hand
|
|
68
|
+
* meant these sat at the base tier's 8 and 2 against a sheet drawing 12 and 4:
|
|
69
|
+
* the arithmetic believed a cell cost 10 pixels where it cost 16, so a ninety
|
|
70
|
+
* day strip drew 940 pixels of cells into a 592 pixel box at 640 and 540 into
|
|
71
|
+
* 342 at 390, overflowing the document both times while `visible` reported 59
|
|
72
|
+
* and 34. The number a summary is told to trust was the number that was wrong.
|
|
73
|
+
*
|
|
74
|
+
* The strip is read back now, so nothing has to be kept in step and
|
|
75
|
+
* `--heatmap-cell-inline-size` on its own is enough. These two remain because a
|
|
76
|
+
* measurement arrives one frame after the first paint, and a first paint from
|
|
77
|
+
* numbers that match the sheet is one that does not move.
|
|
78
|
+
*/
|
|
79
|
+
gap: number;
|
|
80
|
+
/** The drawn cell width, for the reason `gap` is the drawn gap. `0.75rem` at the root font size. */
|
|
81
|
+
minCell: number;
|
|
82
|
+
}
|
|
83
|
+
declare global {
|
|
84
|
+
interface HTMLElementTagNameMap {
|
|
85
|
+
'helix-heatmap': HelixHeatmap;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement } from '@fusion.dev/helix-core';
|
|
8
|
+
import { HelixHeadlessHeatmap } from '@fusion.dev/helix-headless/heatmap';
|
|
9
|
+
import { styles } from './heatmap-root.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary A strip of cells coloured by how each one went: uptime, contributions, activity.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* One grid, filled down the column and then across, which is what a calendar
|
|
15
|
+
* heatmap is: a week is a column, so the strip reads left to right in weeks and
|
|
16
|
+
* top to bottom in days. `rows="1"` makes it a single row without a second
|
|
17
|
+
* layout.
|
|
18
|
+
*
|
|
19
|
+
* An empty cell takes the quietest ground the palette has rather than being
|
|
20
|
+
* transparent. A strip of holes reads as a broken picture; a strip of empty
|
|
21
|
+
* cells reads as a period with nothing in it, which is what it is.
|
|
22
|
+
*
|
|
23
|
+
* **This tier is what a tone name is worth.** `tones="success"` and
|
|
24
|
+
* `data-tone="danger"` reach the theme's status colors; `tones="1 2 3 4 5"`
|
|
25
|
+
* reaches a five step ramp of one hue, which is the only thing a reader can
|
|
26
|
+
* compare two cells by. Both are hooks, so a page may answer differently.
|
|
27
|
+
*
|
|
28
|
+
* @since 0.1.0
|
|
29
|
+
* @status experimental
|
|
30
|
+
* @category charts
|
|
31
|
+
* @documentation https://helix.fusion.dev/components/heatmap
|
|
32
|
+
*
|
|
33
|
+
* @slot - The `<table>` this draws, where it is not named by `for`.
|
|
34
|
+
* @slot end - Below the strip, at the trailing edge.
|
|
35
|
+
* @slot start - Below the strip, at the leading edge.
|
|
36
|
+
* @slot summary - Below the strip, in the middle.
|
|
37
|
+
*
|
|
38
|
+
* @csspart cell - One reading.
|
|
39
|
+
* @csspart footer - The three-slot row under the strip.
|
|
40
|
+
* @csspart mark - The invisible point the tooltip is anchored to.
|
|
41
|
+
* @csspart strip - The grid of cells.
|
|
42
|
+
* @csspart tooltip - The bubble, forwarded from `Tooltip`.
|
|
43
|
+
* @csspart tooltip-anchor - The `Tooltip` element itself.
|
|
44
|
+
* @csspart tooltip-cell - One column's name and value inside the tooltip.
|
|
45
|
+
* @csspart tooltip-label - The reading's own name inside the tooltip.
|
|
46
|
+
* @csspart tooltip-name - A column's name inside the tooltip.
|
|
47
|
+
* @csspart tooltip-value - A column's value inside the tooltip.
|
|
48
|
+
*
|
|
49
|
+
* @cssproperty --heatmap-cell-height - How tall a cell is. A row of a tall thin cell is what a status page draws.
|
|
50
|
+
* @cssproperty --heatmap-cell-inline-size - How wide a cell is. The strip fits as many as the container allows.
|
|
51
|
+
* @cssproperty --heatmap-cell-radius - How far a cell's corners are rounded.
|
|
52
|
+
* @cssproperty --heatmap-cell-size - The size a cell wants on both axes, where neither is given its own.
|
|
53
|
+
* @cssproperty --heatmap-gap - Space between cells. Zero is a continuous field rather than a grid of tiles.
|
|
54
|
+
* @cssproperty --heatmap-tone-1 - The quietest step of the magnitude ramp, reached by `tones="1 …"`.
|
|
55
|
+
* @cssproperty --heatmap-tone-2 - The second step of the magnitude ramp.
|
|
56
|
+
* @cssproperty --heatmap-tone-3 - The third step of the magnitude ramp.
|
|
57
|
+
* @cssproperty --heatmap-tone-4 - The fourth step of the magnitude ramp.
|
|
58
|
+
* @cssproperty --heatmap-tone-5 - The loudest step of the magnitude ramp.
|
|
59
|
+
* @cssproperty --heatmap-tone-accent - What `accent` is worth.
|
|
60
|
+
* @cssproperty --heatmap-tone-danger - What `danger` is worth.
|
|
61
|
+
* @cssproperty --heatmap-tone-info - What `info` is worth.
|
|
62
|
+
* @cssproperty --heatmap-tone-muted - What `muted` is worth: the quiet ground, for a bucket that means nothing happened.
|
|
63
|
+
* @cssproperty --heatmap-tone-primary - What `primary` is worth.
|
|
64
|
+
* @cssproperty --heatmap-tone-success - What `success` is worth, as a name or a `data-tone`.
|
|
65
|
+
* @cssproperty --heatmap-tone-warning - What `warning` is worth.
|
|
66
|
+
*/
|
|
67
|
+
let HelixHeatmap = class HelixHeatmap extends HelixHeadlessHeatmap {
|
|
68
|
+
constructor() {
|
|
69
|
+
super(...arguments);
|
|
70
|
+
/**
|
|
71
|
+
* The first guess at what this sheet draws, before it has been measured.
|
|
72
|
+
*
|
|
73
|
+
* **Not a contract any more, and it was a bad one.** `fits()` works against a
|
|
74
|
+
* measured width and a cell size it has to be told, and being told by hand
|
|
75
|
+
* meant these sat at the base tier's 8 and 2 against a sheet drawing 12 and 4:
|
|
76
|
+
* the arithmetic believed a cell cost 10 pixels where it cost 16, so a ninety
|
|
77
|
+
* day strip drew 940 pixels of cells into a 592 pixel box at 640 and 540 into
|
|
78
|
+
* 342 at 390, overflowing the document both times while `visible` reported 59
|
|
79
|
+
* and 34. The number a summary is told to trust was the number that was wrong.
|
|
80
|
+
*
|
|
81
|
+
* The strip is read back now, so nothing has to be kept in step and
|
|
82
|
+
* `--heatmap-cell-inline-size` on its own is enough. These two remain because a
|
|
83
|
+
* measurement arrives one frame after the first paint, and a first paint from
|
|
84
|
+
* numbers that match the sheet is one that does not move.
|
|
85
|
+
*/
|
|
86
|
+
this.gap = 4;
|
|
87
|
+
/** The drawn cell width, for the reason `gap` is the drawn gap. `0.75rem` at the root font size. */
|
|
88
|
+
this.minCell = 12;
|
|
89
|
+
}
|
|
90
|
+
static { this.tier = 'helix-'; }
|
|
91
|
+
static { this.styles = styles; }
|
|
92
|
+
};
|
|
93
|
+
HelixHeatmap = __decorate([
|
|
94
|
+
customElement('helix-heatmap')
|
|
95
|
+
], HelixHeatmap);
|
|
96
|
+
export { HelixHeatmap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Generated from src/icon/glyph.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`[data-glyph] {
|
|
4
|
+
block-size: var(--icon-size, var(--helix-size-icon));
|
|
5
|
+
flex: 0 0 auto;
|
|
6
|
+
inline-size: var(--icon-size, var(--helix-size-icon));
|
|
7
|
+
}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/icon-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/icon-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Generated from src/icon/root/icon-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
block-size: var(--icon-size, var(--helix-size-icon));
|
|
5
|
+
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex: 0 0 auto;
|
|
8
|
+
inline-size: var(--icon-size, var(--helix-size-icon));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[part="svg"] {
|
|
12
|
+
block-size: 100%;
|
|
13
|
+
inline-size: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media print {
|
|
17
|
+
:host {
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
}
|
|
20
|
+
}`);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HelixHeadlessIcon } from '@fusion.dev/helix-headless/icon';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Renders a named icon from the Helix set.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Draws in `currentColor` and sizes from `--icon-size`, so an icon inherits the
|
|
8
|
+
* color of the text it sits in and a container can resize it without reaching
|
|
9
|
+
* for a prop. Inside a button that hook is set in `em`, which keeps the icon in
|
|
10
|
+
* proportion as the button's own size changes.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
* @status stable
|
|
14
|
+
* @category media
|
|
15
|
+
* @aliases Glyph, Symbol
|
|
16
|
+
* @documentation https://helix.fusion.dev/components/icon
|
|
17
|
+
*
|
|
18
|
+
* @csspart svg - The rendered SVG.
|
|
19
|
+
*
|
|
20
|
+
* @cssproperty --icon-size - Edge length of the icon's box.
|
|
21
|
+
*/
|
|
22
|
+
export declare class HelixIcon extends HelixHeadlessIcon {
|
|
23
|
+
static styles: CSSResultGroup;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'helix-icon': HelixIcon;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement } from '@fusion.dev/helix-core';
|
|
8
|
+
import { HelixHeadlessIcon } from '@fusion.dev/helix-headless/icon';
|
|
9
|
+
import { styles } from './icon-root.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary Renders a named icon from the Helix set.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* Draws in `currentColor` and sizes from `--icon-size`, so an icon inherits the
|
|
15
|
+
* color of the text it sits in and a container can resize it without reaching
|
|
16
|
+
* for a prop. Inside a button that hook is set in `em`, which keeps the icon in
|
|
17
|
+
* proportion as the button's own size changes.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
* @status stable
|
|
21
|
+
* @category media
|
|
22
|
+
* @aliases Glyph, Symbol
|
|
23
|
+
* @documentation https://helix.fusion.dev/components/icon
|
|
24
|
+
*
|
|
25
|
+
* @csspart svg - The rendered SVG.
|
|
26
|
+
*
|
|
27
|
+
* @cssproperty --icon-size - Edge length of the icon's box.
|
|
28
|
+
*/
|
|
29
|
+
let HelixIcon = class HelixIcon extends HelixHeadlessIcon {
|
|
30
|
+
static { this.styles = styles; }
|
|
31
|
+
};
|
|
32
|
+
HelixIcon = __decorate([
|
|
33
|
+
customElement('helix-icon')
|
|
34
|
+
], HelixIcon);
|
|
35
|
+
export { HelixIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/icon-button-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/icon-button-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// Generated from src/icon-button/root/icon-button-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
|
|
6
|
+
--_icon-button-size: var(--icon-button-size, var(--helix-size-control));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
--_icon-button-edge: var(--helix-color-border);
|
|
11
|
+
--_icon-button-ink: var(--helix-color-foreground-muted);
|
|
12
|
+
--_icon-button-ink-hover: var(--helix-color-foreground);
|
|
13
|
+
|
|
14
|
+
--_icon-button-fill: var(--_icon-button-tone);
|
|
15
|
+
--_icon-button-fill-hover: var(--_icon-button-tone-hover);
|
|
16
|
+
--_icon-button-on-tone: var(--helix-color-background);
|
|
17
|
+
--_icon-button-tone: var(--helix-color-foreground);
|
|
18
|
+
--_icon-button-tone-hover: color-mix(
|
|
19
|
+
in oklab,
|
|
20
|
+
var(--helix-color-foreground) 86%,
|
|
21
|
+
var(--helix-color-background)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
:host([tone="primary"]) {
|
|
25
|
+
--_icon-button-edge: var(--helix-color-primary);
|
|
26
|
+
--_icon-button-ink: var(--helix-color-primary);
|
|
27
|
+
--_icon-button-ink-hover: var(--helix-color-primary);
|
|
28
|
+
--_icon-button-fill: var(--helix-color-primary-surface);
|
|
29
|
+
--_icon-button-fill-hover: var(--helix-color-primary-surface-hover);
|
|
30
|
+
--_icon-button-on-tone: var(--helix-color-foreground-on-accent);
|
|
31
|
+
--_icon-button-tone: var(--helix-color-primary);
|
|
32
|
+
--_icon-button-tone-hover: var(--helix-color-primary-hover);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([tone="accent"]) {
|
|
36
|
+
--_icon-button-edge: var(--helix-color-accent);
|
|
37
|
+
--_icon-button-ink: var(--helix-color-accent);
|
|
38
|
+
--_icon-button-ink-hover: var(--helix-color-accent);
|
|
39
|
+
--_icon-button-fill: var(--helix-color-accent-surface);
|
|
40
|
+
--_icon-button-fill-hover: var(--helix-color-accent-surface-hover);
|
|
41
|
+
--_icon-button-on-tone: var(--helix-color-foreground-on-accent);
|
|
42
|
+
--_icon-button-tone: var(--helix-color-accent);
|
|
43
|
+
--_icon-button-tone-hover: var(--helix-color-accent-hover);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([tone="danger"]) {
|
|
47
|
+
--_icon-button-edge: var(--helix-color-danger);
|
|
48
|
+
--_icon-button-ink: var(--helix-color-danger);
|
|
49
|
+
--_icon-button-ink-hover: var(--helix-color-danger);
|
|
50
|
+
--_icon-button-fill: var(--helix-color-danger-surface);
|
|
51
|
+
--_icon-button-fill-hover: var(--helix-color-danger-surface-hover);
|
|
52
|
+
--_icon-button-on-tone: var(--helix-color-foreground-on-accent);
|
|
53
|
+
--_icon-button-tone: var(--helix-color-danger);
|
|
54
|
+
--_icon-button-tone-hover: color-mix(
|
|
55
|
+
in oklab,
|
|
56
|
+
var(--helix-color-danger) 86%,
|
|
57
|
+
var(--helix-color-foreground)
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part="button"] {
|
|
62
|
+
align-items: center;
|
|
63
|
+
background-color: transparent;
|
|
64
|
+
block-size: var(--_icon-button-size);
|
|
65
|
+
border: var(--helix-border-thin) solid transparent;
|
|
66
|
+
|
|
67
|
+
border-end-end-radius: var(--button-radius-end, var(--icon-button-radius, var(--helix-radii-sm)));
|
|
68
|
+
border-end-start-radius: var(
|
|
69
|
+
--button-radius-start,
|
|
70
|
+
var(--icon-button-radius, var(--helix-radii-sm))
|
|
71
|
+
);
|
|
72
|
+
border-start-end-radius: var(
|
|
73
|
+
--button-radius-end,
|
|
74
|
+
var(--icon-button-radius, var(--helix-radii-sm))
|
|
75
|
+
);
|
|
76
|
+
border-start-start-radius: var(
|
|
77
|
+
--button-radius-start,
|
|
78
|
+
var(--icon-button-radius, var(--helix-radii-sm))
|
|
79
|
+
);
|
|
80
|
+
color: var(--_icon-button-ink);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
|
|
84
|
+
font: inherit;
|
|
85
|
+
inline-size: var(--_icon-button-size);
|
|
86
|
+
justify-content: center;
|
|
87
|
+
padding: var(--helix-space-none);
|
|
88
|
+
transition:
|
|
89
|
+
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
90
|
+
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(:not(:disabled)) [part="button"]:hover {
|
|
94
|
+
background-color: color-mix(in oklab, var(--_icon-button-tone) 8%, transparent);
|
|
95
|
+
color: var(--_icon-button-ink-hover);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host([shape="circle"]) [part="button"] {
|
|
99
|
+
border-radius: var(--helix-radii-full);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([raised]) [part="button"] {
|
|
103
|
+
box-shadow: var(--icon-button-shadow, var(--helix-shadow-md));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([raised]:not(:disabled)) [part="button"]:hover {
|
|
107
|
+
box-shadow: var(--icon-button-shadow, var(--helix-shadow-lg));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([raised]:not(:disabled)) [part="button"]:active {
|
|
111
|
+
box-shadow: var(--icon-button-shadow, var(--helix-shadow-sm));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[part="button"]:focus-visible {
|
|
115
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
116
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([emphasis="solid"]) [part="button"] {
|
|
120
|
+
background-color: var(--_icon-button-fill);
|
|
121
|
+
border-color: transparent;
|
|
122
|
+
color: var(--_icon-button-on-tone);
|
|
123
|
+
}
|
|
124
|
+
:host(:not(:disabled)[emphasis="solid"]) [part="button"]:hover {
|
|
125
|
+
background-color: var(--_icon-button-fill-hover);
|
|
126
|
+
color: var(--_icon-button-on-tone);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([emphasis="outlined"]) [part="button"] {
|
|
130
|
+
background-color: color-mix(in oklab, var(--_icon-button-tone) 6%, transparent);
|
|
131
|
+
border-color: var(--_icon-button-edge);
|
|
132
|
+
color: var(--_icon-button-tone);
|
|
133
|
+
}
|
|
134
|
+
:host(:not(:disabled)[emphasis="outlined"]) [part="button"]:hover {
|
|
135
|
+
background-color: color-mix(in oklab, var(--_icon-button-tone) 12%, transparent);
|
|
136
|
+
color: var(--_icon-button-tone);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([emphasis="subtle"]) [part="button"] {
|
|
140
|
+
background-color: color-mix(in oklab, var(--_icon-button-tone) 14%, transparent);
|
|
141
|
+
border-color: transparent;
|
|
142
|
+
color: var(--_icon-button-tone);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host(:not(:disabled)[emphasis="subtle"]) [part="button"]:hover {
|
|
146
|
+
background-color: color-mix(in oklab, var(--_icon-button-tone) 22%, transparent);
|
|
147
|
+
color: var(--_icon-button-tone);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host(:disabled) [part="button"] {
|
|
151
|
+
cursor: not-allowed;
|
|
152
|
+
opacity: 0.5;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (prefers-reduced-motion: reduce) {
|
|
156
|
+
[part="button"] {
|
|
157
|
+
transition: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media print {
|
|
162
|
+
:host {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}`);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { HelixHeadlessIconButton } from '@fusion.dev/helix-headless/icon-button';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
declare const HelixIconButton_base: (new (...args: any[]) => import("../../mixins/mixin-control-surface/mixin-control-surface.js").MixinControlSurfaceInterface) & typeof HelixHeadlessIconButton;
|
|
4
|
+
/**
|
|
5
|
+
* @summary A square button whose content is an icon.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* Top-level rather than `Button.Icon`, because a namespace means composition:
|
|
9
|
+
* `Card.Header` is part of a card, and an icon-only button is not part of a
|
|
10
|
+
* button. It is a button with different content and a different shape, which
|
|
11
|
+
* makes it its own component.
|
|
12
|
+
*
|
|
13
|
+
* `label` is not optional in practice. An icon-only control with no accessible
|
|
14
|
+
* name is announced as "button" and nothing else, which is the single most
|
|
15
|
+
* common way a toolbar becomes unusable without sight.
|
|
16
|
+
*
|
|
17
|
+
* @since 0.1.0
|
|
18
|
+
* @status stable
|
|
19
|
+
* @category actions
|
|
20
|
+
* @aliases Icon button, Square button
|
|
21
|
+
* @documentation https://helix.fusion.dev/components/icon-button
|
|
22
|
+
*
|
|
23
|
+
* @slot - The icon.
|
|
24
|
+
*
|
|
25
|
+
* @csspart button - The inner button or anchor.
|
|
26
|
+
*
|
|
27
|
+
* @cssproperty --icon-button-radius - Corner radius of the control, which a group flattens through `--button-radius-start` and `--button-radius-end`.
|
|
28
|
+
* @cssproperty --icon-button-shadow - What it casts, where it is raised off the page.
|
|
29
|
+
* @cssproperty --icon-button-size - Edge length of the control.
|
|
30
|
+
*/
|
|
31
|
+
export declare class HelixIconButton extends HelixIconButton_base {
|
|
32
|
+
/**
|
|
33
|
+
* The outline it is cut to, which is an axis of its own and not a value on one.
|
|
34
|
+
*
|
|
35
|
+
* `emphasis` says how filled it is and `tone` says what it means; neither of
|
|
36
|
+
* them says what shape it is, and folding a shape into either would put a
|
|
37
|
+
* control's outline in the same word as its color. A rounded square is the
|
|
38
|
+
* resting one because that is what a control in a row of controls should be.
|
|
39
|
+
*
|
|
40
|
+
* `circle` is the floating action button, and it is the reason this exists: a
|
|
41
|
+
* round, raised, primary control holding the one action a screen is for. It is
|
|
42
|
+
* a shape rather than a component, because a component would re-declare
|
|
43
|
+
* `emphasis`, `tone`, `label` and the size around a control that already has
|
|
44
|
+
* them, and because the same shape is wanted by an avatar's overlay, a media
|
|
45
|
+
* control and a map's own buttons. Where it sits is the page's business: see
|
|
46
|
+
* `data-dock` in the base layer.
|
|
47
|
+
*/
|
|
48
|
+
shape?: 'circle';
|
|
49
|
+
/**
|
|
50
|
+
* Whether it is raised off the page it sits on.
|
|
51
|
+
*
|
|
52
|
+
* Separate from `shape`, because they are separate facts: a docked control is
|
|
53
|
+
* raised whatever its outline, and a circle inside a toolbar is not raised at
|
|
54
|
+
* all. Shadow rather than a border, since what is under a floating control is
|
|
55
|
+
* the page and a line drawn on the page is not the same as being above it.
|
|
56
|
+
*/
|
|
57
|
+
raised: boolean;
|
|
58
|
+
static styles: CSSResultGroup;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
'helix-icon-button': HelixIconButton;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement } from '@fusion.dev/helix-core';
|
|
8
|
+
import { HelixHeadlessIconButton } from '@fusion.dev/helix-headless/icon-button';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { MixinControlSurface } from '../../mixins/mixin-control-surface/mixin-control-surface.js';
|
|
11
|
+
import { styles } from './icon-button-root.css.js';
|
|
12
|
+
/**
|
|
13
|
+
* @summary A square button whose content is an icon.
|
|
14
|
+
*
|
|
15
|
+
* @description
|
|
16
|
+
* Top-level rather than `Button.Icon`, because a namespace means composition:
|
|
17
|
+
* `Card.Header` is part of a card, and an icon-only button is not part of a
|
|
18
|
+
* button. It is a button with different content and a different shape, which
|
|
19
|
+
* makes it its own component.
|
|
20
|
+
*
|
|
21
|
+
* `label` is not optional in practice. An icon-only control with no accessible
|
|
22
|
+
* name is announced as "button" and nothing else, which is the single most
|
|
23
|
+
* common way a toolbar becomes unusable without sight.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
* @status stable
|
|
27
|
+
* @category actions
|
|
28
|
+
* @aliases Icon button, Square button
|
|
29
|
+
* @documentation https://helix.fusion.dev/components/icon-button
|
|
30
|
+
*
|
|
31
|
+
* @slot - The icon.
|
|
32
|
+
*
|
|
33
|
+
* @csspart button - The inner button or anchor.
|
|
34
|
+
*
|
|
35
|
+
* @cssproperty --icon-button-radius - Corner radius of the control, which a group flattens through `--button-radius-start` and `--button-radius-end`.
|
|
36
|
+
* @cssproperty --icon-button-shadow - What it casts, where it is raised off the page.
|
|
37
|
+
* @cssproperty --icon-button-size - Edge length of the control.
|
|
38
|
+
*/
|
|
39
|
+
let HelixIconButton = class HelixIconButton extends MixinControlSurface(HelixHeadlessIconButton) {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
/**
|
|
43
|
+
* Whether it is raised off the page it sits on.
|
|
44
|
+
*
|
|
45
|
+
* Separate from `shape`, because they are separate facts: a docked control is
|
|
46
|
+
* raised whatever its outline, and a circle inside a toolbar is not raised at
|
|
47
|
+
* all. Shadow rather than a border, since what is under a floating control is
|
|
48
|
+
* the page and a line drawn on the page is not the same as being above it.
|
|
49
|
+
*/
|
|
50
|
+
this.raised = false;
|
|
51
|
+
}
|
|
52
|
+
static { this.styles = styles; }
|
|
53
|
+
};
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ reflect: true })
|
|
56
|
+
], HelixIconButton.prototype, "shape", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ reflect: true, type: Boolean })
|
|
59
|
+
], HelixIconButton.prototype, "raised", void 0);
|
|
60
|
+
HelixIconButton = __decorate([
|
|
61
|
+
customElement('helix-icon-button')
|
|
62
|
+
], HelixIconButton);
|
|
63
|
+
export { HelixIconButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/image-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/image-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|