@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,28 @@
|
|
|
1
|
+
import type { HelixElement } from '@fusion.dev/helix-core';
|
|
2
|
+
type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
+
/**
|
|
4
|
+
* How much ink a control claims and what it means, for the three that are buttons.
|
|
5
|
+
*
|
|
6
|
+
* **The first mixin in `helix/styled`, and it belongs here rather than in core.**
|
|
7
|
+
* `helix/core` is consumed by the headless tier, which must never take styling,
|
|
8
|
+
* and these two properties are purely presentational: they carry no behavior,
|
|
9
|
+
* no ARIA and no form participation, only which rules a stylesheet applies.
|
|
10
|
+
* Declaring them in core would put a treatment on the tier whose whole purpose
|
|
11
|
+
* is not having one.
|
|
12
|
+
*
|
|
13
|
+
* **Why a mixin rather than inheritance.** `Button`, `IconButton` and
|
|
14
|
+
* `CopyButton` all want this pair, and the styled tier cannot get it by
|
|
15
|
+
* extending: each styled class extends its own base, which is what keeps a
|
|
16
|
+
* control's behavior and its presentation in one branch. `CopyButton` already
|
|
17
|
+
* composes `IconButton`'s stylesheet, `[HelixIconButton.styles, styles]`, which
|
|
18
|
+
* is the same move for CSS; this is that move for API. Redeclared instead, the
|
|
19
|
+
* three drift the first time one gains a value.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MixinControlSurfaceInterface {
|
|
22
|
+
/** How filled it is drawn. Absent is the control's own resting treatment. */
|
|
23
|
+
emphasis?: 'ghost' | 'outlined' | 'solid' | 'subtle';
|
|
24
|
+
/** What it means. Absent is `neutral`, which is the resting case. */
|
|
25
|
+
tone?: 'accent' | 'danger' | 'neutral' | 'primary';
|
|
26
|
+
}
|
|
27
|
+
export declare const MixinControlSurface: <T extends Constructor<HelixElement>>(Base: T) => Constructor<MixinControlSurfaceInterface> & T;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { property } from 'lit/decorators.js';
|
|
8
|
+
export const MixinControlSurface = (Base) => {
|
|
9
|
+
// Duplicated from the interface deliberately: the interface is what a
|
|
10
|
+
// TypeScript consumer sees, and this class is what the manifest analyzer
|
|
11
|
+
// reads when resolving inherited members into dependent packages.
|
|
12
|
+
class ControlSurfaceElement extends Base {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
property({ reflect: true })
|
|
16
|
+
], ControlSurfaceElement.prototype, "emphasis", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
property({ reflect: true })
|
|
19
|
+
], ControlSurfaceElement.prototype, "tone", void 0);
|
|
20
|
+
return ControlSurfaceElement;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/navigation-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/navigation-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated from src/navigation/root/navigation-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: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[part="nav"] {
|
|
8
|
+
align-items: center;
|
|
9
|
+
block-size: var(--helix-size-control-tight);
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: var(--navigation-gap, var(--helix-space-2xs));
|
|
12
|
+
|
|
13
|
+
min-inline-size: 0;
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part="indicator"] {
|
|
20
|
+
background-color: var(--navigation-indicator-color, var(--helix-color-surface-sunken));
|
|
21
|
+
block-size: var(--indicator-block-size, 0);
|
|
22
|
+
border-radius: var(--helix-radii-sm);
|
|
23
|
+
inline-size: var(--indicator-inline-size, 0);
|
|
24
|
+
inset-block-start: 50%;
|
|
25
|
+
inset-inline-start: 0;
|
|
26
|
+
opacity: 0;
|
|
27
|
+
position: absolute;
|
|
28
|
+
translate: var(--indicator-x, 0) -50%;
|
|
29
|
+
transition:
|
|
30
|
+
translate var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
31
|
+
inline-size var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
32
|
+
opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
33
|
+
z-index: var(--helix-layer-base);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[part="indicator"][data-placed] {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
[part="indicator"] {
|
|
42
|
+
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media print {
|
|
47
|
+
:host {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}`);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HelixHeadlessNavigation } from '@fusion.dev/helix-headless/navigation';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A set of destinations, with a marker on the current one.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* One marker that travels, rather than a background that appears on whichever
|
|
8
|
+
* destination is current. A fill that swaps is two things changing at once and
|
|
9
|
+
* reads as a flicker; one that moves is a single object the eye follows, and it
|
|
10
|
+
* says where the current page was as well as where it is.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
* @status experimental
|
|
14
|
+
* @category navigation
|
|
15
|
+
* @aliases Nav, NavList, Tabs
|
|
16
|
+
* @documentation https://helix.fusion.dev/components/navigation
|
|
17
|
+
*
|
|
18
|
+
* @cssproperty --navigation-gap - Space between destinations.
|
|
19
|
+
* @cssproperty --navigation-indicator-color - Fill of the traveling marker.
|
|
20
|
+
*/
|
|
21
|
+
export declare class HelixNavigation extends HelixHeadlessNavigation {
|
|
22
|
+
static styles: CSSResultGroup;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'helix-navigation': HelixNavigation;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { HelixHeadlessNavigation } from '@fusion.dev/helix-headless/navigation';
|
|
9
|
+
import { styles } from './navigation-root.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary A set of destinations, with a marker on the current one.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* One marker that travels, rather than a background that appears on whichever
|
|
15
|
+
* destination is current. A fill that swaps is two things changing at once and
|
|
16
|
+
* reads as a flicker; one that moves is a single object the eye follows, and it
|
|
17
|
+
* says where the current page was as well as where it is.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
* @status experimental
|
|
21
|
+
* @category navigation
|
|
22
|
+
* @aliases Nav, NavList, Tabs
|
|
23
|
+
* @documentation https://helix.fusion.dev/components/navigation
|
|
24
|
+
*
|
|
25
|
+
* @cssproperty --navigation-gap - Space between destinations.
|
|
26
|
+
* @cssproperty --navigation-indicator-color - Fill of the traveling marker.
|
|
27
|
+
*/
|
|
28
|
+
let HelixNavigation = class HelixNavigation extends HelixHeadlessNavigation {
|
|
29
|
+
static { this.styles = styles; }
|
|
30
|
+
};
|
|
31
|
+
HelixNavigation = __decorate([
|
|
32
|
+
customElement('helix-navigation')
|
|
33
|
+
], HelixNavigation);
|
|
34
|
+
export { HelixNavigation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// Generated from src/notifications/notification/notification.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
|
|
5
|
+
--_notifications-line: calc(var(--helix-text-sm) * var(--helix-leading-normal));
|
|
6
|
+
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[part="item"] {
|
|
13
|
+
align-items: start;
|
|
14
|
+
border-block-end: var(--helix-border-thin) solid
|
|
15
|
+
var(--notifications-rule, var(--helix-color-border));
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr) auto;
|
|
18
|
+
padding-block: var(--notifications-padding-block, var(--helix-space-sm));
|
|
19
|
+
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
20
|
+
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(:not(:state(read))) [part="item"]::before {
|
|
25
|
+
background-color: var(--notifications-unread-mark, var(--helix-color-accent));
|
|
26
|
+
block-size: var(--notifications-unread-block-size, var(--_notifications-line));
|
|
27
|
+
border-radius: var(--notifications-unread-radius, var(--helix-radii-full));
|
|
28
|
+
content: "";
|
|
29
|
+
inline-size: var(--notifications-unread-inline-size, var(--helix-border-thick));
|
|
30
|
+
inset-block-start: var(
|
|
31
|
+
--notifications-unread-offset,
|
|
32
|
+
var(--notifications-padding-block, var(--helix-space-sm))
|
|
33
|
+
);
|
|
34
|
+
inset-inline-start: var(--notifications-unread-inset, var(--helix-space-2xs));
|
|
35
|
+
position: absolute;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part="media"] {
|
|
39
|
+
display: grid;
|
|
40
|
+
place-items: center start;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[part="body"] {
|
|
44
|
+
display: grid;
|
|
45
|
+
gap: var(--helix-space-2xs);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[part="label"] {
|
|
49
|
+
color: var(--notifications-color, var(--helix-color-foreground-muted));
|
|
50
|
+
font-family: var(--helix-font-sans);
|
|
51
|
+
font-size: var(--helix-text-sm);
|
|
52
|
+
line-height: var(--_notifications-line);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
slot[name="caption"]::slotted(*) {
|
|
56
|
+
color: var(--helix-color-foreground-subtle);
|
|
57
|
+
font-family: var(--helix-font-sans);
|
|
58
|
+
font-size: var(--helix-text-xs);
|
|
59
|
+
line-height: var(--helix-leading-normal);
|
|
60
|
+
margin: var(--helix-space-none);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host(:not(:state(read))) [part="label"] {
|
|
64
|
+
color: var(--helix-color-foreground);
|
|
65
|
+
font-weight: var(--helix-weight-medium);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[part="trailing"] {
|
|
69
|
+
align-items: center;
|
|
70
|
+
align-self: center;
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-areas: "swap";
|
|
73
|
+
justify-items: end;
|
|
74
|
+
margin-inline-start: var(--helix-space-sm);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[part="trailing"] > * {
|
|
78
|
+
grid-area: swap;
|
|
79
|
+
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host {
|
|
83
|
+
--_notifications-swap: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[part="trailing"] > :not([part="controls"]) {
|
|
87
|
+
color: var(--helix-color-foreground-subtle);
|
|
88
|
+
font-family: var(--helix-font-sans);
|
|
89
|
+
font-size: var(--helix-text-xs);
|
|
90
|
+
opacity: calc(1 - var(--_notifications-swap));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[part="controls"] {
|
|
94
|
+
align-items: center;
|
|
95
|
+
display: flex;
|
|
96
|
+
opacity: var(--_notifications-swap);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host(:hover:state(controls)),
|
|
100
|
+
:host(:focus-within:state(controls)) {
|
|
101
|
+
--_notifications-swap: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[part="controls"] {
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host(:hover:state(controls)) [part="controls"],
|
|
109
|
+
:host(:focus-within:state(controls)) [part="controls"] {
|
|
110
|
+
pointer-events: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (hover: none) and (pointer: coarse) {
|
|
114
|
+
[part="trailing"] {
|
|
115
|
+
column-gap: var(--helix-space-sm);
|
|
116
|
+
grid-auto-flow: column;
|
|
117
|
+
grid-template-areas: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[part="trailing"] > * {
|
|
121
|
+
grid-area: auto;
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[part="controls"] {
|
|
126
|
+
pointer-events: auto;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (prefers-reduced-motion: reduce) {
|
|
131
|
+
[part="trailing"] > * {
|
|
132
|
+
transition: none;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[part="actions"] {
|
|
137
|
+
align-items: center;
|
|
138
|
+
display: flex;
|
|
139
|
+
gap: var(--helix-space-2xs);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[part="dismiss"] {
|
|
143
|
+
background: none;
|
|
144
|
+
border: 0;
|
|
145
|
+
border-radius: var(--helix-radii-sm);
|
|
146
|
+
block-size: var(--helix-size-control);
|
|
147
|
+
color: var(--helix-color-foreground-muted);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
display: grid;
|
|
150
|
+
inline-size: var(--helix-size-control);
|
|
151
|
+
margin-inline-start: var(--helix-space-2xs);
|
|
152
|
+
padding: var(--helix-space-none);
|
|
153
|
+
place-items: center;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[part="dismiss"] ::slotted(*) {
|
|
157
|
+
block-size: var(--icon-size, var(--helix-size-icon));
|
|
158
|
+
inline-size: var(--icon-size, var(--helix-size-icon));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[part="dismiss"]:hover {
|
|
162
|
+
background-color: color-mix(in oklab, var(--helix-color-foreground) 8%, transparent);
|
|
163
|
+
color: var(--helix-color-foreground);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[part="dismiss"]:focus-visible {
|
|
167
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
168
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media print {
|
|
172
|
+
[part="dismiss"] {
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host(:not(:state(read))) [part="item"]::before {
|
|
177
|
+
display: none;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@container (inline-size < 26rem) {
|
|
182
|
+
[part="item"] {
|
|
183
|
+
grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[part="trailing"] {
|
|
187
|
+
align-self: start;
|
|
188
|
+
grid-column: 2;
|
|
189
|
+
grid-row: 2;
|
|
190
|
+
justify-items: start;
|
|
191
|
+
margin-block-start: var(--helix-space-2xs);
|
|
192
|
+
margin-inline-start: var(--helix-space-none);
|
|
193
|
+
}
|
|
194
|
+
}`);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { HelixHeadlessNotification } from '@fusion.dev/helix-headless/notifications';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary One thing that happened, which a reader may not have seen yet.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* A four-column grid: media, body, actions, dismiss.
|
|
8
|
+
*
|
|
9
|
+
* **The media column is held open by the feed, not by the item.** Each item is
|
|
10
|
+
* its own grid, so nothing about one row's tracks reaches the row below it: a
|
|
11
|
+
* feed where some items had an avatar and some did not drew its text at two
|
|
12
|
+
* different left edges, which is the fault a grid was chosen to prevent. The
|
|
13
|
+
* root publishes whether anything in it has media and every item reserves that
|
|
14
|
+
* much, so a mixed feed reads down one edge and a feed with no media anywhere
|
|
15
|
+
* pays nothing for the column.
|
|
16
|
+
*
|
|
17
|
+
* **Unread is weight and a mark on the inline start edge, not a fill.** Depth
|
|
18
|
+
* comes from a single border in this library, and a filled row is elevation
|
|
19
|
+
* spelled differently; a feed of filled rows is a striped list nobody can read.
|
|
20
|
+
* The mark is a fixed height on the first line rather than the height of the
|
|
21
|
+
* row, so it says the same thing about a one line notification and a five line
|
|
22
|
+
* one.
|
|
23
|
+
*
|
|
24
|
+
* **Narrow, the actions go under the body.** How much room the row was given is
|
|
25
|
+
* a fact about this box and about nothing else, so it is a container query: a
|
|
26
|
+
* feed in a 320 pixel side panel is narrow inside a 1400 pixel window, and a
|
|
27
|
+
* viewport rule would hand it the wide branch.
|
|
28
|
+
*
|
|
29
|
+
* @since 0.1.0
|
|
30
|
+
* @status experimental
|
|
31
|
+
* @category feedback
|
|
32
|
+
* @documentation https://helix.fusion.dev/components/notifications
|
|
33
|
+
*
|
|
34
|
+
* @slot - What happened, in the consumer's own markup.
|
|
35
|
+
* @slot actions - What a reader can do about it.
|
|
36
|
+
* @slot media - An avatar or icon identifying who or what it came from.
|
|
37
|
+
*
|
|
38
|
+
* @csspart controls - The actions and the dismiss, which replace the time.
|
|
39
|
+
* @csspart dismiss - The control that removes it.
|
|
40
|
+
* @csspart dismiss-mark - The glyph on that control, where none is slotted.
|
|
41
|
+
* @csspart item - The whole notification.
|
|
42
|
+
* @csspart time - When it happened.
|
|
43
|
+
* @csspart trailing - The column holding the time and the controls.
|
|
44
|
+
*
|
|
45
|
+
* @cssproperty --notifications-color - Ink in an item that has been read.
|
|
46
|
+
* @cssproperty --notifications-padding-block - Space above and below an item.
|
|
47
|
+
* @cssproperty --notifications-padding-inline - Space either side of an item.
|
|
48
|
+
* @cssproperty --notifications-rule - The hairline between items.
|
|
49
|
+
* @cssproperty --notifications-unread-block-size - How long that mark is.
|
|
50
|
+
* @cssproperty --notifications-unread-inline-size - How thick that mark is.
|
|
51
|
+
* @cssproperty --notifications-unread-inset - How far it sits from the row's leading edge.
|
|
52
|
+
* @cssproperty --notifications-unread-mark - Color of the edge mark on an unread item.
|
|
53
|
+
* @cssproperty --notifications-unread-offset - How far it sits from the row's top.
|
|
54
|
+
* @cssproperty --notifications-unread-radius - Its corner radius, which is what turns it into a dot.
|
|
55
|
+
*/
|
|
56
|
+
export declare class HelixNotification extends HelixHeadlessNotification {
|
|
57
|
+
static tier: string;
|
|
58
|
+
static styles: CSSResultGroup;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
'helix-notification': HelixNotification;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { HelixHeadlessNotification } from '@fusion.dev/helix-headless/notifications';
|
|
9
|
+
import { styles as glyphStyles } from '../../icon/glyph.css.js';
|
|
10
|
+
import { styles } from './notification.css.js';
|
|
11
|
+
/**
|
|
12
|
+
* @summary One thing that happened, which a reader may not have seen yet.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* A four-column grid: media, body, actions, dismiss.
|
|
16
|
+
*
|
|
17
|
+
* **The media column is held open by the feed, not by the item.** Each item is
|
|
18
|
+
* its own grid, so nothing about one row's tracks reaches the row below it: a
|
|
19
|
+
* feed where some items had an avatar and some did not drew its text at two
|
|
20
|
+
* different left edges, which is the fault a grid was chosen to prevent. The
|
|
21
|
+
* root publishes whether anything in it has media and every item reserves that
|
|
22
|
+
* much, so a mixed feed reads down one edge and a feed with no media anywhere
|
|
23
|
+
* pays nothing for the column.
|
|
24
|
+
*
|
|
25
|
+
* **Unread is weight and a mark on the inline start edge, not a fill.** Depth
|
|
26
|
+
* comes from a single border in this library, and a filled row is elevation
|
|
27
|
+
* spelled differently; a feed of filled rows is a striped list nobody can read.
|
|
28
|
+
* The mark is a fixed height on the first line rather than the height of the
|
|
29
|
+
* row, so it says the same thing about a one line notification and a five line
|
|
30
|
+
* one.
|
|
31
|
+
*
|
|
32
|
+
* **Narrow, the actions go under the body.** How much room the row was given is
|
|
33
|
+
* a fact about this box and about nothing else, so it is a container query: a
|
|
34
|
+
* feed in a 320 pixel side panel is narrow inside a 1400 pixel window, and a
|
|
35
|
+
* viewport rule would hand it the wide branch.
|
|
36
|
+
*
|
|
37
|
+
* @since 0.1.0
|
|
38
|
+
* @status experimental
|
|
39
|
+
* @category feedback
|
|
40
|
+
* @documentation https://helix.fusion.dev/components/notifications
|
|
41
|
+
*
|
|
42
|
+
* @slot - What happened, in the consumer's own markup.
|
|
43
|
+
* @slot actions - What a reader can do about it.
|
|
44
|
+
* @slot media - An avatar or icon identifying who or what it came from.
|
|
45
|
+
*
|
|
46
|
+
* @csspart controls - The actions and the dismiss, which replace the time.
|
|
47
|
+
* @csspart dismiss - The control that removes it.
|
|
48
|
+
* @csspart dismiss-mark - The glyph on that control, where none is slotted.
|
|
49
|
+
* @csspart item - The whole notification.
|
|
50
|
+
* @csspart time - When it happened.
|
|
51
|
+
* @csspart trailing - The column holding the time and the controls.
|
|
52
|
+
*
|
|
53
|
+
* @cssproperty --notifications-color - Ink in an item that has been read.
|
|
54
|
+
* @cssproperty --notifications-padding-block - Space above and below an item.
|
|
55
|
+
* @cssproperty --notifications-padding-inline - Space either side of an item.
|
|
56
|
+
* @cssproperty --notifications-rule - The hairline between items.
|
|
57
|
+
* @cssproperty --notifications-unread-block-size - How long that mark is.
|
|
58
|
+
* @cssproperty --notifications-unread-inline-size - How thick that mark is.
|
|
59
|
+
* @cssproperty --notifications-unread-inset - How far it sits from the row's leading edge.
|
|
60
|
+
* @cssproperty --notifications-unread-mark - Color of the edge mark on an unread item.
|
|
61
|
+
* @cssproperty --notifications-unread-offset - How far it sits from the row's top.
|
|
62
|
+
* @cssproperty --notifications-unread-radius - Its corner radius, which is what turns it into a dot.
|
|
63
|
+
*/
|
|
64
|
+
let HelixNotification = class HelixNotification extends HelixHeadlessNotification {
|
|
65
|
+
static { this.tier = 'helix-'; }
|
|
66
|
+
static { this.styles = [glyphStyles, styles]; }
|
|
67
|
+
};
|
|
68
|
+
HelixNotification = __decorate([
|
|
69
|
+
customElement('helix-notification')
|
|
70
|
+
], HelixNotification);
|
|
71
|
+
export { HelixNotification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Generated from src/notifications/root/notifications-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
|
|
5
|
+
--helix-size-checkbox: var(--helix-size-checkbox-sm);
|
|
6
|
+
--helix-size-control: var(--helix-size-control-sm);
|
|
7
|
+
--helix-size-icon: var(--helix-size-icon-sm);
|
|
8
|
+
--helix-size-tag: var(--helix-size-tag-sm);
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
12
|
+
max-block-size: var(--notifications-max-block-size, none);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host(:state(media)) {
|
|
16
|
+
--notifications-media-column: calc(var(--helix-size-avatar) + var(--helix-space-sm));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part="header"] {
|
|
20
|
+
align-items: center;
|
|
21
|
+
border-block-end: var(--helix-border-thin) solid
|
|
22
|
+
var(--notifications-rule, var(--helix-color-border));
|
|
23
|
+
display: flex;
|
|
24
|
+
gap: var(--helix-space-sm);
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
padding-block: var(--helix-space-sm);
|
|
27
|
+
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part="header"][data-empty],
|
|
31
|
+
[part="footer"][data-empty] {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part="list"] {
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[part="footer"] {
|
|
40
|
+
border-block-start: var(--helix-border-thin) solid
|
|
41
|
+
var(--notifications-rule, var(--helix-color-border));
|
|
42
|
+
padding-block: var(--helix-space-sm);
|
|
43
|
+
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
::slotted(helix-notification:last-of-type) {
|
|
47
|
+
--notifications-rule: transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[part="mark-all"] {
|
|
51
|
+
background: none;
|
|
52
|
+
border: 0;
|
|
53
|
+
border-radius: var(--helix-radii-sm);
|
|
54
|
+
color: var(--helix-color-accent);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-family: var(--helix-font-sans);
|
|
57
|
+
font-size: var(--helix-text-sm);
|
|
58
|
+
padding-block: var(--helix-space-2xs);
|
|
59
|
+
padding-inline: var(--helix-space-2xs);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[part="mark-all"]:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="mark-all"]:focus-visible {
|
|
67
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
68
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[part="empty"],
|
|
72
|
+
[part="loading"] {
|
|
73
|
+
color: var(--helix-color-foreground-subtle);
|
|
74
|
+
font-family: var(--helix-font-sans);
|
|
75
|
+
font-size: var(--helix-text-sm);
|
|
76
|
+
margin: var(--helix-space-none);
|
|
77
|
+
padding-block: var(--helix-space-lg);
|
|
78
|
+
padding-inline: var(--helix-space-md);
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media print {
|
|
83
|
+
:host {
|
|
84
|
+
max-block-size: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[part="list"] {
|
|
88
|
+
overflow-y: visible;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[part="mark-all"] {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}`);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HelixHeadlessNotifications } from '@fusion.dev/helix-headless/notifications';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
import '../notification/notification.js';
|
|
4
|
+
/**
|
|
5
|
+
* @summary A feed a reader comes back to, made of notifications they may not have seen.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* Three rows: header, a list that scrolls, footer. The list scrolls and the
|
|
9
|
+
* other two do not, because a panel is opened at a fixed height and a mark-all
|
|
10
|
+
* control that slides away as the reader scrolls is the control they were
|
|
11
|
+
* reaching for.
|
|
12
|
+
*
|
|
13
|
+
* **It does not virtualize and it cannot**, which is the headless tier's note
|
|
14
|
+
* and worth repeating where the choice is made: the items are the consumer's own
|
|
15
|
+
* elements, so N notifications is N elements by construction. A feed that really
|
|
16
|
+
* holds thousands wants `helix-data-table` with a custom cell.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
* @status experimental
|
|
20
|
+
* @category feedback
|
|
21
|
+
* @documentation https://helix.fusion.dev/components/notifications
|
|
22
|
+
*
|
|
23
|
+
* @slot - The notifications, as `helix-notification` children.
|
|
24
|
+
* @slot footer - Below the list, for a link to everything.
|
|
25
|
+
* @slot header - Above the list, for a title and the mark-all control.
|
|
26
|
+
*
|
|
27
|
+
* @csspart list - The list itself.
|
|
28
|
+
* @csspart mark-all - The control that marks everything read.
|
|
29
|
+
*
|
|
30
|
+
* @cssproperty --notifications-max-block-size - How tall the feed may get before the list scrolls.
|
|
31
|
+
* @cssproperty --notifications-media-column - The gutter every item holds open where something in the feed has media.
|
|
32
|
+
* @cssproperty --notifications-padding-inline - Space either side of the header and footer.
|
|
33
|
+
* @cssproperty --notifications-rule - The hairline between items and around the regions.
|
|
34
|
+
*/
|
|
35
|
+
export declare class HelixNotifications extends HelixHeadlessNotifications {
|
|
36
|
+
static tier: string;
|
|
37
|
+
static styles: CSSResultGroup;
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'helix-notifications': HelixNotifications;
|
|
42
|
+
}
|
|
43
|
+
}
|