@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,73 @@
|
|
|
1
|
+
// Generated from src/image/root/image-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
aspect-ratio: var(--image-aspect, auto);
|
|
5
|
+
display: block;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([rounded]) {
|
|
11
|
+
border-radius: var(--image-radius, var(--helix-radii-md));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part="image"] {
|
|
15
|
+
block-size: 100%;
|
|
16
|
+
display: block;
|
|
17
|
+
inline-size: 100%;
|
|
18
|
+
object-fit: var(--image-fit, cover);
|
|
19
|
+
object-position: var(--image-position, center);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([data-status="error"]) [part="image"] {
|
|
23
|
+
visibility: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[part="placeholder"],
|
|
27
|
+
[part="fallback"] {
|
|
28
|
+
align-items: center;
|
|
29
|
+
display: flex;
|
|
30
|
+
inset: 0;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
position: absolute;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host [part="placeholder"][hidden],
|
|
36
|
+
:host [part="fallback"][hidden] {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[part="placeholder"] {
|
|
41
|
+
background-color: var(--image-placeholder-color, var(--helix-color-surface-sunken));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part="placeholder"] ::slotted(*) {
|
|
45
|
+
block-size: 100%;
|
|
46
|
+
inline-size: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[part="fallback"] {
|
|
50
|
+
background-color: var(--image-placeholder-color, var(--helix-color-surface-sunken));
|
|
51
|
+
color: var(--helix-color-foreground-subtle);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[part="image"] {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transition: opacity var(--helix-duration-normal) var(--helix-easing-standard);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([data-status="loaded"]) [part="image"] {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
[part="image"] {
|
|
65
|
+
transition: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media print {
|
|
70
|
+
:host {
|
|
71
|
+
box-shadow: none;
|
|
72
|
+
}
|
|
73
|
+
}`);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { HelixHeadlessImage } from '@fusion.dev/helix-headless/image';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A picture that says whether it arrived.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Presentation only: the box the picture is given, how it fills it, and the
|
|
8
|
+
* fade when it lands. What the three states are and when they change is the
|
|
9
|
+
* base class.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
* @status experimental
|
|
13
|
+
* @category media
|
|
14
|
+
* @aliases Picture, Img, Figure
|
|
15
|
+
* @documentation https://helix.fusion.dev/components/image
|
|
16
|
+
*
|
|
17
|
+
* @cssproperty --image-aspect - The ratio of the box, as `16 / 9`.
|
|
18
|
+
* @cssproperty --image-fit - How the picture fills it.
|
|
19
|
+
* @cssproperty --image-placeholder-color - The resting surface behind both stand-ins.
|
|
20
|
+
* @cssproperty --image-position - Which part survives a crop.
|
|
21
|
+
* @cssproperty --image-radius - Corner radius, under `rounded`.
|
|
22
|
+
*/
|
|
23
|
+
export declare class HelixImage extends HelixHeadlessImage {
|
|
24
|
+
static styles: CSSResultGroup;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the corners are cut.
|
|
27
|
+
*
|
|
28
|
+
* A boolean rather than a radius, because the radius is a token and the
|
|
29
|
+
* question a consumer is answering is whether this picture is a card's
|
|
30
|
+
* surface or a page's. `--image-radius` moves it for the case that is
|
|
31
|
+
* neither.
|
|
32
|
+
*/
|
|
33
|
+
rounded: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'helix-image': HelixImage;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { HelixHeadlessImage } from '@fusion.dev/helix-headless/image';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './image-root.css.js';
|
|
11
|
+
/**
|
|
12
|
+
* @summary A picture that says whether it arrived.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Presentation only: the box the picture is given, how it fills it, and the
|
|
16
|
+
* fade when it lands. What the three states are and when they change is the
|
|
17
|
+
* base class.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
* @status experimental
|
|
21
|
+
* @category media
|
|
22
|
+
* @aliases Picture, Img, Figure
|
|
23
|
+
* @documentation https://helix.fusion.dev/components/image
|
|
24
|
+
*
|
|
25
|
+
* @cssproperty --image-aspect - The ratio of the box, as `16 / 9`.
|
|
26
|
+
* @cssproperty --image-fit - How the picture fills it.
|
|
27
|
+
* @cssproperty --image-placeholder-color - The resting surface behind both stand-ins.
|
|
28
|
+
* @cssproperty --image-position - Which part survives a crop.
|
|
29
|
+
* @cssproperty --image-radius - Corner radius, under `rounded`.
|
|
30
|
+
*/
|
|
31
|
+
let HelixImage = class HelixImage extends HelixHeadlessImage {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
/**
|
|
35
|
+
* Whether the corners are cut.
|
|
36
|
+
*
|
|
37
|
+
* A boolean rather than a radius, because the radius is a token and the
|
|
38
|
+
* question a consumer is answering is whether this picture is a card's
|
|
39
|
+
* surface or a page's. `--image-radius` moves it for the case that is
|
|
40
|
+
* neither.
|
|
41
|
+
*/
|
|
42
|
+
this.rounded = false;
|
|
43
|
+
}
|
|
44
|
+
static { this.styles = styles; }
|
|
45
|
+
};
|
|
46
|
+
__decorate([
|
|
47
|
+
property({ reflect: true, type: Boolean })
|
|
48
|
+
], HelixImage.prototype, "rounded", void 0);
|
|
49
|
+
HelixImage = __decorate([
|
|
50
|
+
customElement('helix-image')
|
|
51
|
+
], HelixImage);
|
|
52
|
+
export { HelixImage };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import './element-events.generated.js';
|
|
2
|
+
/**
|
|
3
|
+
* Everything core exports, forwarded whole. See the note in `helix/headless`:
|
|
4
|
+
* a hand-kept list drifts, and it drifts silently until a component happens to
|
|
5
|
+
* declare a public member with a type nobody forwarded yet.
|
|
6
|
+
*/
|
|
7
|
+
export * from '@fusion.dev/helix-core';
|
|
8
|
+
export * from './accordion/index.js';
|
|
9
|
+
export * from './announcement/index.js';
|
|
10
|
+
export * from './app-header/index.js';
|
|
11
|
+
export * from './aura/index.js';
|
|
12
|
+
export * from './avatar/index.js';
|
|
13
|
+
export * from './badge/index.js';
|
|
14
|
+
export * from './bar-chart/index.js';
|
|
15
|
+
export * from './blockquote/index.js';
|
|
16
|
+
export * from './breadcrumbs/index.js';
|
|
17
|
+
export * from './button/index.js';
|
|
18
|
+
export * from './button-group/index.js';
|
|
19
|
+
export * from './callout/index.js';
|
|
20
|
+
export * from './card/index.js';
|
|
21
|
+
export * from './carousel/index.js';
|
|
22
|
+
export * from './chat/index.js';
|
|
23
|
+
export * from './checkbox/index.js';
|
|
24
|
+
export * from './checkbox-group/index.js';
|
|
25
|
+
export * from './code/index.js';
|
|
26
|
+
export * from './code-block/index.js';
|
|
27
|
+
export * from './color-input/index.js';
|
|
28
|
+
export * from './color-picker/index.js';
|
|
29
|
+
export * from './combobox/index.js';
|
|
30
|
+
export * from './command/index.js';
|
|
31
|
+
export * from './copy-button/index.js';
|
|
32
|
+
export * from './data-table/index.js';
|
|
33
|
+
export * from './date-input/index.js';
|
|
34
|
+
export * from './date-picker/index.js';
|
|
35
|
+
export * from './dialog/index.js';
|
|
36
|
+
export * from './divider/index.js';
|
|
37
|
+
export * from './donut-chart/index.js';
|
|
38
|
+
export * from './drawer/index.js';
|
|
39
|
+
export * from './drilldown/index.js';
|
|
40
|
+
export * from './empty/index.js';
|
|
41
|
+
export * from './file-input/index.js';
|
|
42
|
+
export * from './flex/index.js';
|
|
43
|
+
export * from './format-date/index.js';
|
|
44
|
+
export * from './grid/index.js';
|
|
45
|
+
export * from './heatmap/index.js';
|
|
46
|
+
export * from './icon/index.js';
|
|
47
|
+
export * from './icon-button/index.js';
|
|
48
|
+
export * from './image/index.js';
|
|
49
|
+
export * from './input/index.js';
|
|
50
|
+
export * from './kbd/index.js';
|
|
51
|
+
export * from './legend/index.js';
|
|
52
|
+
export * from './line-chart/index.js';
|
|
53
|
+
export * from './list/index.js';
|
|
54
|
+
export * from './listbox/index.js';
|
|
55
|
+
export * from './loader/index.js';
|
|
56
|
+
export * from './megamenu/index.js';
|
|
57
|
+
export * from './menu/index.js';
|
|
58
|
+
export * from './meter/index.js';
|
|
59
|
+
export * from './navigation/index.js';
|
|
60
|
+
export * from './notifications/index.js';
|
|
61
|
+
export * from './number-input/index.js';
|
|
62
|
+
export * from './option/index.js';
|
|
63
|
+
export * from './outline/index.js';
|
|
64
|
+
export * from './pagination/index.js';
|
|
65
|
+
export * from './pin-input/index.js';
|
|
66
|
+
export * from './popover/index.js';
|
|
67
|
+
export * from './progress/index.js';
|
|
68
|
+
export * from './qr-code/index.js';
|
|
69
|
+
export * from './quote/index.js';
|
|
70
|
+
export * from './radio/index.js';
|
|
71
|
+
export * from './rating/index.js';
|
|
72
|
+
export * from './sandbox/index.js';
|
|
73
|
+
export * from './scroll-area/index.js';
|
|
74
|
+
export * from './select/index.js';
|
|
75
|
+
export * from './skeleton/index.js';
|
|
76
|
+
export * from './slider/index.js';
|
|
77
|
+
export * from './sparkline/index.js';
|
|
78
|
+
export * from './speed-dial/index.js';
|
|
79
|
+
export * from './splitter/index.js';
|
|
80
|
+
export * from './stat/index.js';
|
|
81
|
+
export * from './steps/index.js';
|
|
82
|
+
export * from './switch/index.js';
|
|
83
|
+
export * from './table/index.js';
|
|
84
|
+
export * from './tabs/index.js';
|
|
85
|
+
export * from './tag/index.js';
|
|
86
|
+
export * from './text/index.js';
|
|
87
|
+
export * from './textarea/index.js';
|
|
88
|
+
export * from './time-input/index.js';
|
|
89
|
+
export * from './time-picker/index.js';
|
|
90
|
+
export * from './timeline/index.js';
|
|
91
|
+
export * from './toast/index.js';
|
|
92
|
+
export * from './toggle/index.js';
|
|
93
|
+
export * from './toolbar/index.js';
|
|
94
|
+
export * from './tooltip/index.js';
|
|
95
|
+
export * from './tour/index.js';
|
|
96
|
+
export * from './tree/index.js';
|
|
97
|
+
export * from './trend/index.js';
|
|
98
|
+
export * from './video/index.js';
|
|
99
|
+
export * from './video-playlist/index.js';
|
|
100
|
+
export * from './virtual-list/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import './element-events.generated.js';
|
|
2
|
+
/**
|
|
3
|
+
* Everything core exports, forwarded whole. See the note in `helix/headless`:
|
|
4
|
+
* a hand-kept list drifts, and it drifts silently until a component happens to
|
|
5
|
+
* declare a public member with a type nobody forwarded yet.
|
|
6
|
+
*/
|
|
7
|
+
export * from '@fusion.dev/helix-core';
|
|
8
|
+
export * from './accordion/index.js';
|
|
9
|
+
export * from './announcement/index.js';
|
|
10
|
+
export * from './app-header/index.js';
|
|
11
|
+
export * from './aura/index.js';
|
|
12
|
+
export * from './avatar/index.js';
|
|
13
|
+
export * from './badge/index.js';
|
|
14
|
+
export * from './bar-chart/index.js';
|
|
15
|
+
export * from './blockquote/index.js';
|
|
16
|
+
export * from './breadcrumbs/index.js';
|
|
17
|
+
export * from './button/index.js';
|
|
18
|
+
export * from './button-group/index.js';
|
|
19
|
+
export * from './callout/index.js';
|
|
20
|
+
export * from './card/index.js';
|
|
21
|
+
export * from './carousel/index.js';
|
|
22
|
+
export * from './chat/index.js';
|
|
23
|
+
export * from './checkbox/index.js';
|
|
24
|
+
export * from './checkbox-group/index.js';
|
|
25
|
+
export * from './code/index.js';
|
|
26
|
+
export * from './code-block/index.js';
|
|
27
|
+
export * from './color-input/index.js';
|
|
28
|
+
export * from './color-picker/index.js';
|
|
29
|
+
export * from './combobox/index.js';
|
|
30
|
+
export * from './command/index.js';
|
|
31
|
+
export * from './copy-button/index.js';
|
|
32
|
+
export * from './data-table/index.js';
|
|
33
|
+
export * from './date-input/index.js';
|
|
34
|
+
export * from './date-picker/index.js';
|
|
35
|
+
export * from './dialog/index.js';
|
|
36
|
+
export * from './divider/index.js';
|
|
37
|
+
export * from './donut-chart/index.js';
|
|
38
|
+
export * from './drawer/index.js';
|
|
39
|
+
export * from './drilldown/index.js';
|
|
40
|
+
export * from './empty/index.js';
|
|
41
|
+
export * from './file-input/index.js';
|
|
42
|
+
export * from './flex/index.js';
|
|
43
|
+
export * from './format-date/index.js';
|
|
44
|
+
export * from './grid/index.js';
|
|
45
|
+
export * from './heatmap/index.js';
|
|
46
|
+
export * from './icon/index.js';
|
|
47
|
+
export * from './icon-button/index.js';
|
|
48
|
+
export * from './image/index.js';
|
|
49
|
+
export * from './input/index.js';
|
|
50
|
+
export * from './kbd/index.js';
|
|
51
|
+
export * from './legend/index.js';
|
|
52
|
+
export * from './line-chart/index.js';
|
|
53
|
+
export * from './list/index.js';
|
|
54
|
+
export * from './listbox/index.js';
|
|
55
|
+
export * from './loader/index.js';
|
|
56
|
+
export * from './megamenu/index.js';
|
|
57
|
+
export * from './menu/index.js';
|
|
58
|
+
export * from './meter/index.js';
|
|
59
|
+
export * from './navigation/index.js';
|
|
60
|
+
export * from './notifications/index.js';
|
|
61
|
+
export * from './number-input/index.js';
|
|
62
|
+
export * from './option/index.js';
|
|
63
|
+
export * from './outline/index.js';
|
|
64
|
+
export * from './pagination/index.js';
|
|
65
|
+
export * from './pin-input/index.js';
|
|
66
|
+
export * from './popover/index.js';
|
|
67
|
+
export * from './progress/index.js';
|
|
68
|
+
export * from './qr-code/index.js';
|
|
69
|
+
export * from './quote/index.js';
|
|
70
|
+
export * from './radio/index.js';
|
|
71
|
+
export * from './rating/index.js';
|
|
72
|
+
export * from './sandbox/index.js';
|
|
73
|
+
export * from './scroll-area/index.js';
|
|
74
|
+
export * from './select/index.js';
|
|
75
|
+
export * from './skeleton/index.js';
|
|
76
|
+
export * from './slider/index.js';
|
|
77
|
+
export * from './sparkline/index.js';
|
|
78
|
+
export * from './speed-dial/index.js';
|
|
79
|
+
export * from './splitter/index.js';
|
|
80
|
+
export * from './stat/index.js';
|
|
81
|
+
export * from './steps/index.js';
|
|
82
|
+
export * from './switch/index.js';
|
|
83
|
+
export * from './table/index.js';
|
|
84
|
+
export * from './tabs/index.js';
|
|
85
|
+
export * from './tag/index.js';
|
|
86
|
+
export * from './text/index.js';
|
|
87
|
+
export * from './textarea/index.js';
|
|
88
|
+
export * from './time-input/index.js';
|
|
89
|
+
export * from './time-picker/index.js';
|
|
90
|
+
export * from './timeline/index.js';
|
|
91
|
+
export * from './toast/index.js';
|
|
92
|
+
export * from './toggle/index.js';
|
|
93
|
+
export * from './toolbar/index.js';
|
|
94
|
+
export * from './tooltip/index.js';
|
|
95
|
+
export * from './tour/index.js';
|
|
96
|
+
export * from './tree/index.js';
|
|
97
|
+
export * from './trend/index.js';
|
|
98
|
+
export * from './video/index.js';
|
|
99
|
+
export * from './video-playlist/index.js';
|
|
100
|
+
export * from './virtual-list/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/input-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/input-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Generated from src/input/root/input-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
|
+
--_input-size: var(--input-size, var(--helix-size-control));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[part="field"] {
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: var(--input-background-color, var(--helix-color-well));
|
|
14
|
+
block-size: var(--_input-size);
|
|
15
|
+
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
16
|
+
border-radius: var(--helix-radii-sm);
|
|
17
|
+
color: var(--helix-color-foreground-subtle);
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: var(--helix-space-2xs);
|
|
20
|
+
padding-inline: var(--helix-space-xs);
|
|
21
|
+
transition:
|
|
22
|
+
border-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
23
|
+
background-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host(:not(:disabled)) [part="field"]:hover {
|
|
27
|
+
border-color: var(--helix-color-primary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host(:focus-within) [part="field"],
|
|
31
|
+
:host(:focus-within) [part="field"]:hover {
|
|
32
|
+
border-color: var(--helix-color-primary);
|
|
33
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
34
|
+
outline-offset: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(:state(invalid)) [part="field"],
|
|
38
|
+
:host(:state(invalid)) [part="field"]:hover,
|
|
39
|
+
:host(:state(invalid):focus-within) [part="field"],
|
|
40
|
+
:host(:state(invalid):focus-within) [part="field"]:hover {
|
|
41
|
+
border-color: var(--helix-color-danger);
|
|
42
|
+
outline-color: var(--helix-color-danger);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[part="control"] {
|
|
46
|
+
all: unset;
|
|
47
|
+
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
block-size: 100%;
|
|
50
|
+
color: var(--helix-color-foreground);
|
|
51
|
+
flex: 1 1 auto;
|
|
52
|
+
font-family: var(--helix-font-sans);
|
|
53
|
+
font-size: var(--helix-text-sm);
|
|
54
|
+
font-weight: var(--helix-weight-medium);
|
|
55
|
+
min-inline-size: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[part="control"]::-webkit-search-cancel-button {
|
|
59
|
+
appearance: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
slot[name="start"]::slotted(*),
|
|
63
|
+
slot[name="end"]::slotted(*) {
|
|
64
|
+
color: var(--helix-color-foreground-subtle);
|
|
65
|
+
flex: 0 0 auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(:disabled) [part="field"] {
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host([readonly]) [part="field"] {
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[part="clear"],
|
|
78
|
+
[part="reveal"] {
|
|
79
|
+
all: unset;
|
|
80
|
+
--icon-size: var(--helix-size-icon-tight);
|
|
81
|
+
|
|
82
|
+
align-items: center;
|
|
83
|
+
border-radius: var(--helix-radii-sm);
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
color: var(--helix-color-foreground-muted);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex: 0 0 auto;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
min-block-size: var(--helix-size-icon-loose);
|
|
91
|
+
min-inline-size: var(--helix-size-icon-loose);
|
|
92
|
+
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[part="clear"]:hover,
|
|
96
|
+
[part="reveal"]:hover {
|
|
97
|
+
color: var(--helix-color-foreground);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[part="clear"]:focus-visible,
|
|
101
|
+
[part="reveal"]:focus-visible {
|
|
102
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
103
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part="reveal"][aria-pressed="true"] {
|
|
107
|
+
color: var(--helix-color-foreground);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (prefers-reduced-motion: reduce) {
|
|
111
|
+
[part="field"],
|
|
112
|
+
[part="clear"],
|
|
113
|
+
[part="reveal"] {
|
|
114
|
+
transition: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media print {
|
|
119
|
+
:host {
|
|
120
|
+
box-shadow: none;
|
|
121
|
+
print-color-adjust: exact;
|
|
122
|
+
}
|
|
123
|
+
}`);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HelixHeadlessInput } from '@fusion.dev/helix-headless/input';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
import '../../icon/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* @summary A single line of text a reader types into.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* The frame is the field rather than the input, so anything slotted at either
|
|
9
|
+
* end sits inside the same box as the text and the focus ring is drawn once,
|
|
10
|
+
* around the whole control, instead of around a smaller box within it.
|
|
11
|
+
*
|
|
12
|
+
* The input itself is the native one, stripped rather than replaced, so the
|
|
13
|
+
* caret, the selection, the autofill, and the keyboard a phone chooses are all
|
|
14
|
+
* the platform's.
|
|
15
|
+
*
|
|
16
|
+
* Height comes from the region, like every other control: `data-density` on
|
|
17
|
+
* whatever holds it, not a `size` here. Invalid styling waits for
|
|
18
|
+
* `:user-invalid`, because a field is not wrong before anyone has filled it in.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
* @status experimental
|
|
22
|
+
* @category forms
|
|
23
|
+
* @aliases TextField, Field, TextInput
|
|
24
|
+
* @documentation https://helix.fusion.dev/components/input
|
|
25
|
+
*
|
|
26
|
+
* @cssproperty --input-background-color - Fill behind the text.
|
|
27
|
+
* @cssproperty --input-size - Height of the field.
|
|
28
|
+
*/
|
|
29
|
+
export declare class HelixInput extends HelixHeadlessInput {
|
|
30
|
+
static styles: CSSResultGroup;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'helix-input': HelixInput;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { HelixHeadlessInput } from '@fusion.dev/helix-headless/input';
|
|
9
|
+
/* The clear and reveal buttons render one, and a custom element registers on
|
|
10
|
+
import: a consumer importing this family alone would otherwise get an inert
|
|
11
|
+
unknown element where the mark should be. */
|
|
12
|
+
import '../../icon/index.js';
|
|
13
|
+
import { styles as glyphStyles } from '../../icon/glyph.css.js';
|
|
14
|
+
import { styles as fieldStyles } from '../../shared/field/field.css.js';
|
|
15
|
+
import { styles as fieldStackedStyles } from '../../shared/field/field-stacked.css.js';
|
|
16
|
+
import { styles } from './input-root.css.js';
|
|
17
|
+
/**
|
|
18
|
+
* @summary A single line of text a reader types into.
|
|
19
|
+
*
|
|
20
|
+
* @description
|
|
21
|
+
* The frame is the field rather than the input, so anything slotted at either
|
|
22
|
+
* end sits inside the same box as the text and the focus ring is drawn once,
|
|
23
|
+
* around the whole control, instead of around a smaller box within it.
|
|
24
|
+
*
|
|
25
|
+
* The input itself is the native one, stripped rather than replaced, so the
|
|
26
|
+
* caret, the selection, the autofill, and the keyboard a phone chooses are all
|
|
27
|
+
* the platform's.
|
|
28
|
+
*
|
|
29
|
+
* Height comes from the region, like every other control: `data-density` on
|
|
30
|
+
* whatever holds it, not a `size` here. Invalid styling waits for
|
|
31
|
+
* `:user-invalid`, because a field is not wrong before anyone has filled it in.
|
|
32
|
+
*
|
|
33
|
+
* @since 0.1.0
|
|
34
|
+
* @status experimental
|
|
35
|
+
* @category forms
|
|
36
|
+
* @aliases TextField, Field, TextInput
|
|
37
|
+
* @documentation https://helix.fusion.dev/components/input
|
|
38
|
+
*
|
|
39
|
+
* @cssproperty --input-background-color - Fill behind the text.
|
|
40
|
+
* @cssproperty --input-size - Height of the field.
|
|
41
|
+
*/
|
|
42
|
+
let HelixInput = class HelixInput extends HelixHeadlessInput {
|
|
43
|
+
static { this.styles = [glyphStyles, fieldStyles, fieldStackedStyles, styles]; }
|
|
44
|
+
};
|
|
45
|
+
HelixInput = __decorate([
|
|
46
|
+
customElement('helix-input')
|
|
47
|
+
], HelixInput);
|
|
48
|
+
export { HelixInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/kbd-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/kbd-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Generated from src/kbd/root/kbd-root.css by `bun run styles`. Do not edit.
|
|
2
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
3
|
+
export const styles = createSheet(`:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
font: inherit;
|
|
6
|
+
|
|
7
|
+
vertical-align: -0.05em;
|
|
8
|
+
|
|
9
|
+
--_kbd-size: 0.85em;
|
|
10
|
+
--_kbd-height: 1.5em;
|
|
11
|
+
--_kbd-inset: 0.4em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part="kbd"] {
|
|
15
|
+
align-items: center;
|
|
16
|
+
background-color: var(--kbd-background-color, var(--helix-color-surface-sunken));
|
|
17
|
+
block-size: var(--_kbd-height);
|
|
18
|
+
border: var(--helix-border-thin) solid var(--kbd-border-color, var(--helix-color-border));
|
|
19
|
+
border-radius: var(--helix-radii-sm);
|
|
20
|
+
|
|
21
|
+
box-shadow: inset 0 -1px 0 0 var(--kbd-border-color, var(--helix-color-border));
|
|
22
|
+
color: var(--helix-color-foreground-muted);
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
font-family: var(--helix-font-mono);
|
|
25
|
+
|
|
26
|
+
font-feature-settings:
|
|
27
|
+
"liga" 0,
|
|
28
|
+
"calt" 0;
|
|
29
|
+
font-size: var(--_kbd-size);
|
|
30
|
+
font-variant-ligatures: none;
|
|
31
|
+
font-weight: var(--helix-weight-medium);
|
|
32
|
+
justify-content: center;
|
|
33
|
+
line-height: 1;
|
|
34
|
+
|
|
35
|
+
min-inline-size: var(--_kbd-height);
|
|
36
|
+
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
padding-inline: var(--_kbd-inset);
|
|
39
|
+
|
|
40
|
+
padding-block-start: var(--helix-border-thin);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media print {
|
|
44
|
+
:host {
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
}
|
|
47
|
+
}`);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HelixHeadlessKbd } from '@fusion.dev/helix-headless/kbd';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A keyboard key or chord, set inline with text.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Drawn as a physical key: a hairline, a sunken fill, and one inset shadow
|
|
8
|
+
* along the bottom edge that reads as depth without becoming a picture of a
|
|
9
|
+
* key.
|
|
10
|
+
*
|
|
11
|
+
* Sized in `em`, so it stays proportional to whatever it is set inside rather
|
|
12
|
+
* than holding one size and looking wrong in a heading.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.1.0
|
|
15
|
+
* @status stable
|
|
16
|
+
* @category typography
|
|
17
|
+
* @aliases Key, Shortcut, Hotkey
|
|
18
|
+
* @documentation https://helix.fusion.dev/components/kbd
|
|
19
|
+
*
|
|
20
|
+
* @cssproperty --kbd-background-color - Fill of the key.
|
|
21
|
+
* @cssproperty --kbd-border-color - Color of the hairline and the edge.
|
|
22
|
+
*/
|
|
23
|
+
export declare class HelixKbd extends HelixHeadlessKbd {
|
|
24
|
+
static styles: CSSResultGroup;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'helix-kbd': HelixKbd;
|
|
29
|
+
}
|
|
30
|
+
}
|