@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,219 @@
|
|
|
1
|
+
// Generated from src/date-picker/root/date-picker-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-block;
|
|
5
|
+
|
|
6
|
+
--_calendar-track: var(--date-picker-track-size, 2.5rem);
|
|
7
|
+
--_calendar-row: var(--date-picker-row-size, 2.25rem);
|
|
8
|
+
--_calendar-day: var(--date-picker-day-size, 1.875rem);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[part="months"] {
|
|
12
|
+
align-items: start;
|
|
13
|
+
display: grid;
|
|
14
|
+
gap: var(--helix-space-md);
|
|
15
|
+
grid-template-columns: repeat(
|
|
16
|
+
var(--date-picker-columns, var(--date-picker-column-count, 1)),
|
|
17
|
+
max-content
|
|
18
|
+
);
|
|
19
|
+
justify-content: start;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part="header"] {
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: grid;
|
|
25
|
+
gap: var(--helix-space-2xs);
|
|
26
|
+
grid-template-columns: var(--_calendar-day) 1fr var(--_calendar-day);
|
|
27
|
+
margin-block-end: var(--helix-space-lg);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part="heading"] {
|
|
31
|
+
font-size: var(--helix-text-sm);
|
|
32
|
+
font-weight: var(--helix-weight-medium);
|
|
33
|
+
grid-column: 2;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[part="previous"] {
|
|
38
|
+
grid-column: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part="next"] {
|
|
42
|
+
grid-column: 3;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[part="previous"],
|
|
46
|
+
[part="next"] {
|
|
47
|
+
all: unset;
|
|
48
|
+
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
align-items: center;
|
|
51
|
+
block-size: var(--_calendar-day);
|
|
52
|
+
border-radius: var(--helix-radii-sm);
|
|
53
|
+
color: var(--helix-color-foreground-muted);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
inline-size: var(--_calendar-day);
|
|
57
|
+
justify-content: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[part="previous"]:hover,
|
|
61
|
+
[part="next"]:hover {
|
|
62
|
+
background-color: var(--helix-color-surface-sunken);
|
|
63
|
+
color: var(--helix-color-foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="previous"] svg,
|
|
67
|
+
[part="next"] svg,
|
|
68
|
+
::slotted([slot="previous-icon"]),
|
|
69
|
+
::slotted([slot="next-icon"]) {
|
|
70
|
+
block-size: 1em;
|
|
71
|
+
inline-size: 1em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[part="week"] {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(7, var(--_calendar-track));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[part="weekday"] {
|
|
80
|
+
align-items: center;
|
|
81
|
+
block-size: var(--_calendar-track);
|
|
82
|
+
color: var(--helix-color-foreground-subtle);
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
font-size: var(--helix-text-xs);
|
|
85
|
+
font-weight: var(--helix-weight-medium);
|
|
86
|
+
inline-size: var(--_calendar-track);
|
|
87
|
+
justify-content: center;
|
|
88
|
+
padding-block-end: calc(var(--_calendar-track) / 2);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[part="cell"] {
|
|
92
|
+
align-items: center;
|
|
93
|
+
block-size: var(--_calendar-row);
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
inline-size: var(--_calendar-track);
|
|
97
|
+
justify-content: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[part="day"] {
|
|
101
|
+
align-items: center;
|
|
102
|
+
block-size: var(--_calendar-day);
|
|
103
|
+
|
|
104
|
+
border-radius: var(--helix-radii-sm);
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
font-size: var(--helix-text-sm);
|
|
107
|
+
inline-size: var(--_calendar-day);
|
|
108
|
+
justify-content: center;
|
|
109
|
+
transition: background-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[part="cell"][data-today] [part="day"] {
|
|
113
|
+
box-shadow: inset 0 0 0 var(--helix-border-thin) var(--helix-color-border);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[part="cell"][data-outside] [part="day"] {
|
|
117
|
+
color: var(--helix-color-foreground-subtle);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[part="cell"]:hover:not([aria-disabled], [data-outside]) [part="day"] {
|
|
121
|
+
background-color: var(--helix-color-surface-sunken);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[part="cell"][aria-selected]:is([data-range-start], [data-range-middle], [data-range-end]) {
|
|
125
|
+
background-color: var(
|
|
126
|
+
--date-picker-range-color,
|
|
127
|
+
light-dark(
|
|
128
|
+
color-mix(in oklab, var(--helix-color-foreground) 10%, transparent),
|
|
129
|
+
color-mix(in oklab, var(--helix-color-foreground) 14%, transparent)
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[part="cell"][aria-selected]:not([data-range-start]):not([data-range-middle]):not([data-range-end])
|
|
135
|
+
[part="day"] {
|
|
136
|
+
box-shadow: 0 0 0 calc((var(--_calendar-row) - var(--_calendar-day)) / 2)
|
|
137
|
+
var(
|
|
138
|
+
--date-picker-range-color,
|
|
139
|
+
light-dark(
|
|
140
|
+
color-mix(in oklab, var(--helix-color-foreground) 10%, transparent),
|
|
141
|
+
color-mix(in oklab, var(--helix-color-foreground) 14%, transparent)
|
|
142
|
+
)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[part="cell"][data-range-start],
|
|
147
|
+
[part="cell"][aria-selected]:not([data-range-middle]):not([data-range-end]) {
|
|
148
|
+
border-end-start-radius: var(--helix-radii-sm);
|
|
149
|
+
border-start-start-radius: var(--helix-radii-sm);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[part="cell"][data-range-end],
|
|
153
|
+
[part="cell"][aria-selected]:not([data-range-middle]):not([data-range-start]) {
|
|
154
|
+
border-end-end-radius: var(--helix-radii-sm);
|
|
155
|
+
border-start-end-radius: var(--helix-radii-sm);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[part="cell"][aria-selected]:not([data-range-middle]) [part="day"] {
|
|
159
|
+
background-color: var(--date-picker-selected-color, var(--helix-color-surface-inverse));
|
|
160
|
+
color: var(--helix-color-foreground-inverse);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[part="cell"][aria-disabled] {
|
|
164
|
+
cursor: default;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[part="cell"][aria-disabled] [part="day"] {
|
|
168
|
+
color: var(--helix-color-foreground-subtle);
|
|
169
|
+
opacity: 0.4;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[part="cell"]:focus-visible {
|
|
173
|
+
outline: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[part="cell"]:focus-visible [part="day"] {
|
|
177
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
178
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (prefers-reduced-motion: reduce) {
|
|
182
|
+
[part="day"] {
|
|
183
|
+
transition: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host(:dir(rtl)) [part="previous"] svg,
|
|
188
|
+
:host(:dir(rtl)) [part="next"] svg,
|
|
189
|
+
:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
190
|
+
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {
|
|
191
|
+
scale: -1 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host(:disabled) {
|
|
195
|
+
cursor: not-allowed;
|
|
196
|
+
opacity: 0.5;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([invalid]) [part="cell"][aria-selected] [part="day"] {
|
|
200
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-danger);
|
|
201
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([invalid]) [part="cell"]:focus-visible [part="day"] {
|
|
205
|
+
outline-color: var(--helix-color-danger);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([invalid]) [part="grid"][data-unset] {
|
|
209
|
+
border-radius: var(--helix-radii-sm);
|
|
210
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-danger);
|
|
211
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media print {
|
|
215
|
+
:host {
|
|
216
|
+
box-shadow: none;
|
|
217
|
+
print-color-adjust: exact;
|
|
218
|
+
}
|
|
219
|
+
}`);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HelixHeadlessDatePicker } from '@fusion.dev/helix-headless/date-picker';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Shows a month, and takes a date from it.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Six week rows always, so the grid keeps one height and a month change does
|
|
8
|
+
* not move whatever sits beneath it.
|
|
9
|
+
*
|
|
10
|
+
* The column track is wider than the day, and the day is centered in it. The
|
|
11
|
+
* difference is the space between days, which belongs to the track rather than
|
|
12
|
+
* to a `gap`, so a range can paint across the whole track and stay continuous.
|
|
13
|
+
*
|
|
14
|
+
* Days from the neighbouring months stay in place and stay selectable, marked
|
|
15
|
+
* quieter rather than hidden, so the first and last weeks are whole and the
|
|
16
|
+
* grid reads as a continuous run of dates.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
* @status experimental
|
|
20
|
+
* @category forms
|
|
21
|
+
* @aliases Calendar, Date grid, Month view
|
|
22
|
+
* @documentation https://helix.fusion.dev/components/date-picker
|
|
23
|
+
*
|
|
24
|
+
* @cssproperty --date-picker-columns - Months per row. Two unless there is only one.
|
|
25
|
+
* @cssproperty --date-picker-day-size - Width and height of a day.
|
|
26
|
+
* @cssproperty --date-picker-range-color - Band behind the days in a range.
|
|
27
|
+
* @cssproperty --date-picker-row-size - Height of a week row.
|
|
28
|
+
* @cssproperty --date-picker-selected-color - Fill behind a selected day.
|
|
29
|
+
* @cssproperty --date-picker-track-size - Width of a column, which is what sets the space between days.
|
|
30
|
+
*/
|
|
31
|
+
export declare class HelixDatePicker extends HelixHeadlessDatePicker {
|
|
32
|
+
static styles: CSSResultGroup;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
'helix-date-picker': HelixDatePicker;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { HelixHeadlessDatePicker } from '@fusion.dev/helix-headless/date-picker';
|
|
9
|
+
import { styles } from './date-picker-root.css.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary Shows a month, and takes a date from it.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* Six week rows always, so the grid keeps one height and a month change does
|
|
15
|
+
* not move whatever sits beneath it.
|
|
16
|
+
*
|
|
17
|
+
* The column track is wider than the day, and the day is centered in it. The
|
|
18
|
+
* difference is the space between days, which belongs to the track rather than
|
|
19
|
+
* to a `gap`, so a range can paint across the whole track and stay continuous.
|
|
20
|
+
*
|
|
21
|
+
* Days from the neighbouring months stay in place and stay selectable, marked
|
|
22
|
+
* quieter rather than hidden, so the first and last weeks are whole and the
|
|
23
|
+
* grid reads as a continuous run of dates.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
* @status experimental
|
|
27
|
+
* @category forms
|
|
28
|
+
* @aliases Calendar, Date grid, Month view
|
|
29
|
+
* @documentation https://helix.fusion.dev/components/date-picker
|
|
30
|
+
*
|
|
31
|
+
* @cssproperty --date-picker-columns - Months per row. Two unless there is only one.
|
|
32
|
+
* @cssproperty --date-picker-day-size - Width and height of a day.
|
|
33
|
+
* @cssproperty --date-picker-range-color - Band behind the days in a range.
|
|
34
|
+
* @cssproperty --date-picker-row-size - Height of a week row.
|
|
35
|
+
* @cssproperty --date-picker-selected-color - Fill behind a selected day.
|
|
36
|
+
* @cssproperty --date-picker-track-size - Width of a column, which is what sets the space between days.
|
|
37
|
+
*/
|
|
38
|
+
let HelixDatePicker = class HelixDatePicker extends HelixHeadlessDatePicker {
|
|
39
|
+
static { this.styles = styles; }
|
|
40
|
+
};
|
|
41
|
+
HelixDatePicker = __decorate([
|
|
42
|
+
customElement('helix-date-picker')
|
|
43
|
+
], HelixDatePicker);
|
|
44
|
+
export { HelixDatePicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/dialog-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/dialog-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// Generated from src/dialog/root/dialog-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: contents;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[part="dialog"] {
|
|
8
|
+
background-color: var(--helix-color-surface-overlay);
|
|
9
|
+
border: var(--dialog-border-width, var(--helix-border-floating)) solid
|
|
10
|
+
var(--dialog-border-color, var(--helix-color-border));
|
|
11
|
+
|
|
12
|
+
border-radius: var(--helix-radii-sm);
|
|
13
|
+
box-shadow: var(--dialog-shadow, var(--helix-shadow-floating));
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
color: var(--helix-color-foreground);
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--helix-space-md);
|
|
19
|
+
|
|
20
|
+
inline-size: min(var(--dialog-inline-size, 28rem), calc(100vw - var(--helix-space-xl)));
|
|
21
|
+
|
|
22
|
+
max-block-size: calc(100dvh - var(--helix-space-xl));
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
padding: var(--dialog-padding, var(--helix-space-lg));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part="dialog"]:not([open]) {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([size="sm"]) [part="dialog"] {
|
|
32
|
+
--dialog-inline-size: 22rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([size="md"]) [part="dialog"] {
|
|
36
|
+
--dialog-inline-size: 28rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([size="lg"]) [part="dialog"] {
|
|
40
|
+
--dialog-inline-size: 44rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([size="full"]) [part="dialog"] {
|
|
44
|
+
--dialog-inline-size: 100vw;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[part="dialog"]:focus,
|
|
48
|
+
[part="dialog"]:focus-visible {
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host {
|
|
53
|
+
--_dialog-scrim: var(--helix-color-overlay);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[part="dialog"]::backdrop {
|
|
57
|
+
background-color: var(--dialog-scrim, var(--_dialog-scrim));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
::slotted([slot="header"]) {
|
|
61
|
+
color: var(--helix-color-foreground);
|
|
62
|
+
font-family: var(--helix-font-sans);
|
|
63
|
+
font-size: var(--helix-text-xl);
|
|
64
|
+
font-weight: var(--helix-weight-semibold);
|
|
65
|
+
letter-spacing: var(--helix-tracking-tight);
|
|
66
|
+
line-height: var(--helix-leading-tight);
|
|
67
|
+
margin: var(--helix-space-none);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
::slotted([slot="footer"]) {
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: var(--helix-space-xs);
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[part="dialog"] {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
transition:
|
|
79
|
+
opacity var(--helix-duration-normal) var(--helix-easing-standard),
|
|
80
|
+
translate var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
81
|
+
display var(--helix-duration-normal) allow-discrete,
|
|
82
|
+
overlay var(--helix-duration-normal) allow-discrete;
|
|
83
|
+
translate: 0 var(--dialog-rise, var(--helix-space-lg));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[part="dialog"][open] {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
translate: 0 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@starting-style {
|
|
92
|
+
[part="dialog"][open] {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
translate: 0 var(--dialog-rise, var(--helix-space-lg));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[part="dialog"]::backdrop {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
transition:
|
|
101
|
+
opacity var(--helix-duration-normal) var(--helix-easing-standard),
|
|
102
|
+
display var(--helix-duration-normal) allow-discrete,
|
|
103
|
+
overlay var(--helix-duration-normal) allow-discrete;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part="dialog"][open]::backdrop {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@starting-style {
|
|
111
|
+
[part="dialog"][open]::backdrop {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@media (width < 30rem) {
|
|
117
|
+
[part="dialog"] {
|
|
118
|
+
|
|
119
|
+
margin-block-end: var(--helix-space-none);
|
|
120
|
+
margin-block-start: auto;
|
|
121
|
+
inline-size: 100vw;
|
|
122
|
+
max-inline-size: 100vw;
|
|
123
|
+
|
|
124
|
+
max-block-size: calc(100dvh - var(--helix-space-3xl));
|
|
125
|
+
|
|
126
|
+
border-start-start-radius: var(--helix-radii-sm);
|
|
127
|
+
border-start-end-radius: var(--helix-radii-sm);
|
|
128
|
+
border-end-start-radius: var(--helix-radii-none);
|
|
129
|
+
border-end-end-radius: var(--helix-radii-none);
|
|
130
|
+
|
|
131
|
+
translate: 0 100%;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@starting-style {
|
|
135
|
+
[part="dialog"][open] {
|
|
136
|
+
translate: 0 100%;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[part="dialog"][data-refused] {
|
|
142
|
+
animation: helix-dialog-refuse var(--helix-duration-normal) var(--helix-easing-emphasized);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@keyframes helix-dialog-refuse {
|
|
146
|
+
50% {
|
|
147
|
+
scale: 1.02;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (prefers-reduced-motion: reduce) {
|
|
152
|
+
[part="dialog"],
|
|
153
|
+
[part="dialog"]::backdrop {
|
|
154
|
+
transition: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[part="dialog"][data-refused] {
|
|
158
|
+
animation: none;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
::slotted([slot="icon"]) {
|
|
163
|
+
block-size: var(--dialog-icon-size, calc(var(--helix-size-icon-lg) * 2));
|
|
164
|
+
display: block;
|
|
165
|
+
inline-size: var(--dialog-icon-size, calc(var(--helix-size-icon-lg) * 2));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([align="center"]) [part="dialog"] {
|
|
169
|
+
text-align: center;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([align="center"]) ::slotted([slot="footer"]) {
|
|
173
|
+
justify-content: center;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host([align="center"]) ::slotted([slot="icon"]) {
|
|
177
|
+
margin-inline: auto;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@media print {
|
|
181
|
+
:host {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
}`);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { HelixHeadlessDialog } from '@fusion.dev/helix-headless/dialog';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A modal window, on the platform's own dialog.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The panel is `surface-overlay` with a shadow, because that is what it is: a
|
|
8
|
+
* thing over the page rather than on it. The scrim is drawn on `::backdrop`,
|
|
9
|
+
* which is the platform's own element for it and sits in the top layer with the
|
|
10
|
+
* dialog rather than being a div somebody positioned.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
* @status stable
|
|
14
|
+
* @category overlays
|
|
15
|
+
* @aliases Modal, Lightbox, Sheet
|
|
16
|
+
* @documentation https://helix.fusion.dev/components/dialog
|
|
17
|
+
*
|
|
18
|
+
* @cssproperty --dialog-border-color - Color of the panel's edge.
|
|
19
|
+
* @cssproperty --dialog-border-width - Width of the panel's edge. Follows
|
|
20
|
+
* `--helix-border-floating`, which is `0`, so the panel is told apart by its lift unless a
|
|
21
|
+
* theme says otherwise.
|
|
22
|
+
* @cssproperty --dialog-icon-size - How big the mark above the title is.
|
|
23
|
+
* @cssproperty --dialog-inline-size - Width of the panel.
|
|
24
|
+
* @cssproperty --dialog-padding - Padding inside the panel.
|
|
25
|
+
* @cssproperty --dialog-rise - How far the panel rises as it opens. Follows
|
|
26
|
+
* `--helix-space-lg`.
|
|
27
|
+
* @cssproperty --dialog-scrim - The wash over the page behind the dialog. Set on the host, where a token still resolves: a `var()` written inside `::backdrop` cannot see one.
|
|
28
|
+
* @cssproperty --dialog-shadow - Lift under the panel. Follows `--helix-shadow-floating`: a
|
|
29
|
+
* floating surface sits over content nobody can predict, so it keeps a lift by default.
|
|
30
|
+
*
|
|
31
|
+
* @property align - Whether the panel's contents run from the start or center on it.
|
|
32
|
+
* @property size - How wide the panel is allowed to be.
|
|
33
|
+
*/
|
|
34
|
+
export declare class HelixDialog extends HelixHeadlessDialog {
|
|
35
|
+
/**
|
|
36
|
+
* How wide the panel is allowed to be.
|
|
37
|
+
*
|
|
38
|
+
* Steps rather than a number, because a dialog's width is a fact about what is
|
|
39
|
+
* in it: a confirmation is narrow, a form is not, and picking pixels per
|
|
40
|
+
* dialog is how a product ends up with nine of them. `full` takes the viewport
|
|
41
|
+
* less the same inset every step already stops short by, so a takeover is one
|
|
42
|
+
* more rung and not a second property.
|
|
43
|
+
*
|
|
44
|
+
* Unset is `md`, read as `:host(:not([size]))` beside `:host([size="md"])`
|
|
45
|
+
* rather than assigned here, for the reason `Drawer.placement` gives: this
|
|
46
|
+
* reflects, and a default would put `size="md"` into markup no consumer wrote.
|
|
47
|
+
*
|
|
48
|
+
* **This was `appearance`, and it was the wrong word.** That word said how a
|
|
49
|
+
* thing *reads*, and here it said how wide the panel is, which its own
|
|
50
|
+
* description admitted in as many words. It turned out to be the first of
|
|
51
|
+
* many: `appearance` held four axes across 21 components and #158 retired it
|
|
52
|
+
* entirely, so this rename was that sweep arriving early at one component.
|
|
53
|
+
*
|
|
54
|
+
* `size` is right despite the rule that controls have no size, because that
|
|
55
|
+
* rule's own test is whether two of them sitting together could legitimately
|
|
56
|
+
* differ, and it is answering "a ragged row is unwritable". Two dialogs never
|
|
57
|
+
* sit together. One is on screen at a time, in the top layer, and it is the
|
|
58
|
+
* region rather than a control in one, which is the same reason `Avatar` and
|
|
59
|
+
* `Spinner` keep theirs.
|
|
60
|
+
*/
|
|
61
|
+
size?: 'sm' | 'md' | 'lg' | 'full';
|
|
62
|
+
/**
|
|
63
|
+
* Which way the panel's contents read.
|
|
64
|
+
*
|
|
65
|
+
* One property for the whole panel rather than one per region. The regions are
|
|
66
|
+
* never mixed in practice: a dialog that asks a short question centers its
|
|
67
|
+
* mark, its title, its sentence and its buttons together, and a dialog holding
|
|
68
|
+
* a form runs all four from the start. Three properties would be three ways to
|
|
69
|
+
* write the same two arrangements, and a fourth way to get one of them wrong.
|
|
70
|
+
*
|
|
71
|
+
* Unset is `start` and stays unset, so a reflected default cannot appear on a
|
|
72
|
+
* host whose server output never had it.
|
|
73
|
+
*/
|
|
74
|
+
align?: 'center' | 'start';
|
|
75
|
+
static styles: CSSResultGroup;
|
|
76
|
+
}
|
|
77
|
+
declare global {
|
|
78
|
+
interface HTMLElementTagNameMap {
|
|
79
|
+
'helix-dialog': HelixDialog;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { HelixHeadlessDialog } from '@fusion.dev/helix-headless/dialog';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './dialog-root.css.js';
|
|
11
|
+
/**
|
|
12
|
+
* @summary A modal window, on the platform's own dialog.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* The panel is `surface-overlay` with a shadow, because that is what it is: a
|
|
16
|
+
* thing over the page rather than on it. The scrim is drawn on `::backdrop`,
|
|
17
|
+
* which is the platform's own element for it and sits in the top layer with the
|
|
18
|
+
* dialog rather than being a div somebody positioned.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
* @status stable
|
|
22
|
+
* @category overlays
|
|
23
|
+
* @aliases Modal, Lightbox, Sheet
|
|
24
|
+
* @documentation https://helix.fusion.dev/components/dialog
|
|
25
|
+
*
|
|
26
|
+
* @cssproperty --dialog-border-color - Color of the panel's edge.
|
|
27
|
+
* @cssproperty --dialog-border-width - Width of the panel's edge. Follows
|
|
28
|
+
* `--helix-border-floating`, which is `0`, so the panel is told apart by its lift unless a
|
|
29
|
+
* theme says otherwise.
|
|
30
|
+
* @cssproperty --dialog-icon-size - How big the mark above the title is.
|
|
31
|
+
* @cssproperty --dialog-inline-size - Width of the panel.
|
|
32
|
+
* @cssproperty --dialog-padding - Padding inside the panel.
|
|
33
|
+
* @cssproperty --dialog-rise - How far the panel rises as it opens. Follows
|
|
34
|
+
* `--helix-space-lg`.
|
|
35
|
+
* @cssproperty --dialog-scrim - The wash over the page behind the dialog. Set on the host, where a token still resolves: a `var()` written inside `::backdrop` cannot see one.
|
|
36
|
+
* @cssproperty --dialog-shadow - Lift under the panel. Follows `--helix-shadow-floating`: a
|
|
37
|
+
* floating surface sits over content nobody can predict, so it keeps a lift by default.
|
|
38
|
+
*
|
|
39
|
+
* @property align - Whether the panel's contents run from the start or center on it.
|
|
40
|
+
* @property size - How wide the panel is allowed to be.
|
|
41
|
+
*/
|
|
42
|
+
let HelixDialog = class HelixDialog extends HelixHeadlessDialog {
|
|
43
|
+
static { this.styles = styles; }
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
property({ reflect: true })
|
|
47
|
+
], HelixDialog.prototype, "size", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ reflect: true })
|
|
50
|
+
], HelixDialog.prototype, "align", void 0);
|
|
51
|
+
HelixDialog = __decorate([
|
|
52
|
+
customElement('helix-dialog')
|
|
53
|
+
], HelixDialog);
|
|
54
|
+
export { HelixDialog };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/divider-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/divider-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|