@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,82 @@
|
|
|
1
|
+
// Generated from src/divider/root/divider-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
|
|
7
|
+
--_divider-thickness: var(--divider-thickness, var(--helix-border-thin));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[part="content"] {
|
|
11
|
+
color: var(--helix-color-foreground-muted);
|
|
12
|
+
margin-inline: var(--helix-space-sm);
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
flex: 0 0 auto;
|
|
15
|
+
font-family: var(--helix-font-sans);
|
|
16
|
+
font-size: var(--helix-text-xs);
|
|
17
|
+
line-height: var(--helix-leading-tight);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part="content"] slot::slotted(*),
|
|
21
|
+
[part="content"] {
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[part="content"][data-empty] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host {
|
|
30
|
+
padding-inline-end: var(--divider-padding-end, var(--divider-padding, var(--helix-space-none)));
|
|
31
|
+
padding-inline-start: var(
|
|
32
|
+
--divider-padding-start,
|
|
33
|
+
var(--divider-padding, var(--helix-space-none))
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([orientation="vertical"]) {
|
|
38
|
+
padding-block-end: var(--divider-padding-end, var(--divider-padding, var(--helix-space-none)));
|
|
39
|
+
padding-block-start: var(
|
|
40
|
+
--divider-padding-start,
|
|
41
|
+
var(--divider-padding, var(--helix-space-none))
|
|
42
|
+
);
|
|
43
|
+
padding-inline: var(--helix-space-none);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([orientation="vertical"]) {
|
|
47
|
+
align-self: stretch;
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([orientation="vertical"]) [part="content"] {
|
|
53
|
+
margin-block: var(--helix-space-sm);
|
|
54
|
+
margin-inline: var(--helix-space-none);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[part="line"] {
|
|
58
|
+
background-color: var(--divider-color, var(--helix-color-border));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host(:not([orientation])) [part="line"],
|
|
62
|
+
:host([orientation="horizontal"]) [part="line"] {
|
|
63
|
+
block-size: var(--_divider-thickness);
|
|
64
|
+
flex: 1 1 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([orientation="vertical"]) {
|
|
68
|
+
block-size: var(--divider-length, auto);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([orientation="vertical"]) [part="line"] {
|
|
72
|
+
flex: 1 1 0;
|
|
73
|
+
inline-size: var(--_divider-thickness);
|
|
74
|
+
|
|
75
|
+
min-block-size: 1em;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media print {
|
|
79
|
+
:host {
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
}
|
|
82
|
+
}`);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HelixHeadlessDivider } from '@fusion.dev/helix-headless/divider';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Separates content into groups with a rule.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* A one-pixel rule in the border color, running the full inline size by
|
|
8
|
+
* default. A vertical divider stretches to its flex parent instead of setting
|
|
9
|
+
* its own height, so it matches whatever it sits beside without being told how
|
|
10
|
+
* tall that is.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
* @status stable
|
|
14
|
+
* @category layout
|
|
15
|
+
* @aliases Separator, Rule
|
|
16
|
+
* @documentation https://helix.fusion.dev/components/divider
|
|
17
|
+
*
|
|
18
|
+
* @csspart line - The rule itself.
|
|
19
|
+
*
|
|
20
|
+
* @cssproperty --divider-color - Color of the rule.
|
|
21
|
+
* @cssproperty --divider-length - How long a vertical rule is. Horizontal takes its width.
|
|
22
|
+
* @cssproperty --divider-padding - Space taken off both ends of it.
|
|
23
|
+
* @cssproperty --divider-padding-end - Off the far end only.
|
|
24
|
+
* @cssproperty --divider-padding-start - Off the near end only.
|
|
25
|
+
* @cssproperty --divider-thickness - How heavy the rule is.
|
|
26
|
+
*/
|
|
27
|
+
export declare class HelixDivider extends HelixHeadlessDivider {
|
|
28
|
+
static styles: CSSResultGroup;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'helix-divider': HelixDivider;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { HelixHeadlessDivider } from '@fusion.dev/helix-headless/divider';
|
|
9
|
+
import { styles } from './divider-root.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary Separates content into groups with a rule.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* A one-pixel rule in the border color, running the full inline size by
|
|
15
|
+
* default. A vertical divider stretches to its flex parent instead of setting
|
|
16
|
+
* its own height, so it matches whatever it sits beside without being told how
|
|
17
|
+
* tall that is.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
* @status stable
|
|
21
|
+
* @category layout
|
|
22
|
+
* @aliases Separator, Rule
|
|
23
|
+
* @documentation https://helix.fusion.dev/components/divider
|
|
24
|
+
*
|
|
25
|
+
* @csspart line - The rule itself.
|
|
26
|
+
*
|
|
27
|
+
* @cssproperty --divider-color - Color of the rule.
|
|
28
|
+
* @cssproperty --divider-length - How long a vertical rule is. Horizontal takes its width.
|
|
29
|
+
* @cssproperty --divider-padding - Space taken off both ends of it.
|
|
30
|
+
* @cssproperty --divider-padding-end - Off the far end only.
|
|
31
|
+
* @cssproperty --divider-padding-start - Off the near end only.
|
|
32
|
+
* @cssproperty --divider-thickness - How heavy the rule is.
|
|
33
|
+
*/
|
|
34
|
+
let HelixDivider = class HelixDivider extends HelixHeadlessDivider {
|
|
35
|
+
static { this.styles = styles; }
|
|
36
|
+
};
|
|
37
|
+
HelixDivider = __decorate([
|
|
38
|
+
customElement('helix-divider')
|
|
39
|
+
], HelixDivider);
|
|
40
|
+
export { HelixDivider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/donut-chart-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/donut-chart-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
// Generated from src/donut-chart/root/donut-chart-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: grid;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
inline-size: var(--donut-chart-size, 16em);
|
|
8
|
+
place-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[part="plot"] {
|
|
12
|
+
grid-area: 1 / 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[part="plot"] {
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
inline-size: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part="plot"] svg {
|
|
22
|
+
aspect-ratio: 1;
|
|
23
|
+
display: block;
|
|
24
|
+
inline-size: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part="track"],
|
|
28
|
+
[part="segment"] {
|
|
29
|
+
transform: rotate(-90deg);
|
|
30
|
+
transform-box: fill-box;
|
|
31
|
+
transform-origin: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[part="track"] {
|
|
35
|
+
stroke: var(--donut-chart-track-color, var(--helix-color-surface-sunken));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part="segment"] {
|
|
39
|
+
stroke-linecap: butt;
|
|
40
|
+
|
|
41
|
+
stroke-width: var(--donut-chart-stroke);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part="center"] slot {
|
|
45
|
+
--stat-value-size: 24cqi;
|
|
46
|
+
|
|
47
|
+
font-size: 13cqi;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[part="center"] {
|
|
51
|
+
|
|
52
|
+
inset-block-start: 50%;
|
|
53
|
+
inset-inline-start: 50%;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
position: absolute;
|
|
56
|
+
translate: -50% -50%;
|
|
57
|
+
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
|
|
60
|
+
container-type: inline-size;
|
|
61
|
+
display: grid;
|
|
62
|
+
inline-size: calc(100% * (80 - var(--donut-chart-stroke, 16)) / 100);
|
|
63
|
+
place-items: center;
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[part="segment"] {
|
|
68
|
+
stroke: var(--chart-series);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[part="mark"] {
|
|
72
|
+
block-size: 1px;
|
|
73
|
+
inline-size: 1px;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
position: absolute;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[part="tooltip-anchor"] {
|
|
79
|
+
inset: 0;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
position: absolute;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[part="tooltip-label"] {
|
|
85
|
+
color: var(--helix-color-foreground-muted);
|
|
86
|
+
display: block;
|
|
87
|
+
font-weight: var(--helix-weight-medium);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part="tooltip-cell"] {
|
|
91
|
+
align-items: baseline;
|
|
92
|
+
display: flex;
|
|
93
|
+
gap: var(--helix-space-sm);
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[part="tooltip-name"] {
|
|
98
|
+
color: var(--helix-color-foreground-muted);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[part="tooltip-value"] {
|
|
102
|
+
font-variant-numeric: tabular-nums;
|
|
103
|
+
font-weight: var(--helix-weight-medium);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part="tooltip-cell"][data-series]::before {
|
|
107
|
+
block-size: 0.5em;
|
|
108
|
+
border-radius: var(--helix-radii-full);
|
|
109
|
+
content: "";
|
|
110
|
+
inline-size: 0.5em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[part="tooltip-cell"][data-series="1"]::before {
|
|
114
|
+
background-color: var(--helix-color-series-1);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[part="tooltip-cell"][data-series="2"]::before {
|
|
118
|
+
background-color: var(--helix-color-series-2);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[part="tooltip-cell"][data-series="3"]::before {
|
|
122
|
+
background-color: var(--helix-color-series-3);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[part="tooltip-cell"][data-series="4"]::before {
|
|
126
|
+
background-color: var(--helix-color-series-4);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[part="tooltip-cell"][data-series="5"]::before {
|
|
130
|
+
background-color: var(--helix-color-series-5);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[part="tooltip-cell"][data-series="6"]::before {
|
|
134
|
+
background-color: var(--helix-color-series-6);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[part="tooltip-cell"][data-series="7"]::before {
|
|
138
|
+
background-color: var(--helix-color-series-7);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[part="tooltip-cell"][data-series="8"]::before {
|
|
142
|
+
background-color: var(--helix-color-series-8);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[part="tooltip-cell"][data-series="9"]::before {
|
|
146
|
+
background-color: var(--helix-color-series-9);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[part="tooltip-cell"][data-series="10"]::before {
|
|
150
|
+
background-color: var(--helix-color-series-10);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[part="tooltip-cell"][data-series="11"]::before {
|
|
154
|
+
background-color: var(--helix-color-series-11);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[part="tooltip-cell"][data-series="12"]::before {
|
|
158
|
+
background-color: var(--helix-color-series-12);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[part="tooltip-cell"][data-series="13"]::before {
|
|
162
|
+
background-color: var(--helix-color-series-13);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[part="tooltip-cell"][data-series="14"]::before {
|
|
166
|
+
background-color: var(--helix-color-series-14);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[part="tooltip-cell"][data-series="15"]::before {
|
|
170
|
+
background-color: var(--helix-color-series-15);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
[part="tooltip-cell"][data-series="16"]::before {
|
|
174
|
+
background-color: var(--helix-color-series-16);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[part="tooltip-cell"][data-series="17"]::before {
|
|
178
|
+
background-color: var(--helix-color-series-17);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[part="tooltip-cell"][data-series="18"]::before {
|
|
182
|
+
background-color: var(--helix-color-series-18);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[part="tooltip-cell"][data-series="19"]::before {
|
|
186
|
+
background-color: var(--helix-color-series-19);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[part="tooltip-cell"][data-series="20"]::before {
|
|
190
|
+
background-color: var(--helix-color-series-20);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[part="tooltip-cell"][data-series="21"]::before {
|
|
194
|
+
background-color: var(--helix-color-series-21);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[part="tooltip-cell"][data-series="22"]::before {
|
|
198
|
+
background-color: var(--helix-color-series-22);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[part="tooltip-cell"][data-series="23"]::before {
|
|
202
|
+
background-color: var(--helix-color-series-23);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
[part="tooltip-cell"][data-series="24"]::before {
|
|
206
|
+
background-color: var(--helix-color-series-24);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[part="segment"][data-active] {
|
|
210
|
+
stroke-width: calc(var(--donut-chart-stroke) * 1.18);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host([emphasis="outlined"]) [part="segment"][data-active] {
|
|
214
|
+
stroke: var(--chart-series);
|
|
215
|
+
stroke-width: var(--donut-chart-stroke);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
[part="segment"] {
|
|
219
|
+
transition:
|
|
220
|
+
stroke var(--helix-duration-fast) var(--helix-easing-decelerate),
|
|
221
|
+
stroke-width var(--helix-duration-fast) var(--helix-easing-decelerate);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (prefers-reduced-motion: reduce) {
|
|
225
|
+
[part="segment"] {
|
|
226
|
+
transition: none;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
[part="segment"] {
|
|
231
|
+
transition:
|
|
232
|
+
r var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
233
|
+
stroke-dasharray var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
234
|
+
stroke-dashoffset var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
235
|
+
stroke-width var(--helix-duration-fast) var(--helix-easing-decelerate);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@starting-style {
|
|
239
|
+
[part="segment"] {
|
|
240
|
+
stroke-dasharray: 0 9999;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
[part="track"] {
|
|
245
|
+
transition: r var(--helix-duration-normal) var(--helix-easing-decelerate);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@media (prefers-reduced-motion: reduce) {
|
|
249
|
+
[part="segment"],
|
|
250
|
+
[part="track"] {
|
|
251
|
+
transition: none;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
[part="segment"] {
|
|
256
|
+
cursor: crosshair;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host([sweep="half"]) [part="plot"] svg {
|
|
260
|
+
aspect-ratio: 100 / calc(40 + var(--donut-chart-stroke, 16) / 2);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host([sweep="half"]) [part="track"],
|
|
264
|
+
:host([sweep="half"]) [part="segment"] {
|
|
265
|
+
transform: rotate(180deg);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host([sweep="half"]) [part="center"] {
|
|
269
|
+
inset-block-end: 0;
|
|
270
|
+
inset-block-start: auto;
|
|
271
|
+
translate: -50% 0;
|
|
272
|
+
|
|
273
|
+
block-size: calc(
|
|
274
|
+
100% *
|
|
275
|
+
(40 - var(--donut-chart-stroke, 16)) /
|
|
276
|
+
(40 + var(--donut-chart-stroke, 16) / 2)
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:host([sweep="half"]) [part="center"] slot {
|
|
281
|
+
--stat-value-size: 12cqi;
|
|
282
|
+
|
|
283
|
+
font-size: 6.5cqi;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media print {
|
|
287
|
+
:host {
|
|
288
|
+
box-shadow: none;
|
|
289
|
+
print-color-adjust: exact;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:host([emphasis="subtle"]) [part="segment"] {
|
|
294
|
+
stroke: color-mix(
|
|
295
|
+
in oklab,
|
|
296
|
+
var(--chart-series) 30%,
|
|
297
|
+
var(--donut-chart-track-color, var(--helix-color-surface-sunken))
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
[part="segment-edge"] {
|
|
302
|
+
fill: none;
|
|
303
|
+
stroke: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:host([emphasis="outlined"]) [part="segment"] {
|
|
307
|
+
stroke: color-mix(
|
|
308
|
+
in oklab,
|
|
309
|
+
var(--chart-series) 55%,
|
|
310
|
+
var(--donut-chart-track-color, var(--helix-color-surface-sunken))
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
:host([emphasis="outlined"]) [part="segment-edge"] {
|
|
315
|
+
stroke: var(--chart-series);
|
|
316
|
+
|
|
317
|
+
stroke-width: var(--donut-chart-edge-stroke, 3);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host([material="glass"]) [part="segment"] {
|
|
321
|
+
stroke-opacity: calc(0.62 * var(--helix-material-opacity));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
:host([material="frosted"]) [part="segment"] {
|
|
325
|
+
stroke-opacity: calc(0.88 * var(--helix-material-opacity));
|
|
326
|
+
}`);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { HelixHeadlessDonutChart } from '@fusion.dev/helix-headless/donut-chart';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
import '../../tooltip/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Parts of a whole as a ring, read from a table.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* The slices take the series palette in order, so a legend beside it maps the
|
|
9
|
+
* same twenty-four.
|
|
10
|
+
*
|
|
11
|
+
* The ring starts at twelve o'clock, which is a rotation applied here rather
|
|
12
|
+
* than arithmetic done below: where a reader expects the first slice to begin
|
|
13
|
+
* is a fact about the picture, not about the numbers.
|
|
14
|
+
*
|
|
15
|
+
* A track is drawn under the slices, so a ring whose values do not fill it
|
|
16
|
+
* still reads as a ring with a gap rather than as a broken arc.
|
|
17
|
+
*
|
|
18
|
+
* **How thick the ring is drawn is `hole`, not a CSS hook.** It was
|
|
19
|
+
* `--donut-chart-thickness`, and the stroke's width and the ring's radius have
|
|
20
|
+
* to agree: the outer edge is `r + width / 2`, so setting one in CSS and
|
|
21
|
+
* deriving the other in markup gives a drawing that is wrong in both. Measured
|
|
22
|
+
* with the hook still in place, every ring came out twelve units thick whatever
|
|
23
|
+
* its `hole`, so a pie was a small ring with a hole in it and `large` was drawn
|
|
24
|
+
* larger than the default.
|
|
25
|
+
*
|
|
26
|
+
* @since 0.1.0
|
|
27
|
+
* @status experimental
|
|
28
|
+
* @category charts
|
|
29
|
+
* @groups charts
|
|
30
|
+
* @aliases Pie Chart, Ring Chart, Share Chart
|
|
31
|
+
* @documentation https://helix.fusion.dev/components/donut-chart
|
|
32
|
+
*
|
|
33
|
+
* @cssproperty --donut-chart-edge-stroke - Thickness of the slice boundary under `outlined`.
|
|
34
|
+
* @cssproperty --donut-chart-size - Width and height of the ring.
|
|
35
|
+
* @cssproperty --donut-chart-track-color - Color of the ring under the slices.
|
|
36
|
+
*/
|
|
37
|
+
export declare class HelixDonutChart extends HelixHeadlessDonutChart {
|
|
38
|
+
/**
|
|
39
|
+
* **The styled tier, so the tooltip this renders is the styled one.**
|
|
40
|
+
*
|
|
41
|
+
* `tag()` builds a child's tag name from this prefix, and the base declares
|
|
42
|
+
* `helix-headless-`. Every other styled component that renders a child
|
|
43
|
+
* overrides it; the three charts that draw a tooltip did not, so a
|
|
44
|
+
* `helix-bar-chart` on a page put a `helix-headless-tooltip` in its shadow
|
|
45
|
+
* root: the behavior with none of the surface. What showed was the browser's
|
|
46
|
+
* own popover defaults, a white 1.5px border, square corners, `0.25em` of
|
|
47
|
+
* padding and the page's font size, which is why the reading bubble looked
|
|
48
|
+
* like no other tooltip on the site.
|
|
49
|
+
*
|
|
50
|
+
* Measured before the fix: the chart's bubble computed
|
|
51
|
+
* `border: 1.5px solid rgb(255, 255, 255)`, `border-radius: 0px`,
|
|
52
|
+
* `padding: 3.5px`, `font-size: 14px`. The masthead's, a `helix-tooltip`,
|
|
53
|
+
* had the component's own `none`, `radii-sm`, `2xs xs` and `text-xs`.
|
|
54
|
+
*/
|
|
55
|
+
static tier: string;
|
|
56
|
+
/**
|
|
57
|
+
* How much ink the slices claim.
|
|
58
|
+
*
|
|
59
|
+
* `solid` is the resting arrangement and selects nothing: a slice at full
|
|
60
|
+
* strength is what the base rule already draws. `subtle` is the ring as a wash
|
|
61
|
+
* of its own colors, still readable and no longer the loudest thing beside the
|
|
62
|
+
* number it is explaining. `outlined` keeps the slice and fades it toward the
|
|
63
|
+
* page, leaving a boundary in the series' own color, which is the same trade
|
|
64
|
+
* `BarChart` makes on a column.
|
|
65
|
+
*
|
|
66
|
+
* **This took three values on 25 Aug 2026, and the note it replaces argued it
|
|
67
|
+
* could not.** That note was right about the mark: a slice is a stroke on a
|
|
68
|
+
* ring, the edge *is* the mark, and there is nothing within it to fade. It
|
|
69
|
+
* concluded that `outlined` would mean drawing slices as filled paths instead
|
|
70
|
+
* of arcs, and called that changing what a donut is to satisfy a word.
|
|
71
|
+
*
|
|
72
|
+
* What it did not weigh is that the two can both be there. The arc still draws
|
|
73
|
+
* the slice and still carries the animation, and a closed path traces the same
|
|
74
|
+
* wedge beside it for anything that needs a boundary. Nothing about the donut
|
|
75
|
+
* changed; something was added next to it. See `renderEdge` on the tier below
|
|
76
|
+
* for why the dash could not simply be replaced.
|
|
77
|
+
*
|
|
78
|
+
* The value that stays refused is `ghost`, which on a ring is a chart with no
|
|
79
|
+
* slices.
|
|
80
|
+
*/
|
|
81
|
+
emphasis?: 'outlined' | 'solid' | 'subtle';
|
|
82
|
+
/**
|
|
83
|
+
* What the ring is made of.
|
|
84
|
+
*
|
|
85
|
+
* `glass` lets the page read through the slices, for a chart sitting on a
|
|
86
|
+
* surface that is itself translucent: a glass card with an opaque ring on it is
|
|
87
|
+
* the two-designs-sharing-a-window failure a material policy exists to stop.
|
|
88
|
+
* The track keeps its fill, a see-through groove being a missing one.
|
|
89
|
+
*
|
|
90
|
+
* The strength is the theme's, scaled by `--helix-material-opacity`.
|
|
91
|
+
*
|
|
92
|
+
* **This paints a mark rather than a ground, and the axis still reads the
|
|
93
|
+
* same way.** On a surface the points are how much of the page shows through;
|
|
94
|
+
* on a series they are how much ink the mark has, and the order is the same:
|
|
95
|
+
* `glass` admits most, `frosted` admits less, absent is opaque. The two
|
|
96
|
+
* factors, 0.62 and 0.88, carry the relationship the surface tokens carry
|
|
97
|
+
* between `material-translucent` and `material-translucent-strong`, so a
|
|
98
|
+
* chart and a card mean the same thing by the word.
|
|
99
|
+
*
|
|
100
|
+
* **`transparent` is where this one stops.** A mark with no ink is not a
|
|
101
|
+
* material choice, it is an absent series, and a chart says that by not
|
|
102
|
+
* having the datum rather than by painting it invisibly. See 270.
|
|
103
|
+
*/
|
|
104
|
+
material?: 'frosted' | 'glass';
|
|
105
|
+
static styles: CSSResultGroup;
|
|
106
|
+
}
|
|
107
|
+
declare global {
|
|
108
|
+
interface HTMLElementTagNameMap {
|
|
109
|
+
'helix-donut-chart': HelixDonutChart;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { HelixHeadlessDonutChart } from '@fusion.dev/helix-headless/donut-chart';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { styles as seriesStyles } from '../../shared/chart/series.css.js';
|
|
11
|
+
import { styles } from './donut-chart-root.css.js';
|
|
12
|
+
import '../../tooltip/index.js';
|
|
13
|
+
/**
|
|
14
|
+
* @summary Parts of a whole as a ring, read from a table.
|
|
15
|
+
*
|
|
16
|
+
* @description
|
|
17
|
+
* The slices take the series palette in order, so a legend beside it maps the
|
|
18
|
+
* same twenty-four.
|
|
19
|
+
*
|
|
20
|
+
* The ring starts at twelve o'clock, which is a rotation applied here rather
|
|
21
|
+
* than arithmetic done below: where a reader expects the first slice to begin
|
|
22
|
+
* is a fact about the picture, not about the numbers.
|
|
23
|
+
*
|
|
24
|
+
* A track is drawn under the slices, so a ring whose values do not fill it
|
|
25
|
+
* still reads as a ring with a gap rather than as a broken arc.
|
|
26
|
+
*
|
|
27
|
+
* **How thick the ring is drawn is `hole`, not a CSS hook.** It was
|
|
28
|
+
* `--donut-chart-thickness`, and the stroke's width and the ring's radius have
|
|
29
|
+
* to agree: the outer edge is `r + width / 2`, so setting one in CSS and
|
|
30
|
+
* deriving the other in markup gives a drawing that is wrong in both. Measured
|
|
31
|
+
* with the hook still in place, every ring came out twelve units thick whatever
|
|
32
|
+
* its `hole`, so a pie was a small ring with a hole in it and `large` was drawn
|
|
33
|
+
* larger than the default.
|
|
34
|
+
*
|
|
35
|
+
* @since 0.1.0
|
|
36
|
+
* @status experimental
|
|
37
|
+
* @category charts
|
|
38
|
+
* @groups charts
|
|
39
|
+
* @aliases Pie Chart, Ring Chart, Share Chart
|
|
40
|
+
* @documentation https://helix.fusion.dev/components/donut-chart
|
|
41
|
+
*
|
|
42
|
+
* @cssproperty --donut-chart-edge-stroke - Thickness of the slice boundary under `outlined`.
|
|
43
|
+
* @cssproperty --donut-chart-size - Width and height of the ring.
|
|
44
|
+
* @cssproperty --donut-chart-track-color - Color of the ring under the slices.
|
|
45
|
+
*/
|
|
46
|
+
let HelixDonutChart = class HelixDonutChart extends HelixHeadlessDonutChart {
|
|
47
|
+
/**
|
|
48
|
+
* **The styled tier, so the tooltip this renders is the styled one.**
|
|
49
|
+
*
|
|
50
|
+
* `tag()` builds a child's tag name from this prefix, and the base declares
|
|
51
|
+
* `helix-headless-`. Every other styled component that renders a child
|
|
52
|
+
* overrides it; the three charts that draw a tooltip did not, so a
|
|
53
|
+
* `helix-bar-chart` on a page put a `helix-headless-tooltip` in its shadow
|
|
54
|
+
* root: the behavior with none of the surface. What showed was the browser's
|
|
55
|
+
* own popover defaults, a white 1.5px border, square corners, `0.25em` of
|
|
56
|
+
* padding and the page's font size, which is why the reading bubble looked
|
|
57
|
+
* like no other tooltip on the site.
|
|
58
|
+
*
|
|
59
|
+
* Measured before the fix: the chart's bubble computed
|
|
60
|
+
* `border: 1.5px solid rgb(255, 255, 255)`, `border-radius: 0px`,
|
|
61
|
+
* `padding: 3.5px`, `font-size: 14px`. The masthead's, a `helix-tooltip`,
|
|
62
|
+
* had the component's own `none`, `radii-sm`, `2xs xs` and `text-xs`.
|
|
63
|
+
*/
|
|
64
|
+
static { this.tier = 'helix-'; }
|
|
65
|
+
static { this.styles = [seriesStyles, styles]; }
|
|
66
|
+
};
|
|
67
|
+
__decorate([
|
|
68
|
+
property({ reflect: true })
|
|
69
|
+
], HelixDonutChart.prototype, "emphasis", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
property({ reflect: true })
|
|
72
|
+
], HelixDonutChart.prototype, "material", void 0);
|
|
73
|
+
HelixDonutChart = __decorate([
|
|
74
|
+
customElement('helix-donut-chart')
|
|
75
|
+
], HelixDonutChart);
|
|
76
|
+
export { HelixDonutChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/drawer-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/drawer-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|