@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,302 +1,18 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
position: relative;
|
|
5
|
-
gap: var(--bar-chart-gap, var(--helix-space-2xs));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
[part="plot"] {
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
block-size: var(--bar-chart-block-size, 12em);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part="plot"] svg {
|
|
15
|
-
block-size: 100%;
|
|
16
|
-
inline-size: 100%;
|
|
17
|
-
|
|
18
|
-
overflow: visible;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="baseline"] {
|
|
22
|
-
stroke: var(--helix-color-border);
|
|
23
|
-
stroke-width: var(--helix-border-thin);
|
|
24
|
-
vector-effect: non-scaling-stroke;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="bar"] {
|
|
28
|
-
--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;
|
|
29
|
-
--_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;
|
|
30
|
-
clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));
|
|
31
|
-
fill: var(--_bar-chart-series);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([orientation="horizontal"]) [part="bar"] {
|
|
35
|
-
--_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;
|
|
36
|
-
--_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part="labels"] {
|
|
40
|
-
display: grid;
|
|
41
|
-
grid-auto-columns: 1fr;
|
|
42
|
-
grid-auto-flow: column;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
[part="label"] {
|
|
46
|
-
color: var(--helix-color-foreground-muted);
|
|
47
|
-
font-size: var(--helix-text-xs);
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
text-align: center;
|
|
50
|
-
text-overflow: ellipsis;
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:host([orientation="horizontal"]) {
|
|
55
|
-
grid-template-columns: auto 1fr;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([orientation="horizontal"]) [part="labels"] {
|
|
59
|
-
grid-column: 1;
|
|
60
|
-
grid-row: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([orientation="horizontal"]) [part="plot"] {
|
|
64
|
-
grid-column: 2;
|
|
65
|
-
grid-row: 1;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host([orientation="horizontal"]) [part="labels"] {
|
|
69
|
-
grid-auto-columns: auto;
|
|
70
|
-
grid-auto-flow: row;
|
|
71
|
-
grid-auto-rows: 1fr;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:host([orientation="horizontal"]) [part="label"] {
|
|
75
|
-
align-self: center;
|
|
76
|
-
text-align: end;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[part="bar"],
|
|
80
|
-
[part="line"] {
|
|
81
|
-
--_bar-chart-series: var(--chart-series);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {
|
|
85
|
-
opacity: 0.45;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
[part~="group"] {
|
|
89
|
-
transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
[part="bar"] {
|
|
93
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {display: grid;position: relative;gap: var(--bar-chart-gap, var(--helix-space-2xs));}[part="plot"] {position: relative;block-size: var(--bar-chart-block-size, 12em);}[part="plot"] svg {block-size: 100%;inline-size: 100%;overflow: visible;}[part="baseline"] {stroke: var(--helix-color-border);stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke;}[part="bar"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;--_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));fill: var(--_bar-chart-series);}:host([orientation="horizontal"]) [part="bar"] {--_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;--_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2);}[part="labels"] {display: grid;grid-auto-columns: 1fr;grid-auto-flow: column;}[part="label"] {color: var(--helix-color-foreground-muted);font-size: var(--helix-text-xs);overflow: hidden;text-align: center;text-overflow: ellipsis;white-space: nowrap;}:host([orientation="horizontal"]) {grid-template-columns: auto 1fr;}:host([orientation="horizontal"]) [part="labels"] {grid-column: 1;grid-row: 1;}:host([orientation="horizontal"]) [part="plot"] {grid-column: 2;grid-row: 1;}:host([orientation="horizontal"]) [part="labels"] {grid-auto-columns: auto;grid-auto-flow: row;grid-auto-rows: 1fr;}:host([orientation="horizontal"]) [part="label"] {align-self: center;text-align: end;}[part="bar"],
|
|
3
|
+
[part="line"] {--_bar-chart-series: var(--chart-series);}[part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {opacity: 0.45;}[part~="group"] {transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate);}[part="bar"] {transition:
|
|
94
4
|
height var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
95
5
|
width var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
96
6
|
x var(--helix-duration-normal) var(--helix-easing-decelerate),
|
|
97
|
-
y var(--helix-duration-normal) var(--helix-easing-decelerate);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@starting-style {
|
|
101
|
-
:host(:not([orientation="horizontal"])) [part="bar"] {
|
|
102
|
-
height: 0;
|
|
103
|
-
y: 100;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host([orientation="horizontal"]) [part="bar"] {
|
|
107
|
-
width: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[part="plot"] {
|
|
112
|
-
cursor: crosshair;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
[part="gridline"] {
|
|
116
|
-
stroke: var(--bar-chart-gridline-color, var(--helix-color-border));
|
|
117
|
-
stroke-width: var(--helix-border-thin);
|
|
118
|
-
vector-effect: non-scaling-stroke;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
[part="band"] {
|
|
122
|
-
fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
[part="line"] {
|
|
126
|
-
fill: none;
|
|
127
|
-
stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));
|
|
128
|
-
stroke-linecap: round;
|
|
129
|
-
stroke-linejoin: round;
|
|
130
|
-
|
|
131
|
-
stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));
|
|
132
|
-
vector-effect: non-scaling-stroke;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([secondary]) {
|
|
136
|
-
grid-template-columns: auto 1fr auto;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
:host([secondary]) [part="axis"][data-axis="primary"] {
|
|
140
|
-
grid-column: 1;
|
|
141
|
-
grid-row: 1;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
:host([secondary]) [part="plot"] {
|
|
145
|
-
grid-column: 2;
|
|
146
|
-
grid-row: 1;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
[part="axis"][data-axis="secondary"] {
|
|
150
|
-
--_bar-chart-axis-ink: color-mix(
|
|
7
|
+
y var(--helix-duration-normal) var(--helix-easing-decelerate);}@starting-style {:host(:not([orientation="horizontal"])) [part="bar"] {height: 0;y: 100;}:host([orientation="horizontal"]) [part="bar"] {width: 0;}}[part="plot"] {cursor: crosshair;}[part="gridline"] {stroke: var(--bar-chart-gridline-color, var(--helix-color-border));stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke;}[part="band"] {fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken));}[part="line"] {fill: none;stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));stroke-linecap: round;stroke-linejoin: round;stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));vector-effect: non-scaling-stroke;}:host([secondary]) {grid-template-columns: auto 1fr auto;}:host([secondary]) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1;}:host([secondary]) [part="plot"] {grid-column: 2;grid-row: 1;}[part="axis"][data-axis="secondary"] {--_bar-chart-axis-ink: color-mix(
|
|
151
8
|
in oklab,
|
|
152
9
|
var(--bar-chart-secondary) 45%,
|
|
153
10
|
var(--helix-color-foreground)
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
:host([secondary]) [part="axis"][data-axis="secondary"] {
|
|
160
|
-
grid-column: 3;
|
|
161
|
-
grid-row: 1;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host([secondary]) [part="labels"] {
|
|
165
|
-
grid-column: 2;
|
|
166
|
-
grid-row: 2;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
:host([orientation="horizontal"][secondary]) {
|
|
170
|
-
grid-template-columns: auto 1fr;
|
|
171
|
-
grid-template-rows: auto 1fr auto;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {
|
|
175
|
-
grid-column: 2;
|
|
176
|
-
grid-row: 1;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:host([orientation="horizontal"][secondary]) [part="labels"] {
|
|
180
|
-
grid-column: 1;
|
|
181
|
-
grid-row: 2;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
:host([orientation="horizontal"][secondary]) [part="plot"] {
|
|
185
|
-
grid-column: 2;
|
|
186
|
-
grid-row: 2;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {
|
|
190
|
-
grid-column: 2;
|
|
191
|
-
grid-row: 3;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[part="axis"] {
|
|
195
|
-
color: var(--helix-color-foreground-subtle);
|
|
196
|
-
font-size: var(--helix-text-xs);
|
|
197
|
-
font-variant-numeric: tabular-nums;
|
|
198
|
-
pointer-events: none;
|
|
199
|
-
position: relative;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
:host(:not([orientation="horizontal"])) [part="axis"] {
|
|
203
|
-
inline-size: var(--bar-chart-axis, 3ch);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:host([orientation="horizontal"]) [part="axis"] {
|
|
207
|
-
block-size: 1lh;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
[part="tick"] {
|
|
211
|
-
position: absolute;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
:host(:not([orientation="horizontal"])) [part="tick"] {
|
|
215
|
-
inset-inline-end: 0;
|
|
216
|
-
translate: 0 -50%;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:host([orientation="horizontal"]) [part="tick"] {
|
|
220
|
-
translate: -50% 0;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:host([orientation="horizontal"]:dir(rtl)) [part="tick"] {
|
|
224
|
-
translate: 50% 0;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
:host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {
|
|
228
|
-
inset-inline-end: auto;
|
|
229
|
-
inset-inline-start: 0;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
[part="bar"] {
|
|
233
|
-
fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));
|
|
234
|
-
stroke-opacity: var(--_bar-chart-through, 1);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
[part="bar"][data-emphasis="outlined"],
|
|
238
|
-
:host([emphasis="outlined"]) [part="bar"]:not([data-emphasis]) {
|
|
239
|
-
|
|
240
|
-
--_bar-chart-foot: var(--_bar-chart-base);
|
|
241
|
-
fill: var(--_bar-chart-shade);
|
|
242
|
-
stroke: var(--_bar-chart-series);
|
|
243
|
-
stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));
|
|
244
|
-
vector-effect: non-scaling-stroke;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
[part="bar"][data-emphasis="subtle"],
|
|
248
|
-
:host([emphasis="subtle"]) [part="bar"]:not([data-emphasis]) {
|
|
249
|
-
--_bar-chart-area: 0.2;
|
|
250
|
-
|
|
251
|
-
--_bar-chart-foot: var(--_bar-chart-base);
|
|
252
|
-
stroke: var(--_bar-chart-series);
|
|
253
|
-
stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));
|
|
254
|
-
vector-effect: non-scaling-stroke;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
[part="bar"] {
|
|
258
|
-
--_bar-chart-shade: color-mix(
|
|
11
|
+
);color: var(--_bar-chart-axis-ink, var(--helix-color-foreground-subtle));}:host([secondary]) [part="axis"][data-axis="secondary"] {grid-column: 3;grid-row: 1;}:host([secondary]) [part="labels"] {grid-column: 2;grid-row: 2;}:host([orientation="horizontal"][secondary]) {grid-template-columns: auto 1fr;grid-template-rows: auto 1fr auto;}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {grid-column: 2;grid-row: 1;}:host([orientation="horizontal"][secondary]) [part="labels"] {grid-column: 1;grid-row: 2;}:host([orientation="horizontal"][secondary]) [part="plot"] {grid-column: 2;grid-row: 2;}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 3;}[part="axis"] {color: var(--helix-color-foreground-subtle);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;pointer-events: none;position: relative;}:host(:not([orientation="horizontal"])) [part="axis"] {inline-size: var(--bar-chart-axis, 3ch);}:host([orientation="horizontal"]) [part="axis"] {block-size: 1lh;}[part="tick"] {position: absolute;}:host(:not([orientation="horizontal"])) [part="tick"] {inset-inline-end: 0;translate: 0 -50%;}:host([orientation="horizontal"]) [part="tick"] {translate: -50% 0;}:host([orientation="horizontal"]:dir(rtl)) [part="tick"] {translate: 50% 0;}:host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {inset-inline-end: auto;inset-inline-start: 0;}[part="bar"] {fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));stroke-opacity: var(--_bar-chart-through, 1);}[part="bar"][data-emphasis="outlined"],
|
|
12
|
+
:host([emphasis="outlined"]) [part="bar"]:not([data-emphasis]) {--_bar-chart-foot: var(--_bar-chart-base);fill: var(--_bar-chart-shade);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke;}[part="bar"][data-emphasis="subtle"],
|
|
13
|
+
:host([emphasis="subtle"]) [part="bar"]:not([data-emphasis]) {--_bar-chart-area: 0.2;--_bar-chart-foot: var(--_bar-chart-base);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke;}[part="bar"] {--_bar-chart-shade: color-mix(
|
|
259
14
|
in oklab,
|
|
260
15
|
var(--_bar-chart-series) 60%,
|
|
261
16
|
var(--helix-color-background)
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
[part="bar"][data-material="glass"],
|
|
266
|
-
:host([material="glass"]) [part="bar"]:not([data-material]) {
|
|
267
|
-
--_bar-chart-through: calc(0.62 * var(--helix-material-opacity));
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
:host([material="frosted"]) [part="bar"]:not([data-material]) {
|
|
271
|
-
--_bar-chart-through: calc(0.88 * var(--helix-material-opacity));
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
:host([wash="gradient"]) [part="bar"] {
|
|
275
|
-
fill: var(--chart-bar-wash);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
[part="bar-wash-start"] {
|
|
279
|
-
stop-color: var(--chart-series);
|
|
280
|
-
stop-opacity: calc(1 * var(--helix-material-opacity));
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
[part="bar-wash-end"] {
|
|
284
|
-
stop-color: var(--chart-series);
|
|
285
|
-
stop-opacity: calc(0.35 * var(--helix-material-opacity));
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
@media print {
|
|
289
|
-
:host {
|
|
290
|
-
print-color-adjust: exact;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
[part="summary"] {
|
|
295
|
-
block-size: 1px;
|
|
296
|
-
clip-path: inset(50%);
|
|
297
|
-
inline-size: 1px;
|
|
298
|
-
margin: var(--helix-space-none);
|
|
299
|
-
overflow: hidden;
|
|
300
|
-
position: absolute;
|
|
301
|
-
white-space: nowrap;
|
|
302
|
-
}`);
|
|
17
|
+
);}[part="bar"][data-material="glass"],
|
|
18
|
+
:host([material="glass"]) [part="bar"]:not([data-material]) {--_bar-chart-through: calc(0.62 * var(--helix-material-opacity));}:host([material="frosted"]) [part="bar"]:not([data-material]) {--_bar-chart-through: calc(0.88 * var(--helix-material-opacity));}:host([wash="gradient"]) [part="bar"] {fill: var(--chart-bar-wash);}[part="bar-wash-start"] {stop-color: var(--chart-series);stop-opacity: calc(1 * var(--helix-material-opacity));}[part="bar-wash-end"] {stop-color: var(--chart-series);stop-opacity: calc(0.35 * var(--helix-material-opacity));}@media print {:host {print-color-adjust: exact;}}[part="summary"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap;}`);
|
|
@@ -1,44 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="figure"] {
|
|
7
|
-
margin: var(--helix-space-none);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[part="blockquote"] {
|
|
11
|
-
display: block;
|
|
12
|
-
margin: var(--helix-space-none);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
slot:not([name]) {
|
|
16
|
-
|
|
17
|
-
color: var(--blockquote-color, var(--helix-color-foreground-muted));
|
|
18
|
-
font-family: var(--blockquote-font-family, var(--helix-font-display));
|
|
19
|
-
font-size: var(--blockquote-size, var(--helix-text-xl));
|
|
20
|
-
font-weight: var(--helix-weight-medium);
|
|
21
|
-
letter-spacing: var(--helix-tracking-tight);
|
|
22
|
-
line-height: var(--helix-leading-tight);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
slot:not([name])::slotted(*) {
|
|
26
|
-
margin: var(--helix-space-none);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part="attribution"] {
|
|
30
|
-
color: var(--blockquote-attribution-color, var(--helix-color-foreground-muted));
|
|
31
|
-
font-size: var(--blockquote-attribution-size, var(--helix-text-sm));
|
|
32
|
-
|
|
33
|
-
margin-block-start: var(--blockquote-gap, var(--helix-space-sm));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[part="attribution"][data-empty] {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media print {
|
|
41
|
-
:host {
|
|
42
|
-
print-color-adjust: economy;
|
|
43
|
-
}
|
|
44
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="figure"] {margin: var(--helix-space-none);}[part="blockquote"] {display: block;margin: var(--helix-space-none);}slot:not([name]) {color: var(--blockquote-color, var(--helix-color-foreground-muted));font-family: var(--blockquote-font-family, var(--helix-font-display));font-size: var(--blockquote-size, var(--helix-text-xl));font-weight: var(--blockquote-font-weight, var(--helix-weight-medium));letter-spacing: var(--helix-tracking-tight);line-height: var(--blockquote-line-height, var(--helix-leading-tight));}slot:not([name])::slotted(*) {margin: var(--helix-space-none);}[part="attribution"] {color: var(--blockquote-attribution-color, var(--helix-color-foreground-muted));font-size: var(--blockquote-attribution-size, var(--helix-text-sm));margin-block-start: var(--blockquote-gap, var(--helix-space-sm));}[part="attribution"][data-empty] {display: none;}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -18,7 +18,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
18
18
|
* @cssproperty --blockquote-attribution-size - The font size of the attribution.
|
|
19
19
|
* @cssproperty --blockquote-color - The color of the quoted passage.
|
|
20
20
|
* @cssproperty --blockquote-font-family - The typeface of the quoted passage, the display face by default.
|
|
21
|
+
* @cssproperty --blockquote-font-weight - The weight of the quoted passage, medium by default.
|
|
21
22
|
* @cssproperty --blockquote-gap - The space between the passage and its attribution.
|
|
23
|
+
* @cssproperty --blockquote-line-height - The line height of the quoted passage, the tight leading by default.
|
|
22
24
|
* @cssproperty --blockquote-size - The font size of the quoted passage.
|
|
23
25
|
*/
|
|
24
26
|
export declare class HelixBlockquote extends HelixHeadlessBlockquote {
|
|
@@ -1,107 +1,22 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--icon-button-size: var(
|
|
2
|
+
export const styles = createSheet(`:host {--icon-button-size: var(
|
|
5
3
|
--breadcrumbs-control-size,
|
|
6
4
|
calc(var(--helix-text-control) * var(--helix-leading-normal) + var(--helix-space-2xs) * 2)
|
|
7
|
-
)
|
|
8
|
-
|
|
9
|
-
--button-size: var(
|
|
5
|
+
);--button-size: var(
|
|
10
6
|
--breadcrumbs-control-size,
|
|
11
7
|
calc(var(--helix-text-control) * var(--helix-leading-normal) + var(--helix-space-2xs) * 2)
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
--button-padding-inline: var(--breadcrumbs-control-padding-inline, var(--helix-space-xs));
|
|
15
|
-
|
|
16
|
-
--button-gap: var(--helix-space-2xs);
|
|
17
|
-
|
|
18
|
-
align-items: center;
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
gap: var(--breadcrumbs-gap, var(--helix-space-xs));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[part="separator"] {
|
|
24
|
-
color: var(--breadcrumbs-separator-color, var(--helix-color-foreground-subtle));
|
|
25
|
-
display: block;
|
|
26
|
-
user-select: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part="separator"] svg {
|
|
30
|
-
block-size: 1em;
|
|
31
|
-
inline-size: 1em;
|
|
32
|
-
vertical-align: calc(0.5cap - 0.5em);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host(:first-child) [part="separator"] {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
::slotted(a) {
|
|
40
|
-
background-color: transparent;
|
|
41
|
-
border-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));
|
|
42
|
-
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
43
|
-
transition: background-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host(:first-child) ::slotted(a) {
|
|
47
|
-
margin-inline-start: calc(var(--helix-space-xs) * -1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
::slotted(a:hover) {
|
|
51
|
-
|
|
52
|
-
background-color: var(
|
|
8
|
+
);--button-padding-inline: var(--breadcrumbs-control-padding-inline, var(--helix-space-xs));--button-gap: var(--helix-space-2xs);align-items: center;display: inline-flex;gap: var(--breadcrumbs-gap, var(--helix-space-xs));}[part="separator"] {color: var(--breadcrumbs-separator-color, var(--helix-color-foreground-subtle));display: block;user-select: none;}[part="separator"] svg {block-size: 1em;inline-size: 1em;vertical-align: calc(0.5cap - 0.5em);}:host(:first-child) [part="separator"] {display: none;}::slotted(a) {background-color: transparent;border-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));padding: var(--helix-space-2xs) var(--helix-space-xs);transition: background-color var(--helix-duration-fast) var(--helix-easing-standard);}:host(:first-child) ::slotted(a) {margin-inline-start: calc(var(--helix-space-xs) * -1);}::slotted(a:hover) {background-color: var(
|
|
53
9
|
--breadcrumbs-hover-color,
|
|
54
10
|
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent)
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
::slotted(a:focus-visible) {
|
|
59
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
60
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host {
|
|
64
|
-
font-weight: var(--breadcrumbs-font-weight, var(--helix-weight-medium));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([current]) {
|
|
68
|
-
color: var(--breadcrumbs-current-color, var(--helix-color-foreground));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[part="link"] {
|
|
72
|
-
align-items: center;
|
|
73
|
-
border-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));
|
|
74
|
-
color: var(--breadcrumbs-link-color, var(--helix-color-foreground-muted));
|
|
75
|
-
display: inline-flex;
|
|
76
|
-
gap: var(--helix-space-xs);
|
|
77
|
-
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
78
|
-
text-decoration: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host(:first-child) a[part="link"] {
|
|
82
|
-
margin-inline-start: calc(var(--helix-space-xs) * -1);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host(:not([href])) [part="link"] {
|
|
86
|
-
padding-block: var(--helix-space-none);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host(:not([href]):not([current])) [part="link"] {
|
|
90
|
-
padding-inline: var(--helix-space-none);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
a[part="link"]:hover {
|
|
94
|
-
background-color: var(
|
|
11
|
+
);}::slotted(a:focus-visible) {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host {font-weight: var(--breadcrumbs-font-weight, var(--helix-weight-medium));}:host([current]) {color: var(--breadcrumbs-current-color, var(--helix-color-foreground));}[part="link"] {align-items: center;border-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));color: var(--breadcrumbs-link-color, var(--helix-color-foreground-muted));display: inline-flex;gap: var(--helix-space-xs);padding: var(--helix-space-2xs) var(--helix-space-xs);text-decoration: none;}:host(:first-child) a[part="link"] {margin-inline-start: calc(var(--helix-space-xs) * -1);}:host(:not([href])) [part="link"] {padding-block: var(--helix-space-none);}:host(:not([href]):not([current])) [part="link"] {padding-inline: var(--helix-space-none);}a[part="link"]:hover {background-color: var(
|
|
95
12
|
--breadcrumbs-hover-color,
|
|
96
13
|
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent)
|
|
97
|
-
);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:host(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
:host([hidden]) {
|
|
106
|
-
display: none;
|
|
107
|
-
}`);
|
|
14
|
+
);color: var(--breadcrumbs-current-color, var(--helix-color-foreground));}a[part="link"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host([current]) [part="link"] {color: var(--breadcrumbs-current-color, var(--helix-color-foreground));}:host(:state(end)) [part="link"],
|
|
15
|
+
:host(:state(end)) ::slotted(a) {border-end-end-radius: var(--helix-radii-none);border-start-end-radius: var(--helix-radii-none);padding-inline-end: var(--helix-space-2xs);}:host(:state(end)) slot[name="end"] {--button-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));--button-radius-start: var(--helix-radii-none);--helix-size-focus-offset: calc(var(--helix-size-focus-ring) * -1);--icon-button-background-color-hover: var(
|
|
16
|
+
--breadcrumbs-hover-color,
|
|
17
|
+
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent)
|
|
18
|
+
);--icon-button-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));--icon-size: 1.15em;align-items: center;display: inline-flex;margin-inline-start: calc(var(--breadcrumbs-gap, var(--helix-space-xs)) * -1);}:host(:state(end)) a[part="link"]:focus-visible,
|
|
19
|
+
:host(:state(end)) ::slotted(a:focus-visible) {outline-offset: calc(var(--helix-size-focus-offset) * -1);}:host(:state(end)) [part="link"]:focus-visible,
|
|
20
|
+
:host(:state(end)) ::slotted(a:focus-visible),
|
|
21
|
+
:host(:state(end)) slot[name="end"]:focus-within {position: relative;z-index: var(--helix-layer-raised);}:host(:state(end)) [part="link"]:hover ~ slot[name="end"] {--icon-button-background-color: var(--_breadcrumbs-split-fill, transparent);}:host(:state(end)) [part="link"]:has(~ slot[name="end"]:hover),
|
|
22
|
+
:host(:state(end)) [part="link"]:has(~ slot[name="end"]:hover) ::slotted(a) {background-color: var(--_breadcrumbs-split-fill, transparent);}:host(:state(end)) [part="link"] {position: relative;}:host(:state(end)) [part="link"]::after {background-color: var(--_breadcrumbs-split-rule, transparent);content: "";inline-size: var(--helix-border-thin);inset-block: 20%;inset-inline-end: calc(var(--helix-border-thin) * -1);pointer-events: none;position: absolute;}:host([hidden]) {display: none;}`);
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
font-size: var(--breadcrumbs-font-size, var(--helix-text-sm));
|
|
11
|
-
gap: var(--breadcrumbs-gap, var(--helix-space-xs));
|
|
12
|
-
|
|
13
|
-
list-style: none;
|
|
14
|
-
margin: var(--helix-space-none);
|
|
15
|
-
padding: var(--helix-space-none);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@media print {
|
|
19
|
-
:host {
|
|
20
|
-
print-color-adjust: economy;
|
|
21
|
-
}
|
|
22
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {--_breadcrumbs-split-fill: var(
|
|
3
|
+
--breadcrumbs-split-fill,
|
|
4
|
+
color-mix(in oklab, var(--helix-color-foreground) 4%, transparent)
|
|
5
|
+
);--_breadcrumbs-split-rule: transparent;display: block;}:host([separation="outlined"]) {--_breadcrumbs-split-fill: transparent;--_breadcrumbs-split-rule: var(--breadcrumbs-split-divider-color, var(--helix-color-border));}[part="list"] {align-items: center;display: flex;flex-wrap: wrap;font-size: var(--breadcrumbs-font-size, var(--helix-text-sm));gap: var(--breadcrumbs-gap, var(--helix-space-xs));list-style: none;margin: var(--helix-space-none);padding: var(--helix-space-none);}[part="expand"] {all: unset;border-radius: var(--breadcrumbs-radius, var(--helix-radii-sm));box-sizing: border-box;color: var(--breadcrumbs-link-color, var(--helix-color-foreground-muted));cursor: pointer;line-height: var(--helix-leading-normal);padding: var(--helix-space-2xs) var(--helix-space-xs);}[part="expand"]:hover {background-color: var(
|
|
6
|
+
--breadcrumbs-hover-color,
|
|
7
|
+
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent)
|
|
8
|
+
);color: var(--breadcrumbs-current-color, var(--helix-color-foreground));}[part="expand"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -16,13 +16,31 @@ import '../breadcrumb/breadcrumb.js';
|
|
|
16
16
|
*
|
|
17
17
|
* @slot - The trail's items, in order from root to current page.
|
|
18
18
|
*
|
|
19
|
+
* @csspart expand - The button in the folded crumb that shows the whole trail.
|
|
19
20
|
* @csspart list - The ordered list.
|
|
20
21
|
*
|
|
21
22
|
* @cssproperty --breadcrumbs-font-size - Size of the trail's text.
|
|
22
23
|
* @cssproperty --breadcrumbs-gap - Space between items and separators.
|
|
24
|
+
* @cssproperty --breadcrumbs-split-divider-color - Color of the line between the two halves of a
|
|
25
|
+
* split crumb, under `separation="outlined"`.
|
|
26
|
+
* @cssproperty --breadcrumbs-split-fill - Fill across both halves of a split crumb while one of
|
|
27
|
+
* them is under the pointer, under the default `plain` separation.
|
|
23
28
|
*/
|
|
24
29
|
export declare class HelixBreadcrumbs extends HelixHeadlessBreadcrumbs {
|
|
25
30
|
static tier: string;
|
|
31
|
+
/**
|
|
32
|
+
* How the two halves of a split crumb are told apart. A split crumb is one
|
|
33
|
+
* with a control in its `end` slot, such as a switcher's menu trigger.
|
|
34
|
+
*
|
|
35
|
+
* - `plain` is the default. The halves are text at rest, like every other
|
|
36
|
+
* crumb. While one half is under the pointer, both halves take a light fill
|
|
37
|
+
* and that half takes the full hover fill.
|
|
38
|
+
* - `outlined` draws a hairline between the halves, at rest and under the
|
|
39
|
+
* pointer, the way an outlined surface keeps its edge at rest.
|
|
40
|
+
*
|
|
41
|
+
* The other crumbs look the same under either value.
|
|
42
|
+
*/
|
|
43
|
+
separation?: 'outlined' | 'plain';
|
|
26
44
|
static styles: CSSResultGroup;
|
|
27
45
|
}
|
|
28
46
|
declare global {
|
|
@@ -6,12 +6,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement } from '@fusion.dev/helix-core';
|
|
8
8
|
import { HelixHeadlessBreadcrumbs } from '@fusion.dev/helix-headless/breadcrumbs';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
9
10
|
import { styles } from './breadcrumbs-root.css.js';
|
|
10
11
|
import '../breadcrumb/breadcrumb.js';
|
|
11
12
|
let HelixBreadcrumbs = class HelixBreadcrumbs extends HelixHeadlessBreadcrumbs {
|
|
12
13
|
static { this.tier = 'helix-'; }
|
|
13
14
|
static { this.styles = styles; }
|
|
14
15
|
};
|
|
16
|
+
__decorate([
|
|
17
|
+
property({ reflect: true })
|
|
18
|
+
], HelixBreadcrumbs.prototype, "separation", void 0);
|
|
15
19
|
HelixBreadcrumbs = __decorate([
|
|
16
20
|
customElement('helix-breadcrumbs')
|
|
17
21
|
], HelixBreadcrumbs);
|