@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,136 +1,7 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_card-inset: var(--card-padding, var(--helix-space-control));
|
|
5
|
-
|
|
6
|
-
--_card-media: var(--card-media-size, 12rem);
|
|
7
|
-
|
|
8
|
-
--_heading-ink: var(--helix-color-foreground);
|
|
9
|
-
background-color: var(--card-background-color, var(--helix-color-surface));
|
|
10
|
-
border: var(--card-border-width, var(--helix-border-surface)) solid
|
|
11
|
-
var(--card-border-color, var(--helix-color-border));
|
|
12
|
-
|
|
13
|
-
border-radius: var(--card-radius, var(--helix-radii-lg));
|
|
14
|
-
|
|
15
|
-
box-shadow: var(--card-shadow, var(--helix-shadow-surface));
|
|
16
|
-
color: var(--helix-color-foreground-muted);
|
|
17
|
-
|
|
18
|
-
align-content: var(--card-align, start);
|
|
19
|
-
display: grid;
|
|
20
|
-
gap: var(--card-gap, var(--helix-space-sm));
|
|
21
|
-
grid-template-columns: minmax(0, 1fr);
|
|
22
|
-
line-height: var(--helix-leading-normal);
|
|
23
|
-
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
padding: var(--_card-inset);
|
|
26
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {--_card-inset: var(--card-padding, var(--helix-space-control));--_card-media: var(--card-media-size, 12rem);--_heading-ink: var(--helix-color-foreground);background-color: var(--card-background-color, var(--helix-color-surface));border: var(--card-border-width, var(--helix-border-surface)) solid
|
|
3
|
+
var(--card-border-color, var(--helix-color-border));border-radius: var(--card-radius, var(--helix-radii-lg));box-shadow: var(--card-shadow, var(--helix-shadow-surface));color: var(--helix-color-foreground-muted);align-content: var(--card-align, start);display: grid;gap: var(--card-gap, var(--helix-space-sm));grid-template-columns: minmax(0, 1fr);line-height: var(--helix-leading-normal);overflow: hidden;padding: var(--_card-inset);transition:
|
|
27
4
|
border-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
28
|
-
box-shadow var(--helix-duration-fast) var(--helix-easing-standard);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([separation="elevated"]) {
|
|
32
|
-
--card-shadow: var(--helix-shadow-md);
|
|
33
|
-
border-color: light-dark(transparent, var(--helix-color-border));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([separation="filled"]) {
|
|
37
|
-
--card-shadow: none;
|
|
38
|
-
border-color: transparent;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([separation="plain"]) {
|
|
42
|
-
--card-shadow: none;
|
|
43
|
-
background-color: transparent;
|
|
44
|
-
border-color: transparent;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
slot[name="media"]::slotted(*) {
|
|
48
|
-
|
|
49
|
-
block-size: var(--card-media-block-size, auto);
|
|
50
|
-
display: block;
|
|
51
|
-
inline-size: calc(100% + var(--_card-inset) * 2);
|
|
52
|
-
margin: calc(var(--_card-inset) * -1);
|
|
53
|
-
margin-block-end: 0;
|
|
54
|
-
object-fit: cover;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([media-placement="end"]) slot[name="media"]::slotted(*) {
|
|
58
|
-
margin-block-end: calc(var(--_card-inset) * -1);
|
|
59
|
-
margin-block-start: 0;
|
|
60
|
-
order: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
slot[name="header"]::slotted(*) {
|
|
64
|
-
color: var(--helix-color-foreground);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
slot[name="footer"]::slotted(*) {
|
|
68
|
-
justify-self: end;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[part="header-row"],
|
|
72
|
-
[part="footer-row"] {
|
|
73
|
-
align-items: center;
|
|
74
|
-
display: flex;
|
|
75
|
-
|
|
76
|
-
flex-wrap: wrap;
|
|
77
|
-
gap: var(--card-gap, var(--helix-space-sm));
|
|
78
|
-
min-inline-size: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[part="header-row"] slot[name="header"]::slotted(*) {
|
|
82
|
-
flex: 1 1 auto;
|
|
83
|
-
min-inline-size: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
slot[name="header-actions"]::slotted(*),
|
|
87
|
-
slot[name="footer-actions"]::slotted(*) {
|
|
88
|
-
flex: none;
|
|
89
|
-
justify-self: end;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
[part="footer-row"] slot[name="footer-actions"]::slotted(*) {
|
|
93
|
-
margin-inline-start: auto;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:host([orientation="horizontal"]) {
|
|
97
|
-
padding-inline-start: calc(var(--_card-media) + var(--_card-inset));
|
|
98
|
-
position: relative;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
:host([orientation="horizontal"]) slot[name="media"]::slotted(*) {
|
|
102
|
-
block-size: 100%;
|
|
103
|
-
inline-size: var(--_card-media);
|
|
104
|
-
inset-block: 0;
|
|
105
|
-
inset-inline-start: 0;
|
|
106
|
-
margin: var(--helix-space-none);
|
|
107
|
-
position: absolute;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@media (prefers-reduced-motion: reduce) {
|
|
111
|
-
:host {
|
|
112
|
-
transition: none;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:host([material="glass"]) {
|
|
117
|
-
backdrop-filter: var(--card-backdrop, var(--helix-material-backdrop));
|
|
118
|
-
background-color: var(--card-background-color, var(--helix-material-translucent));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:host([material="frosted"]) {
|
|
122
|
-
backdrop-filter: var(--card-backdrop, blur(var(--helix-material-blur-lg)));
|
|
123
|
-
background-color: var(--card-background-color, var(--helix-material-translucent-strong));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
:host([material="transparent"]) {
|
|
127
|
-
backdrop-filter: none;
|
|
128
|
-
background-color: transparent;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@media print {
|
|
132
|
-
:host {
|
|
133
|
-
background-color: transparent;
|
|
134
|
-
box-shadow: none;
|
|
135
|
-
}
|
|
136
|
-
}`);
|
|
5
|
+
box-shadow var(--helix-duration-fast) var(--helix-easing-standard);}:host([separation="elevated"]) {--card-shadow: var(--helix-shadow-md);border-color: light-dark(transparent, var(--helix-color-border));}:host([separation="filled"]) {--card-shadow: none;border-color: transparent;}:host([separation="plain"]) {--card-shadow: none;background-color: transparent;border-color: transparent;}slot[name="media"]::slotted(*) {block-size: var(--card-media-block-size, auto);display: block;inline-size: calc(100% + var(--_card-inset) * 2);margin: calc(var(--_card-inset) * -1);margin-block-end: 0;object-fit: cover;}:host([media-placement="end"]) slot[name="media"]::slotted(*) {margin-block-end: calc(var(--_card-inset) * -1);margin-block-start: 0;order: 1;}slot[name="header"]::slotted(*) {color: var(--helix-color-foreground);}slot[name="footer"]::slotted(*) {justify-self: end;}[part="header-row"],
|
|
6
|
+
[part="footer-row"] {align-items: center;display: flex;flex-wrap: wrap;gap: var(--card-gap, var(--helix-space-sm));min-inline-size: 0;}[part="header-row"] slot[name="header"]::slotted(*) {flex: 1 1 auto;min-inline-size: 0;}slot[name="header-actions"]::slotted(*),
|
|
7
|
+
slot[name="footer-actions"]::slotted(*) {flex: none;justify-self: end;}[part="footer-row"] slot[name="footer-actions"]::slotted(*) {margin-inline-start: auto;}:host([orientation="horizontal"]) {padding-inline-start: calc(var(--_card-media) + var(--_card-inset));position: relative;}:host([orientation="horizontal"]) slot[name="media"]::slotted(*) {block-size: 100%;inline-size: var(--_card-media);inset-block: 0;inset-inline-start: 0;margin: var(--helix-space-none);position: absolute;}@media (prefers-reduced-motion: reduce) {:host {transition: none;}}:host([material="glass"]) {backdrop-filter: var(--card-backdrop, var(--helix-material-backdrop));background-color: var(--card-background-color, var(--helix-material-translucent));}:host([material="frosted"]) {backdrop-filter: var(--card-backdrop, blur(var(--helix-material-blur-lg)));background-color: var(--card-background-color, var(--helix-material-translucent-strong));}:host([material="transparent"]) {backdrop-filter: none;background-color: transparent;}@media print {:host {background-color: transparent;box-shadow: none;}}`);
|
|
@@ -33,8 +33,14 @@ import type { CSSResultGroup } from 'lit';
|
|
|
33
33
|
* @slot header-actions - Controls for the whole card at the end of the header's line, such as a menu.
|
|
34
34
|
* @slot media - Image, video, or chart that runs edge to edge, outside the inset.
|
|
35
35
|
*
|
|
36
|
+
* @csspart body - The slot the main content arrives through. A slot draws no box, so it passes inherited properties, such as color and font, to the content; `display: block` gives it one.
|
|
37
|
+
* @csspart footer - The slot the footer arrives through, drawing no box, as `body` does.
|
|
38
|
+
* @csspart footer-actions - The slot the footer's controls arrive through, drawing no box, as `body` does.
|
|
36
39
|
* @csspart footer-row - The line holding `footer` and `footer-actions`, drawn only while `footer-actions` holds something.
|
|
40
|
+
* @csspart header - The slot the header arrives through, drawing no box, as `body` does.
|
|
41
|
+
* @csspart header-actions - The slot the header's controls arrive through, drawing no box, as `body` does.
|
|
37
42
|
* @csspart header-row - The line holding `header` and `header-actions`, drawn only while `header-actions` holds something.
|
|
43
|
+
* @csspart media - The slot the media arrives through, drawing no box, as `body` does.
|
|
38
44
|
*
|
|
39
45
|
* @cssproperty --card-align - How the regions pack when the card is stretched
|
|
40
46
|
* taller than its content. `start` by default, so the slack is at the bottom;
|
|
@@ -1,221 +1,25 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_carousel-bleed: var(--
|
|
4
|
-
--_carousel-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
10
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[part="track"] {
|
|
14
|
-
grid-area: 2 / 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part="controls"],
|
|
18
|
-
[part="indicators"] {
|
|
19
|
-
align-items: center;
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: var(--helix-space-2xs);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part="indicators"] {
|
|
25
|
-
grid-area: 3 / 2;
|
|
26
|
-
justify-self: var(--_carousel-indicators-along);
|
|
27
|
-
padding-block-start: var(--helix-space-sm);
|
|
28
|
-
padding-inline: var(--_carousel-bleed);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[part="controls"] {
|
|
32
|
-
grid-area: 3 / 2;
|
|
33
|
-
justify-self: var(--_carousel-controls-along);
|
|
34
|
-
padding-block-start: var(--helix-space-sm);
|
|
35
|
-
padding-inline: var(--_carousel-bleed);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[part="indicators"] {
|
|
39
|
-
--_carousel-indicators-along: start;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[part="controls"] {
|
|
43
|
-
--_carousel-controls-along: end;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (hover: none) and (pointer: coarse) {
|
|
47
|
-
|
|
48
|
-
:host(:not([controls="always"])) [part="indicators"] {
|
|
49
|
-
--_carousel-indicators-along: center;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([indicator-placement="top"]) [part="indicators"] {
|
|
54
|
-
grid-area: 1 / 2;
|
|
55
|
-
padding-block: var(--helix-space-none) var(--helix-space-sm);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([controls-placement="top"]) [part="controls"] {
|
|
59
|
-
grid-area: 1 / 2;
|
|
60
|
-
padding-block: var(--helix-space-none) var(--helix-space-sm);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([indicator-placement="start"]) [part="indicators"],
|
|
64
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
65
|
-
align-self: var(--_carousel-indicators-along);
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
justify-self: center;
|
|
68
|
-
padding-block-start: var(--helix-space-none);
|
|
69
|
-
padding-inline: var(--helix-space-none);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:host([controls-placement="start"]) [part="controls"],
|
|
73
|
-
:host([controls-placement="end"]) [part="controls"] {
|
|
74
|
-
align-self: var(--_carousel-controls-along);
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
justify-self: center;
|
|
77
|
-
padding-block-start: var(--helix-space-none);
|
|
78
|
-
padding-inline: var(--helix-space-none);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host([indicator-placement="start"]) [part="indicators"],
|
|
82
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
83
|
-
--_carousel-indicators-along: center;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host([controls-placement="start"]) [part="controls"],
|
|
2
|
+
export const styles = createSheet(`:host {--_carousel-bleed: var(--carousel-bleed, var(--helix-space-md));--_carousel-gap: var(--carousel-gap, var(--helix-space-md));}:host {display: grid;grid-template-columns: auto minmax(0, 1fr) auto;grid-template-rows: auto minmax(0, 1fr) auto;}[part="track"] {grid-area: 2 / 2;}[part="controls"],
|
|
3
|
+
[part="indicators"] {align-items: center;display: flex;gap: var(--helix-space-2xs);}[part="indicators"] {grid-area: 3 / 2;justify-self: var(--_carousel-indicators-along);padding-block-start: var(--helix-space-sm);padding-inline: var(--_carousel-bleed);}[part="controls"] {grid-area: 3 / 2;justify-self: var(--_carousel-controls-along);padding-block-start: var(--helix-space-sm);padding-inline: var(--_carousel-bleed);}[part="indicators"] {--_carousel-indicators-along: start;}[part="controls"] {--_carousel-controls-along: end;}@media (hover: none) and (pointer: coarse) {:host(:not([controls="always"])) [part="indicators"] {--_carousel-indicators-along: center;}}:host([indicator-placement="top"]) [part="indicators"] {grid-area: 1 / 2;padding-block: var(--helix-space-none) var(--helix-space-sm);}:host([controls-placement="top"]) [part="controls"] {grid-area: 1 / 2;padding-block: var(--helix-space-none) var(--helix-space-sm);}:host([indicator-placement="start"]) [part="indicators"],
|
|
4
|
+
:host([indicator-placement="end"]) [part="indicators"] {align-self: var(--_carousel-indicators-along);flex-direction: column;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);}:host([controls-placement="start"]) [part="controls"],
|
|
5
|
+
:host([controls-placement="end"]) [part="controls"] {align-self: var(--_carousel-controls-along);flex-direction: column;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);}:host([indicator-placement="start"]) [part="indicators"],
|
|
6
|
+
:host([indicator-placement="end"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([controls-placement="start"]) [part="controls"],
|
|
87
7
|
:host([controls-placement="end"]) [part="controls"],
|
|
88
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
89
|
-
--_carousel-controls-along: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
93
|
-
--_carousel-indicators-along: center;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:host([indicator-align="start"]) [part="indicators"] {
|
|
97
|
-
--_carousel-indicators-along: start;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:host([indicator-align="center"]) [part="indicators"] {
|
|
101
|
-
--_carousel-indicators-along: center;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host([indicator-align="end"]) [part="indicators"] {
|
|
105
|
-
--_carousel-indicators-along: end;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host([controls-align="start"]) [part="controls"] {
|
|
109
|
-
--_carousel-controls-along: start;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:host([controls-align="center"]) [part="controls"] {
|
|
113
|
-
--_carousel-controls-along: center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:host([controls-align="end"]) [part="controls"] {
|
|
117
|
-
--_carousel-controls-along: end;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
:host([indicator-placement="start"]) [part="indicators"] {
|
|
121
|
-
grid-area: 2 / 1;
|
|
122
|
-
padding-inline-end: var(--helix-space-sm);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:host([controls-placement="start"]) [part="controls"] {
|
|
126
|
-
grid-area: 2 / 1;
|
|
127
|
-
padding-inline-end: var(--helix-space-sm);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
131
|
-
grid-area: 2 / 3;
|
|
132
|
-
padding-inline-start: var(--helix-space-sm);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([controls-placement="end"]) [part="controls"] {
|
|
136
|
-
grid-area: 2 / 3;
|
|
137
|
-
padding-inline-start: var(--helix-space-sm);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
[part="rotation"],
|
|
8
|
+
:host([controls-placement="overlay"]) [part="controls"] {--_carousel-controls-along: center;}:host([indicator-placement="overlay"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([indicator-align="start"]) [part="indicators"] {--_carousel-indicators-along: start;}:host([indicator-align="center"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([indicator-align="end"]) [part="indicators"] {--_carousel-indicators-along: end;}:host([controls-align="start"]) [part="controls"] {--_carousel-controls-along: start;}:host([controls-align="center"]) [part="controls"] {--_carousel-controls-along: center;}:host([controls-align="end"]) [part="controls"] {--_carousel-controls-along: end;}:host([indicator-placement="start"]) [part="indicators"] {grid-area: 2 / 1;padding-inline-end: var(--helix-space-sm);}:host([controls-placement="start"]) [part="controls"] {grid-area: 2 / 1;padding-inline-end: var(--helix-space-sm);}:host([indicator-placement="end"]) [part="indicators"] {grid-area: 2 / 3;padding-inline-start: var(--helix-space-sm);}:host([controls-placement="end"]) [part="controls"] {grid-area: 2 / 3;padding-inline-start: var(--helix-space-sm);}[part="rotation"],
|
|
141
9
|
[part="previous"],
|
|
142
|
-
[part="next"] {
|
|
143
|
-
all: unset;
|
|
144
|
-
|
|
145
|
-
box-sizing: border-box;
|
|
146
|
-
align-items: center;
|
|
147
|
-
block-size: var(--helix-size-control-tight);
|
|
148
|
-
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
149
|
-
border-radius: var(--helix-radii-sm);
|
|
150
|
-
color: var(--helix-color-foreground-muted);
|
|
151
|
-
cursor: pointer;
|
|
152
|
-
display: inline-flex;
|
|
153
|
-
inline-size: var(--helix-size-control-tight);
|
|
154
|
-
justify-content: center;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
[part="rotation"]:hover,
|
|
10
|
+
[part="next"] {all: unset;box-sizing: border-box;align-items: center;block-size: var(--helix-size-control-tight);border: var(--helix-border-thin) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-muted);cursor: pointer;display: inline-flex;inline-size: var(--helix-size-control-tight);justify-content: center;}[part="rotation"]:hover,
|
|
158
11
|
[part="previous"]:hover,
|
|
159
|
-
[part="next"]:hover {
|
|
160
|
-
background-color: var(--helix-color-surface-sunken);
|
|
161
|
-
color: var(--helix-color-foreground);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
[part="rotation"]:focus-visible,
|
|
12
|
+
[part="next"]:hover {background-color: var(--helix-color-surface-sunken);color: var(--helix-color-foreground);}[part="rotation"]:focus-visible,
|
|
165
13
|
[part="previous"]:focus-visible,
|
|
166
|
-
[part="next"]:focus-visible {
|
|
167
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
168
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
[part="rotation"] svg,
|
|
14
|
+
[part="next"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="rotation"] svg,
|
|
172
15
|
[part="previous"] svg,
|
|
173
16
|
[part="next"] svg,
|
|
174
17
|
::slotted([slot="previous-icon"]),
|
|
175
|
-
::slotted([slot="next-icon"]) {
|
|
176
|
-
|
|
177
|
-
inline-size: 1em;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
181
|
-
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {
|
|
182
|
-
scale: -1 1;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host([mouse-drag]) [part="track"] {
|
|
186
|
-
cursor: grab;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:host(:state(dragging)) [part="track"] {
|
|
190
|
-
cursor: grabbing;
|
|
191
|
-
user-select: none;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[part="track"] {
|
|
195
|
-
|
|
196
|
-
--_carousel-share: calc(
|
|
18
|
+
::slotted([slot="next-icon"]) {block-size: 1em;inline-size: 1em;}:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
19
|
+
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {scale: -1 1;}:host([mouse-drag]) [part="track"] {cursor: grab;}:host(:state(dragging)) [part="track"] {cursor: grabbing;user-select: none;}[part="track"] {--_carousel-share: calc(
|
|
197
20
|
(100% - (var(--carousel-per-view, 1) - 1) * var(--_carousel-gap)) /
|
|
198
21
|
var(--carousel-per-view, 1)
|
|
199
|
-
);
|
|
200
|
-
--carousel-gap: var(--_carousel-gap);
|
|
201
|
-
--carousel-pane: calc(round(var(--_carousel-share) - 0.015625px, 0.03125px) + 0.015625px);
|
|
202
|
-
display: flex;
|
|
203
|
-
gap: var(--_carousel-gap);
|
|
204
|
-
overflow-x: auto;
|
|
205
|
-
|
|
206
|
-
padding-block: var(--helix-space-md);
|
|
207
|
-
padding-inline: var(--_carousel-bleed);
|
|
208
|
-
scroll-padding-inline: var(--_carousel-bleed);
|
|
209
|
-
scroll-snap-type: x mandatory;
|
|
210
|
-
scrollbar-width: none;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
[part="track"]::-webkit-scrollbar {
|
|
214
|
-
display: none;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:host([per-view="auto"]:not([orientation="vertical"])) [part="track"] {
|
|
218
|
-
--carousel-per-view: max(
|
|
22
|
+
);--carousel-gap: var(--_carousel-gap);--carousel-pane: calc(round(var(--_carousel-share) - 0.015625px, 0.03125px) + 0.015625px);display: flex;gap: var(--_carousel-gap);overflow-x: auto;padding-block: var(--helix-space-md);padding-inline: var(--_carousel-bleed);scroll-padding-inline: var(--_carousel-bleed);scroll-snap-type: x mandatory;scrollbar-width: none;}[part="track"]::-webkit-scrollbar {display: none;}:host([per-view="auto"]:not([orientation="vertical"])) [part="track"] {--carousel-per-view: max(
|
|
219
23
|
1,
|
|
220
24
|
round(
|
|
221
25
|
down,
|
|
@@ -225,185 +29,15 @@ calc(
|
|
|
225
29
|
),
|
|
226
30
|
1
|
|
227
31
|
)
|
|
228
|
-
);
|
|
229
|
-
container-type: inline-size;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host([orientation="vertical"]) [part="track"] {
|
|
233
|
-
block-size: var(--carousel-block-size, 20rem);
|
|
234
|
-
flex-direction: column;
|
|
235
|
-
overflow-x: hidden;
|
|
236
|
-
overflow-y: auto;
|
|
237
|
-
padding-block: var(--_carousel-bleed);
|
|
238
|
-
scroll-padding-block: var(--_carousel-bleed);
|
|
239
|
-
scroll-snap-type: y mandatory;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
[part="slide"] {
|
|
243
|
-
display: flex;
|
|
244
|
-
flex: 0 0 var(--carousel-pane);
|
|
245
|
-
margin-inline-end: var(--carousel-run-end, 0px);
|
|
246
|
-
scroll-snap-align: start;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
:host([per-view="auto"]:not([orientation="vertical"])) [part="slide"] {
|
|
250
|
-
flex-grow: 1;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
[part="slide"] ::slotted(*) {
|
|
254
|
-
flex: 1 1 0;
|
|
255
|
-
min-block-size: 0;
|
|
256
|
-
min-inline-size: 0;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
:host([orientation="vertical"]) [part="slide"] {
|
|
260
|
-
flex-direction: column;
|
|
261
|
-
flex: 0 0 var(--_carousel-share);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
[part~="indicator"] {
|
|
265
|
-
|
|
266
|
-
--_carousel-indicator-motion: var(--helix-duration-slow) var(--helix-easing-emphasized);
|
|
267
|
-
all: unset;
|
|
268
|
-
background-color: var(--helix-color-border);
|
|
269
|
-
block-size: var(--helix-space-xs);
|
|
270
|
-
border-radius: var(--helix-radii-full);
|
|
271
|
-
box-sizing: border-box;
|
|
272
|
-
cursor: pointer;
|
|
273
|
-
inline-size: var(--helix-space-xs);
|
|
274
|
-
transition:
|
|
32
|
+
);container-type: inline-size;}:host([orientation="vertical"]) [part="track"] {block-size: var(--carousel-block-size, 20rem);flex-direction: column;overflow-x: hidden;overflow-y: auto;padding-block: var(--_carousel-bleed);scroll-padding-block: var(--_carousel-bleed);scroll-snap-type: y mandatory;}[part="slide"] {display: flex;flex: 0 0 var(--carousel-pane);margin-inline-end: var(--carousel-run-end, 0px);scroll-snap-align: start;}:host([per-view="auto"]:not([orientation="vertical"])) [part="slide"] {flex-grow: 1;}[part="slide"] ::slotted(*) {flex: 1 1 0;min-block-size: 0;min-inline-size: 0;}:host([orientation="vertical"]) [part="slide"] {flex-direction: column;flex: 0 0 var(--_carousel-share);}[part~="indicator"] {--_carousel-indicator-motion: var(--helix-duration-slow) var(--helix-easing-emphasized);all: unset;background-color: var(--helix-color-border);block-size: var(--helix-space-xs);border-radius: var(--helix-radii-full);box-sizing: border-box;cursor: pointer;inline-size: var(--helix-space-xs);transition:
|
|
275
33
|
background-color var(--_carousel-indicator-motion),
|
|
276
|
-
inline-size var(--_carousel-indicator-motion);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
[part~="indicator"][data-current] {
|
|
280
|
-
background-color: var(--helix-color-primary);
|
|
281
|
-
inline-size: var(--helix-space-lg);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
:host([indicator-placement="start"]) [part~="indicator"],
|
|
285
|
-
:host([indicator-placement="end"]) [part~="indicator"] {
|
|
286
|
-
transition:
|
|
34
|
+
inline-size var(--_carousel-indicator-motion);}[part~="indicator"][data-current] {background-color: var(--helix-color-primary);inline-size: var(--helix-space-lg);}:host([indicator-placement="start"]) [part~="indicator"],
|
|
35
|
+
:host([indicator-placement="end"]) [part~="indicator"] {transition:
|
|
287
36
|
background-color var(--_carousel-indicator-motion),
|
|
288
|
-
block-size var(--_carousel-indicator-motion);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
:host([indicator-placement="start"]) [part~="indicator"][data-current],
|
|
292
|
-
:host([indicator-placement="end"]) [part~="indicator"][data-current] {
|
|
293
|
-
block-size: var(--helix-space-lg);
|
|
294
|
-
inline-size: var(--helix-space-xs);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
[part~="indicator"]:hover {
|
|
298
|
-
background-color: var(--helix-color-foreground-muted);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
[part~="indicator"]:focus-visible {
|
|
302
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
303
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
307
|
-
grid-area: 2 / 2;
|
|
308
|
-
justify-self: stretch;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
312
|
-
align-items: var(--_carousel-controls-along);
|
|
313
|
-
|
|
314
|
-
justify-content: flex-start;
|
|
315
|
-
padding-block-start: var(--helix-space-none);
|
|
316
|
-
|
|
317
|
-
padding-inline: calc(var(--_carousel-bleed) + var(--helix-space-md));
|
|
318
|
-
pointer-events: none;
|
|
319
|
-
z-index: var(--helix-layer-raised);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
:host([controls-placement="overlay"]) [part="previous"],
|
|
37
|
+
block-size var(--_carousel-indicator-motion);}:host([indicator-placement="start"]) [part~="indicator"][data-current],
|
|
38
|
+
:host([indicator-placement="end"]) [part~="indicator"][data-current] {block-size: var(--helix-space-lg);inline-size: var(--helix-space-xs);}[part~="indicator"]:hover {background-color: var(--helix-color-foreground-muted);}[part~="indicator"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host([controls-placement="overlay"]) [part="controls"] {grid-area: 2 / 2;justify-self: stretch;}:host([controls-placement="overlay"]) [part="controls"] {align-items: var(--_carousel-controls-along);justify-content: flex-start;padding-block-start: var(--helix-space-none);padding-inline: calc(var(--_carousel-bleed) + var(--helix-space-md));pointer-events: none;z-index: var(--helix-layer-raised);}:host([controls-placement="overlay"]) [part="previous"],
|
|
323
39
|
:host([controls-placement="overlay"]) [part="next"],
|
|
324
|
-
:host([controls-placement="overlay"]) [part="rotation"] {
|
|
325
|
-
background-color: var(--helix-color-surface-overlay);
|
|
326
|
-
border-color: transparent;
|
|
327
|
-
box-shadow: var(--helix-shadow-md);
|
|
328
|
-
pointer-events: auto;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
332
|
-
align-self: end;
|
|
333
|
-
grid-area: 2 / 2;
|
|
334
|
-
z-index: var(--helix-layer-raised);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
338
|
-
background-color: var(--helix-color-surface-overlay);
|
|
339
|
-
border-radius: var(--helix-radii-full);
|
|
340
|
-
box-shadow: var(--helix-shadow-md);
|
|
341
|
-
margin-block-end: calc(var(--_carousel-bleed) + var(--helix-space-md));
|
|
342
|
-
padding-block: var(--helix-space-2xs);
|
|
343
|
-
padding-inline: var(--helix-space-xs);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
:host([indicator-placement="overlay"]) [part~="indicator"] {
|
|
347
|
-
background-color: var(--helix-color-foreground-muted);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
:host([indicator-placement="overlay"]) [part~="indicator"][data-current] {
|
|
351
|
-
background-color: var(--helix-color-primary);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
:host([controls-placement="overlay"]) [part="next"] {
|
|
355
|
-
margin-inline-start: auto;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
:host([controls-placement="overlay"]) [part="rotation"] {
|
|
359
|
-
order: 1;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part="indicators"] {
|
|
363
|
-
align-self: var(--_carousel-indicators-along);
|
|
364
|
-
flex-direction: column;
|
|
365
|
-
grid-area: 2 / 3;
|
|
366
|
-
justify-self: center;
|
|
367
|
-
padding-block-start: var(--helix-space-none);
|
|
368
|
-
padding-inline: var(--helix-space-none);
|
|
369
|
-
padding-inline-start: var(--helix-space-sm);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
:host([orientation="vertical"]:not([controls-placement])) [part="controls"] {
|
|
373
|
-
align-self: var(--_carousel-controls-along);
|
|
374
|
-
flex-direction: column;
|
|
375
|
-
grid-area: 2 / 3;
|
|
376
|
-
justify-self: center;
|
|
377
|
-
padding-block-start: var(--helix-space-none);
|
|
378
|
-
padding-inline: var(--helix-space-none);
|
|
379
|
-
padding-inline-start: var(--helix-space-sm);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"] {
|
|
383
|
-
transition:
|
|
40
|
+
:host([controls-placement="overlay"]) [part="rotation"] {background-color: var(--helix-color-surface-overlay);border-color: transparent;box-shadow: var(--helix-shadow-md);pointer-events: auto;}:host([indicator-placement="overlay"]) [part="indicators"] {align-self: end;grid-area: 2 / 2;z-index: var(--helix-layer-raised);}:host([indicator-placement="overlay"]) [part="indicators"] {background-color: var(--helix-color-surface-overlay);border-radius: var(--helix-radii-full);box-shadow: var(--helix-shadow-md);margin-block-end: calc(var(--_carousel-bleed) + var(--helix-space-md));padding-block: var(--helix-space-2xs);padding-inline: var(--helix-space-xs);}:host([indicator-placement="overlay"]) [part~="indicator"] {background-color: var(--helix-color-foreground-muted);}:host([indicator-placement="overlay"]) [part~="indicator"][data-current] {background-color: var(--helix-color-primary);}:host([controls-placement="overlay"]) [part="next"] {margin-inline-start: auto;}:host([controls-placement="overlay"]) [part="rotation"] {order: 1;}:host([orientation="vertical"]:not([indicator-placement])) [part="indicators"] {align-self: var(--_carousel-indicators-along);flex-direction: column;grid-area: 2 / 3;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);padding-inline-start: var(--helix-space-sm);}:host([orientation="vertical"]:not([controls-placement])) [part="controls"] {align-self: var(--_carousel-controls-along);flex-direction: column;grid-area: 2 / 3;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);padding-inline-start: var(--helix-space-sm);}:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"] {transition:
|
|
384
41
|
background-color var(--_carousel-indicator-motion),
|
|
385
|
-
block-size var(--_carousel-indicator-motion);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"][data-current] {
|
|
389
|
-
block-size: var(--helix-space-lg);
|
|
390
|
-
inline-size: var(--helix-space-xs);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
@media print {
|
|
394
|
-
:host {
|
|
395
|
-
box-shadow: none;
|
|
396
|
-
overflow: visible;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
@media (hover: none) and (pointer: coarse) {
|
|
401
|
-
:host(:not([controls="always"])) [part="previous"],
|
|
402
|
-
:host(:not([controls="always"])) [part="next"] {
|
|
403
|
-
display: none;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
:host(:not([controls="always"]):not([autoplay])) [part="controls"] {
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
}`);
|
|
42
|
+
block-size var(--_carousel-indicator-motion);}:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"][data-current] {block-size: var(--helix-space-lg);inline-size: var(--helix-space-xs);}@media print {:host {box-shadow: none;overflow: visible;}}@media (hover: none) and (pointer: coarse) {:host(:not([controls="always"])) [part="previous"],
|
|
43
|
+
:host(:not([controls="always"])) [part="next"] {display: none;}:host(:not([controls="always"]):not([autoplay])) [part="controls"] {display: none;}}`);
|