@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,335 @@
|
|
|
1
|
+
// Generated from src/slider/root/slider-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: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--helix-space-2xs);
|
|
7
|
+
|
|
8
|
+
--_slider-track: var(--slider-track-size, var(--helix-size-progress));
|
|
9
|
+
|
|
10
|
+
--_slider-thumb: var(--slider-thumb-size, var(--helix-size-checkbox));
|
|
11
|
+
--_slider-thumb-length: var(--slider-thumb-length, var(--_slider-thumb));
|
|
12
|
+
--_slider-thumb-radii: var(--slider-thumb-radius, var(--helix-radii-full));
|
|
13
|
+
|
|
14
|
+
--_slider-halo: color-mix(
|
|
15
|
+
in oklab,
|
|
16
|
+
var(--slider-fill-color, var(--helix-color-primary)) 24%,
|
|
17
|
+
transparent
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
--_slider-track-color: var(--slider-track-color, var(--helix-color-border));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[part="field"] {
|
|
24
|
+
align-items: center;
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: var(--helix-space-sm);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[part="field"][data-markers] {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: 1fr auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[part="control"] {
|
|
35
|
+
|
|
36
|
+
z-index: var(--helix-layer-raised);
|
|
37
|
+
|
|
38
|
+
appearance: none;
|
|
39
|
+
background: transparent;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
min-inline-size: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[part="field"][data-markers] [part="control"],
|
|
46
|
+
[part="field"][data-markers] [part="markers"] {
|
|
47
|
+
grid-column: 1;
|
|
48
|
+
grid-row: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[part="output"] {
|
|
52
|
+
color: var(--helix-color-foreground);
|
|
53
|
+
font-family: var(--helix-font-sans);
|
|
54
|
+
font-size: var(--helix-text-sm);
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
|
|
57
|
+
min-inline-size: var(--_slider-output-reserve, 3ch);
|
|
58
|
+
text-align: end;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part="field"][data-markers] [part="output"] {
|
|
62
|
+
grid-column: 2;
|
|
63
|
+
grid-row: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="control"] {
|
|
67
|
+
--_slider-track-image: var(
|
|
68
|
+
--slider-track-image,
|
|
69
|
+
linear-gradient(
|
|
70
|
+
to right,
|
|
71
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-fraction, 0) * 100%),
|
|
72
|
+
var(--_slider-track-color) calc(var(--slider-fraction, 0) * 100%)
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[part="markers"] {
|
|
78
|
+
align-self: center;
|
|
79
|
+
block-size: var(--_slider-track);
|
|
80
|
+
margin-inline: calc(var(--_slider-thumb-length) / 2);
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
position: relative;
|
|
83
|
+
z-index: var(--helix-layer-raised);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([marker-labels]) [part="field"] {
|
|
87
|
+
padding-block-end: var(--helix-space-lg);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part="marker-label"] {
|
|
91
|
+
color: var(--helix-color-foreground-subtle);
|
|
92
|
+
font-family: var(--helix-font-sans);
|
|
93
|
+
font-size: var(--helix-text-xs);
|
|
94
|
+
font-variant-numeric: tabular-nums;
|
|
95
|
+
inset-block-start: var(--helix-space-sm);
|
|
96
|
+
inset-inline-start: 50%;
|
|
97
|
+
position: absolute;
|
|
98
|
+
translate: -50% 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[part="markers"] {
|
|
102
|
+
--_slider-hole: calc(var(--_slider-thumb-length) / 2 + var(--helix-border-thin));
|
|
103
|
+
|
|
104
|
+
mask-image: radial-gradient(
|
|
105
|
+
circle at calc(var(--slider-fraction, 0) * 100%) 50%,
|
|
106
|
+
transparent var(--_slider-hole),
|
|
107
|
+
currentColor var(--_slider-hole)
|
|
108
|
+
);
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
z-index: var(--helix-layer-raised);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[part="field"][data-range] [part="markers"] {
|
|
114
|
+
mask-composite: intersect;
|
|
115
|
+
mask-image:
|
|
116
|
+
radial-gradient(
|
|
117
|
+
circle at calc(var(--slider-from, 0) * 100%) 50%,
|
|
118
|
+
transparent var(--_slider-hole),
|
|
119
|
+
currentColor var(--_slider-hole)
|
|
120
|
+
),
|
|
121
|
+
radial-gradient(
|
|
122
|
+
circle at calc(var(--slider-to, 0) * 100%) 50%,
|
|
123
|
+
transparent var(--_slider-hole),
|
|
124
|
+
currentColor var(--_slider-hole)
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([orientation="vertical"]) [part="markers"] {
|
|
129
|
+
mask-image: radial-gradient(
|
|
130
|
+
circle at 50% calc(100% - var(--slider-fraction, 0) * 100%),
|
|
131
|
+
transparent var(--_slider-hole),
|
|
132
|
+
currentColor var(--_slider-hole)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[part="marker"] {
|
|
137
|
+
background-color: var(--slider-marker-color, var(--helix-color-background));
|
|
138
|
+
block-size: var(--_slider-track);
|
|
139
|
+
border-radius: var(--helix-radii-full);
|
|
140
|
+
inline-size: var(--helix-border-thick);
|
|
141
|
+
inset-block-start: 0;
|
|
142
|
+
|
|
143
|
+
inset-inline-start: var(--slider-marker-at, 0%);
|
|
144
|
+
position: absolute;
|
|
145
|
+
translate: -50% 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host(:disabled) [part="control"] {
|
|
149
|
+
cursor: not-allowed;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host(:disabled) {
|
|
153
|
+
opacity: 0.5;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[part="control"]::-webkit-slider-runnable-track {
|
|
157
|
+
background: var(--_slider-track-image);
|
|
158
|
+
block-size: var(--_slider-track);
|
|
159
|
+
border-radius: var(--helix-radii-full);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[part="control"]::-moz-range-track {
|
|
163
|
+
background: var(--_slider-track-image);
|
|
164
|
+
block-size: var(--_slider-track);
|
|
165
|
+
border-radius: var(--helix-radii-full);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[part="control"]::-webkit-slider-thumb {
|
|
169
|
+
appearance: none;
|
|
170
|
+
|
|
171
|
+
background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));
|
|
172
|
+
block-size: var(--_slider-thumb);
|
|
173
|
+
border: none;
|
|
174
|
+
border-radius: var(--_slider-thumb-radii);
|
|
175
|
+
|
|
176
|
+
box-shadow:
|
|
177
|
+
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
178
|
+
var(--helix-shadow-md);
|
|
179
|
+
inline-size: var(--_slider-thumb-length);
|
|
180
|
+
margin-block-start: calc((var(--_slider-track) - var(--_slider-thumb)) / 2);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[part="control"]:focus-visible::-webkit-slider-thumb,
|
|
184
|
+
[part="control"]:active::-webkit-slider-thumb {
|
|
185
|
+
box-shadow:
|
|
186
|
+
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
187
|
+
var(--helix-shadow-md),
|
|
188
|
+
0 0 0 var(--helix-space-2xs) var(--_slider-halo);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
[part="control"]:focus-visible::-moz-range-thumb,
|
|
192
|
+
[part="control"]:active::-moz-range-thumb {
|
|
193
|
+
box-shadow:
|
|
194
|
+
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
195
|
+
var(--helix-shadow-md),
|
|
196
|
+
0 0 0 var(--helix-space-2xs) var(--_slider-halo);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[part="control"]::-moz-range-thumb {
|
|
200
|
+
background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));
|
|
201
|
+
block-size: var(--_slider-thumb);
|
|
202
|
+
|
|
203
|
+
border: none;
|
|
204
|
+
border-radius: var(--_slider-thumb-radii);
|
|
205
|
+
|
|
206
|
+
box-shadow:
|
|
207
|
+
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
208
|
+
var(--helix-shadow-md);
|
|
209
|
+
inline-size: var(--_slider-thumb-length);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
[part="control"]:focus-visible {
|
|
213
|
+
outline: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[part="control"]:focus-visible::-webkit-slider-thumb {
|
|
217
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
218
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[part="control"]:focus-visible::-moz-range-thumb {
|
|
222
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
223
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:host(:state(invalid)) [part="control"]::-webkit-slider-thumb {
|
|
227
|
+
box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
:host(:state(invalid)) [part="control"]::-moz-range-thumb {
|
|
231
|
+
box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
:host([range]) [part="field"] {
|
|
235
|
+
display: grid;
|
|
236
|
+
grid-template-columns: 1fr auto;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:host([range]) [part="control"] {
|
|
240
|
+
grid-area: 1 / 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host([range]) [part="output"] {
|
|
244
|
+
grid-column: 2;
|
|
245
|
+
grid-row: 1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host([range]) [part="control"][data-thumb="start"] {
|
|
249
|
+
--_slider-track-image: var(
|
|
250
|
+
--slider-track-image,
|
|
251
|
+
linear-gradient(
|
|
252
|
+
to right,
|
|
253
|
+
var(--_slider-track-color) calc(var(--slider-from, 0) * 100%),
|
|
254
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-from, 0) * 100%),
|
|
255
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-to, 1) * 100%),
|
|
256
|
+
var(--_slider-track-color) calc(var(--slider-to, 1) * 100%)
|
|
257
|
+
)
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:host([range]) [part="control"][data-thumb="end"]::-webkit-slider-runnable-track {
|
|
262
|
+
background: transparent;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
:host([range]) [part="control"][data-thumb="end"]::-moz-range-track {
|
|
266
|
+
background: transparent;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
:host([range]) [part="control"] {
|
|
270
|
+
pointer-events: none;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:host([range]) [part="control"]::-webkit-slider-thumb {
|
|
274
|
+
pointer-events: auto;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:host([range]) [part="control"]::-moz-range-thumb {
|
|
278
|
+
pointer-events: auto;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:host([orientation="vertical"]) [part="field"] {
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:host([orientation="vertical"]) [part="field"][data-markers] {
|
|
286
|
+
grid-template-columns: none;
|
|
287
|
+
grid-template-rows: 1fr auto;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
:host([orientation="vertical"]) [part="control"] {
|
|
291
|
+
direction: rtl;
|
|
292
|
+
inline-size: var(--slider-length, 9rem);
|
|
293
|
+
margin-block: calc(var(--_slider-thumb-length) / 2);
|
|
294
|
+
margin-inline: 0;
|
|
295
|
+
writing-mode: vertical-lr;
|
|
296
|
+
|
|
297
|
+
--_slider-track-image: var(
|
|
298
|
+
--slider-track-image,
|
|
299
|
+
linear-gradient(
|
|
300
|
+
to top,
|
|
301
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-fraction, 0) * 100%),
|
|
302
|
+
var(--_slider-track-color) calc(var(--slider-fraction, 0) * 100%)
|
|
303
|
+
)
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
:host([orientation="vertical"]) [part="marker"] {
|
|
308
|
+
block-size: var(--helix-border-thick);
|
|
309
|
+
inline-size: var(--_slider-track);
|
|
310
|
+
inset-block-end: var(--slider-marker-at, 0%);
|
|
311
|
+
inset-block-start: auto;
|
|
312
|
+
inset-inline-start: 0;
|
|
313
|
+
translate: 0 50%;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host([orientation="vertical"]) [part="field"][data-markers] [part="output"] {
|
|
317
|
+
grid-column: 1;
|
|
318
|
+
grid-row: 2;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:host([orientation="vertical"]) [part="markers"] {
|
|
322
|
+
align-self: stretch;
|
|
323
|
+
block-size: auto;
|
|
324
|
+
inline-size: var(--_slider-track);
|
|
325
|
+
justify-self: center;
|
|
326
|
+
margin-block: calc(var(--_slider-thumb) / 2);
|
|
327
|
+
margin-inline: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@media print {
|
|
331
|
+
:host {
|
|
332
|
+
box-shadow: none;
|
|
333
|
+
print-color-adjust: exact;
|
|
334
|
+
}
|
|
335
|
+
}`);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HelixHeadlessSlider } from '@fusion.dev/helix-headless/slider';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A value chosen from a range by dragging.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The track and the thumb are the browser's own, restyled through the range
|
|
8
|
+
* pseudo-elements rather than replaced. What that buys is everything a
|
|
9
|
+
* hand-built slider has to reimplement and usually gets slightly wrong: the
|
|
10
|
+
* drag, the keys, and a hit area sized by the platform for a finger.
|
|
11
|
+
*
|
|
12
|
+
* The filled part of the track is painted with a gradient driven by the
|
|
13
|
+
* fraction the headless tier writes, rather than by a second element laid over
|
|
14
|
+
* it. One element cannot be half one color by any other means that survives
|
|
15
|
+
* the thumb being dragged.
|
|
16
|
+
*
|
|
17
|
+
* @since 0.1.0
|
|
18
|
+
* @status experimental
|
|
19
|
+
* @category forms
|
|
20
|
+
* @aliases Range, Range input
|
|
21
|
+
* @documentation https://helix.fusion.dev/components/slider
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty --slider-fill-color - The part behind the thumb.
|
|
24
|
+
* @cssproperty --slider-length - How long a vertical track is. Nine rem by default, and read only when `orientation` is `vertical`, a horizontal track taking the width of its row.
|
|
25
|
+
* @cssproperty --slider-marker-color - The ticks along the track.
|
|
26
|
+
* @cssproperty --slider-thumb-color - The handle.
|
|
27
|
+
* @cssproperty --slider-thumb-length - The handle along the track. Follows the size unless it is told otherwise, and setting one of the two is what makes the handle an oval.
|
|
28
|
+
* @cssproperty --slider-thumb-radius - The handle's corners. Fully round by default, so a handle given two dimensions is a capsule until this says otherwise.
|
|
29
|
+
* @cssproperty --slider-thumb-ring-color - The fence separating the handle from the track, for a slider that is not on the page.
|
|
30
|
+
* @cssproperty --slider-thumb-size - The handle across the track. Square with the length by default, which is what makes it round.
|
|
31
|
+
* @cssproperty --slider-track-color - The part not yet chosen.
|
|
32
|
+
* @cssproperty --slider-track-image - The whole track, for a slider whose color is the value.
|
|
33
|
+
* @cssproperty --slider-track-size - How thick the track is. The progress bar's own size by default, the two being the same object.
|
|
34
|
+
*/
|
|
35
|
+
export declare class HelixSlider extends HelixHeadlessSlider {
|
|
36
|
+
static styles: CSSResultGroup;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'helix-slider': HelixSlider;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { HelixHeadlessSlider } from '@fusion.dev/helix-headless/slider';
|
|
9
|
+
import { styles as fieldStyles } from '../../shared/field/field.css.js';
|
|
10
|
+
import { styles as fieldStackedStyles } from '../../shared/field/field-stacked.css.js';
|
|
11
|
+
import { styles } from './slider-root.css.js';
|
|
12
|
+
/**
|
|
13
|
+
* @summary A value chosen from a range by dragging.
|
|
14
|
+
*
|
|
15
|
+
* @description
|
|
16
|
+
* The track and the thumb are the browser's own, restyled through the range
|
|
17
|
+
* pseudo-elements rather than replaced. What that buys is everything a
|
|
18
|
+
* hand-built slider has to reimplement and usually gets slightly wrong: the
|
|
19
|
+
* drag, the keys, and a hit area sized by the platform for a finger.
|
|
20
|
+
*
|
|
21
|
+
* The filled part of the track is painted with a gradient driven by the
|
|
22
|
+
* fraction the headless tier writes, rather than by a second element laid over
|
|
23
|
+
* it. One element cannot be half one color by any other means that survives
|
|
24
|
+
* the thumb being dragged.
|
|
25
|
+
*
|
|
26
|
+
* @since 0.1.0
|
|
27
|
+
* @status experimental
|
|
28
|
+
* @category forms
|
|
29
|
+
* @aliases Range, Range input
|
|
30
|
+
* @documentation https://helix.fusion.dev/components/slider
|
|
31
|
+
*
|
|
32
|
+
* @cssproperty --slider-fill-color - The part behind the thumb.
|
|
33
|
+
* @cssproperty --slider-length - How long a vertical track is. Nine rem by default, and read only when `orientation` is `vertical`, a horizontal track taking the width of its row.
|
|
34
|
+
* @cssproperty --slider-marker-color - The ticks along the track.
|
|
35
|
+
* @cssproperty --slider-thumb-color - The handle.
|
|
36
|
+
* @cssproperty --slider-thumb-length - The handle along the track. Follows the size unless it is told otherwise, and setting one of the two is what makes the handle an oval.
|
|
37
|
+
* @cssproperty --slider-thumb-radius - The handle's corners. Fully round by default, so a handle given two dimensions is a capsule until this says otherwise.
|
|
38
|
+
* @cssproperty --slider-thumb-ring-color - The fence separating the handle from the track, for a slider that is not on the page.
|
|
39
|
+
* @cssproperty --slider-thumb-size - The handle across the track. Square with the length by default, which is what makes it round.
|
|
40
|
+
* @cssproperty --slider-track-color - The part not yet chosen.
|
|
41
|
+
* @cssproperty --slider-track-image - The whole track, for a slider whose color is the value.
|
|
42
|
+
* @cssproperty --slider-track-size - How thick the track is. The progress bar's own size by default, the two being the same object.
|
|
43
|
+
*/
|
|
44
|
+
let HelixSlider = class HelixSlider extends HelixHeadlessSlider {
|
|
45
|
+
static { this.styles = [fieldStyles, fieldStackedStyles, styles]; }
|
|
46
|
+
};
|
|
47
|
+
HelixSlider = __decorate([
|
|
48
|
+
customElement('helix-slider')
|
|
49
|
+
], HelixSlider);
|
|
50
|
+
export { HelixSlider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/sparkline-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/sparkline-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Generated from src/sparkline/root/sparkline-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(--sparkline-block-size, 2.5em);
|
|
5
|
+
|
|
6
|
+
color: var(--_sparkline-ink);
|
|
7
|
+
|
|
8
|
+
--_sparkline-ink: var(--sparkline-color, var(--helix-color-series-1));
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
display: inline-block;
|
|
13
|
+
inline-size: var(--sparkline-inline-size, 7em);
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part="svg"] {
|
|
18
|
+
block-size: 100%;
|
|
19
|
+
inline-size: 100%;
|
|
20
|
+
|
|
21
|
+
overflow: visible;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[part="line"] {
|
|
25
|
+
fill: none;
|
|
26
|
+
stroke: currentColor;
|
|
27
|
+
stroke-linecap: round;
|
|
28
|
+
stroke-linejoin: round;
|
|
29
|
+
|
|
30
|
+
stroke-width: var(--sparkline-width, var(--_sparkline-weight, 0.11em));
|
|
31
|
+
|
|
32
|
+
vector-effect: non-scaling-stroke;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part="area"] {
|
|
36
|
+
fill: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[part="wash-start"],
|
|
40
|
+
[part="wash-end"] {
|
|
41
|
+
stop-color: currentColor;
|
|
42
|
+
stop-opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host(:not([plot="bar"]):not([plot="line"])) [part="area"] {
|
|
46
|
+
fill: url("#sparkline-wash");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(:not([plot="bar"]):not([plot="line"])) [part="wash-start"] {
|
|
50
|
+
|
|
51
|
+
stop-opacity: calc(var(--sparkline-area-opacity, 0.45) * var(--helix-material-opacity));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(:not([plot="bar"]):not([plot="line"])) [part="wash-end"] {
|
|
55
|
+
stop-opacity: calc(var(--sparkline-area-opacity, 0.45) / 9 * var(--helix-material-opacity));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([weight="thin"]) {
|
|
59
|
+
--_sparkline-weight: 0.07em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([weight="thick"]) {
|
|
63
|
+
--_sparkline-weight: 0.18em;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="bar"] {
|
|
67
|
+
fill: currentColor;
|
|
68
|
+
rx: var(--sparkline-bar-radius, 0.5);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([terminus="ring"]) [part="svg"] {
|
|
72
|
+
mask-image: radial-gradient(
|
|
73
|
+
circle at var(--chart-terminus-x) var(--chart-terminus-y),
|
|
74
|
+
#0000 calc(var(--_chart-terminus-inner) - 0.5px),
|
|
75
|
+
#000 var(--_chart-terminus-inner)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media print {
|
|
80
|
+
:host {
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
print-color-adjust: exact;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([emphasis="subtle"]) {
|
|
87
|
+
color: color-mix(in oklab, var(--_sparkline-ink) 40%, var(--helix-color-background));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([emphasis="outlined"]) [part="bar"] {
|
|
91
|
+
fill: color-mix(in oklab, var(--_sparkline-ink) 55%, var(--helix-color-background));
|
|
92
|
+
stroke: var(--_sparkline-ink);
|
|
93
|
+
stroke-width: var(--sparkline-bar-stroke, 1);
|
|
94
|
+
vector-effect: non-scaling-stroke;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([emphasis="outlined"]) [part="area"] {
|
|
98
|
+
opacity: var(--sparkline-area-opacity, 0.35);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([emphasis="solid"]) [part="area"] {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}`);
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { HelixHeadlessSparkline } from '@fusion.dev/helix-headless/sparkline';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A line with no axes, for the shape of a series beside the number it belongs to.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Sized in `em` by default, so a sparkline set beside a figure is a figure-sized
|
|
8
|
+
* thing and one set in a table row is a row-sized thing. The type scale is
|
|
9
|
+
* absolute and cannot say "a little wider than this".
|
|
10
|
+
*
|
|
11
|
+
* The stroke does not scale with the box. `preserveAspectRatio="none"` is what
|
|
12
|
+
* lets one drawing fill a 60px slot and a 600px one, and without
|
|
13
|
+
* `vector-effect: non-scaling-stroke` the same line comes out hairline in the
|
|
14
|
+
* first and heavy in the second.
|
|
15
|
+
*
|
|
16
|
+
* One color on the host, read by the line, the wash, the columns and the mark
|
|
17
|
+
* alike, so moving `--sparkline-color` cannot leave parts of one drawing
|
|
18
|
+
* disagreeing.
|
|
19
|
+
*
|
|
20
|
+
* The line's weight is set in `em` rather than pixels, so it grows with the
|
|
21
|
+
* drawing the way the drawing grows with its type. A fixed 1.5px was the first
|
|
22
|
+
* version and left a 200 pixel sparkline wearing a hairline: `vector-effect`
|
|
23
|
+
* keeps a stroke out of the view box's stretch, which is the point, and it also
|
|
24
|
+
* keeps it out of every other reason it might want to be bigger.
|
|
25
|
+
*
|
|
26
|
+
* @since 0.1.0
|
|
27
|
+
* @status experimental
|
|
28
|
+
* @category charts
|
|
29
|
+
* @groups charts
|
|
30
|
+
* @aliases Micro Chart, Trend Line, Inline Chart
|
|
31
|
+
* @documentation https://helix.fusion.dev/components/sparkline
|
|
32
|
+
*
|
|
33
|
+
* @cssproperty --chart-terminus-hole - A fill for the middle of a `ring` terminus, which is otherwise open.
|
|
34
|
+
* @cssproperty --chart-terminus-size - Size of the mark on the last reading.
|
|
35
|
+
* @cssproperty --sparkline-area-opacity - How much of the line's color the wash takes where it meets the line.
|
|
36
|
+
* @cssproperty --sparkline-bar-radius - Corner radius on a column, under `plot="bar"`.
|
|
37
|
+
* @cssproperty --sparkline-bar-stroke - Thickness of a column's edge under `outlined`.
|
|
38
|
+
* @cssproperty --sparkline-block-size - Height of the drawing.
|
|
39
|
+
* @cssproperty --sparkline-color - Color of the line, the wash, the columns and the mark.
|
|
40
|
+
* @cssproperty --sparkline-inline-size - Width of the drawing.
|
|
41
|
+
* @cssproperty --sparkline-width - Thickness of the line, overriding `weight`.
|
|
42
|
+
*/
|
|
43
|
+
export declare class HelixSparkline extends HelixHeadlessSparkline {
|
|
44
|
+
/**
|
|
45
|
+
* How much ink the drawing claims.
|
|
46
|
+
*
|
|
47
|
+
* `subtle` mixes the drawing toward the page. The case is a table where one row
|
|
48
|
+
* is being read and the rest are context.
|
|
49
|
+
*
|
|
50
|
+
* It moves the host's `color`, which is what every mark here is drawn in: the
|
|
51
|
+
* line strokes it, both gradient stops take it so the wash is the line's own
|
|
52
|
+
* color, and the terminus fills it. So one declaration quietens all of them,
|
|
53
|
+
* and a consumer's `--sparkline-color` is quietened rather than replaced.
|
|
54
|
+
*
|
|
55
|
+
* **The other two follow whichever plot is drawn**, because a sparkline is
|
|
56
|
+
* three marks behind one property and the difference between a boundary and a
|
|
57
|
+
* fill does not exist until you know which. A `bar` plot answers like
|
|
58
|
+
* `BarChart`, an `area` or `line` plot like `LineChart`. `solid` on bars is the
|
|
59
|
+
* resting column and selects nothing.
|
|
60
|
+
*
|
|
61
|
+
* **`outlined` was refused here until 25 Aug 2026**, on the grounds that it
|
|
62
|
+
* needs a fill to remove and this is a stroke. That is true of the line and not
|
|
63
|
+
* of the other two plots, which is what the argument missed: a bar has an area
|
|
64
|
+
* and an area plot is one.
|
|
65
|
+
*
|
|
66
|
+
* `ghost` is still an empty cell, and there is still no `material`. Glass
|
|
67
|
+
* exists so what is behind a mark reads through it, and at the size a sparkline
|
|
68
|
+
* draws there is nothing behind it a reader could resolve.
|
|
69
|
+
*/
|
|
70
|
+
emphasis?: 'outlined' | 'solid' | 'subtle';
|
|
71
|
+
static styles: CSSResultGroup;
|
|
72
|
+
/**
|
|
73
|
+
* How heavy the line is drawn.
|
|
74
|
+
*
|
|
75
|
+
* Absent is the weight a sparkline is usually drawn at. `thin` suits one set
|
|
76
|
+
* in a table row among many; `thick` suits one standing on its own, where a
|
|
77
|
+
* hairline reads as an accident.
|
|
78
|
+
*
|
|
79
|
+
* Three steps rather than a number, because `--sparkline-width` is already
|
|
80
|
+
* the number and an attribute earns its place by being the thing a consumer
|
|
81
|
+
* reaches for without reading the stylesheet. The hook stays for anything the
|
|
82
|
+
* three do not cover.
|
|
83
|
+
*/
|
|
84
|
+
weight?: 'thick' | 'thin';
|
|
85
|
+
/**
|
|
86
|
+
* The shape of the mark on the last reading.
|
|
87
|
+
*
|
|
88
|
+
* Absent is a dot, which is how a line is usually ended, and absent rather
|
|
89
|
+
* than defaulted because a reflecting property with a default writes its
|
|
90
|
+
* attribute onto a host the consumer rendered, which React reports as a
|
|
91
|
+
* hydration mismatch.
|
|
92
|
+
*
|
|
93
|
+
* `none` lets the line stop on its own, which suits a series read as a shape
|
|
94
|
+
* rather than for where it finished. `ring` lets the ground through, for a
|
|
95
|
+
* chart drawn over something busy. `triangle` points along the axis and reads
|
|
96
|
+
* as "and onward" rather than as a second claim about the data.
|
|
97
|
+
*
|
|
98
|
+
* A `bar` plot draws none of them: the last column already is the last
|
|
99
|
+
* reading, and a mark on top of it would say the same thing twice.
|
|
100
|
+
*
|
|
101
|
+
* The shapes come from `helix/styled/src/shared/chart/terminus.css`, shared with
|
|
102
|
+
* `LineChart`, so the set is the same wherever a line ends. `ring` is the
|
|
103
|
+
* one that asks anything of the drawing: the disc it leaves open is masked out
|
|
104
|
+
* of the `<svg>`, so the line stops at the ring's inner edge rather than
|
|
105
|
+
* running on to the reading at its center, and the middle shows whatever the
|
|
106
|
+
* chart is drawn over rather than a guess at it.
|
|
107
|
+
*/
|
|
108
|
+
terminus?: 'none' | 'ring' | 'square' | 'triangle';
|
|
109
|
+
}
|
|
110
|
+
declare global {
|
|
111
|
+
interface HTMLElementTagNameMap {
|
|
112
|
+
'helix-sparkline': HelixSparkline;
|
|
113
|
+
}
|
|
114
|
+
}
|