@fusion.dev/helix 0.145.0 → 0.147.0
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/custom-elements.json +13218 -3717
- package/dist/accordion/item/accordion-item.css.js +4 -92
- package/dist/accordion/item/accordion-item.d.ts +8 -0
- package/dist/accordion/root/accordion-root.css.js +2 -28
- package/dist/announcement/root/announcement-root.css.js +10 -154
- package/dist/announcement/root/announcement-root.d.ts +3 -0
- package/dist/app-header/root/app-header-root.css.js +2 -118
- package/dist/area-chart/root/area-chart-root.css.js +4 -94
- package/dist/area-chart/root/area-chart-root.d.ts +1 -0
- package/dist/aura/root/aura-root.css.js +2 -54
- package/dist/aura/root/aura-root.d.ts +21 -9
- package/dist/aura/root/aura-root.js +23 -12
- package/dist/avatar/group/avatar-group.css.js +5 -36
- package/dist/avatar/group/avatar-group.d.ts +3 -0
- package/dist/avatar/root/avatar-root.css.js +1 -53
- package/dist/avatar/root/avatar-root.d.ts +2 -0
- package/dist/badge/root/badge-root.css.js +17 -142
- package/dist/badge/root/badge-root.d.ts +20 -0
- package/dist/badge/root/badge-root.js +6 -0
- package/dist/bar-chart/root/bar-chart-root.css.js +8 -292
- package/dist/blockquote/root/blockquote-root.css.js +1 -43
- package/dist/blockquote/root/blockquote-root.d.ts +2 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +13 -98
- package/dist/breadcrumbs/root/breadcrumbs-root.css.js +7 -21
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +18 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.js +4 -0
- package/dist/button/root/button-root.css.js +16 -196
- package/dist/button/root/button-root.d.ts +3 -0
- package/dist/button-group/root/button-group-root.css.js +2 -52
- package/dist/callout/root/callout-root.css.js +5 -137
- package/dist/callout/root/callout-root.d.ts +8 -2
- package/dist/canvas/node/canvas-node.css.js +10 -367
- package/dist/canvas/root/canvas-root.css.js +7 -270
- package/dist/card/root/card-root.css.js +5 -134
- package/dist/card/root/card-root.d.ts +6 -0
- package/dist/carousel/root/carousel-root.css.js +20 -386
- package/dist/chat/composer/chat-composer.css.js +4 -105
- package/dist/chat/message/chat-message.css.js +5 -301
- package/dist/chat/message/chat-message.d.ts +5 -0
- package/dist/chat/message/chat-message.js +2 -1
- package/dist/chat/root/chat-root.css.js +5 -155
- package/dist/chat/root/chat-root.d.ts +2 -0
- package/dist/chat/root/chat-root.js +2 -1
- package/dist/chat/typing.css.d.ts +1 -0
- package/dist/chat/typing.css.js +25 -0
- package/dist/checkbox/root/checkbox-root.css.js +12 -162
- package/dist/checkbox/root/checkbox-root.d.ts +2 -1
- package/dist/checkbox-group/root/checkbox-group-root.css.js +1 -27
- package/dist/code/root/code-root.css.js +3 -25
- package/dist/code/root/code-root.d.ts +2 -0
- package/dist/code-block/root/code-block-root.css.js +9 -250
- package/dist/code-block/root/code-block-root.d.ts +2 -1
- package/dist/color-input/root/color-input-root.css.js +5 -104
- package/dist/color-picker/root/color-picker-root.css.js +39 -329
- package/dist/color-picker/root/color-picker-root.d.ts +3 -0
- package/dist/combobox/root/combobox-root.css.js +8 -147
- package/dist/command/root/command-root.css.js +3 -74
- package/dist/copy-button/root/copy-button-root.css.js +5 -36
- package/dist/copy-button/root/copy-button-root.d.ts +7 -0
- package/dist/data-table/root/data-table-root.css.js +24 -241
- package/dist/data-table/root/data-table-root.d.ts +12 -0
- package/dist/date-input/root/date-input-root.css.js +8 -93
- package/dist/date-picker/root/date-picker-root.css.js +16 -278
- package/dist/date-picker/root/date-picker-root.d.ts +1 -0
- package/dist/description-list/item/description-list-item.css.js +1 -41
- package/dist/description-list/item/description-list-item.d.ts +7 -0
- package/dist/description-list/root/description-list-root.css.js +1 -34
- package/dist/description-list/root/description-list-root.d.ts +1 -0
- package/dist/dialog/root/dialog-root.css.js +7 -221
- package/dist/dialog/root/dialog-root.d.ts +3 -0
- package/dist/divider/root/divider-root.css.js +6 -81
- package/dist/donut-chart/root/donut-chart-root.css.js +7 -174
- package/dist/donut-chart/root/donut-chart-root.d.ts +3 -0
- package/dist/drawer/root/drawer-root.css.js +14 -193
- package/dist/drawer/root/drawer-root.d.ts +5 -0
- package/dist/drilldown/item/drilldown-item.css.js +4 -51
- package/dist/drilldown/item/drilldown-item.d.ts +7 -0
- package/dist/drilldown/root/drilldown-root.css.js +8 -109
- package/dist/drilldown/root/drilldown-root.d.ts +10 -0
- package/dist/element-events.generated.js +19 -6
- package/dist/empty/root/empty-root.css.js +2 -42
- package/dist/file-input/root/file-input-root.css.js +7 -172
- package/dist/file-input/root/file-input-root.d.ts +15 -0
- package/dist/filter-input/chip/filter-chip.css.js +2 -84
- package/dist/filter-input/field/filter-field.css.js +1 -3
- package/dist/filter-input/menu/filter-menu.css.js +1 -3
- package/dist/filter-input/operator/filter-operator.css.js +1 -3
- package/dist/filter-input/root/filter-input-root.css.js +6 -112
- package/dist/filter-input/root/filter-input-root.d.ts +5 -0
- package/dist/flex/root/flex-root.css.js +4 -198
- package/dist/flex/root/flex-root.d.ts +19 -8
- package/dist/format-date/root/format-date-root.css.js +1 -13
- package/dist/graph/root/graph-root.css.js +12 -444
- package/dist/graph/root/graph-root.d.ts +8 -0
- package/dist/grid/root/grid-root.css.js +1 -171
- package/dist/grid/root/grid-root.d.ts +4 -1
- package/dist/heatmap/root/heatmap-root.css.js +8 -155
- package/dist/heatmap/root/heatmap-root.d.ts +2 -0
- package/dist/icon/index.d.ts +1 -1
- package/dist/icon/root/icon-root.css.js +1 -18
- package/dist/icon/root/index.d.ts +1 -1
- package/dist/icon-button/root/icon-button-root.css.js +63 -186
- package/dist/icon-button/root/icon-button-root.d.ts +5 -0
- package/dist/image/root/image-root.css.js +7 -65
- package/dist/image/root/image-root.d.ts +3 -0
- package/dist/input/root/input-root.css.js +6 -79
- package/dist/kbd/root/kbd-root.css.js +2 -44
- package/dist/kbd/root/kbd-root.d.ts +9 -0
- package/dist/legend/root/legend-root.css.js +9 -106
- package/dist/legend/root/legend-root.d.ts +2 -0
- package/dist/lightbox/item/lightbox-item.css.js +1 -33
- package/dist/lightbox/root/lightbox-root.css.js +40 -144
- package/dist/line-chart/root/line-chart-root.css.js +4 -154
- package/dist/line-chart/root/line-chart-root.d.ts +3 -0
- package/dist/list/item/list-item.css.js +2 -94
- package/dist/list/root/list-root.css.js +4 -88
- package/dist/listbox/root/listbox-root.css.js +4 -102
- package/dist/listbox/root/listbox-root.d.ts +1 -0
- package/dist/loader/root/loader-root.css.js +5 -171
- package/dist/loader/root/loader-root.d.ts +2 -0
- package/dist/map/area/map-area.css.js +1 -23
- package/dist/map/buildings/map-buildings.css.js +1 -26
- package/dist/map/contours/map-contours.css.js +2 -5
- package/dist/map/landcover/map-landcover.css.js +1 -4
- package/dist/map/marker/map-marker.css.js +14 -327
- package/dist/map/points/map-points.css.js +1 -86
- package/dist/map/position/map-position.css.js +8 -227
- package/dist/map/raster/map-raster.css.js +1 -3
- package/dist/map/root/map-root.css.js +10 -352
- package/dist/map/route/map-route.css.js +1 -24
- package/dist/map/terrain/map-terrain.css.js +3 -7
- package/dist/megamenu/root/megamenu-root.css.js +15 -163
- package/dist/megamenu/root/megamenu-root.d.ts +19 -0
- package/dist/menu/item/menu-item.css.js +9 -111
- package/dist/menu/item/menu-item.d.ts +1 -0
- package/dist/menu/root/menu-root.css.js +1 -110
- package/dist/menu/section/menu-section.css.js +1 -13
- package/dist/meter/root/meter-root.css.js +20 -207
- package/dist/meter/root/meter-root.d.ts +4 -0
- package/dist/navigation/root/navigation-root.css.js +2 -54
- package/dist/navigation/root/navigation-root.d.ts +7 -0
- package/dist/notifications/group/notification-group.css.js +1 -61
- package/dist/notifications/notification/notification.css.js +17 -264
- package/dist/notifications/root/notifications-root.css.js +7 -119
- package/dist/notifications/root/notifications-root.d.ts +3 -1
- package/dist/number-input/root/number-input-root.css.js +10 -100
- package/dist/number-input/root/number-input-root.d.ts +8 -0
- package/dist/object-inspector/root/object-inspector-root.css.js +11 -166
- package/dist/option/group/option-group.css.js +1 -22
- package/dist/option/index.d.ts +1 -0
- package/dist/option/index.js +1 -0
- package/dist/option/root/option-root.css.js +3 -85
- package/dist/option/separator/option-separator.css.d.ts +1 -0
- package/dist/option/separator/option-separator.css.js +3 -0
- package/dist/option/separator/option-separator.d.ts +26 -0
- package/dist/option/separator/option-separator.js +16 -0
- package/dist/orb/root/orb-root.css.js +1 -41
- package/dist/orb/root/orb-root.d.ts +14 -6
- package/dist/orb/root/orb-root.js +16 -27
- package/dist/outline/root/outline-root.css.js +24 -122
- package/dist/outline/root/outline-root.d.ts +17 -4
- package/dist/pagination/root/pagination-root.css.js +9 -105
- package/dist/pagination/size/pagination-size.css.js +1 -22
- package/dist/pagination/summary/pagination-summary.css.js +1 -7
- package/dist/pin-input/root/pin-input-root.css.js +2 -73
- package/dist/pin-input/root/pin-input-root.d.ts +12 -2
- package/dist/popover/root/popover-root.css.js +6 -127
- package/dist/progress/root/progress-root.css.js +7 -228
- package/dist/progress/root/progress-root.d.ts +5 -0
- package/dist/qr-code/root/qr-code-root.css.js +1 -57
- package/dist/quote/root/quote-root.css.js +1 -17
- package/dist/quote/root/quote-root.d.ts +2 -0
- package/dist/radio/group/radio-group.css.js +1 -21
- package/dist/radio/root/radio-root.css.js +5 -192
- package/dist/radio/root/radio-root.d.ts +2 -1
- package/dist/rating/root/rating-root.css.js +4 -117
- package/dist/sandbox/frame.d.ts +5 -3
- package/dist/sandbox/frame.js +20 -6
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/preview/sandbox-preview.css.js +1 -12
- package/dist/sandbox/preview/sandbox-preview.d.ts +19 -3
- package/dist/sandbox/preview/sandbox-preview.js +17 -11
- package/dist/sandbox/root/sandbox-root.css.js +3 -70
- package/dist/sandbox/root/sandbox-root.d.ts +16 -4
- package/dist/sandbox/root/sandbox-root.js +29 -50
- package/dist/sandbox/source/sandbox-source.css.js +3 -25
- package/dist/sandbox/source/sandbox-source.d.ts +40 -0
- package/dist/sandbox/source/sandbox-source.js +22 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.css.js +1 -21
- package/dist/sandbox/terminal/sandbox-terminal.css.js +5 -106
- package/dist/sandbox/terminal/sandbox-terminal.d.ts +14 -2
- package/dist/sandbox/terminal/sandbox-terminal.js +20 -6
- package/dist/sandbox/tokens.d.ts +39 -0
- package/dist/sandbox/tokens.js +9 -0
- package/dist/sandbox/toolbar/sandbox-toolbar.css.js +1 -36
- package/dist/scatter-chart/root/scatter-chart-root.css.js +11 -137
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +3 -0
- package/dist/scroll-area/root/scroll-area-root.css.js +14 -181
- package/dist/select/root/select-root.css.js +4 -124
- package/dist/shared/chart/series.css.js +1 -36
- package/dist/shared/chart/terminus.css.js +1 -47
- package/dist/shared/chart/tooltip.css.js +1 -68
- package/dist/shared/collection/state.css.js +1 -9
- package/dist/shared/field/field-frame.css.js +3 -33
- package/dist/shared/field/field-inline.css.js +1 -4
- package/dist/shared/field/field-segments.css.js +1 -39
- package/dist/shared/field/field-stacked.css.js +1 -5
- package/dist/shared/field/field.css.js +3 -57
- package/dist/shared/floating/entrance.css.js +3 -34
- package/dist/shared/floating/panel.css.js +2 -17
- package/dist/shared/glyph/glyph.css.js +1 -5
- package/dist/shared/live/live.css.js +1 -8
- package/dist/shared/tags/tags.css.js +1 -39
- package/dist/shared/viewport/viewport.css.js +8 -135
- package/dist/skeleton/root/skeleton-root.css.js +12 -120
- package/dist/skeleton/root/skeleton-root.d.ts +1 -0
- package/dist/skip-link/root/skip-link-root.css.js +2 -35
- package/dist/skip-link/root/skip-link-root.d.ts +3 -3
- package/dist/slider/root/slider-root.css.js +35 -320
- package/dist/slider/root/slider-root.d.ts +2 -0
- package/dist/sparkline/root/sparkline-root.css.js +10 -96
- package/dist/sparkline/root/sparkline-root.d.ts +8 -0
- package/dist/sparkline/root/sparkline-root.js +2 -1
- package/dist/speed-dial/item/speed-dial-item.css.js +6 -74
- package/dist/speed-dial/item/speed-dial-item.d.ts +3 -0
- package/dist/speed-dial/root/speed-dial-root.css.js +3 -144
- package/dist/speed-dial/root/speed-dial-root.d.ts +7 -1
- package/dist/speed-dial/root/speed-dial-root.js +0 -1
- package/dist/splitter/root/splitter-root.css.js +11 -176
- package/dist/stat/group/stat-group.css.js +1 -36
- package/dist/stat/root/stat-root.css.js +3 -58
- package/dist/steps/root/steps-root.css.js +13 -70
- package/dist/steps/root/steps-root.d.ts +5 -0
- package/dist/steps/step/step.css.js +5 -156
- package/dist/switch/root/switch-root.css.js +2 -110
- package/dist/table/cell/table-cell.css.js +1 -33
- package/dist/table/column/table-column.css.js +7 -105
- package/dist/table/root/table-root.css.js +1 -43
- package/dist/table/row/table-row.css.js +6 -18
- package/dist/table/row/table-row.d.ts +2 -0
- package/dist/tabs/panel/tab-panel.css.js +2 -17
- package/dist/tabs/root/tabs-root.css.js +6 -177
- package/dist/tabs/root/tabs-root.d.ts +4 -0
- package/dist/tabs/tab/tab.css.js +10 -51
- package/dist/tabs/tab/tab.d.ts +7 -0
- package/dist/tag/group/tag-group.css.js +1 -5
- package/dist/tag/root/tag-root.css.js +1 -166
- package/dist/tag/root/tag-root.d.ts +2 -0
- package/dist/text/clamp.d.ts +5 -2
- package/dist/text/clamp.js +3 -1
- package/dist/text/root/text-root.css.js +11 -206
- package/dist/text/root/text-root.d.ts +2 -1
- package/dist/textarea/root/textarea-root.css.js +3 -44
- package/dist/time-input/root/time-input-root.css.js +7 -106
- package/dist/time-picker/root/time-picker-root.css.js +10 -134
- package/dist/time-picker/root/time-picker-root.d.ts +1 -0
- package/dist/timeline/group/timeline-group.css.js +1 -31
- package/dist/timeline/item/timeline-item.css.js +3 -134
- package/dist/timeline/root/timeline-root.css.js +1 -66
- package/dist/toast/item/toast-item.css.js +8 -240
- package/dist/toast/root/toast-root.css.js +1 -85
- package/dist/toast/root/toast-root.d.ts +1 -0
- package/dist/toast/root/toast-root.js +3 -1
- package/dist/toggle/group/toggle-group.css.js +9 -125
- package/dist/toggle/group/toggle-group.d.ts +6 -1
- package/dist/toggle/root/toggle-root.css.js +1 -23
- package/dist/toggle/root/toggle-root.d.ts +6 -0
- package/dist/toolbar/root/toolbar-root.css.js +1 -35
- package/dist/toolbar/root/toolbar-root.d.ts +4 -0
- package/dist/tooltip/root/tooltip-root.css.js +5 -101
- package/dist/tooltip/root/tooltip-root.d.ts +6 -0
- package/dist/tour/root/tour-root.css.js +2 -28
- package/dist/tour/stop/tour-stop.css.js +2 -109
- package/dist/tree/item/tree-item.css.js +14 -230
- package/dist/tree/item/tree-item.d.ts +9 -0
- package/dist/tree/root/tree-root.css.js +1 -40
- package/dist/trend/root/trend-root.css.js +5 -55
- package/dist/trend/root/trend-root.d.ts +2 -2
- package/dist/video/root/video-root.css.js +16 -398
- package/dist/video-playlist/item/video-playlist-item.css.js +12 -86
- package/dist/video-playlist/item/video-playlist-item.d.ts +12 -0
- package/dist/video-playlist/menu/video-playlist-menu.css.js +1 -41
- package/dist/video-playlist/root/video-playlist-root.css.js +1 -19
- package/dist/video-playlist/root/video-playlist-root.d.ts +2 -0
- package/dist/virtual-list/root/virtual-list-root.css.js +5 -28
- package/dist/virtual-list/root/virtual-list-root.d.ts +7 -1
- package/lint.json +1 -1
- package/package.json +9 -9
- package/types/jsx.d.ts +6997 -1154
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +2081 -271
|
@@ -1,147 +1,6 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="actions"] {
|
|
7
|
-
background-color: transparent;
|
|
8
|
-
border: none;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: var(--speed-dial-gap, var(--helix-space-sm));
|
|
12
|
-
margin: var(--helix-space-none);
|
|
13
|
-
overflow: visible;
|
|
14
|
-
padding: var(--helix-space-none);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part="actions"] {
|
|
18
|
-
--_speed-dial-row: row-reverse;
|
|
19
|
-
|
|
20
|
-
align-items: flex-end;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[part="actions"][data-placement$="-start"] {
|
|
24
|
-
--_speed-dial-row: row;
|
|
25
|
-
|
|
26
|
-
align-items: flex-start;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part="actions"][hidden] {
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
[part="actions"] {
|
|
34
|
-
--_dial-from: var(--speed-dial-travel, var(--helix-space-md));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part="actions"][data-placement^="bottom"] {
|
|
38
|
-
--_dial-from: calc(var(--speed-dial-travel, var(--helix-space-md)) * -1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[part="actions"] ::slotted(*) {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
scale: 0.8;
|
|
44
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {display: inline-flex;}[part="actions"] {background-color: transparent;border: none;display: flex;flex-direction: column;gap: var(--speed-dial-gap, var(--helix-space-sm));margin: var(--helix-space-none);overflow: visible;padding: var(--helix-space-none);}[part="actions"] {--_speed-dial-row: row-reverse;align-items: flex-end;}[part="actions"][data-placement$="-start"] {--_speed-dial-row: row;align-items: flex-start;}[part="actions"][hidden] {display: none;}[part="actions"] {--_dial-from: var(--speed-dial-travel, var(--helix-space-md));}[part="actions"][data-placement^="bottom"] {--_dial-from: calc(var(--speed-dial-travel, var(--helix-space-md)) * -1);}[part="actions"] ::slotted(*) {opacity: 0;scale: 0.8;transition:
|
|
45
3
|
opacity var(--helix-duration-fast) var(--helix-easing-standard),
|
|
46
4
|
scale var(--helix-duration-fast) var(--helix-easing-emphasized),
|
|
47
|
-
translate var(--helix-duration-fast) var(--helix-easing-emphasized);
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
[part="actions"][data-placed] ::slotted(*) {
|
|
52
|
-
opacity: 1;
|
|
53
|
-
scale: 1;
|
|
54
|
-
translate: 0 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[part="actions"] {
|
|
58
|
-
--_speed-dial-stagger: var(--speed-dial-stagger, calc(var(--helix-duration-fast) / 3));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="actions"][data-placed] ::slotted(:nth-last-child(2)) {
|
|
62
|
-
transition-delay: var(--_speed-dial-stagger);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[part="actions"][data-placed] ::slotted(:nth-last-child(3)) {
|
|
66
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 2);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[part="actions"][data-placed] ::slotted(:nth-last-child(4)) {
|
|
70
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 3);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[part="actions"][data-placed] ::slotted(:nth-last-child(n + 5)) {
|
|
74
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 4);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(2)) {
|
|
78
|
-
transition-delay: var(--_speed-dial-stagger);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(3)) {
|
|
82
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 2);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(4)) {
|
|
86
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 3);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(n + 5)) {
|
|
90
|
-
transition-delay: calc(var(--_speed-dial-stagger) * 4);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@media (prefers-reduced-motion: reduce) {
|
|
94
|
-
[part="actions"] ::slotted(*) {
|
|
95
|
-
opacity: 1;
|
|
96
|
-
scale: 1;
|
|
97
|
-
transition: none;
|
|
98
|
-
transition-delay: 0s;
|
|
99
|
-
translate: 0 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
[part="trigger"] {
|
|
103
|
-
transition: none;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[part="trigger"] {
|
|
108
|
-
--icon-size: var(--helix-size-icon);
|
|
109
|
-
all: unset;
|
|
110
|
-
|
|
111
|
-
align-items: center;
|
|
112
|
-
|
|
113
|
-
background-color: var(--helix-color-primary-surface);
|
|
114
|
-
block-size: var(--helix-size-control);
|
|
115
|
-
border-radius: var(--helix-radii-full);
|
|
116
|
-
box-shadow: var(--helix-shadow-md);
|
|
117
|
-
box-sizing: border-box;
|
|
118
|
-
color: var(--helix-color-foreground-on-primary);
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
display: inline-flex;
|
|
121
|
-
inline-size: var(--helix-size-control);
|
|
122
|
-
justify-content: center;
|
|
123
|
-
transition: box-shadow var(--helix-duration-fast) var(--helix-easing-standard);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
[part="trigger"]:hover {
|
|
127
|
-
box-shadow: var(--helix-shadow-lg);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
[part="trigger"]:active {
|
|
131
|
-
box-shadow: var(--helix-shadow-sm);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
[part="trigger"]:focus-visible {
|
|
135
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
136
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media print {
|
|
140
|
-
:host {
|
|
141
|
-
display: none;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:host([labels="hover"]) {
|
|
146
|
-
--_speed-dial-label-opacity: 0;
|
|
147
|
-
}`);
|
|
5
|
+
translate var(--helix-duration-fast) var(--helix-easing-emphasized);translate: 0 var(--_dial-from);}[part="actions"][data-placed] ::slotted(*) {opacity: 1;scale: 1;translate: 0 0;}[part="actions"] {--_speed-dial-stagger: var(--speed-dial-stagger, calc(var(--helix-duration-fast) / 3));}[part="actions"][data-placed] ::slotted(:nth-last-child(2)) {transition-delay: var(--_speed-dial-stagger);}[part="actions"][data-placed] ::slotted(:nth-last-child(3)) {transition-delay: calc(var(--_speed-dial-stagger) * 2);}[part="actions"][data-placed] ::slotted(:nth-last-child(4)) {transition-delay: calc(var(--_speed-dial-stagger) * 3);}[part="actions"][data-placed] ::slotted(:nth-last-child(n + 5)) {transition-delay: calc(var(--_speed-dial-stagger) * 4);}[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(2)) {transition-delay: var(--_speed-dial-stagger);}[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(3)) {transition-delay: calc(var(--_speed-dial-stagger) * 2);}[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(4)) {transition-delay: calc(var(--_speed-dial-stagger) * 3);}[part="actions"][data-placement^="bottom"][data-placed] ::slotted(:nth-child(n + 5)) {transition-delay: calc(var(--_speed-dial-stagger) * 4);}@media (prefers-reduced-motion: reduce) {[part="actions"] ::slotted(*) {opacity: 1;scale: 1;transition: none;transition-delay: 0s;translate: 0 0;}[part="trigger"] {transition: none;}}[part="trigger"] {--icon-size: var(--helix-size-icon);all: unset;align-items: center;background-color: var(--speed-dial-background-color, var(--helix-color-primary-surface));block-size: var(--speed-dial-size, var(--helix-size-control));border-radius: var(--helix-radii-full);box-shadow: var(--speed-dial-shadow, var(--helix-shadow-md));box-sizing: border-box;color: var(--speed-dial-color, var(--helix-color-foreground-on-primary));cursor: pointer;display: inline-flex;inline-size: var(--speed-dial-size, var(--helix-size-control));justify-content: center;transition: box-shadow var(--helix-duration-fast) var(--helix-easing-standard);}[part="trigger"]:hover {box-shadow: var(--helix-shadow-lg);}[part="trigger"]:active {box-shadow: var(--helix-shadow-sm);}[part="trigger"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}@media print {:host {display: none;}}:host([labels="hover"]) {--_speed-dial-label-opacity: 0;}:host([labels="hover"]) [part="actions"],
|
|
6
|
+
:host([labels="hover"]) [part="actions"] ::slotted(*) {pointer-events: none;}`);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HelixHeadlessSpeedDial } from '@fusion.dev/helix-headless/speed-dial';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
|
-
import '../../icon/index.js';
|
|
4
3
|
/**
|
|
5
4
|
* @summary A floating button that opens a short list of the main actions on a screen.
|
|
6
5
|
*
|
|
@@ -8,13 +7,20 @@ import '../../icon/index.js';
|
|
|
8
7
|
* Presentation only: the column the actions fan into, and the end they align
|
|
9
8
|
* to. The base class handles opening, closing, and keyboard movement.
|
|
10
9
|
*
|
|
10
|
+
* It draws no `helix-icon` of its own, so it does not register one: import
|
|
11
|
+
* `@fusion.dev/helix/icon` where your trigger or your actions use it.
|
|
12
|
+
*
|
|
11
13
|
* @since 0.1.0
|
|
12
14
|
* @status stable
|
|
13
15
|
* @category actions
|
|
14
16
|
* @aliases FAB, Floating action button, Action button, Quick actions
|
|
15
17
|
* @documentation https://fusion.dev/helix/components/speed-dial
|
|
16
18
|
*
|
|
19
|
+
* @cssproperty --speed-dial-background-color - Fill of the trigger the dial draws when none is slotted.
|
|
20
|
+
* @cssproperty --speed-dial-color - Color of that trigger's icon.
|
|
17
21
|
* @cssproperty --speed-dial-gap - Space between the actions.
|
|
22
|
+
* @cssproperty --speed-dial-shadow - Shadow under that trigger at rest.
|
|
23
|
+
* @cssproperty --speed-dial-size - Width and height of that trigger.
|
|
18
24
|
* @cssproperty --speed-dial-stagger - The wait between one action arriving and the next.
|
|
19
25
|
* @cssproperty --speed-dial-travel - How far each action moves as it arrives.
|
|
20
26
|
*/
|
|
@@ -9,7 +9,6 @@ import { HelixHeadlessSpeedDial } from '@fusion.dev/helix-headless/speed-dial';
|
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { styles as glyphStyles } from '../../shared/glyph/glyph.css.js';
|
|
11
11
|
import { styles } from './speed-dial-root.css.js';
|
|
12
|
-
import '../../icon/index.js';
|
|
13
12
|
let HelixSpeedDial = class HelixSpeedDial extends HelixHeadlessSpeedDial {
|
|
14
13
|
static { this.styles = [glyphStyles, styles]; }
|
|
15
14
|
};
|
|
@@ -1,187 +1,22 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: flex;
|
|
4
|
-
min-block-size: 0;
|
|
5
|
-
min-inline-size: 0;
|
|
6
|
-
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host(:is([orientation="vertical"], [data-axis="vertical"])) {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part="start"] {
|
|
15
|
-
flex: 0 0 var(--splitter-position, 50%);
|
|
16
|
-
|
|
17
|
-
min-block-size: 0;
|
|
18
|
-
min-inline-size: 0;
|
|
19
|
-
overflow: auto;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
[part="end"] {
|
|
23
|
-
flex: 1 1 0;
|
|
24
|
-
min-block-size: 0;
|
|
25
|
-
min-inline-size: 0;
|
|
26
|
-
overflow: auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part="separator"] {
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
cursor: col-resize;
|
|
33
|
-
flex: none;
|
|
34
|
-
inline-size: var(--splitter-target, var(--helix-space-xs));
|
|
35
|
-
margin-inline: calc(var(--splitter-target, var(--helix-space-xs)) / -2);
|
|
36
|
-
position: relative;
|
|
37
|
-
|
|
38
|
-
touch-action: none;
|
|
39
|
-
user-select: none;
|
|
40
|
-
|
|
41
|
-
z-index: var(--helix-layer-raised);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part="separator"]::before {
|
|
45
|
-
background-color: var(--splitter-color, var(--helix-color-border));
|
|
46
|
-
content: "";
|
|
47
|
-
inline-size: var(--helix-border-thin);
|
|
48
|
-
inset-block: 0;
|
|
49
|
-
inset-inline-start: 50%;
|
|
50
|
-
margin-inline-start: calc(var(--helix-border-thin) / -2);
|
|
51
|
-
position: absolute;
|
|
52
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {display: flex;min-block-size: 0;min-inline-size: 0;position: relative;}:host(:is([orientation="vertical"], [data-axis="vertical"])) {flex-direction: column;}[part="start"] {flex: 0 0 var(--splitter-position, 50%);min-block-size: 0;min-inline-size: 0;overflow: auto;}[part="end"] {flex: 1 1 0;min-block-size: 0;min-inline-size: 0;overflow: auto;}[part="separator"] {background-color: transparent;box-sizing: border-box;cursor: col-resize;flex: none;inline-size: var(--splitter-target, var(--helix-space-xs));margin-inline: calc(var(--splitter-target, var(--helix-space-xs)) / -2);position: relative;touch-action: none;user-select: none;z-index: var(--helix-layer-raised);}[part="separator"]::before {background-color: var(--splitter-color, var(--helix-color-border));content: "";inline-size: var(--helix-border-thin);inset-block: 0;inset-inline-start: 50%;margin-inline-start: calc(var(--helix-border-thin) / -2);position: absolute;transition:
|
|
53
3
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
54
|
-
inline-size var(--helix-duration-fast) var(--helix-easing-standard);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="separator"] {
|
|
58
|
-
block-size: var(--splitter-target, var(--helix-space-xs));
|
|
59
|
-
cursor: row-resize;
|
|
60
|
-
inline-size: auto;
|
|
61
|
-
margin-block: calc(var(--splitter-target, var(--helix-space-xs)) / -2);
|
|
62
|
-
margin-inline: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="separator"]::before {
|
|
66
|
-
block-size: var(--helix-border-thin);
|
|
67
|
-
inline-size: auto;
|
|
68
|
-
inset-block-start: 50%;
|
|
69
|
-
inset-inline: 0;
|
|
70
|
-
margin-block-start: calc(var(--helix-border-thin) / -2);
|
|
71
|
-
transition:
|
|
4
|
+
inline-size var(--helix-duration-fast) var(--helix-easing-standard);}:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="separator"] {block-size: var(--splitter-target, var(--helix-space-xs));cursor: row-resize;inline-size: auto;margin-block: calc(var(--splitter-target, var(--helix-space-xs)) / -2);margin-inline: 0;}:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="separator"]::before {block-size: var(--helix-border-thin);inline-size: auto;inset-block-start: 50%;inset-inline: 0;margin-block-start: calc(var(--helix-border-thin) / -2);transition:
|
|
72
5
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
73
|
-
block-size var(--helix-duration-fast) var(--helix-easing-standard);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
[part="separator"]:hover,
|
|
6
|
+
block-size var(--helix-duration-fast) var(--helix-easing-standard);}[part="separator"]:hover,
|
|
77
7
|
[part="separator"]:focus-visible,
|
|
78
|
-
[part="separator"][data-dragging] {
|
|
79
|
-
z-index: calc(var(--helix-layer-raised) + 1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
[part="separator"][data-flush]::before {
|
|
83
|
-
background-color: transparent;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host(:not([variant="grip"])) [part="separator"]:hover::before,
|
|
8
|
+
[part="separator"][data-dragging] {z-index: calc(var(--helix-layer-raised) + 1);}[part="separator"][data-flush]::before {background-color: transparent;}:host(:not([variant="grip"])) [part="separator"]:hover::before,
|
|
87
9
|
:host(:not([variant="grip"])) [part="separator"]:focus-visible::before,
|
|
88
|
-
:host(:not([variant="grip"])) [part="separator"][data-dragging]::before {
|
|
89
|
-
background-color: var(--splitter-hover-color, var(--helix-color-foreground-muted));
|
|
90
|
-
inline-size: var(--helix-border-thick);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host(:not([variant="grip"])) [part="separator"][data-dragging]::before {
|
|
94
|
-
background-color: var(--splitter-drag-color, var(--helix-color-primary));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
:host(:is([orientation="vertical"], [data-axis="vertical"]):not([variant="grip"]))
|
|
10
|
+
:host(:not([variant="grip"])) [part="separator"][data-dragging]::before {background-color: var(--splitter-hover-color, var(--helix-color-foreground-muted));inline-size: var(--helix-border-thick);}:host(:not([variant="grip"])) [part="separator"][data-dragging]::before {background-color: var(--splitter-drag-color, var(--helix-color-primary));}:host(:is([orientation="vertical"], [data-axis="vertical"]):not([variant="grip"]))
|
|
98
11
|
[part="separator"]:hover::before,
|
|
99
12
|
:host(:is([orientation="vertical"], [data-axis="vertical"]):not([variant="grip"]))
|
|
100
13
|
[part="separator"]:focus-visible::before,
|
|
101
14
|
:host(:is([orientation="vertical"], [data-axis="vertical"]):not([variant="grip"]))
|
|
102
|
-
[part="separator"][data-dragging]::before {
|
|
103
|
-
block-size: var(--helix-border-thick);
|
|
104
|
-
inline-size: auto;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[part="separator"]:focus-visible {
|
|
108
|
-
outline: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[part="separator"]:focus-visible::before {
|
|
112
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
113
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part="corner"] {
|
|
117
|
-
block-size: var(--splitter-corner, var(--helix-space-md));
|
|
118
|
-
|
|
119
|
-
cursor: move;
|
|
120
|
-
inline-size: var(--splitter-corner, var(--helix-space-md));
|
|
121
|
-
inset-block-start: var(--splitter-corner-at);
|
|
122
|
-
inset-inline-start: var(--splitter-position);
|
|
123
|
-
margin-block-start: calc(var(--splitter-corner, var(--helix-space-md)) / -2);
|
|
124
|
-
margin-inline-start: calc(var(--splitter-corner, var(--helix-space-md)) / -2);
|
|
125
|
-
position: absolute;
|
|
126
|
-
touch-action: none;
|
|
127
|
-
user-select: none;
|
|
128
|
-
z-index: calc(var(--helix-layer-raised) + 2);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="corner"] {
|
|
132
|
-
inset-block-start: var(--splitter-position);
|
|
133
|
-
inset-inline-start: var(--splitter-corner-at);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
[part="corner"]:focus-visible {
|
|
137
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
138
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
:host([variant="grip"]) [part="separator"]::after {
|
|
142
|
-
background-color: var(--splitter-grip-color, var(--helix-color-foreground-muted));
|
|
143
|
-
border-radius: var(--helix-radii-full);
|
|
144
|
-
content: "";
|
|
145
|
-
opacity: 0;
|
|
146
|
-
position: absolute;
|
|
147
|
-
transition:
|
|
15
|
+
[part="separator"][data-dragging]::before {block-size: var(--helix-border-thick);inline-size: auto;}[part="separator"]:focus-visible {outline: none;}[part="separator"]:focus-visible::before {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="corner"] {block-size: var(--splitter-corner, var(--helix-space-md));cursor: move;inline-size: var(--splitter-corner, var(--helix-space-md));inset-block-start: var(--splitter-corner-at);inset-inline-start: var(--splitter-position);margin-block-start: calc(var(--splitter-corner, var(--helix-space-md)) / -2);margin-inline-start: calc(var(--splitter-corner, var(--helix-space-md)) / -2);position: absolute;touch-action: none;user-select: none;z-index: calc(var(--helix-layer-raised) + 2);}:host(:is([orientation="vertical"], [data-axis="vertical"])) [part="corner"] {inset-block-start: var(--splitter-position);inset-inline-start: var(--splitter-corner-at);}[part="corner"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host([variant="grip"]) [part="separator"]::after {background-color: var(--splitter-grip-color, var(--helix-color-foreground-muted));border-radius: var(--helix-radii-full);content: "";opacity: 0;position: absolute;transition:
|
|
148
16
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
149
|
-
opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:host([variant="grip"]:not(:is([orientation="vertical"], [data-axis="vertical"])))
|
|
153
|
-
[part="separator"]::after {
|
|
154
|
-
block-size: var(--splitter-grip-length, 2rem);
|
|
155
|
-
inline-size: var(--helix-border-thick);
|
|
156
|
-
inset-block-start: calc(50% - var(--splitter-grip-length, 2rem) / 2);
|
|
157
|
-
inset-inline-start: calc(50% - var(--helix-border-thick) - var(--helix-space-2xs));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
:host([variant="grip"]:is([orientation="vertical"], [data-axis="vertical"]))
|
|
161
|
-
[part="separator"]::after {
|
|
162
|
-
block-size: var(--helix-border-thick);
|
|
163
|
-
inline-size: var(--splitter-grip-length, 2rem);
|
|
164
|
-
inset-block-start: calc(50% - var(--helix-border-thick) - var(--helix-space-2xs));
|
|
165
|
-
inset-inline-start: calc(50% - var(--splitter-grip-length, 2rem) / 2);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
:host([variant="grip"]) [part="separator"]:hover::after,
|
|
17
|
+
opacity var(--helix-duration-fast) var(--helix-easing-standard);}:host([variant="grip"]:not(:is([orientation="vertical"], [data-axis="vertical"])))
|
|
18
|
+
[part="separator"]::after {block-size: var(--splitter-grip-length, 2rem);inline-size: var(--helix-border-thick);inset-block-start: calc(50% - var(--splitter-grip-length, 2rem) / 2);inset-inline-start: calc(50% - var(--helix-border-thick) - var(--helix-space-2xs));}:host([variant="grip"]:is([orientation="vertical"], [data-axis="vertical"]))
|
|
19
|
+
[part="separator"]::after {block-size: var(--helix-border-thick);inline-size: var(--splitter-grip-length, 2rem);inset-block-start: calc(50% - var(--helix-border-thick) - var(--helix-space-2xs));inset-inline-start: calc(50% - var(--splitter-grip-length, 2rem) / 2);}:host([variant="grip"]) [part="separator"]:hover::after,
|
|
169
20
|
:host([variant="grip"]) [part="separator"]:focus-visible::after,
|
|
170
|
-
:host([variant="grip"]) [part="separator"][data-dragging]::after {
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([variant="grip"]) [part="separator"][data-dragging]::after {
|
|
175
|
-
background-color: var(--splitter-drag-color, var(--helix-color-primary));
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
[part="start"][data-dragging],
|
|
179
|
-
[part="end"][data-dragging] {
|
|
180
|
-
pointer-events: none;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@media print {
|
|
184
|
-
:host {
|
|
185
|
-
overflow: visible;
|
|
186
|
-
}
|
|
187
|
-
}`);
|
|
21
|
+
:host([variant="grip"]) [part="separator"][data-dragging]::after {opacity: 1;}:host([variant="grip"]) [part="separator"][data-dragging]::after {background-color: var(--splitter-drag-color, var(--helix-color-primary));}[part="start"][data-dragging],
|
|
22
|
+
[part="end"][data-dragging] {pointer-events: none;}@media print {:host {overflow: visible;}}`);
|
|
@@ -1,37 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_stat-group-gap: var(--stat-group-gap, var(--helix-space-2xl));
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
gap: var(--_stat-group-gap);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:host([columns]) {
|
|
10
|
-
display: grid;
|
|
11
|
-
}
|
|
12
|
-
:host([columns="2"]) {
|
|
13
|
-
grid-template-columns: var(--stat-group-columns, repeat(2, minmax(0, 1fr)));
|
|
14
|
-
}
|
|
15
|
-
:host([columns="3"]) {
|
|
16
|
-
grid-template-columns: var(--stat-group-columns, repeat(3, minmax(0, 1fr)));
|
|
17
|
-
}
|
|
18
|
-
:host([columns="4"]) {
|
|
19
|
-
grid-template-columns: var(--stat-group-columns, repeat(4, minmax(0, 1fr)));
|
|
20
|
-
}
|
|
21
|
-
:host([columns="5"]) {
|
|
22
|
-
grid-template-columns: var(--stat-group-columns, repeat(5, minmax(0, 1fr)));
|
|
23
|
-
}
|
|
24
|
-
:host([columns="6"]) {
|
|
25
|
-
grid-template-columns: var(--stat-group-columns, repeat(6, minmax(0, 1fr)));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host([divided]) {
|
|
29
|
-
column-gap: calc(var(--_stat-group-gap) * 2);
|
|
30
|
-
overflow-x: clip;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([divided]) ::slotted(*) {
|
|
34
|
-
border-inline-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
35
|
-
margin-inline-start: calc(var(--_stat-group-gap) * -1 - var(--helix-border-thin));
|
|
36
|
-
padding-inline-start: var(--_stat-group-gap);
|
|
37
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {--_stat-group-gap: var(--stat-group-gap, var(--helix-space-2xl));display: flex;flex-wrap: wrap;gap: var(--_stat-group-gap);}:host([columns]) {display: grid;}:host([columns="2"]) {grid-template-columns: var(--stat-group-columns, repeat(2, minmax(0, 1fr)));}:host([columns="3"]) {grid-template-columns: var(--stat-group-columns, repeat(3, minmax(0, 1fr)));}:host([columns="4"]) {grid-template-columns: var(--stat-group-columns, repeat(4, minmax(0, 1fr)));}:host([columns="5"]) {grid-template-columns: var(--stat-group-columns, repeat(5, minmax(0, 1fr)));}:host([columns="6"]) {grid-template-columns: var(--stat-group-columns, repeat(6, minmax(0, 1fr)));}:host([divided]) {column-gap: calc(var(--_stat-group-gap) * 2);overflow-x: clip;}:host([divided]) ::slotted(*) {border-inline-start: var(--helix-border-thin) solid var(--helix-color-border);margin-inline-start: calc(var(--_stat-group-gap) * -1 - var(--helix-border-thin));padding-inline-start: var(--_stat-group-gap);}`);
|
|
@@ -1,59 +1,4 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
align-items: baseline;
|
|
7
|
-
display: grid;
|
|
8
|
-
gap: var(--stat-gap, var(--helix-space-2xs));
|
|
9
|
-
grid-template-columns: auto 1fr;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
slot[name="label"]::slotted(*) {
|
|
13
|
-
color: var(--stat-label-color, var(--helix-color-foreground-muted));
|
|
14
|
-
font-size: var(--stat-label-size, calc(var(--helix-text-xs) / var(--helix-text-md) * 1em));
|
|
15
|
-
font-weight: var(--helix-weight-medium);
|
|
16
|
-
grid-column: 1 / -1;
|
|
17
|
-
letter-spacing: var(--helix-tracking-wide);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
slot:not([name]) {
|
|
21
|
-
color: var(--stat-value-color, var(--helix-color-foreground));
|
|
22
|
-
font-family: var(--helix-font-display);
|
|
23
|
-
font-size: var(--stat-value-size, calc(var(--helix-text-3xl) / var(--helix-text-md) * 1em));
|
|
24
|
-
font-weight: var(--helix-weight-semibold);
|
|
25
|
-
letter-spacing: var(--helix-tracking-tight);
|
|
26
|
-
line-height: var(--helix-leading-tight);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
slot[name="unit"]::slotted(*) {
|
|
30
|
-
color: var(--stat-unit-color, var(--helix-color-foreground-muted));
|
|
31
|
-
font-size: var(--stat-unit-size, calc(var(--helix-text-md) / var(--helix-text-md) * 1em));
|
|
32
|
-
font-weight: var(--helix-weight-medium);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([direction="column-reverse"]) slot[name="label"]::slotted(*) {
|
|
36
|
-
order: 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([direction="row"]),
|
|
40
|
-
:host([direction="row-reverse"]) {
|
|
41
|
-
align-items: baseline;
|
|
42
|
-
display: flex;
|
|
43
|
-
gap: var(--stat-gap, var(--helix-space-xs));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([direction="row"]) slot[name="label"]::slotted(*),
|
|
47
|
-
:host([direction="row-reverse"]) slot[name="label"]::slotted(*) {
|
|
48
|
-
grid-column: auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host([direction="row-reverse"]) slot[name="label"] {
|
|
52
|
-
order: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@media print {
|
|
56
|
-
:host {
|
|
57
|
-
print-color-adjust: economy;
|
|
58
|
-
}
|
|
59
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {align-content: start;align-items: baseline;display: grid;gap: var(--stat-gap, var(--helix-space-2xs));grid-template-columns: auto 1fr;}slot[name="label"]::slotted(*) {color: var(--stat-label-color, var(--helix-color-foreground-muted));font-size: var(--stat-label-size, calc(var(--helix-text-xs) / var(--helix-text-md) * 1em));font-weight: var(--helix-weight-medium);grid-column: 1 / -1;letter-spacing: var(--helix-tracking-wide);}slot:not([name]) {color: var(--stat-value-color, var(--helix-color-foreground));font-family: var(--helix-font-display);font-size: var(--stat-value-size, calc(var(--helix-text-3xl) / var(--helix-text-md) * 1em));font-weight: var(--helix-weight-semibold);letter-spacing: var(--helix-tracking-tight);line-height: var(--helix-leading-tight);}slot[name="unit"]::slotted(*) {color: var(--stat-unit-color, var(--helix-color-foreground-muted));font-size: var(--stat-unit-size, calc(var(--helix-text-md) / var(--helix-text-md) * 1em));font-weight: var(--helix-weight-medium);}slot[name="trend"]::slotted(*) {grid-column: 1 / -1;}:host([direction="column-reverse"]) slot[name="label"]::slotted(*) {order: 1;}:host([direction="row"]),
|
|
3
|
+
:host([direction="row-reverse"]) {align-items: baseline;display: flex;gap: var(--stat-gap, var(--helix-space-xs));}:host([direction="row"]) slot[name="label"]::slotted(*),
|
|
4
|
+
:host([direction="row-reverse"]) slot[name="label"]::slotted(*) {grid-column: auto;}:host([direction="row-reverse"]) slot[name="label"] {order: 1;}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -1,91 +1,34 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_steps-m: var(--steps-marker-size, var(--helix-size-icon));
|
|
4
|
-
--_steps-mark-box: var(--_steps-m);
|
|
5
|
-
|
|
6
|
-
--_steps-connector-inset: var(--steps-connector-inset, var(--helix-space-2xs));
|
|
7
|
-
--_steps-columns: minmax(0, 1fr);
|
|
8
|
-
--_steps-marker-column: 1;
|
|
9
|
-
--_steps-marker-justify: center;
|
|
10
|
-
--_steps-body-column: 1;
|
|
11
|
-
--_steps-body-row: 2;
|
|
12
|
-
--_steps-body-align: center;
|
|
13
|
-
--_steps-row-gap: var(--helix-space-xs);
|
|
14
|
-
--_steps-content: none;
|
|
15
|
-
|
|
16
|
-
--_steps-lead-inline-start: calc(var(--steps-gap, var(--helix-space-md)) / -2);
|
|
17
|
-
--_steps-lead-inline-size: calc(
|
|
2
|
+
export const styles = createSheet(`:host {--_steps-m: var(--steps-marker-size, var(--helix-size-icon));--_steps-mark-box: var(--_steps-m);--_steps-connector-inset: var(--steps-connector-inset, var(--helix-space-2xs));--_steps-columns: minmax(0, 1fr);--_steps-marker-column: 1;--_steps-marker-justify: center;--_steps-body-column: 1;--_steps-body-row: 2;--_steps-body-align: center;--_steps-row-gap: var(--helix-space-xs);--_steps-content: none;--_steps-lead-inline-start: calc(var(--steps-gap, var(--helix-space-md)) / -2);--_steps-lead-inline-size: calc(
|
|
18
3
|
50% +
|
|
19
4
|
var(--steps-gap, var(--helix-space-md)) /
|
|
20
5
|
2 -
|
|
21
6
|
var(--_steps-mark-box) /
|
|
22
7
|
2 -
|
|
23
8
|
var(--_steps-connector-inset)
|
|
24
|
-
)
|
|
25
|
-
--_steps-lead-block-start: calc(var(--_steps-mark-box) / 2);
|
|
26
|
-
--_steps-lead-block-size: var(--helix-border-thin);
|
|
27
|
-
--_steps-trail-inline-start: calc(
|
|
9
|
+
);--_steps-lead-block-start: calc(var(--_steps-mark-box) / 2);--_steps-lead-block-size: var(--helix-border-thin);--_steps-trail-inline-start: calc(
|
|
28
10
|
50% +
|
|
29
11
|
var(--_steps-mark-box) /
|
|
30
12
|
2 +
|
|
31
13
|
var(--_steps-connector-inset)
|
|
32
|
-
)
|
|
33
|
-
--_steps-trail-inline-size: calc(
|
|
14
|
+
);--_steps-trail-inline-size: calc(
|
|
34
15
|
50% +
|
|
35
16
|
var(--steps-gap, var(--helix-space-md)) /
|
|
36
17
|
2 -
|
|
37
18
|
var(--_steps-mark-box) /
|
|
38
19
|
2 -
|
|
39
20
|
var(--_steps-connector-inset)
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
--
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
:host(:not([orientation="vertical"])) ::slotted(*) {
|
|
49
|
-
flex: 1 1 0;
|
|
50
|
-
min-inline-size: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([orientation="vertical"]) {
|
|
54
|
-
--_steps-mark-box: var(--helix-size-control-tight);
|
|
55
|
-
--_steps-columns: auto minmax(0, 1fr);
|
|
56
|
-
--_steps-marker-justify: start;
|
|
57
|
-
--_steps-body-column: 2;
|
|
58
|
-
--_steps-body-row: 1;
|
|
59
|
-
--_steps-body-align: start;
|
|
60
|
-
--_steps-row-gap: var(--helix-space-2xs);
|
|
61
|
-
--_steps-content: grid;
|
|
62
|
-
|
|
63
|
-
--_steps-lead-inline-start: calc(var(--_steps-mark-box) / 2);
|
|
64
|
-
--_steps-lead-inline-size: var(--helix-border-thin);
|
|
65
|
-
--_steps-lead-block-start: calc(var(--steps-gap, var(--helix-space-md)) / -2);
|
|
66
|
-
--_steps-lead-block-size: calc(var(--steps-gap, var(--helix-space-md)) / 2);
|
|
67
|
-
--_steps-trail-inline-start: calc(var(--_steps-mark-box) / 2);
|
|
68
|
-
--_steps-trail-inline-size: var(--helix-border-thin);
|
|
69
|
-
--_steps-trail-block-start: var(--_steps-mark-box);
|
|
70
|
-
--_steps-trail-block-size: calc(
|
|
21
|
+
);--_steps-trail-block-start: calc(var(--_steps-mark-box) / 2);--_steps-trail-block-size: var(--helix-border-thin);counter-reset: helix-step;display: flex;flex-wrap: wrap;gap: var(--steps-gap, var(--helix-space-md));}[part="progress"] {background-color: var(--steps-progress-track-color, var(--helix-color-border));background-image: linear-gradient(
|
|
22
|
+
to right,
|
|
23
|
+
var(--steps-progress-color, var(--helix-color-success)) var(--steps-progress, 0%),
|
|
24
|
+
transparent 0
|
|
25
|
+
);block-size: var(--steps-progress-thickness, var(--helix-border-thick));border-radius: var(--helix-radii-full);flex: 0 0 100%;order: 1;}[part="progress"]:dir(rtl) {background-image: linear-gradient(
|
|
26
|
+
to left,
|
|
27
|
+
var(--steps-progress-color, var(--helix-color-success)) var(--steps-progress, 0%),
|
|
28
|
+
transparent 0
|
|
29
|
+
);}:host([orientation="vertical"]) [part="progress"] {flex: none;inline-size: 100%;}:host(:not([orientation="vertical"])) ::slotted(*) {flex: 1 1 0;min-inline-size: 0;}:host([orientation="vertical"]) {--_steps-mark-box: var(--helix-size-control-tight);--_steps-columns: auto minmax(0, 1fr);--_steps-marker-justify: start;--_steps-body-column: 2;--_steps-body-row: 1;--_steps-body-align: start;--_steps-row-gap: var(--helix-space-2xs);--_steps-content: grid;--_steps-lead-inline-start: calc(var(--_steps-mark-box) / 2);--_steps-lead-inline-size: var(--helix-border-thin);--_steps-lead-block-start: calc(var(--steps-gap, var(--helix-space-md)) / -2);--_steps-lead-block-size: calc(var(--steps-gap, var(--helix-space-md)) / 2);--_steps-trail-inline-start: calc(var(--_steps-mark-box) / 2);--_steps-trail-inline-size: var(--helix-border-thin);--_steps-trail-block-start: var(--_steps-mark-box);--_steps-trail-block-size: calc(
|
|
71
30
|
100% -
|
|
72
31
|
var(--_steps-mark-box) +
|
|
73
32
|
var(--steps-gap, var(--helix-space-md)) /
|
|
74
33
|
2
|
|
75
|
-
);
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host([variant="numeric"]) {
|
|
80
|
-
--_steps-mark: none;
|
|
81
|
-
--_steps-count: counter(helix-step);
|
|
82
|
-
--_steps-marker-color: var(--helix-color-foreground-subtle);
|
|
83
|
-
--_steps-ink-complete: var(--helix-color-foreground-muted);
|
|
84
|
-
--_steps-ink-current: var(--helix-color-foreground);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@media print {
|
|
88
|
-
:host {
|
|
89
|
-
print-color-adjust: economy;
|
|
90
|
-
}
|
|
91
|
-
}`);
|
|
34
|
+
);flex-direction: column;}:host([variant="numeric"]) {--_steps-mark: none;--_steps-count: counter(helix-step);--_steps-marker-color: var(--helix-color-foreground-subtle);--_steps-ink-complete: var(--helix-color-foreground-muted);--_steps-ink-current: var(--helix-color-foreground);}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -18,12 +18,17 @@ import type { CSSResultGroup } from 'lit';
|
|
|
18
18
|
* @aliases Stepper, Wizard, Progress steps
|
|
19
19
|
* @documentation https://fusion.dev/helix/components/steps
|
|
20
20
|
*
|
|
21
|
+
* @csspart progress - How far through the sequence is, drawn as a bar under the steps once a stylesheet gives the part a `display`, such as `helix-steps::part(progress) { display: block }`.
|
|
22
|
+
*
|
|
21
23
|
* @cssproperty --steps-complete-color - Color of the mark on a finished step.
|
|
22
24
|
* @cssproperty --steps-connector-color - Color of the line that connects the steps.
|
|
23
25
|
* @cssproperty --steps-connector-inset - Space on either side of a mark, before the connecting line.
|
|
24
26
|
* @cssproperty --steps-current-color - Color of the mark on the current step.
|
|
25
27
|
* @cssproperty --steps-gap - Space between one step and the next.
|
|
26
28
|
* @cssproperty --steps-marker-size - Size of the mark, whether an icon or a digit.
|
|
29
|
+
* @cssproperty --steps-progress-color - Fill of the progress bar, once a page shows the `progress` part.
|
|
30
|
+
* @cssproperty --steps-progress-thickness - Height of the progress bar.
|
|
31
|
+
* @cssproperty --steps-progress-track-color - Color of the progress bar's track.
|
|
27
32
|
*/
|
|
28
33
|
export declare class HelixSteps extends HelixHeadlessSteps {
|
|
29
34
|
static styles: CSSResultGroup;
|