@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,239 +1,20 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_map-position-ink: color-mix(
|
|
2
|
+
export const styles = createSheet(`:host {--_map-position-ink: color-mix(
|
|
5
3
|
in oklab,
|
|
6
4
|
var(--helix-color-foreground) 84%,
|
|
7
5
|
var(--helix-color-surface)
|
|
8
|
-
);
|
|
9
|
-
--_map-position-color: var(--
|
|
10
|
-
--_map-position-edge: var(--map-position-edge, var(--helix-color-surface));
|
|
11
|
-
--_map-position-fill: var(--map-position-fill, var(--_map-position-ink));
|
|
12
|
-
--_map-position-size: var(--map-position-size, 1.25rem);
|
|
13
|
-
|
|
14
|
-
--_map-position-heading: 0deg;
|
|
15
|
-
--_map-position-pitch: 0deg;
|
|
16
|
-
--_map-position-radius: 0px;
|
|
17
|
-
--_map-position-x: 0px;
|
|
18
|
-
--_map-position-y: 0px;
|
|
19
|
-
block-size: 0;
|
|
20
|
-
display: block;
|
|
21
|
-
inline-size: 0;
|
|
22
|
-
inset-block-start: var(--_map-position-y);
|
|
23
|
-
left: var(--_map-position-x);
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
position: absolute;
|
|
26
|
-
|
|
27
|
-
z-index: var(--helix-layer-raised);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host(:not(:state(placed))) [part="position"] {
|
|
31
|
-
visibility: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="position"] {
|
|
35
|
-
display: block;
|
|
36
|
-
left: 0;
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
transform: rotateX(var(--_map-position-pitch));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[part="accuracy"] {
|
|
43
|
-
background: color-mix(in oklab, var(--_map-position-color) 12%, transparent);
|
|
44
|
-
block-size: calc(var(--_map-position-radius) * 2);
|
|
45
|
-
border: var(--helix-border-thin) solid
|
|
46
|
-
color-mix(in oklab, var(--_map-position-color) 35%, transparent);
|
|
47
|
-
border-radius: var(--helix-radii-full);
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
inline-size: calc(var(--_map-position-radius) * 2);
|
|
50
|
-
left: 0;
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 0;
|
|
53
|
-
translate: -50% -50%;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[part="heading"] {
|
|
57
|
-
background: conic-gradient(
|
|
6
|
+
);--_map-position-color: var(--map-position-color, var(--_map-position-ink));--_map-position-edge: var(--map-position-edge, var(--helix-color-surface));--_map-position-fill: var(--map-position-fill, var(--_map-position-ink));--_map-position-size: var(--map-position-size, 1.25rem);--_map-position-heading: 0deg;--_map-position-pitch: 0deg;--_map-position-radius: 0px;--_map-position-x: 0px;--_map-position-y: 0px;block-size: 0;display: block;inline-size: 0;inset-block-start: var(--_map-position-y);left: var(--_map-position-x);pointer-events: none;position: absolute;z-index: var(--helix-layer-raised);}:host(:not(:state(placed))) [part="position"] {visibility: hidden;}[part="position"] {display: block;left: 0;position: absolute;top: 0;transform: rotateX(var(--_map-position-pitch));}[part="accuracy"] {background: color-mix(in oklab, var(--_map-position-color) 12%, transparent);block-size: calc(var(--_map-position-radius) * 2);border: var(--helix-border-thin) solid
|
|
7
|
+
color-mix(in oklab, var(--_map-position-color) 35%, transparent);border-radius: var(--helix-radii-full);box-sizing: border-box;inline-size: calc(var(--_map-position-radius) * 2);left: 0;position: absolute;top: 0;translate: -50% -50%;}[part="heading"] {background: conic-gradient(
|
|
58
8
|
from -45deg,
|
|
59
9
|
transparent 0deg,
|
|
60
10
|
var(--_map-position-color) 30deg 60deg,
|
|
61
11
|
transparent 90deg
|
|
62
|
-
);
|
|
63
|
-
block-size:
|
|
64
|
-
border-radius: var(--helix-radii-full);
|
|
65
|
-
display: none;
|
|
66
|
-
inline-size: calc(var(--_map-position-size) * 5);
|
|
67
|
-
left: 0;
|
|
68
|
-
mask: radial-gradient(closest-side, rgb(0 0 0 / 0.32) 20%, transparent);
|
|
69
|
-
position: absolute;
|
|
70
|
-
rotate: var(--_map-position-heading);
|
|
71
|
-
top: 0;
|
|
72
|
-
translate: -50% -50%;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:host([heading]) [part="heading"] {
|
|
76
|
-
display: block;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[part="pulse"] {
|
|
80
|
-
animation: map-position-pulse calc(var(--helix-duration-slow) * 7.5)
|
|
81
|
-
var(--helix-easing-decelerate) infinite;
|
|
82
|
-
background: var(--_map-position-color);
|
|
83
|
-
block-size: var(--_map-position-size);
|
|
84
|
-
border-radius: var(--helix-radii-full);
|
|
85
|
-
inline-size: var(--_map-position-size);
|
|
86
|
-
left: 0;
|
|
87
|
-
opacity: 0;
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 0;
|
|
90
|
-
translate: -50% -50%;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@keyframes map-position-pulse {
|
|
94
|
-
from {
|
|
95
|
-
opacity: 0.45;
|
|
96
|
-
scale: 1;
|
|
97
|
-
}
|
|
98
|
-
to {
|
|
99
|
-
opacity: 0;
|
|
100
|
-
scale: 3.2;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
[part="dot"] {
|
|
105
|
-
background: var(--_map-position-fill);
|
|
106
|
-
block-size: var(--_map-position-size);
|
|
107
|
-
border: var(--helix-border-thick) solid var(--_map-position-edge);
|
|
108
|
-
border-radius: var(--helix-radii-full);
|
|
109
|
-
box-shadow:
|
|
12
|
+
);block-size: calc(var(--_map-position-size) * 5);border-radius: var(--helix-radii-full);display: none;inline-size: calc(var(--_map-position-size) * 5);left: 0;mask: radial-gradient(closest-side, rgb(0 0 0 / 0.32) 20%, transparent);position: absolute;rotate: var(--_map-position-heading);top: 0;translate: -50% -50%;}:host([heading]) [part="heading"] {display: block;}[part="pulse"] {animation: map-position-pulse calc(var(--helix-duration-slow) * 7.5)
|
|
13
|
+
var(--helix-easing-decelerate) infinite;background: var(--_map-position-color);block-size: var(--_map-position-size);border-radius: var(--helix-radii-full);inline-size: var(--_map-position-size);left: 0;opacity: 0;position: absolute;top: 0;translate: -50% -50%;}@keyframes map-position-pulse {from {opacity: 0.45;scale: 1;}to {opacity: 0;scale: 3.2;}}[part="dot"] {background: var(--_map-position-fill);block-size: var(--_map-position-size);border: var(--helix-border-thick) solid var(--_map-position-edge);border-radius: var(--helix-radii-full);box-shadow:
|
|
110
14
|
0 0 0 calc(var(--_map-position-size) * 0.3)
|
|
111
15
|
color-mix(in oklab, var(--_map-position-color) 20%, transparent),
|
|
112
|
-
var(--helix-shadow-sm);
|
|
113
|
-
box-sizing: border-box;
|
|
114
|
-
inline-size: var(--_map-position-size);
|
|
115
|
-
left: 0;
|
|
116
|
-
position: absolute;
|
|
117
|
-
top: 0;
|
|
118
|
-
translate: -50% -50%;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
[part="arrow"] {
|
|
122
|
-
block-size: calc(var(--_map-position-size) * 1.6);
|
|
123
|
-
display: none;
|
|
124
|
-
filter: drop-shadow(
|
|
16
|
+
var(--helix-shadow-sm);box-sizing: border-box;inline-size: var(--_map-position-size);left: 0;position: absolute;top: 0;translate: -50% -50%;}[part="arrow"] {block-size: calc(var(--_map-position-size) * 1.6);display: none;filter: drop-shadow(
|
|
125
17
|
0 var(--helix-border-thin) var(--helix-border-thick)
|
|
126
18
|
color-mix(in oklab, var(--helix-color-foreground) 30%, transparent)
|
|
127
|
-
);
|
|
128
|
-
inline-size:
|
|
129
|
-
left: 0;
|
|
130
|
-
overflow: visible;
|
|
131
|
-
position: absolute;
|
|
132
|
-
rotate: var(--_map-position-heading);
|
|
133
|
-
top: 0;
|
|
134
|
-
translate: -50% -50%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
[part="arrow"] path {
|
|
138
|
-
fill: var(--_map-position-fill);
|
|
139
|
-
paint-order: stroke;
|
|
140
|
-
stroke: none;
|
|
141
|
-
stroke-linejoin: round;
|
|
142
|
-
stroke-width: calc(var(--helix-border-thick) * 1.5);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:host([heading]) [part="arrow"] {
|
|
146
|
-
display: block;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
:host([heading]) [part="dot"] {
|
|
150
|
-
display: none;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:host([shape="rounded"]) [part="dot"] {
|
|
154
|
-
border-radius: var(--helix-radii-md);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:host([shape="square"]) [part="dot"] {
|
|
158
|
-
border-radius: var(--helix-radii-none);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
:host([shape="diamond"]) [part="dot"] {
|
|
162
|
-
border-radius: var(--helix-radii-none);
|
|
163
|
-
rotate: 45deg;
|
|
164
|
-
scale: 0.85;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:host([shape="ring"]) [part="dot"] {
|
|
168
|
-
background: transparent;
|
|
169
|
-
|
|
170
|
-
border-color: var(--_map-position-fill);
|
|
171
|
-
border-width: calc(var(--_map-position-size) * 0.25);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([separation="outlined"]) [part="dot"] {
|
|
175
|
-
box-shadow: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:host([separation="elevated"]) [part="dot"] {
|
|
179
|
-
box-shadow: var(--helix-shadow-md);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
:host([separation="filled"]) [part="dot"] {
|
|
183
|
-
border-color: transparent;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
:host([separation="plain"]) [part="dot"] {
|
|
187
|
-
border-color: transparent;
|
|
188
|
-
box-shadow: none;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:host([separation="outlined"]) [part="arrow"] path {
|
|
192
|
-
stroke: var(--_map-position-edge);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
:host([separation="outlined"]) [part="arrow"],
|
|
196
|
-
:host([separation="plain"]) [part="arrow"] {
|
|
197
|
-
filter: none;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@media (prefers-reduced-motion: reduce) {
|
|
201
|
-
[part="pulse"] {
|
|
202
|
-
animation: none;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
[part="status"] {
|
|
207
|
-
block-size: 1px;
|
|
208
|
-
clip-path: inset(50%);
|
|
209
|
-
inline-size: 1px;
|
|
210
|
-
overflow: hidden;
|
|
211
|
-
position: absolute;
|
|
212
|
-
white-space: nowrap;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:host([tone]) {
|
|
216
|
-
--_map-position-color: var(--_map-position-tone);
|
|
217
|
-
--_map-position-fill: var(--_map-position-tone);
|
|
218
|
-
}
|
|
219
|
-
:host([tone="accent"]) {
|
|
220
|
-
--_map-position-tone: var(--helix-color-accent);
|
|
221
|
-
}
|
|
222
|
-
:host([tone="danger"]) {
|
|
223
|
-
--_map-position-tone: var(--helix-color-danger);
|
|
224
|
-
}
|
|
225
|
-
:host([tone="info"]) {
|
|
226
|
-
--_map-position-tone: var(--helix-color-info);
|
|
227
|
-
}
|
|
228
|
-
:host([tone="neutral"]) {
|
|
229
|
-
--_map-position-tone: var(--helix-color-foreground-muted);
|
|
230
|
-
}
|
|
231
|
-
:host([tone="primary"]) {
|
|
232
|
-
--_map-position-tone: var(--helix-color-primary);
|
|
233
|
-
}
|
|
234
|
-
:host([tone="success"]) {
|
|
235
|
-
--_map-position-tone: var(--helix-color-success);
|
|
236
|
-
}
|
|
237
|
-
:host([tone="warning"]) {
|
|
238
|
-
--_map-position-tone: var(--helix-color-warning);
|
|
239
|
-
}`);
|
|
19
|
+
);inline-size: calc(var(--_map-position-size) * 1.6);left: 0;overflow: visible;position: absolute;rotate: var(--_map-position-heading);top: 0;translate: -50% -50%;}[part="arrow"] path {fill: var(--_map-position-fill);paint-order: stroke;stroke: none;stroke-linejoin: round;stroke-width: calc(var(--helix-border-thick) * 1.5);}:host([heading]) [part="arrow"] {display: block;}:host([heading]) [part="dot"] {display: none;}:host([shape="rounded"]) [part="dot"] {border-radius: var(--helix-radii-md);}:host([shape="square"]) [part="dot"] {border-radius: var(--helix-radii-none);}:host([shape="diamond"]) [part="dot"] {border-radius: var(--helix-radii-none);rotate: 45deg;scale: 0.85;}:host([shape="ring"]) [part="dot"] {background: transparent;border-color: var(--_map-position-fill);border-width: calc(var(--_map-position-size) * 0.25);}:host([separation="outlined"]) [part="dot"] {box-shadow: none;}:host([separation="elevated"]) [part="dot"] {box-shadow: var(--helix-shadow-md);}:host([separation="filled"]) [part="dot"] {border-color: transparent;}:host([separation="plain"]) [part="dot"] {border-color: transparent;box-shadow: none;}:host([separation="outlined"]) [part="arrow"] path {stroke: var(--_map-position-edge);}:host([separation="outlined"]) [part="arrow"],
|
|
20
|
+
:host([separation="plain"]) [part="arrow"] {filter: none;}@media (prefers-reduced-motion: reduce) {[part="pulse"] {animation: none;}}[part="status"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;overflow: hidden;position: absolute;white-space: nowrap;}:host([tone]) {--_map-position-color: var(--_map-position-tone);--_map-position-fill: var(--_map-position-tone);}:host([tone="accent"]) {--_map-position-tone: var(--helix-color-accent);}:host([tone="danger"]) {--_map-position-tone: var(--helix-color-danger);}:host([tone="info"]) {--_map-position-tone: var(--helix-color-info);}:host([tone="neutral"]) {--_map-position-tone: var(--helix-color-foreground-muted);}:host([tone="primary"]) {--_map-position-tone: var(--helix-color-primary);}:host([tone="success"]) {--_map-position-tone: var(--helix-color-success);}:host([tone="warning"]) {--_map-position-tone: var(--helix-color-warning);}`);
|
|
@@ -1,362 +1,20 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display:
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="region"] {
|
|
7
|
-
background-color: var(--map-background-color, var(--helix-color-surface-sunken));
|
|
8
|
-
block-size: var(--map-block-size, 24rem);
|
|
9
|
-
border: var(--helix-border-thin) solid var(--map-border-color, var(--helix-color-border));
|
|
10
|
-
border-radius: var(--helix-radii-sm);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
display: grid;
|
|
13
|
-
grid-template-rows: auto 1fr auto auto;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([fill]) [part="region"] {
|
|
19
|
-
block-size: auto;
|
|
20
|
-
border: none;
|
|
21
|
-
border-radius: 0;
|
|
22
|
-
container-type: size;
|
|
23
|
-
inset: 0;
|
|
24
|
-
position: absolute;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="viewport"] {
|
|
28
|
-
isolation: isolate;
|
|
29
|
-
min-block-size: 0;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
position: relative;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="layers"] {
|
|
35
|
-
block-size: 1px;
|
|
36
|
-
clip-path: inset(50%);
|
|
37
|
-
inline-size: 1px;
|
|
38
|
-
margin: var(--helix-space-none);
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
padding: var(--helix-space-none);
|
|
41
|
-
position: absolute;
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
[part="viewport"] ::slotted(:not(helix-map-marker, helix-map-points, helix-map-position)) {
|
|
46
|
-
block-size: 100%;
|
|
47
|
-
inline-size: 100%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:host(:state(idle)) ::slotted([slot="header"]),
|
|
51
|
-
:host(:state(idle)) ::slotted([slot="footer"]) {
|
|
52
|
-
opacity: 0;
|
|
53
|
-
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
::slotted([slot="attribution"]) {
|
|
57
|
-
|
|
58
|
-
border-block-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
59
|
-
color: var(--helix-color-foreground-subtle);
|
|
60
|
-
|
|
61
|
-
display: block;
|
|
62
|
-
font-size: var(--helix-text-xs);
|
|
63
|
-
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:host([credit-placement]) [part="attribution"] {
|
|
67
|
-
inset-block-end: var(--helix-space-2xs);
|
|
68
|
-
max-inline-size: calc(100% - var(--helix-space-2xs) * 2);
|
|
69
|
-
position: absolute;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:host([credit-placement="bottom-end"]) [part="attribution"] {
|
|
73
|
-
inset-inline-end: var(--helix-space-2xs);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:host([credit-placement="bottom-start"]) [part="attribution"] {
|
|
77
|
-
inset-inline-start: var(--helix-space-2xs);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:host([credit-placement]) ::slotted([slot="attribution"]) {
|
|
81
|
-
backdrop-filter: var(--helix-material-backdrop);
|
|
82
|
-
background-color: var(--helix-material-translucent);
|
|
83
|
-
border-block-start: none;
|
|
84
|
-
border-radius: var(--helix-radii-sm);
|
|
85
|
-
color: var(--helix-color-foreground-muted);
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
padding: var(--helix-space-none) var(--helix-space-xs);
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
white-space: nowrap;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:host([credit-placement])
|
|
2
|
+
export const styles = createSheet(`:host {display: contents;}[part="region"] {background-color: var(--map-background-color, var(--helix-color-surface-sunken));block-size: var(--map-block-size, 24rem);border: var(--helix-border-thin) solid var(--map-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);box-sizing: border-box;display: grid;grid-template-rows: auto 1fr auto auto;overflow: hidden;position: relative;}:host([fill]) [part="region"] {block-size: auto;border: none;border-radius: 0;container-type: size;inset: 0;position: absolute;}[part="viewport"] {isolation: isolate;min-block-size: 0;overflow: hidden;position: relative;}[part="layers"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;padding: var(--helix-space-none);position: absolute;white-space: nowrap;}[part="viewport"] ::slotted(:not(helix-map-marker, helix-map-points, helix-map-position)) {block-size: 100%;inline-size: 100%;}:host(:state(idle)) ::slotted([slot="header"]),
|
|
3
|
+
:host(:state(idle)) ::slotted([slot="footer"]) {opacity: 0;transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);}::slotted([slot="attribution"]) {border-block-start: var(--helix-border-thin) solid var(--helix-color-border);color: var(--helix-color-foreground-subtle);display: block;font-size: var(--helix-text-xs);padding: var(--helix-space-2xs) var(--helix-space-xs);}:host([credit-placement]) [part="attribution"] {inset-block-end: var(--helix-space-2xs);max-inline-size: calc(100% - var(--helix-space-2xs) * 2);position: absolute;}:host([credit-placement="bottom-end"]) [part="attribution"] {inset-inline-end: var(--helix-space-2xs);}:host([credit-placement="bottom-start"]) [part="attribution"] {inset-inline-start: var(--helix-space-2xs);}:host([credit-placement]) ::slotted([slot="attribution"]) {backdrop-filter: var(--helix-material-backdrop);background-color: var(--helix-material-translucent);border-block-start: none;border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-muted);overflow: hidden;padding: var(--helix-space-none) var(--helix-space-xs);text-overflow: ellipsis;white-space: nowrap;}:host([credit-placement])
|
|
93
4
|
[part="attribution"]:is(:hover, :focus-within)
|
|
94
|
-
::slotted([slot="attribution"]) {
|
|
95
|
-
white-space: normal;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:host([material="glass"]) [part="controls"] button {
|
|
99
|
-
backdrop-filter: var(--helix-material-backdrop);
|
|
100
|
-
background-color: var(--viewport-control-background-color, var(--helix-material-translucent));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:host([material="frosted"]) [part="controls"] button {
|
|
104
|
-
backdrop-filter: blur(var(--helix-material-blur-lg));
|
|
105
|
-
background-color: var(
|
|
5
|
+
::slotted([slot="attribution"]) {white-space: normal;}:host([material="glass"]) [part="controls"] button {backdrop-filter: var(--helix-material-backdrop);background-color: var(--viewport-control-background-color, var(--helix-material-translucent));}:host([material="frosted"]) [part="controls"] button {backdrop-filter: blur(var(--helix-material-blur-lg));background-color: var(
|
|
106
6
|
--viewport-control-background-color,
|
|
107
7
|
var(--helix-material-translucent-strong)
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:host([material="transparent"]) [part="controls"] button {
|
|
112
|
-
backdrop-filter: none;
|
|
113
|
-
background-color: var(--viewport-control-background-color, transparent);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:host([material]) [part="controls"] button:hover {
|
|
117
|
-
background-color: color-mix(
|
|
8
|
+
);}:host([material="transparent"]) [part="controls"] button {backdrop-filter: none;background-color: var(--viewport-control-background-color, transparent);}:host([material]) [part="controls"] button:hover {background-color: color-mix(
|
|
118
9
|
in oklab,
|
|
119
10
|
var(--helix-color-foreground) 10%,
|
|
120
11
|
var(--helix-color-surface-overlay)
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@media print {
|
|
125
|
-
[part="controls"] {
|
|
126
|
-
display: none;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
[part="controls"] {
|
|
131
|
-
align-items: center;
|
|
132
|
-
display: flex;
|
|
133
|
-
flex-direction: column;
|
|
134
|
-
|
|
135
|
-
grid-column: 1 / -1;
|
|
136
|
-
grid-row: 2 / 3;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
[part="controls"] [part="zoom-in"] {
|
|
140
|
-
border-end-end-radius: 0;
|
|
141
|
-
border-end-start-radius: 0;
|
|
142
|
-
}
|
|
143
|
-
[part="controls"] [part="zoom-out"] {
|
|
144
|
-
border-block-start: 0;
|
|
145
|
-
border-start-end-radius: 0;
|
|
146
|
-
border-start-start-radius: 0;
|
|
147
|
-
margin-block-start: calc(-1 * var(--helix-space-2xs));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
[part="tilt"] {
|
|
151
|
-
font-size: var(--helix-text-xs);
|
|
152
|
-
font-weight: var(--helix-weight-semibold);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
[part="tilt"][aria-pressed="true"] {
|
|
156
|
-
background-color: var(--helix-color-primary-surface);
|
|
157
|
-
border-color: var(--helix-color-primary-surface);
|
|
158
|
-
color: var(--helix-color-foreground-on-primary);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
[part="tilt"][aria-pressed="true"]:hover {
|
|
162
|
-
background-color: var(--helix-color-primary-surface-hover);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
[part="compass"] {
|
|
166
|
-
border-radius: var(--helix-radii-sm);
|
|
167
|
-
display: grid;
|
|
168
|
-
grid-template-areas:
|
|
12
|
+
);}@media print {[part="controls"] {display: none;}}[part="controls"] {align-items: center;display: flex;flex-direction: column;grid-column: 1 / -1;grid-row: 2 / 3;}[part="controls"] [part="zoom-in"] {border-end-end-radius: 0;border-end-start-radius: 0;}[part="controls"] [part="zoom-out"] {border-block-start: 0;border-start-end-radius: 0;border-start-start-radius: 0;margin-block-start: calc(-1 * var(--helix-space-2xs));}[part="tilt"] {font-size: var(--helix-text-xs);font-weight: var(--helix-weight-semibold);}[part="tilt"][aria-pressed="true"] {background-color: var(--helix-color-primary-surface);border-color: var(--helix-color-primary-surface);color: var(--helix-color-foreground-on-primary);}[part="tilt"][aria-pressed="true"]:hover {background-color: var(--helix-color-primary-surface-hover);}[part="compass"] {border-radius: var(--helix-radii-sm);display: grid;grid-template-areas:
|
|
169
13
|
"rotl up rotr"
|
|
170
14
|
"start north end"
|
|
171
|
-
". down .";
|
|
172
|
-
place-items: center;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
[part="rotate-left"] {
|
|
176
|
-
grid-area: rotl;
|
|
177
|
-
}
|
|
178
|
-
[part="rotate-right"] {
|
|
179
|
-
grid-area: rotr;
|
|
180
|
-
}
|
|
181
|
-
[part="face-north"] {
|
|
182
|
-
grid-area: north;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
[part="compass"] > :not([part="face-north"]) {
|
|
186
|
-
background-color: transparent;
|
|
187
|
-
block-size: calc(var(--helix-size-control-sm) * 0.75);
|
|
188
|
-
border-color: transparent;
|
|
189
|
-
box-shadow: none;
|
|
190
|
-
font-size: var(--helix-text-xs);
|
|
191
|
-
inline-size: calc(var(--helix-size-control-sm) * 0.75);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[part="compass"]:has(> :not([part="face-north"])) {
|
|
195
|
-
background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));
|
|
196
|
-
box-shadow:
|
|
15
|
+
". down .";place-items: center;}[part="rotate-left"] {grid-area: rotl;}[part="rotate-right"] {grid-area: rotr;}[part="face-north"] {grid-area: north;}[part="compass"] > :not([part="face-north"]) {background-color: transparent;block-size: calc(var(--helix-size-control-sm) * 0.75);border-color: transparent;box-shadow: none;font-size: var(--helix-text-xs);inline-size: calc(var(--helix-size-control-sm) * 0.75);}[part="compass"]:has(> :not([part="face-north"])) {background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));box-shadow:
|
|
197
16
|
var(--helix-shadow-floating),
|
|
198
|
-
0 0 0 var(--helix-border-floating) var(--helix-color-border);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
[part="
|
|
202
|
-
block-size: var(--helix-size-icon-md);
|
|
203
|
-
inline-size: var(--helix-size-icon-md);
|
|
204
|
-
transform: rotate(var(--map-needle-turn, 0deg));
|
|
205
|
-
}
|
|
206
|
-
[part="needle"] [data-end="north"] {
|
|
207
|
-
fill: var(--helix-color-danger);
|
|
208
|
-
}
|
|
209
|
-
[part="needle"] [data-end="south"] {
|
|
210
|
-
fill: var(--helix-color-foreground-muted);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
[part="layers-menu"] {
|
|
214
|
-
background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));
|
|
215
|
-
border: var(--helix-border-floating) solid var(--helix-color-border);
|
|
216
|
-
border-radius: var(--helix-radii-sm);
|
|
217
|
-
box-shadow: var(--helix-shadow-floating);
|
|
218
|
-
color: var(--helix-color-foreground);
|
|
219
|
-
display: grid;
|
|
220
|
-
gap: var(--helix-space-sm);
|
|
221
|
-
inline-size: min(calc(var(--helix-size-control-lg) * 6), 70vw);
|
|
222
|
-
inset-block-start: 0;
|
|
223
|
-
inset-inline-end: calc(100% + var(--helix-space-2xs));
|
|
224
|
-
|
|
225
|
-
max-block-size: calc(var(--map-block-size, 24rem) - var(--helix-space-sm) * 2);
|
|
226
|
-
overflow-y: auto;
|
|
227
|
-
padding: var(--helix-space-sm);
|
|
228
|
-
position: absolute;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
:host([fill]) [part="layers-menu"] {
|
|
232
|
-
max-block-size: calc(100cqb - var(--helix-space-sm) * 2);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
[part="layers-menu"][hidden] {
|
|
236
|
-
display: none;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
:host([controls-placement^="bottom"]) [part="layers-menu"] {
|
|
240
|
-
inset-block: auto 0;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
:host([controls-placement$="start"]) [part="layers-menu"] {
|
|
244
|
-
inset-inline: calc(100% + var(--helix-space-2xs)) auto;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
[part="map-types"] {
|
|
248
|
-
display: grid;
|
|
249
|
-
gap: var(--helix-space-xs);
|
|
250
|
-
grid-template-columns: repeat(3, 1fr);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
[part="map-type"] {
|
|
254
|
-
color: var(--helix-color-foreground-muted);
|
|
255
|
-
cursor: pointer;
|
|
256
|
-
display: grid;
|
|
257
|
-
font-family: var(--helix-font-sans);
|
|
258
|
-
font-size: var(--helix-text-xs);
|
|
259
|
-
gap: var(--helix-space-2xs);
|
|
260
|
-
justify-items: center;
|
|
261
|
-
position: relative;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
[part="map-type"] input {
|
|
265
|
-
block-size: 1px;
|
|
266
|
-
inline-size: 1px;
|
|
267
|
-
margin: 0;
|
|
268
|
-
opacity: 0;
|
|
269
|
-
pointer-events: none;
|
|
270
|
-
position: absolute;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
[part="map-type-preview"] {
|
|
274
|
-
aspect-ratio: 4 / 3;
|
|
275
|
-
background-color: var(--helix-color-surface-sunken);
|
|
276
|
-
border: var(--helix-border-thick) solid transparent;
|
|
277
|
-
border-radius: var(--helix-radii-sm);
|
|
278
|
-
box-sizing: border-box;
|
|
279
|
-
display: block;
|
|
280
|
-
inline-size: 100%;
|
|
281
|
-
object-fit: cover;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
[part="map-type"]:hover,
|
|
285
|
-
[part="map-type"]:has(input:checked) {
|
|
286
|
-
color: var(--helix-color-foreground);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
[part="map-type"]:has(input:checked) [part="map-type-preview"] {
|
|
290
|
-
border-color: var(--helix-color-primary-surface);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
[part="map-type"]:has(input:focus-visible) [part="map-type-preview"] {
|
|
294
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
295
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
[part="layer-choices"] {
|
|
299
|
-
display: grid;
|
|
300
|
-
gap: var(--helix-space-xs);
|
|
301
|
-
grid-template-columns: repeat(3, 1fr);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
[part="layers-menu"] [part="layer-choice"] {
|
|
305
|
-
align-content: start;
|
|
306
|
-
background-color: transparent;
|
|
307
|
-
block-size: auto;
|
|
308
|
-
border: 0;
|
|
309
|
-
box-shadow: none;
|
|
310
|
-
color: var(--helix-color-foreground-muted);
|
|
311
|
-
display: grid;
|
|
312
|
-
font-size: var(--helix-text-xs);
|
|
313
|
-
gap: var(--helix-space-2xs);
|
|
314
|
-
inline-size: auto;
|
|
315
|
-
justify-items: center;
|
|
316
|
-
padding: 0;
|
|
317
|
-
text-align: center;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
[part="layers-menu"] [part="layer-choice"]:hover,
|
|
321
|
-
[part="layers-menu"] [part="layer-choice"][aria-pressed="true"] {
|
|
322
|
-
background-color: transparent;
|
|
323
|
-
color: var(--helix-color-foreground);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
[part="layers-menu"] [part="layer-choice"]:focus-visible {
|
|
327
|
-
outline: none;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
[part="layer-icon"] {
|
|
331
|
-
aspect-ratio: 4 / 3;
|
|
332
|
-
background-color: var(--helix-color-surface-sunken);
|
|
333
|
-
border: var(--helix-border-thick) solid transparent;
|
|
334
|
-
border-radius: var(--helix-radii-sm);
|
|
335
|
-
box-sizing: border-box;
|
|
336
|
-
display: block;
|
|
337
|
-
inline-size: 100%;
|
|
338
|
-
padding: var(--helix-space-sm);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
[part="layer-choice"][aria-pressed="true"] [part="layer-icon"] {
|
|
342
|
-
border-color: var(--helix-color-primary-surface);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
[part="layer-choice"]:focus-visible [part="layer-icon"] {
|
|
346
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
347
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
@media (forced-colors: active) {
|
|
351
|
-
[part="tilt"][aria-pressed="true"] {
|
|
352
|
-
background-color: Highlight;
|
|
353
|
-
color: HighlightText;
|
|
354
|
-
forced-color-adjust: none;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
[part="map-type"]:has(input:checked),
|
|
358
|
-
[part="layers-menu"] [part="layer-choice"][aria-pressed="true"] {
|
|
359
|
-
outline: var(--helix-border-thick) solid Highlight;
|
|
360
|
-
outline-offset: var(--helix-space-2xs);
|
|
361
|
-
}
|
|
362
|
-
}`);
|
|
17
|
+
0 0 0 var(--helix-border-floating) var(--helix-color-border);}[part="needle"] {block-size: var(--helix-size-icon-md);inline-size: var(--helix-size-icon-md);transform: rotate(var(--map-needle-turn, 0deg));}[part="needle"] [data-end="north"] {fill: var(--helix-color-danger);}[part="needle"] [data-end="south"] {fill: var(--helix-color-foreground-muted);}[part="layers-menu"] {background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));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);display: grid;gap: var(--helix-space-sm);inline-size: min(calc(var(--helix-size-control-lg) * 6), 70vw);inset-block-start: 0;inset-inline-end: calc(100% + var(--helix-space-2xs));max-block-size: calc(var(--map-block-size, 24rem) - var(--helix-space-sm) * 2);overflow-y: auto;padding: var(--helix-space-sm);position: absolute;}:host([fill]) [part="layers-menu"] {max-block-size: calc(100cqb - var(--helix-space-sm) * 2);}[part="layers-menu"][hidden] {display: none;}:host([controls-placement^="bottom"]) [part="layers-menu"] {inset-block: auto 0;}:host([controls-placement$="start"]) [part="layers-menu"] {inset-inline: calc(100% + var(--helix-space-2xs)) auto;}[part="map-types"] {display: grid;gap: var(--helix-space-xs);grid-template-columns: repeat(3, 1fr);}[part="map-type"] {color: var(--helix-color-foreground-muted);cursor: pointer;display: grid;font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);gap: var(--helix-space-2xs);justify-items: center;position: relative;}[part="map-type"] input {block-size: 1px;inline-size: 1px;margin: 0;opacity: 0;pointer-events: none;position: absolute;}[part="map-type-preview"] {aspect-ratio: 4 / 3;background-color: var(--helix-color-surface-sunken);border: var(--helix-border-thick) solid transparent;border-radius: var(--helix-radii-sm);box-sizing: border-box;display: block;inline-size: 100%;object-fit: cover;}[part="map-type"]:hover,
|
|
18
|
+
[part="map-type"]:has(input:checked) {color: var(--helix-color-foreground);}[part="map-type"]:has(input:checked) [part="map-type-preview"] {border-color: var(--helix-color-primary-surface);}[part="map-type"]:has(input:focus-visible) [part="map-type-preview"] {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="layer-choices"] {display: grid;gap: var(--helix-space-xs);grid-template-columns: repeat(3, 1fr);}[part="layers-menu"] [part="layer-choice"] {align-content: start;background-color: transparent;block-size: auto;border: 0;box-shadow: none;color: var(--helix-color-foreground-muted);display: grid;font-size: var(--helix-text-xs);gap: var(--helix-space-2xs);inline-size: auto;justify-items: center;padding: 0;text-align: center;}[part="layers-menu"] [part="layer-choice"]:hover,
|
|
19
|
+
[part="layers-menu"] [part="layer-choice"][aria-pressed="true"] {background-color: transparent;color: var(--helix-color-foreground);}[part="layers-menu"] [part="layer-choice"]:focus-visible {outline: none;}[part="layer-icon"] {aspect-ratio: 4 / 3;background-color: var(--helix-color-surface-sunken);border: var(--helix-border-thick) solid transparent;border-radius: var(--helix-radii-sm);box-sizing: border-box;display: block;inline-size: 100%;padding: var(--helix-space-sm);}[part="layer-choice"][aria-pressed="true"] [part="layer-icon"] {border-color: var(--helix-color-primary-surface);}[part="layer-choice"]:focus-visible [part="layer-icon"] {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}@media (forced-colors: active) {[part="tilt"][aria-pressed="true"] {background-color: Highlight;color: HighlightText;forced-color-adjust: none;}[part="map-type"]:has(input:checked),
|
|
20
|
+
[part="layers-menu"] [part="layer-choice"][aria-pressed="true"] {outline: var(--helix-border-thick) solid Highlight;outline-offset: var(--helix-space-2xs);}}`);
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
border-color: var(--map-route-casing-color, var(--helix-color-surface));
|
|
4
|
-
color: var(--map-route-color, var(--helix-color-primary));
|
|
5
|
-
display: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host([tone="accent"]) {
|
|
9
|
-
color: var(--helix-color-accent);
|
|
10
|
-
}
|
|
11
|
-
:host([tone="danger"]) {
|
|
12
|
-
color: var(--helix-color-danger);
|
|
13
|
-
}
|
|
14
|
-
:host([tone="info"]) {
|
|
15
|
-
color: var(--helix-color-info);
|
|
16
|
-
}
|
|
17
|
-
:host([tone="neutral"]) {
|
|
18
|
-
color: var(--helix-color-foreground-muted);
|
|
19
|
-
}
|
|
20
|
-
:host([tone="success"]) {
|
|
21
|
-
color: var(--helix-color-success);
|
|
22
|
-
}
|
|
23
|
-
:host([tone="warning"]) {
|
|
24
|
-
color: var(--helix-color-warning);
|
|
25
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {border-color: var(--map-route-casing-color, var(--helix-color-surface));color: var(--map-route-color, var(--helix-color-primary));display: none;}:host([tone="accent"]) {color: var(--helix-color-accent);}:host([tone="danger"]) {color: var(--helix-color-danger);}:host([tone="info"]) {color: var(--helix-color-info);}:host([tone="neutral"]) {color: var(--helix-color-foreground-muted);}:host([tone="success"]) {color: var(--helix-color-success);}:host([tone="warning"]) {color: var(--helix-color-warning);}`);
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
border-top-color: var(
|
|
2
|
+
export const styles = createSheet(`:host {border-top-color: var(
|
|
4
3
|
--map-terrain-highlight-color,
|
|
5
4
|
color-mix(in oklab, var(--helix-color-foreground-media) 25%, transparent)
|
|
6
|
-
);
|
|
7
|
-
color: var(
|
|
5
|
+
);color: var(
|
|
8
6
|
--map-terrain-shadow-color,
|
|
9
7
|
color-mix(in oklab, var(--helix-color-surface-media) 40%, transparent)
|
|
10
|
-
);
|
|
11
|
-
display: none;
|
|
12
|
-
}`);
|
|
8
|
+
);display: none;}`);
|