@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
|
@@ -12,16 +12,22 @@ import type { CSSResultGroup, TemplateResult } from 'lit';
|
|
|
12
12
|
* `gap` takes a space token name, so spacing stays on the scale. `row-gap`
|
|
13
13
|
* and `column-gap` set one axis each and win over `gap` on theirs.
|
|
14
14
|
*
|
|
15
|
-
* `layout` sets up
|
|
16
|
-
*
|
|
15
|
+
* `layout` sets up a common pattern, and any attribute you also write wins
|
|
16
|
+
* over the pattern's own value:
|
|
17
17
|
*
|
|
18
18
|
* - `cluster`: items in a wrapping row, centered on one line, such as tags.
|
|
19
|
-
* - `split`: the first item at the start
|
|
20
|
-
* as a title and its actions.
|
|
19
|
+
* - `split`: the first item at the start, the last at the end, and any between
|
|
20
|
+
* them spaced evenly, such as a title and its actions. Put several actions
|
|
21
|
+
* in a flex of their own so they stay together at the end. Wraps when there
|
|
22
|
+
* is no room.
|
|
21
23
|
* - `flank` and `flank-end`: a fixed item beside one that takes the rest, such
|
|
22
24
|
* as an icon and its text, or a field and its button. The item that takes
|
|
23
25
|
* the rest stays at least `--flex-flank-min` wide, and the pair stacks once
|
|
24
26
|
* it cannot.
|
|
27
|
+
* - `switch`: the items share a row while the flex is at least
|
|
28
|
+
* `--flex-switch-at` wide, and each takes a line of its own below that, such
|
|
29
|
+
* as cards that stack on a narrow screen. It answers the width the flex is
|
|
30
|
+
* given, wherever it sits, with no breakpoint to maintain.
|
|
25
31
|
*
|
|
26
32
|
* Flex is presentation only, so it has no headless tier.
|
|
27
33
|
*
|
|
@@ -35,6 +41,7 @@ import type { CSSResultGroup, TemplateResult } from 'lit';
|
|
|
35
41
|
*
|
|
36
42
|
* @cssproperty --flex-flank-min - The narrowest the growing item of a `flank` layout gets before the two stack, as a share of the row. Defaults to `50%`.
|
|
37
43
|
* @cssproperty --flex-flank-size - The width of the fixed item of a `flank` layout. Defaults to its own width.
|
|
44
|
+
* @cssproperty --flex-switch-at - The narrowest a `switch` layout keeps its items in one row, below which each takes a line. Defaults to `30rem`.
|
|
38
45
|
*/
|
|
39
46
|
export declare class HelixFlex extends HelixElement {
|
|
40
47
|
/**
|
|
@@ -94,13 +101,17 @@ export declare class HelixFlex extends HelixElement {
|
|
|
94
101
|
*/
|
|
95
102
|
justifyContent?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
96
103
|
/**
|
|
97
|
-
* A common layout pattern: `cluster`, `split`, `flank
|
|
104
|
+
* A common layout pattern: `cluster`, `split`, `flank`, `flank-end` or
|
|
105
|
+
* `switch`.
|
|
98
106
|
*
|
|
99
107
|
* Each sets the wrapping, alignment and spread it needs, and an attribute
|
|
100
|
-
* you write as well wins over it. `
|
|
101
|
-
*
|
|
108
|
+
* you write as well wins over it. `split` spreads the items as
|
|
109
|
+
* `justify-content: space-between` does, so a third item sits midway.
|
|
110
|
+
* `flank` holds the first item at its own width and gives the last one the
|
|
111
|
+
* rest, and `flank-end` does the reverse. `switch` puts the items in one
|
|
112
|
+
* row, or one to a line once the flex is narrower than `--flex-switch-at`.
|
|
102
113
|
*/
|
|
103
|
-
layout?: 'cluster' | 'flank' | 'flank-end' | 'split';
|
|
114
|
+
layout?: 'cluster' | 'flank' | 'flank-end' | 'split' | 'switch';
|
|
104
115
|
/**
|
|
105
116
|
* Space between the lines of a wrapping row, or between the items of a
|
|
106
117
|
* column, named on the space scale. Wins over `gap` down the column.
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: inline;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host([elapsed]) {
|
|
7
|
-
font-variant-numeric: tabular-nums;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media print {
|
|
11
|
-
:host([elapsed]) [part="time"]::after {
|
|
12
|
-
content: " (" attr(datetime) ")";
|
|
13
|
-
}
|
|
14
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: inline;}:host([elapsed]) {font-variant-numeric: tabular-nums;}@media print {:host([elapsed]) [part="time"]::after {content: " (" attr(datetime) ")";}}`);
|
|
@@ -1,453 +1,21 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: contents;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="region"] {
|
|
7
|
-
background-color: var(--graph-background-color, var(--helix-color-surface-sunken));
|
|
8
|
-
block-size: var(--graph-block-size, 32rem);
|
|
9
|
-
border: var(--helix-border-thin) solid var(--graph-border-color, var(--helix-color-border));
|
|
10
|
-
border-radius: var(--helix-radii-sm);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
container-type: inline-size;
|
|
13
|
-
display: grid;
|
|
14
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part="body"] {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: minmax(0, 1fr) var(--graph-panel-size, 18rem);
|
|
22
|
-
min-block-size: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part="stage"] {
|
|
26
|
-
isolation: isolate;
|
|
27
|
-
min-block-size: 0;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
position: relative;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
[part="viewport"] {
|
|
33
|
-
inset: 0;
|
|
34
|
-
position: absolute;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part="viewport"] ::slotted(*) {
|
|
38
|
-
block-size: 100%;
|
|
39
|
-
inline-size: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[part="panel"] {
|
|
43
|
-
background-color: var(--helix-color-surface);
|
|
44
|
-
border-inline-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
45
|
-
color: var(--helix-color-foreground);
|
|
46
|
-
display: grid;
|
|
47
|
-
|
|
48
|
-
grid-template-columns: minmax(0, 1fr);
|
|
49
|
-
grid-template-rows: auto minmax(0, 1fr);
|
|
50
|
-
min-block-size: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@container (inline-size < 40rem) {
|
|
54
|
-
[part="body"] {
|
|
55
|
-
grid-template-columns: minmax(0, 1fr);
|
|
56
|
-
grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[part="panel"] {
|
|
60
|
-
border-block-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
61
|
-
border-inline-start: none;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:host([no-panel]) [part="body"] {
|
|
66
|
-
grid-template-columns: minmax(0, 1fr);
|
|
67
|
-
grid-template-rows: minmax(0, 1fr);
|
|
68
|
-
position: relative;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host([no-panel]) [part="panel"] {
|
|
72
|
-
border: var(--helix-border-floating) solid var(--helix-color-border);
|
|
73
|
-
border-radius: var(--helix-radii-sm);
|
|
74
|
-
box-shadow: var(--helix-shadow-floating);
|
|
75
|
-
inline-size: min(var(--graph-panel-size, 18rem), calc(100% - var(--helix-space-sm) * 2));
|
|
76
|
-
inset-block: var(--helix-space-sm);
|
|
77
|
-
inset-inline-end: var(--helix-space-sm);
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
position: absolute;
|
|
80
|
-
z-index: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:host([no-panel]) [part="panel"][hidden] {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host([no-panel]) [part="body"]:has([part="panel"]:not([hidden])) [part="controls"] {
|
|
88
|
-
inset-inline-end: calc(min(var(--graph-panel-size, 18rem), 100%) + var(--helix-space-sm) * 2);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[part="notes-toggle"] {
|
|
92
|
-
grid-area: notes;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
[part="notes-toggle"] svg {
|
|
96
|
-
block-size: 1em;
|
|
97
|
-
inline-size: 1em;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part="controls"]:has([part="notes-toggle"]):not(:has([part="pan-up"])) {
|
|
101
|
-
grid-template-areas:
|
|
2
|
+
export const styles = createSheet(`:host {display: contents;}[part="region"] {background-color: var(--graph-background-color, var(--helix-color-surface-sunken));block-size: var(--graph-block-size, 32rem);border: var(--helix-border-thin) solid var(--graph-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);box-sizing: border-box;container-type: inline-size;display: grid;grid-template-rows: auto minmax(0, 1fr) auto;overflow: hidden;position: relative;}[part="body"] {display: grid;grid-template-columns: minmax(0, 1fr) var(--graph-panel-size, 18rem);min-block-size: 0;}[part="stage"] {isolation: isolate;min-block-size: 0;overflow: hidden;position: relative;}[part="viewport"] {inset: 0;position: absolute;}[part="viewport"] ::slotted(*) {block-size: 100%;inline-size: 100%;}[part="panel"] {background-color: var(--graph-panel-background-color, var(--helix-color-surface));border-inline-start: var(--helix-border-thin) solid var(--helix-color-border);color: var(--graph-panel-color, var(--helix-color-foreground));display: grid;grid-template-columns: minmax(0, 1fr);grid-template-rows: auto minmax(0, 1fr);min-block-size: 0;}@container (inline-size < 40rem) {[part="body"] {grid-template-columns: minmax(0, 1fr);grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);}[part="panel"] {border-block-start: var(--helix-border-thin) solid var(--helix-color-border);border-inline-start: none;}}:host([no-panel]) [part="body"] {grid-template-columns: minmax(0, 1fr);grid-template-rows: minmax(0, 1fr);position: relative;}:host([no-panel]) [part="panel"] {border: var(--helix-border-floating) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);box-shadow: var(--helix-shadow-floating);inline-size: min(var(--graph-panel-size, 18rem), calc(100% - var(--helix-space-sm) * 2));inset-block: var(--helix-space-sm);inset-inline-end: var(--helix-space-sm);overflow: hidden;position: absolute;z-index: 1;}:host([no-panel]) [part="panel"][hidden] {display: none;}:host([no-panel]) [part="body"]:has([part="panel"]:not([hidden])) [part="controls"] {inset-inline-end: calc(min(var(--graph-panel-size, 18rem), 100%) + var(--helix-space-sm) * 2);}[part="notes-toggle"] {grid-area: notes;}[part="notes-toggle"] svg {block-size: 1em;inline-size: 1em;}[part="controls"]:has([part="notes-toggle"]):not(:has([part="pan-up"])) {grid-template-areas:
|
|
102
3
|
"zoomin"
|
|
103
4
|
"zoomout"
|
|
104
5
|
"notes"
|
|
105
|
-
"full";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[part="controls"]:has([part="notes-toggle"]):has([part="pan-up"]) {
|
|
109
|
-
grid-template-areas:
|
|
6
|
+
"full";}[part="controls"]:has([part="notes-toggle"]):has([part="pan-up"]) {grid-template-areas:
|
|
110
7
|
". up . zoomin"
|
|
111
8
|
"start . end zoomout"
|
|
112
9
|
". down . notes"
|
|
113
|
-
". . . full";
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part="
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
gap: var(--helix-space-2xs);
|
|
120
|
-
inset-block-end: var(--helix-space-sm);
|
|
121
|
-
inset-inline-start: var(--helix-space-sm);
|
|
122
|
-
max-inline-size: calc(100% - var(--helix-space-sm) * 3 - var(--helix-size-control-sm));
|
|
123
|
-
position: absolute;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
:host([controls-placement="bottom-start"]) [part="legend"] {
|
|
127
|
-
inset-inline: auto var(--helix-space-sm);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@container (inline-size < 40rem) {
|
|
131
|
-
[part="legend"] {
|
|
132
|
-
flex-wrap: nowrap;
|
|
133
|
-
inset-block-end: calc(var(--helix-space-sm) - var(--helix-space-2xs));
|
|
134
|
-
inset-inline-start: calc(var(--helix-space-sm) - var(--helix-space-2xs));
|
|
135
|
-
overflow-x: auto;
|
|
136
|
-
padding: var(--helix-space-2xs);
|
|
137
|
-
scrollbar-width: none;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
[part~="legend-item"] {
|
|
142
|
-
align-items: center;
|
|
143
|
-
background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));
|
|
144
|
-
block-size: var(--helix-size-control-tight);
|
|
145
|
-
border: var(--helix-border-floating) solid var(--helix-color-border);
|
|
146
|
-
border-radius: var(--helix-radii-sm);
|
|
147
|
-
box-shadow: var(--helix-shadow-floating);
|
|
148
|
-
color: var(--helix-color-foreground);
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
display: inline-flex;
|
|
151
|
-
font-family: var(--helix-font-sans);
|
|
152
|
-
font-size: var(--helix-text-xs);
|
|
153
|
-
font-weight: var(--helix-weight-medium);
|
|
154
|
-
gap: var(--helix-space-2xs);
|
|
155
|
-
padding-inline: var(--helix-space-xs);
|
|
156
|
-
white-space: nowrap;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
[part~="legend-item"]:focus-visible {
|
|
160
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
161
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
[part~="legend-item"]:nth-child(24n + 1) {
|
|
165
|
-
--_graph-swatch: var(--helix-color-series-1);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
[part~="legend-item"]:nth-child(24n + 2) {
|
|
169
|
-
--_graph-swatch: var(--helix-color-series-2);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
[part~="legend-item"]:nth-child(24n + 3) {
|
|
173
|
-
--_graph-swatch: var(--helix-color-series-3);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
[part~="legend-item"]:nth-child(24n + 4) {
|
|
177
|
-
--_graph-swatch: var(--helix-color-series-4);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
[part~="legend-item"]:nth-child(24n + 5) {
|
|
181
|
-
--_graph-swatch: var(--helix-color-series-5);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
[part~="legend-item"]:nth-child(24n + 6) {
|
|
185
|
-
--_graph-swatch: var(--helix-color-series-6);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
[part~="legend-item"]:nth-child(24n + 7) {
|
|
189
|
-
--_graph-swatch: var(--helix-color-series-7);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
[part~="legend-item"]:nth-child(24n + 8) {
|
|
193
|
-
--_graph-swatch: var(--helix-color-series-8);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
[part~="legend-item"]:nth-child(24n + 9) {
|
|
197
|
-
--_graph-swatch: var(--helix-color-series-9);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
[part~="legend-item"]:nth-child(24n + 10) {
|
|
201
|
-
--_graph-swatch: var(--helix-color-series-10);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
[part~="legend-item"]:nth-child(24n + 11) {
|
|
205
|
-
--_graph-swatch: var(--helix-color-series-11);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
[part~="legend-item"]:nth-child(24n + 12) {
|
|
209
|
-
--_graph-swatch: var(--helix-color-series-12);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
[part~="legend-item"]:nth-child(24n + 13) {
|
|
213
|
-
--_graph-swatch: var(--helix-color-series-13);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
[part~="legend-item"]:nth-child(24n + 14) {
|
|
217
|
-
--_graph-swatch: var(--helix-color-series-14);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
[part~="legend-item"]:nth-child(24n + 15) {
|
|
221
|
-
--_graph-swatch: var(--helix-color-series-15);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
[part~="legend-item"]:nth-child(24n + 16) {
|
|
225
|
-
--_graph-swatch: var(--helix-color-series-16);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
[part~="legend-item"]:nth-child(24n + 17) {
|
|
229
|
-
--_graph-swatch: var(--helix-color-series-17);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
[part~="legend-item"]:nth-child(24n + 18) {
|
|
233
|
-
--_graph-swatch: var(--helix-color-series-18);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
[part~="legend-item"]:nth-child(24n + 19) {
|
|
237
|
-
--_graph-swatch: var(--helix-color-series-19);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
[part~="legend-item"]:nth-child(24n + 20) {
|
|
241
|
-
--_graph-swatch: var(--helix-color-series-20);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
[part~="legend-item"]:nth-child(24n + 21) {
|
|
245
|
-
--_graph-swatch: var(--helix-color-series-21);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
[part~="legend-item"]:nth-child(24n + 22) {
|
|
249
|
-
--_graph-swatch: var(--helix-color-series-22);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
[part~="legend-item"]:nth-child(24n + 23) {
|
|
253
|
-
--_graph-swatch: var(--helix-color-series-23);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
[part~="legend-item"]:nth-child(24n + 24) {
|
|
257
|
-
--_graph-swatch: var(--helix-color-series-24);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
[part~="legend-item"][data-tone="accent"] {
|
|
261
|
-
--_graph-swatch: var(--helix-color-accent);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
[part~="legend-item"][data-tone="danger"] {
|
|
265
|
-
--_graph-swatch: var(--helix-color-danger);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
[part~="legend-item"][data-tone="info"] {
|
|
269
|
-
--_graph-swatch: var(--helix-color-info);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
[part~="legend-item"][data-tone="neutral"] {
|
|
273
|
-
--_graph-swatch: var(--helix-color-foreground-muted);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
[part~="legend-item"][data-tone="primary"] {
|
|
277
|
-
--_graph-swatch: var(--helix-color-primary);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
[part~="legend-item"][data-tone="success"] {
|
|
281
|
-
--_graph-swatch: var(--helix-color-success);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
[part~="legend-item"][data-tone="warning"] {
|
|
285
|
-
--_graph-swatch: var(--helix-color-warning);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
[part="legend-swatch"] {
|
|
289
|
-
block-size: var(--helix-space-xs);
|
|
290
|
-
border: var(--helix-border-thin) solid var(--_graph-swatch, var(--helix-color-foreground-muted));
|
|
291
|
-
border-radius: var(--helix-radii-full);
|
|
292
|
-
box-sizing: border-box;
|
|
293
|
-
background-color: var(--_graph-swatch, var(--helix-color-foreground-muted));
|
|
294
|
-
flex: 0 0 auto;
|
|
295
|
-
inline-size: var(--helix-space-xs);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
[part~="legend-item-hidden"] {
|
|
299
|
-
color: var(--helix-color-foreground-subtle);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
[part~="legend-item-hidden"] [part="legend-swatch"] {
|
|
303
|
-
background-color: transparent;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
[part="search"] {
|
|
307
|
-
align-items: center;
|
|
308
|
-
border-block-end: var(--helix-border-thin) solid var(--helix-color-border);
|
|
309
|
-
display: flex;
|
|
310
|
-
gap: var(--helix-space-2xs);
|
|
311
|
-
padding: var(--helix-space-2xs);
|
|
312
|
-
padding-inline-start: var(--helix-space-xs);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
[part="filter-icon"] {
|
|
316
|
-
align-items: center;
|
|
317
|
-
color: var(--helix-color-foreground-subtle);
|
|
318
|
-
display: inline-flex;
|
|
319
|
-
flex: 0 0 auto;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
[part="filter-icon"] svg,
|
|
323
|
-
slot[name="filter-icon"]::slotted(*) {
|
|
324
|
-
--icon-size: var(--helix-size-icon-tight);
|
|
325
|
-
|
|
326
|
-
block-size: var(--helix-size-icon-tight);
|
|
327
|
-
inline-size: var(--helix-size-icon-tight);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
[part="search-field"] {
|
|
331
|
-
appearance: none;
|
|
332
|
-
background-color: transparent;
|
|
333
|
-
block-size: var(--helix-size-control-tight);
|
|
334
|
-
border: none;
|
|
335
|
-
box-sizing: border-box;
|
|
336
|
-
color: var(--helix-color-foreground);
|
|
337
|
-
flex: 1 1 auto;
|
|
338
|
-
font-family: var(--helix-font-sans);
|
|
339
|
-
font-size: var(--helix-text-sm);
|
|
340
|
-
font-weight: var(--helix-weight-medium);
|
|
341
|
-
min-inline-size: 0;
|
|
342
|
-
padding-inline: var(--helix-space-2xs);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
[part="search-field"]::placeholder {
|
|
346
|
-
color: var(--helix-color-foreground-subtle);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
[part="search-field"]:focus-visible {
|
|
350
|
-
outline: none;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
[part="search"]:has([part="search-field"]:focus-visible),
|
|
354
|
-
[part="list"]:focus-visible {
|
|
355
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
356
|
-
outline-offset: calc(var(--helix-size-focus-offset) * -1);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
[part="count"] {
|
|
360
|
-
color: var(--helix-color-foreground-muted);
|
|
361
|
-
flex: 0 0 auto;
|
|
362
|
-
font-size: var(--helix-text-xs);
|
|
363
|
-
font-variant-numeric: tabular-nums;
|
|
364
|
-
|
|
365
|
-
padding-inline-end: calc(var(--helix-space-xs) - var(--helix-space-2xs));
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
[part="list"] {
|
|
369
|
-
min-block-size: 0;
|
|
370
|
-
overflow-y: auto;
|
|
371
|
-
overscroll-behavior: contain;
|
|
372
|
-
padding-block: var(--helix-space-2xs);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
[part~="note"] {
|
|
376
|
-
align-items: center;
|
|
377
|
-
box-sizing: border-box;
|
|
378
|
-
cursor: pointer;
|
|
379
|
-
display: flex;
|
|
380
|
-
font-size: var(--helix-text-sm);
|
|
381
|
-
gap: var(--helix-space-sm);
|
|
382
|
-
min-block-size: var(--helix-size-control-tight);
|
|
383
|
-
padding-block: var(--helix-space-2xs);
|
|
384
|
-
padding-inline: var(--helix-space-xs);
|
|
385
|
-
user-select: none;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
[part~="note"]:hover,
|
|
389
|
-
[part="list"]:focus-visible [part~="note-cursor"] {
|
|
390
|
-
--_graph-wash: light-dark(
|
|
10
|
+
". . . full";}[part="legend"] {display: flex;flex-wrap: wrap;gap: var(--helix-space-2xs);inset-block-end: var(--helix-space-sm);inset-inline-start: var(--helix-space-sm);max-inline-size: calc(100% - var(--helix-space-sm) * 3 - var(--helix-size-control-sm));position: absolute;}:host([controls-placement="bottom-start"]) [part="legend"] {inset-inline: auto var(--helix-space-sm);}@container (inline-size < 40rem) {[part="legend"] {flex-wrap: nowrap;inset-block-end: calc(var(--helix-space-sm) - var(--helix-space-2xs));inset-inline-start: calc(var(--helix-space-sm) - var(--helix-space-2xs));overflow-x: auto;padding: var(--helix-space-2xs);scrollbar-width: none;}}[part~="legend-item"] {align-items: center;background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));block-size: var(--helix-size-control-tight);border: var(--helix-border-floating) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);box-shadow: var(--helix-shadow-floating);color: var(--helix-color-foreground);cursor: pointer;display: inline-flex;font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);font-weight: var(--helix-weight-medium);gap: var(--helix-space-2xs);padding-inline: var(--helix-space-xs);white-space: nowrap;}[part~="legend-item"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part~="legend-item"]:nth-child(24n + 1) {--_graph-swatch: var(--helix-color-series-1);}[part~="legend-item"]:nth-child(24n + 2) {--_graph-swatch: var(--helix-color-series-2);}[part~="legend-item"]:nth-child(24n + 3) {--_graph-swatch: var(--helix-color-series-3);}[part~="legend-item"]:nth-child(24n + 4) {--_graph-swatch: var(--helix-color-series-4);}[part~="legend-item"]:nth-child(24n + 5) {--_graph-swatch: var(--helix-color-series-5);}[part~="legend-item"]:nth-child(24n + 6) {--_graph-swatch: var(--helix-color-series-6);}[part~="legend-item"]:nth-child(24n + 7) {--_graph-swatch: var(--helix-color-series-7);}[part~="legend-item"]:nth-child(24n + 8) {--_graph-swatch: var(--helix-color-series-8);}[part~="legend-item"]:nth-child(24n + 9) {--_graph-swatch: var(--helix-color-series-9);}[part~="legend-item"]:nth-child(24n + 10) {--_graph-swatch: var(--helix-color-series-10);}[part~="legend-item"]:nth-child(24n + 11) {--_graph-swatch: var(--helix-color-series-11);}[part~="legend-item"]:nth-child(24n + 12) {--_graph-swatch: var(--helix-color-series-12);}[part~="legend-item"]:nth-child(24n + 13) {--_graph-swatch: var(--helix-color-series-13);}[part~="legend-item"]:nth-child(24n + 14) {--_graph-swatch: var(--helix-color-series-14);}[part~="legend-item"]:nth-child(24n + 15) {--_graph-swatch: var(--helix-color-series-15);}[part~="legend-item"]:nth-child(24n + 16) {--_graph-swatch: var(--helix-color-series-16);}[part~="legend-item"]:nth-child(24n + 17) {--_graph-swatch: var(--helix-color-series-17);}[part~="legend-item"]:nth-child(24n + 18) {--_graph-swatch: var(--helix-color-series-18);}[part~="legend-item"]:nth-child(24n + 19) {--_graph-swatch: var(--helix-color-series-19);}[part~="legend-item"]:nth-child(24n + 20) {--_graph-swatch: var(--helix-color-series-20);}[part~="legend-item"]:nth-child(24n + 21) {--_graph-swatch: var(--helix-color-series-21);}[part~="legend-item"]:nth-child(24n + 22) {--_graph-swatch: var(--helix-color-series-22);}[part~="legend-item"]:nth-child(24n + 23) {--_graph-swatch: var(--helix-color-series-23);}[part~="legend-item"]:nth-child(24n + 24) {--_graph-swatch: var(--helix-color-series-24);}[part~="legend-item"][data-tone="accent"] {--_graph-swatch: var(--helix-color-accent);}[part~="legend-item"][data-tone="danger"] {--_graph-swatch: var(--helix-color-danger);}[part~="legend-item"][data-tone="info"] {--_graph-swatch: var(--helix-color-info);}[part~="legend-item"][data-tone="neutral"] {--_graph-swatch: var(--helix-color-foreground-muted);}[part~="legend-item"][data-tone="primary"] {--_graph-swatch: var(--helix-color-primary);}[part~="legend-item"][data-tone="success"] {--_graph-swatch: var(--helix-color-success);}[part~="legend-item"][data-tone="warning"] {--_graph-swatch: var(--helix-color-warning);}[part="legend-swatch"] {block-size: var(--helix-space-xs);border: var(--helix-border-thin) solid var(--_graph-swatch, var(--helix-color-foreground-muted));border-radius: var(--helix-radii-full);box-sizing: border-box;background-color: var(--_graph-swatch, var(--helix-color-foreground-muted));flex: 0 0 auto;inline-size: var(--helix-space-xs);}[part~="legend-item-hidden"] {color: var(--helix-color-foreground-subtle);}[part~="legend-item-hidden"] [part="legend-swatch"] {background-color: transparent;}[part="search"] {align-items: center;border-block-end: var(--helix-border-thin) solid var(--helix-color-border);display: flex;gap: var(--helix-space-2xs);padding: var(--helix-space-2xs);padding-inline-start: var(--helix-space-xs);}[part="filter-icon"] {align-items: center;color: var(--helix-color-foreground-subtle);display: inline-flex;flex: 0 0 auto;}[part="filter-icon"] svg,
|
|
11
|
+
slot[name="filter-icon"]::slotted(*) {--icon-size: var(--helix-size-icon-tight);block-size: var(--helix-size-icon-tight);inline-size: var(--helix-size-icon-tight);}[part="search-field"] {appearance: none;background-color: transparent;block-size: var(--helix-size-control-tight);border: none;box-sizing: border-box;color: var(--helix-color-foreground);flex: 1 1 auto;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);font-weight: var(--helix-weight-medium);min-inline-size: 0;padding-inline: var(--helix-space-2xs);}[part="search-field"]::placeholder {color: var(--helix-color-foreground-subtle);}[part="search-field"]:focus-visible {outline: none;}[part="search"]:has([part="search-field"]:focus-visible),
|
|
12
|
+
[part="list"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: calc(var(--helix-size-focus-offset) * -1);}[part="count"] {color: var(--helix-color-foreground-muted);flex: 0 0 auto;font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;padding-inline-end: calc(var(--helix-space-xs) - var(--helix-space-2xs));}[part="list"] {min-block-size: 0;overflow-y: auto;overscroll-behavior: contain;padding-block: var(--helix-space-2xs);}[part~="note"] {align-items: center;box-sizing: border-box;cursor: pointer;display: flex;font-size: var(--graph-note-text, var(--helix-text-sm));gap: var(--helix-space-sm);min-block-size: var(--helix-size-control-tight);padding-block: var(--helix-space-2xs);padding-inline: var(--graph-note-padding-inline, var(--helix-space-xs));user-select: none;}[part~="note"]:hover,
|
|
13
|
+
[part="list"]:focus-visible [part~="note-cursor"] {--_graph-wash: var(
|
|
14
|
+
--graph-note-hover-color,
|
|
15
|
+
light-dark(
|
|
391
16
|
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent),
|
|
392
17
|
color-mix(in oklab, var(--helix-color-foreground) 12%, transparent)
|
|
393
|
-
)
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
[part="note-name"] {
|
|
399
|
-
flex: 0 1 auto;
|
|
400
|
-
max-inline-size: 70%;
|
|
401
|
-
min-inline-size: 0;
|
|
402
|
-
overflow: hidden;
|
|
403
|
-
text-overflow: ellipsis;
|
|
404
|
-
white-space: nowrap;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
[part="note-relation"] {
|
|
408
|
-
color: var(--helix-color-foreground-muted);
|
|
409
|
-
flex: 1 1 0;
|
|
410
|
-
font-size: var(--helix-text-xs);
|
|
411
|
-
min-inline-size: 0;
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
text-align: end;
|
|
414
|
-
text-overflow: ellipsis;
|
|
415
|
-
white-space: nowrap;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
[part~="note-selected"] {
|
|
419
|
-
background-color: var(--helix-color-surface-sunken);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
[part~="note-selected"] [part="note-name"] {
|
|
423
|
-
font-weight: var(--helix-weight-semibold);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
[part="header"],
|
|
427
|
-
[part="footer"] {
|
|
428
|
-
min-inline-size: 0;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
@media (forced-colors: active) {
|
|
432
|
-
[part~="legend-item-hidden"] {
|
|
433
|
-
color: GrayText;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
[part="list"]:focus-visible [part~="note-cursor"] {
|
|
437
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
438
|
-
outline-offset: calc(var(--helix-size-focus-offset) * -1);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
[part~="note-selected"],
|
|
442
|
-
[part~="note-selected"] [part="note-relation"] {
|
|
443
|
-
background-color: Highlight;
|
|
444
|
-
color: HighlightText;
|
|
445
|
-
forced-color-adjust: none;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
@media print {
|
|
450
|
-
:host {
|
|
451
|
-
print-color-adjust: economy;
|
|
452
|
-
}
|
|
453
|
-
}`);
|
|
18
|
+
)
|
|
19
|
+
);background-image: linear-gradient(var(--_graph-wash), var(--_graph-wash));}[part="note-name"] {flex: 0 1 auto;max-inline-size: 70%;min-inline-size: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}[part="note-relation"] {color: var(--graph-note-relation-color, var(--helix-color-foreground-muted));flex: 1 1 0;font-size: var(--helix-text-xs);min-inline-size: 0;overflow: hidden;text-align: end;text-overflow: ellipsis;white-space: nowrap;}[part~="note-selected"] {background-color: var(--graph-note-selected-background-color, var(--helix-color-surface-sunken));}[part~="note-selected"] [part="note-name"] {font-weight: var(--graph-note-selected-weight, var(--helix-weight-semibold));}[part="header"],
|
|
20
|
+
[part="footer"] {min-inline-size: 0;}@media (forced-colors: active) {[part~="legend-item-hidden"] {color: GrayText;}[part="list"]:focus-visible [part~="note-cursor"] {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: calc(var(--helix-size-focus-offset) * -1);}[part~="note-selected"],
|
|
21
|
+
[part~="note-selected"] [part="note-relation"] {background-color: Highlight;color: HighlightText;forced-color-adjust: none;}}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -20,6 +20,14 @@ import type { CSSResultGroup } from 'lit';
|
|
|
20
20
|
* @cssproperty --graph-background-color - The color behind the drawing while it loads.
|
|
21
21
|
* @cssproperty --graph-block-size - The frame's height, as a length.
|
|
22
22
|
* @cssproperty --graph-border-color - The frame's border color.
|
|
23
|
+
* @cssproperty --graph-note-hover-color - The wash over a note in the list while the pointer is over it, and over the note the keyboard is on.
|
|
24
|
+
* @cssproperty --graph-note-padding-inline - The space at either end of a note in the list.
|
|
25
|
+
* @cssproperty --graph-note-relation-color - The color of how a note stands to the selected one, such as "Linked from Alpha".
|
|
26
|
+
* @cssproperty --graph-note-selected-background-color - The fill behind the selected note, which leads the list.
|
|
27
|
+
* @cssproperty --graph-note-selected-weight - The weight of the selected note's name.
|
|
28
|
+
* @cssproperty --graph-note-text - The size of a note's name in the list.
|
|
29
|
+
* @cssproperty --graph-panel-background-color - The fill behind the search and the list.
|
|
30
|
+
* @cssproperty --graph-panel-color - The text color of the search and the list.
|
|
23
31
|
* @cssproperty --graph-panel-size - The list's width beside the drawing, or over it when opened with `no-panel`.
|
|
24
32
|
* @cssproperty --viewport-control-background-color - The background of the zoom and fullscreen buttons. Map and Canvas use the same property.
|
|
25
33
|
*/
|