@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,146 +1,32 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_slider-track: var(--slider-track-size, var(--helix-size-progress));
|
|
5
|
-
|
|
6
|
-
--_slider-thumb: var(--slider-thumb-size, var(--helix-size-checkbox));
|
|
7
|
-
--_slider-thumb-length: var(--slider-thumb-length, var(--_slider-thumb));
|
|
8
|
-
--_slider-thumb-radii: var(--slider-thumb-radius, var(--helix-radii-full));
|
|
9
|
-
|
|
10
|
-
--_slider-halo: color-mix(
|
|
2
|
+
export const styles = createSheet(`:host {--_slider-track: var(--slider-track-size, var(--helix-size-progress));--_slider-thumb: var(--slider-thumb-size, var(--helix-size-checkbox));--_slider-thumb-length: var(--slider-thumb-length, var(--_slider-thumb));--_slider-thumb-radii: var(--slider-thumb-radius, var(--helix-radii-full));--_slider-halo: color-mix(
|
|
11
3
|
in oklab,
|
|
12
4
|
var(--slider-fill-color, var(--helix-color-primary)) 24%,
|
|
13
5
|
transparent
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
--_slider-track-color: var(--slider-track-color, var(--helix-color-border));
|
|
17
|
-
|
|
18
|
-
--_slider-along: to right;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
gap: var(--helix-space-2xs);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host(:dir(rtl)) {
|
|
25
|
-
--_slider-along: to left;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
[part="field"] {
|
|
29
|
-
align-items: center;
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: var(--helix-space-sm);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="field"][data-markers] {
|
|
35
|
-
display: grid;
|
|
36
|
-
grid-template-columns: 1fr auto;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part="control"] {
|
|
40
|
-
|
|
41
|
-
z-index: var(--helix-layer-raised);
|
|
42
|
-
|
|
43
|
-
appearance: none;
|
|
44
|
-
background: transparent;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
flex: 1 1 auto;
|
|
47
|
-
min-inline-size: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[part="field"][data-markers] [part="control"],
|
|
51
|
-
[part="field"][data-markers] [part="markers"] {
|
|
52
|
-
grid-column: 1;
|
|
53
|
-
grid-row: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[part="output"] {
|
|
57
|
-
color: var(--helix-color-foreground);
|
|
58
|
-
font-family: var(--helix-font-sans);
|
|
59
|
-
font-size: var(--helix-text-sm);
|
|
60
|
-
font-variant-numeric: tabular-nums;
|
|
61
|
-
|
|
62
|
-
min-inline-size: var(--_slider-output-reserve, 3ch);
|
|
63
|
-
text-align: end;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
[part="field"][data-markers] [part="output"] {
|
|
67
|
-
grid-column: 2;
|
|
68
|
-
grid-row: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[part="control"] {
|
|
72
|
-
--_slider-track-image: var(
|
|
6
|
+
);--_slider-track-color: var(--slider-track-color, var(--helix-color-border));--_slider-along: to right;display: flex;flex-direction: column;gap: var(--helix-space-2xs);}:host(:dir(rtl)) {--_slider-along: to left;}[part="field"] {align-items: center;display: flex;gap: var(--helix-space-sm);}[part="field"][data-markers] {display: grid;grid-template-columns: 1fr auto;}[part="control"] {z-index: var(--helix-layer-raised);appearance: none;background: transparent;cursor: pointer;flex: 1 1 auto;min-inline-size: 0;}[part="field"][data-markers] [part="control"],
|
|
7
|
+
[part="field"][data-markers] [part="markers"] {grid-column: 1;grid-row: 1;}[part="output"] {color: var(--helix-color-foreground);font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);font-variant-numeric: tabular-nums;min-inline-size: var(--_slider-output-reserve, 3ch);text-align: end;}[part="field"][data-markers] [part="output"] {grid-column: 2;grid-row: 1;}[part="control"] {--_slider-track-image: var(
|
|
73
8
|
--slider-track-image,
|
|
74
9
|
linear-gradient(
|
|
75
10
|
var(--_slider-along),
|
|
76
11
|
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-fraction, 0) * 100%),
|
|
77
12
|
var(--_slider-track-color) calc(var(--slider-fraction, 0) * 100%)
|
|
78
13
|
)
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
z-index: var(--helix-layer-raised);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host([marker-labels]) [part="field"] {
|
|
92
|
-
padding-block-end: var(--helix-space-lg);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([marker-labels]:not([orientation="vertical"])) [part="markers"] {
|
|
96
|
-
block-size: calc(var(--_slider-track) + var(--helix-space-lg));
|
|
97
|
-
border-inline: var(--helix-space-lg) solid transparent;
|
|
98
|
-
margin-block-end: calc(var(--helix-space-lg) * -1);
|
|
99
|
-
margin-inline: calc(var(--_slider-thumb-length) / 2 - var(--helix-space-lg));
|
|
100
|
-
mask-origin: padding-box;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[part="marker-label"] {
|
|
104
|
-
color: var(--helix-color-foreground-subtle);
|
|
105
|
-
font-family: var(--helix-font-sans);
|
|
106
|
-
font-size: var(--helix-text-xs);
|
|
107
|
-
font-variant-numeric: tabular-nums;
|
|
108
|
-
inset-block-start: var(--helix-space-sm);
|
|
109
|
-
inset-inline-start: 50%;
|
|
110
|
-
position: absolute;
|
|
111
|
-
translate: -50% 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:host(:dir(rtl)) [part="marker-label"] {
|
|
115
|
-
translate: 50% 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
[part="markers"] {
|
|
119
|
-
|
|
120
|
-
--_slider-hole: calc(var(--_slider-thumb-length) / 2 + var(--helix-border-thin));
|
|
121
|
-
--_slider-hole-at: calc(var(--slider-fraction, 0) * 100%);
|
|
122
|
-
--_slider-hole-from: calc(var(--slider-from, 0) * 100%);
|
|
123
|
-
--_slider-hole-to: calc(var(--slider-to, 0) * 100%);
|
|
124
|
-
--_slider-under: linear-gradient(transparent var(--_slider-track), currentColor 0);
|
|
125
|
-
|
|
126
|
-
mask-image:
|
|
14
|
+
);}[part="control"][data-origin] {--_slider-track-image: var(
|
|
15
|
+
--slider-track-image,
|
|
16
|
+
linear-gradient(
|
|
17
|
+
var(--_slider-along),
|
|
18
|
+
var(--_slider-track-color) calc(var(--slider-from, 0) * 100%),
|
|
19
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-from, 0) * 100%),
|
|
20
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-to, 0) * 100%),
|
|
21
|
+
var(--_slider-track-color) calc(var(--slider-to, 0) * 100%)
|
|
22
|
+
)
|
|
23
|
+
);}[part="markers"] {align-self: center;block-size: var(--_slider-track);margin-inline: calc(var(--_slider-thumb-length) / 2);pointer-events: none;position: relative;z-index: var(--helix-layer-raised);}:host([marker-labels]) [part="field"] {padding-block-end: var(--helix-space-lg);}:host([marker-labels]:not([orientation="vertical"])) [part="markers"] {block-size: calc(var(--_slider-track) + var(--helix-space-lg));border-inline: var(--helix-space-lg) solid transparent;margin-block-end: calc(var(--helix-space-lg) * -1);margin-inline: calc(var(--_slider-thumb-length) / 2 - var(--helix-space-lg));mask-origin: padding-box;}[part="marker-label"] {color: var(--helix-color-foreground-subtle);font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;inset-block-start: var(--helix-space-sm);inset-inline-start: 50%;position: absolute;translate: -50% 0;}:host(:dir(rtl)) [part="marker-label"] {translate: 50% 0;}[part="markers"] {--_slider-hole: calc(var(--_slider-thumb-length) / 2 + var(--helix-border-thin));--_slider-hole-at: calc(var(--slider-fraction, 0) * 100%);--_slider-hole-from: calc(var(--slider-from, 0) * 100%);--_slider-hole-to: calc(var(--slider-to, 0) * 100%);--_slider-under: linear-gradient(transparent var(--_slider-track), currentColor 0);mask-image:
|
|
127
24
|
var(--_slider-under),
|
|
128
25
|
radial-gradient(
|
|
129
26
|
circle at var(--_slider-hole-at) calc(var(--_slider-track) / 2),
|
|
130
27
|
transparent var(--_slider-hole),
|
|
131
28
|
currentColor var(--_slider-hole)
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host(:dir(rtl)) [part="markers"] {
|
|
136
|
-
--_slider-hole-at: calc(100% - var(--slider-fraction, 0) * 100%);
|
|
137
|
-
--_slider-hole-from: calc(100% - var(--slider-from, 0) * 100%);
|
|
138
|
-
--_slider-hole-to: calc(100% - var(--slider-to, 0) * 100%);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
[part="field"][data-range] [part="markers"] {
|
|
142
|
-
mask-composite: add, intersect;
|
|
143
|
-
mask-image:
|
|
29
|
+
);}:host(:dir(rtl)) [part="markers"] {--_slider-hole-at: calc(100% - var(--slider-fraction, 0) * 100%);--_slider-hole-from: calc(100% - var(--slider-from, 0) * 100%);--_slider-hole-to: calc(100% - var(--slider-to, 0) * 100%);}[part="field"][data-range] [part="markers"] {mask-composite: add, intersect;mask-image:
|
|
144
30
|
var(--_slider-under),
|
|
145
31
|
radial-gradient(
|
|
146
32
|
circle at var(--_slider-hole-from) calc(var(--_slider-track) / 2),
|
|
@@ -151,135 +37,23 @@ radial-gradient(
|
|
|
151
37
|
circle at var(--_slider-hole-to) calc(var(--_slider-track) / 2),
|
|
152
38
|
transparent var(--_slider-hole),
|
|
153
39
|
currentColor var(--_slider-hole)
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:host([orientation="vertical"]) [part="markers"] {
|
|
158
|
-
mask-image: radial-gradient(
|
|
40
|
+
);}:host([orientation="vertical"]) [part="markers"] {mask-image: radial-gradient(
|
|
159
41
|
circle at 50% calc(100% - var(--slider-fraction, 0) * 100%),
|
|
160
42
|
transparent var(--_slider-hole),
|
|
161
43
|
currentColor var(--_slider-hole)
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
[part="marker"] {
|
|
166
|
-
background-color: var(--slider-marker-color, var(--helix-color-background));
|
|
167
|
-
block-size: var(--_slider-track);
|
|
168
|
-
border-radius: var(--helix-radii-full);
|
|
169
|
-
inline-size: var(--helix-border-thick);
|
|
170
|
-
inset-block-start: 0;
|
|
171
|
-
|
|
172
|
-
inset-inline-start: var(--slider-marker-at, 0%);
|
|
173
|
-
position: absolute;
|
|
174
|
-
translate: -50% 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
:host(:dir(rtl)) [part="marker"] {
|
|
178
|
-
translate: 50% 0;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:host(:disabled) [part="control"] {
|
|
182
|
-
cursor: not-allowed;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host(:disabled) {
|
|
186
|
-
opacity: 0.5;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
[part="control"]::-webkit-slider-runnable-track {
|
|
190
|
-
background: var(--_slider-track-image);
|
|
191
|
-
block-size: var(--_slider-track);
|
|
192
|
-
border-radius: var(--helix-radii-full);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
[part="control"]::-moz-range-track {
|
|
196
|
-
background: var(--_slider-track-image);
|
|
197
|
-
block-size: var(--_slider-track);
|
|
198
|
-
border-radius: var(--helix-radii-full);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
[part="control"]::-webkit-slider-thumb {
|
|
202
|
-
appearance: none;
|
|
203
|
-
|
|
204
|
-
background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));
|
|
205
|
-
block-size: var(--_slider-thumb);
|
|
206
|
-
border: none;
|
|
207
|
-
border-radius: var(--_slider-thumb-radii);
|
|
208
|
-
|
|
209
|
-
box-shadow:
|
|
44
|
+
);}[part="marker"] {background-color: var(--slider-marker-color, var(--helix-color-background));block-size: var(--_slider-track);border-radius: var(--helix-radii-full);inline-size: var(--helix-border-thick);inset-block-start: 0;inset-inline-start: var(--slider-marker-at, 0%);position: absolute;translate: -50% 0;}:host(:dir(rtl)) [part="marker"] {translate: 50% 0;}:host(:disabled) [part="control"] {cursor: not-allowed;}:host(:disabled) {opacity: 0.5;}[part="control"]::-webkit-slider-runnable-track {background: var(--_slider-track-image);block-size: var(--_slider-track);border-radius: var(--helix-radii-full);}[part="control"]::-moz-range-track {background: var(--_slider-track-image);block-size: var(--_slider-track);border-radius: var(--helix-radii-full);}[part="control"]::-webkit-slider-thumb {appearance: none;background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));block-size: var(--_slider-thumb);border: none;border-radius: var(--_slider-thumb-radii);box-shadow:
|
|
210
45
|
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
211
|
-
var(--helix-shadow-md);
|
|
212
|
-
|
|
213
|
-
margin-block-start: calc((var(--_slider-track) - var(--_slider-thumb)) / 2);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
[part="control"]:focus-visible::-webkit-slider-thumb,
|
|
217
|
-
[part="control"]:active::-webkit-slider-thumb {
|
|
218
|
-
box-shadow:
|
|
46
|
+
var(--helix-shadow-md);inline-size: var(--_slider-thumb-length);margin-block-start: calc((var(--_slider-track) - var(--_slider-thumb)) / 2);}[part="control"]:focus-visible::-webkit-slider-thumb,
|
|
47
|
+
[part="control"]:active::-webkit-slider-thumb {box-shadow:
|
|
219
48
|
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
220
49
|
var(--helix-shadow-md),
|
|
221
|
-
0 0 0 var(--helix-space-2xs) var(--_slider-halo);
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
[part="control"]:focus-visible::-moz-range-thumb,
|
|
225
|
-
[part="control"]:active::-moz-range-thumb {
|
|
226
|
-
box-shadow:
|
|
50
|
+
0 0 0 var(--helix-space-2xs) var(--_slider-halo);}[part="control"]:focus-visible::-moz-range-thumb,
|
|
51
|
+
[part="control"]:active::-moz-range-thumb {box-shadow:
|
|
227
52
|
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
228
53
|
var(--helix-shadow-md),
|
|
229
|
-
0 0 0 var(--helix-space-2xs) var(--_slider-halo);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
[part="control"]::-moz-range-thumb {
|
|
233
|
-
background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));
|
|
234
|
-
block-size: var(--_slider-thumb);
|
|
235
|
-
|
|
236
|
-
border: none;
|
|
237
|
-
border-radius: var(--_slider-thumb-radii);
|
|
238
|
-
|
|
239
|
-
box-shadow:
|
|
54
|
+
0 0 0 var(--helix-space-2xs) var(--_slider-halo);}[part="control"]::-moz-range-thumb {background-color: var(--slider-thumb-color, var(--helix-color-surface-inverse));block-size: var(--_slider-thumb);border: none;border-radius: var(--_slider-thumb-radii);box-shadow:
|
|
240
55
|
0 0 0 var(--helix-border-thick) var(--slider-thumb-ring-color, var(--helix-color-background)),
|
|
241
|
-
var(--helix-shadow-md);
|
|
242
|
-
inline-size: var(--_slider-thumb-length);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
[part="control"]:focus-visible {
|
|
246
|
-
outline: none;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
[part="control"]:focus-visible::-webkit-slider-thumb {
|
|
250
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
251
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
[part="control"]:focus-visible::-moz-range-thumb {
|
|
255
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
256
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
:host(:state(invalid)) [part="control"]::-webkit-slider-thumb {
|
|
260
|
-
box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
:host(:state(invalid)) [part="control"]::-moz-range-thumb {
|
|
264
|
-
box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
:host([range]) [part="field"] {
|
|
268
|
-
display: grid;
|
|
269
|
-
grid-template-columns: 1fr auto;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
:host([range]) [part="control"] {
|
|
273
|
-
grid-area: 1 / 1;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
:host([range]) [part="output"] {
|
|
277
|
-
grid-column: 2;
|
|
278
|
-
grid-row: 1;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
:host([range]) [part="control"][data-thumb="start"] {
|
|
282
|
-
--_slider-track-image: var(
|
|
56
|
+
var(--helix-shadow-md);inline-size: var(--_slider-thumb-length);}[part="control"]:focus-visible {outline: none;}[part="control"]:focus-visible::-webkit-slider-thumb {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="control"]:focus-visible::-moz-range-thumb {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host(:state(invalid)) [part="control"]::-webkit-slider-thumb {box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);}:host(:state(invalid)) [part="control"]::-moz-range-thumb {box-shadow: 0 0 0 var(--helix-size-focus-ring) var(--helix-color-danger);}:host([range]) [part="field"] {display: grid;grid-template-columns: 1fr auto;}:host([range]) [part="control"] {grid-area: 1 / 1;}:host([range]) [part="output"] {grid-column: 2;grid-row: 1;}:host([range]) [part="control"][data-thumb="start"] {--_slider-track-image: var(
|
|
283
57
|
--slider-track-image,
|
|
284
58
|
linear-gradient(
|
|
285
59
|
var(--_slider-along),
|
|
@@ -288,81 +62,22 @@ var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-from, 0)
|
|
|
288
62
|
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-to, 1) * 100%),
|
|
289
63
|
var(--_slider-track-color) calc(var(--slider-to, 1) * 100%)
|
|
290
64
|
)
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
:host([range]) [part="control"][data-thumb="end"]::-webkit-slider-runnable-track {
|
|
295
|
-
background: transparent;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
:host([range]) [part="control"][data-thumb="end"]::-moz-range-track {
|
|
299
|
-
background: transparent;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
:host([range]) [part="control"] {
|
|
303
|
-
pointer-events: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
:host([range]) [part="control"]::-webkit-slider-thumb {
|
|
307
|
-
pointer-events: auto;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
:host([range]) [part="control"]::-moz-range-thumb {
|
|
311
|
-
pointer-events: auto;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
:host([orientation="vertical"]) [part="field"] {
|
|
315
|
-
flex-direction: column;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
:host([orientation="vertical"]) [part="field"][data-markers] {
|
|
319
|
-
grid-template-columns: none;
|
|
320
|
-
grid-template-rows: 1fr auto;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
:host([orientation="vertical"]) [part="control"] {
|
|
324
|
-
|
|
325
|
-
--_slider-track-image: var(
|
|
65
|
+
);}:host([range]) [part="control"][data-thumb="end"]::-webkit-slider-runnable-track {background: transparent;}:host([range]) [part="control"][data-thumb="end"]::-moz-range-track {background: transparent;}:host([range]) [part="control"] {pointer-events: none;}:host([range]) [part="control"]::-webkit-slider-thumb {pointer-events: auto;}:host([range]) [part="control"]::-moz-range-thumb {pointer-events: auto;}:host([orientation="vertical"]) [part="field"] {flex-direction: column;}:host([orientation="vertical"]) [part="field"][data-markers] {grid-template-columns: none;grid-template-rows: 1fr auto;}:host([orientation="vertical"]) [part="control"] {--_slider-track-image: var(
|
|
326
66
|
--slider-track-image,
|
|
327
67
|
linear-gradient(
|
|
328
68
|
to top,
|
|
329
69
|
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-fraction, 0) * 100%),
|
|
330
70
|
var(--_slider-track-color) calc(var(--slider-fraction, 0) * 100%)
|
|
331
71
|
)
|
|
332
|
-
);
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
block-size: var(--helix-border-thick);
|
|
342
|
-
|
|
343
|
-
inset-block-end: var(--slider-
|
|
344
|
-
inset-block-start: auto;
|
|
345
|
-
inset-inline-start: 0;
|
|
346
|
-
translate: 0 50%;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
:host([orientation="vertical"]) [part="field"][data-markers] [part="output"] {
|
|
350
|
-
grid-column: 1;
|
|
351
|
-
grid-row: 2;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
:host([orientation="vertical"]) [part="markers"] {
|
|
355
|
-
align-self: stretch;
|
|
356
|
-
block-size: auto;
|
|
357
|
-
inline-size: var(--_slider-track);
|
|
358
|
-
justify-self: center;
|
|
359
|
-
margin-block: calc(var(--_slider-thumb) / 2);
|
|
360
|
-
margin-inline: 0;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
@media print {
|
|
364
|
-
:host {
|
|
365
|
-
box-shadow: none;
|
|
366
|
-
print-color-adjust: exact;
|
|
367
|
-
}
|
|
368
|
-
}`);
|
|
72
|
+
);direction: rtl;inline-size: var(--slider-length, 9rem);margin-block: calc(var(--_slider-thumb-length) / 2);margin-inline: 0;writing-mode: vertical-lr;}:host([orientation="vertical"]) [part="control"][data-origin] {--_slider-track-image: var(
|
|
73
|
+
--slider-track-image,
|
|
74
|
+
linear-gradient(
|
|
75
|
+
to top,
|
|
76
|
+
var(--_slider-track-color) calc(var(--slider-from, 0) * 100%),
|
|
77
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-from, 0) * 100%),
|
|
78
|
+
var(--slider-fill-color, var(--helix-color-primary)) calc(var(--slider-to, 0) * 100%),
|
|
79
|
+
var(--_slider-track-color) calc(var(--slider-to, 0) * 100%)
|
|
80
|
+
)
|
|
81
|
+
);}:host([orientation="vertical"]) [part="marker"] {block-size: var(--helix-border-thick);inline-size: var(--_slider-track);inset-block-end: var(--slider-marker-at, 0%);inset-block-start: auto;inset-inline-start: 0;translate: 0 50%;}:host([orientation="vertical"]) [part="field"][data-markers] [part="output"] {grid-column: 1;grid-row: 2;}:host([orientation="vertical"]) [part="markers"] {align-self: stretch;block-size: auto;inline-size: var(--_slider-track);justify-self: center;margin-block: calc(var(--_slider-thumb) / 2);margin-inline: 0;}[part="field"][data-tooltip] {display: grid;grid-template-columns: 1fr auto;}[part="field"][data-tooltip] [part="control"],
|
|
82
|
+
[part="tooltips"] {grid-column: 1;grid-row: 1;}[part="field"][data-tooltip] [part="output"] {grid-column: 2;grid-row: 1;}[part="tooltips"] {align-self: center;block-size: var(--_slider-track);margin-inline: calc(var(--_slider-thumb-length) / 2);pointer-events: none;position: relative;z-index: var(--helix-layer-overlay);}[part="tooltip"] {background-color: var(--slider-tooltip-background-color, var(--helix-color-surface-inverse));border-radius: var(--helix-radii-sm);color: var(--slider-tooltip-color, var(--helix-color-foreground-inverse));font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;inset-block-end: calc(50% + var(--_slider-thumb) / 2 + var(--helix-space-2xs));inset-inline-start: calc(var(--slider-at, 0) * 100%);opacity: 0;padding: var(--helix-space-2xs) var(--helix-space-xs);position: absolute;transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);translate: -50% 0;white-space: nowrap;}:host(:dir(rtl)) [part="tooltip"] {translate: 50% 0;}:host(:hover) [part="tooltip"],
|
|
83
|
+
:host(:focus-within) [part="tooltip"] {opacity: 1;}:host([orientation="vertical"]) [part="field"][data-tooltip] {grid-template-columns: none;grid-template-rows: 1fr auto;}:host([orientation="vertical"]) [part="field"][data-tooltip] [part="output"] {grid-column: 1;grid-row: 2;justify-self: center;}:host([orientation="vertical"]) [part="tooltips"] {align-self: stretch;block-size: auto;inline-size: var(--_slider-track);justify-self: center;margin-block: calc(var(--_slider-thumb) / 2);margin-inline: 0;}:host([orientation="vertical"]) [part="tooltip"] {inset-block-end: calc(var(--slider-at, 0) * 100%);inset-inline-start: calc(50% + var(--_slider-thumb) / 2 + var(--helix-space-2xs));translate: 0 50%;}@media print {:host {box-shadow: none;print-color-adjust: exact;}}`);
|
|
@@ -26,6 +26,8 @@ import type { CSSResultGroup } from 'lit';
|
|
|
26
26
|
* @cssproperty --slider-thumb-radius - The thumb's corner radius. It is fully round by default, so a thumb with two different dimensions is a capsule unless you change it.
|
|
27
27
|
* @cssproperty --slider-thumb-ring-color - The color of the ring between the thumb and the track. Set it for a slider that sits on a surface other than the page background.
|
|
28
28
|
* @cssproperty --slider-thumb-size - The thumb's size across the track. It equals the length by default, which makes the thumb round.
|
|
29
|
+
* @cssproperty --slider-tooltip-background-color - The fill of the bubble each thumb shows its value in, under `tooltip`.
|
|
30
|
+
* @cssproperty --slider-tooltip-color - The color of the value in a thumb's bubble, under `tooltip`.
|
|
29
31
|
* @cssproperty --slider-track-color - The color of the unfilled part of the track.
|
|
30
32
|
* @cssproperty --slider-track-image - An image for the whole track, such as a gradient for a slider whose value is a color.
|
|
31
33
|
* @cssproperty --slider-track-size - The thickness of the track. It matches the progress bar's size by default.
|
|
@@ -1,100 +1,14 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--
|
|
4
|
-
block-size: var(--sparkline-block-size, 2.5em);
|
|
5
|
-
|
|
6
|
-
color: var(--_sparkline-ink);
|
|
7
|
-
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
display: inline-block;
|
|
11
|
-
inline-size: var(--sparkline-inline-size, 7em);
|
|
12
|
-
vertical-align: middle;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[part="svg"] {
|
|
16
|
-
block-size: 100%;
|
|
17
|
-
inline-size: 100%;
|
|
18
|
-
|
|
19
|
-
overflow: visible;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
[part="line"] {
|
|
23
|
-
fill: none;
|
|
24
|
-
stroke: currentColor;
|
|
25
|
-
stroke-linecap: round;
|
|
26
|
-
stroke-linejoin: round;
|
|
27
|
-
|
|
28
|
-
stroke-width: var(--sparkline-width, var(--_sparkline-weight, 0.11em));
|
|
29
|
-
|
|
30
|
-
vector-effect: non-scaling-stroke;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
[part="area"] {
|
|
34
|
-
fill: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part="wash-start"],
|
|
38
|
-
[part="wash-end"] {
|
|
39
|
-
stop-color: currentColor;
|
|
40
|
-
stop-opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:host(:not([plot="bar"]):not([plot="line"])) [part="area"] {
|
|
44
|
-
fill: url("#sparkline-wash");
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host(:not([plot="bar"]):not([plot="line"])) [part="wash-start"] {
|
|
48
|
-
|
|
49
|
-
stop-opacity: calc(var(--sparkline-area-opacity, 0.45) * var(--helix-material-opacity));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host(:not([plot="bar"]):not([plot="line"])) [part="wash-end"] {
|
|
53
|
-
stop-opacity: calc(var(--sparkline-area-opacity, 0.45) / 9 * var(--helix-material-opacity));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([weight="thin"]) {
|
|
57
|
-
--_sparkline-weight: 0.07em;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([weight="thick"]) {
|
|
61
|
-
--_sparkline-weight: 0.18em;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
[part="bar"] {
|
|
65
|
-
fill: currentColor;
|
|
66
|
-
rx: var(--sparkline-bar-radius, 0.5);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host([terminus="ring"]) [part="svg"] {
|
|
70
|
-
mask-image: radial-gradient(
|
|
2
|
+
export const styles = createSheet(`:host {--_sparkline-ink: var(--sparkline-color, var(--helix-color-series-1));block-size: var(--sparkline-block-size, 2.5em);color: var(--_sparkline-ink);position: relative;display: inline-block;inline-size: var(--sparkline-inline-size, 7em);vertical-align: middle;}[part="svg"] {block-size: 100%;inline-size: 100%;overflow: visible;}[part="line"] {fill: none;stroke: currentColor;stroke-linecap: round;stroke-linejoin: round;stroke-width: var(--sparkline-width, var(--_sparkline-weight, 0.11em));vector-effect: non-scaling-stroke;}[part="area"] {fill: none;}[part="wash-start"],
|
|
3
|
+
[part="wash-end"] {stop-color: currentColor;stop-opacity: 0;}:host(:not([plot="bar"]):not([plot="line"])) [part="area"] {fill: url("#sparkline-wash");}:host(:not([plot="bar"]):not([plot="line"])) [part="wash-start"] {stop-opacity: calc(var(--sparkline-area-opacity, 0.45) * var(--helix-material-opacity));}:host(:not([plot="bar"]):not([plot="line"])) [part="wash-end"] {stop-opacity: calc(var(--sparkline-area-opacity, 0.45) / 9 * var(--helix-material-opacity));}:host([weight="thin"]) {--_sparkline-weight: 0.07em;}:host([weight="thick"]) {--_sparkline-weight: 0.18em;}[part="range"] {fill: var(--sparkline-range-color, currentColor);fill-opacity: var(--sparkline-range-opacity, 0.12);}[part="bar"] {fill: currentColor;rx: var(--sparkline-bar-radius, 0.5);}:host([terminus="ring"]) [part="svg"] {mask-image: radial-gradient(
|
|
71
4
|
circle at var(--chart-terminus-x) var(--chart-terminus-y),
|
|
72
5
|
#0000 calc(var(--_chart-terminus-inner) - 0.5px),
|
|
73
6
|
#000 var(--_chart-terminus-inner)
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:host
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:host([emphasis="subtle"]) {
|
|
84
|
-
color: color-mix(in oklab, var(--_sparkline-ink) 40%, var(--helix-color-background));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host([emphasis="outlined"]) [part="bar"] {
|
|
88
|
-
fill: color-mix(in oklab, var(--_sparkline-ink) 55%, var(--helix-color-background));
|
|
89
|
-
stroke: var(--_sparkline-ink);
|
|
90
|
-
stroke-width: var(--sparkline-bar-stroke, 1);
|
|
91
|
-
vector-effect: non-scaling-stroke;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:host([emphasis="outlined"]) [part="area"] {
|
|
95
|
-
opacity: var(--sparkline-area-opacity, 0.35);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:host([emphasis="solid"]) [part="area"] {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}`);
|
|
7
|
+
);}@media print {:host {print-color-adjust: exact;}}:host([emphasis="subtle"]) {color: color-mix(in oklab, var(--_sparkline-ink) 40%, var(--helix-color-background));}:host([emphasis="outlined"]) [part="bar"] {fill: color-mix(in oklab, var(--_sparkline-ink) 55%, var(--helix-color-background));stroke: var(--_sparkline-ink);stroke-width: var(--sparkline-bar-stroke, 1);vector-effect: non-scaling-stroke;}:host([emphasis="outlined"]) [part="area"] {opacity: var(--sparkline-area-opacity, 0.35);}:host([emphasis="solid"]) [part="area"] {opacity: 1;}[part="svg"]:focus-visible {border-radius: var(--helix-radii-sm);outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="cursor"],
|
|
8
|
+
[part="high"],
|
|
9
|
+
[part="lone"],
|
|
10
|
+
[part="low"] {background-color: var(--sparkline-mark-color, currentColor);block-size: var(--sparkline-mark-size, 5px);border-radius: var(--helix-radii-full);inline-size: var(--sparkline-mark-size, 5px);pointer-events: none;position: absolute;translate: -50% -50%;}[part="cursor"] {box-shadow: 0 0 0 var(--helix-border-thick)
|
|
11
|
+
var(--sparkline-mark-ring-color, var(--helix-color-background));}[part="readout"] {background-color: var(--sparkline-readout-background-color, var(--helix-color-surface-inverse));border-radius: var(--helix-radii-sm);color: var(--sparkline-readout-color, var(--helix-color-foreground-inverse));font-family: var(--helix-font-sans);font-size: var(--sparkline-readout-font-size, var(--helix-text-xs));font-variant-numeric: tabular-nums;line-height: 1.4;padding: 0 var(--helix-space-2xs);pointer-events: none;position: absolute;translate: -50% calc(-100% - var(--sparkline-mark-size, 5px));white-space: nowrap;z-index: 1;}:host(:dir(rtl)) [part="cursor"],
|
|
12
|
+
:host(:dir(rtl)) [part="high"],
|
|
13
|
+
:host(:dir(rtl)) [part="lone"],
|
|
14
|
+
:host(:dir(rtl)) [part="low"] {translate: 50% -50%;}:host(:dir(rtl)) [part="readout"] {translate: 50% calc(-100% - var(--sparkline-mark-size, 5px));}[part="live"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap;}`);
|
|
@@ -30,6 +30,14 @@ import type { CSSResultGroup } from 'lit';
|
|
|
30
30
|
* @cssproperty --sparkline-block-size - Height of the drawing.
|
|
31
31
|
* @cssproperty --sparkline-color - Color of the line, the area fill, the columns, and the mark.
|
|
32
32
|
* @cssproperty --sparkline-inline-size - Width of the drawing.
|
|
33
|
+
* @cssproperty --sparkline-mark-color - Color of the dot on the reading a pointer or a key rests on, and of the `marks` dots. Without it, the line's color.
|
|
34
|
+
* @cssproperty --sparkline-mark-ring-color - Color of the ring round the dot on the reading a pointer or a key rests on, which matches the page. Change it when the sparkline sits on another surface.
|
|
35
|
+
* @cssproperty --sparkline-mark-size - Size of the dot on the reading a pointer or a key rests on, and of the `marks` dots.
|
|
36
|
+
* @cssproperty --sparkline-range-color - Fill of the band `range` draws. Without it, the line's color.
|
|
37
|
+
* @cssproperty --sparkline-range-opacity - Opacity of the band `range` draws.
|
|
38
|
+
* @cssproperty --sparkline-readout-background-color - Ground of the reading written above the dot.
|
|
39
|
+
* @cssproperty --sparkline-readout-color - Color of the reading written above the dot.
|
|
40
|
+
* @cssproperty --sparkline-readout-font-size - Size of the reading written above the dot.
|
|
33
41
|
* @cssproperty --sparkline-width - Thickness of the line, overriding `weight`.
|
|
34
42
|
*/
|
|
35
43
|
export declare class HelixSparkline extends HelixHeadlessSparkline {
|
|
@@ -8,9 +8,10 @@ import { customElement } from '@fusion.dev/helix-core';
|
|
|
8
8
|
import { HelixHeadlessSparkline } from '@fusion.dev/helix-headless/sparkline';
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { styles as terminusStyles } from '../../shared/chart/terminus.css.js';
|
|
11
|
+
import { styles as liveStyles } from '../../shared/live/live.css.js';
|
|
11
12
|
import { styles } from './sparkline-root.css.js';
|
|
12
13
|
let HelixSparkline = class HelixSparkline extends HelixHeadlessSparkline {
|
|
13
|
-
static { this.styles = [terminusStyles, styles]; }
|
|
14
|
+
static { this.styles = [liveStyles, terminusStyles, styles]; }
|
|
14
15
|
};
|
|
15
16
|
__decorate([
|
|
16
17
|
property({ reflect: true })
|
|
@@ -1,76 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="item"] {
|
|
7
|
-
align-items: center;
|
|
8
|
-
background: none;
|
|
9
|
-
border: none;
|
|
10
|
-
color: inherit;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
flex-direction: var(--_speed-dial-row, row-reverse);
|
|
14
|
-
font: inherit;
|
|
15
|
-
gap: var(--helix-space-sm);
|
|
16
|
-
padding: var(--helix-space-none);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part="item"]:disabled {
|
|
20
|
-
cursor: not-allowed;
|
|
21
|
-
opacity: 0.5;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part="icon"] {
|
|
25
|
-
--icon-size: var(--helix-size-icon);
|
|
26
|
-
|
|
27
|
-
align-items: center;
|
|
28
|
-
aspect-ratio: 1;
|
|
29
|
-
background-color: var(--speed-dial-item-background-color, var(--helix-color-surface-overlay));
|
|
30
|
-
border-radius: var(--helix-radii-full);
|
|
31
|
-
box-shadow: var(--helix-shadow-md);
|
|
32
|
-
color: var(--speed-dial-item-color, var(--helix-color-foreground));
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
inline-size: var(--speed-dial-item-size, var(--helix-size-control-tight));
|
|
35
|
-
justify-content: center;
|
|
36
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="item"] {align-items: center;background: none;border: none;color: inherit;cursor: pointer;display: inline-flex;flex-direction: var(--_speed-dial-row, row-reverse);font: inherit;gap: var(--helix-space-sm);padding: var(--helix-space-none);}[part="item"]:disabled {cursor: not-allowed;opacity: var(--speed-dial-item-disabled-opacity, 0.5);}[part="icon"] {--icon-size: var(--helix-size-icon);align-items: center;aspect-ratio: 1;background-color: var(--speed-dial-item-background-color, var(--helix-color-surface-overlay));border-radius: var(--helix-radii-full);box-shadow: var(--helix-shadow-md);color: var(--speed-dial-item-color, var(--helix-color-foreground));display: inline-flex;inline-size: var(--speed-dial-item-size, var(--helix-size-control-tight));justify-content: center;pointer-events: auto;transition:
|
|
37
3
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
38
|
-
box-shadow var(--helix-duration-fast) var(--helix-easing-standard);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[part="item"]:
|
|
42
|
-
|
|
43
|
-
in oklab,
|
|
44
|
-
var(--helix-color-foreground) 6%,
|
|
45
|
-
var(--helix-color-surface-overlay)
|
|
46
|
-
);
|
|
47
|
-
box-shadow: var(--helix-shadow-lg);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[part="item"]:focus-visible {
|
|
51
|
-
outline: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
[part="item"]:focus-visible [part="icon"] {
|
|
55
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
56
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[part="label"] {
|
|
60
|
-
background-color: var(--speed-dial-label-background-color, var(--helix-color-surface-overlay));
|
|
61
|
-
border-radius: var(--helix-radii-sm);
|
|
62
|
-
box-shadow: var(--helix-shadow-sm);
|
|
63
|
-
color: var(--speed-dial-label-color, var(--helix-color-foreground));
|
|
64
|
-
font-family: var(--helix-font-sans);
|
|
65
|
-
font-size: var(--helix-text-sm);
|
|
66
|
-
font-weight: var(--helix-weight-medium);
|
|
67
|
-
opacity: var(--_speed-dial-label-opacity, 1);
|
|
68
|
-
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
69
|
-
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[part="item"]:hover [part="label"],
|
|
74
|
-
[part="item"]:focus-visible [part="label"] {
|
|
75
|
-
opacity: 1;
|
|
76
|
-
}`);
|
|
4
|
+
box-shadow var(--helix-duration-fast) var(--helix-easing-standard);}[part="item"]:not(:disabled):hover [part="icon"] {background-color: var(
|
|
5
|
+
--speed-dial-item-hover-background-color,
|
|
6
|
+
color-mix(in oklab, var(--helix-color-foreground) 6%, var(--helix-color-surface-overlay))
|
|
7
|
+
);box-shadow: var(--helix-shadow-lg);}[part="item"]:focus-visible {outline: none;}[part="item"]:focus-visible [part="icon"] {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="label"] {background-color: var(--speed-dial-label-background-color, var(--helix-color-surface-overlay));border-radius: var(--helix-radii-sm);box-shadow: var(--helix-shadow-sm);color: var(--speed-dial-label-color, var(--helix-color-foreground));font-family: var(--helix-font-sans);font-size: var(--speed-dial-label-font-size, var(--helix-text-sm));font-weight: var(--helix-weight-medium);opacity: var(--_speed-dial-label-opacity, 1);padding: var(--helix-space-2xs) var(--helix-space-xs);transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);white-space: nowrap;}[part="item"]:hover [part="label"],
|
|
8
|
+
[part="item"]:focus-visible [part="label"] {opacity: 1;}`);
|
|
@@ -16,9 +16,12 @@ import type { CSSResultGroup } from 'lit';
|
|
|
16
16
|
*
|
|
17
17
|
* @cssproperty --speed-dial-item-background-color - Fill of the round icon.
|
|
18
18
|
* @cssproperty --speed-dial-item-color - Color of the icon.
|
|
19
|
+
* @cssproperty --speed-dial-item-disabled-opacity - How faint a disabled action is drawn.
|
|
20
|
+
* @cssproperty --speed-dial-item-hover-background-color - Fill of the round icon under the pointer.
|
|
19
21
|
* @cssproperty --speed-dial-item-size - Edge length of the icon.
|
|
20
22
|
* @cssproperty --speed-dial-label-background-color - Fill of the chip holding the action's name.
|
|
21
23
|
* @cssproperty --speed-dial-label-color - Color of the action's name.
|
|
24
|
+
* @cssproperty --speed-dial-label-font-size - Size of the action's name.
|
|
22
25
|
*/
|
|
23
26
|
export declare class HelixSpeedDialItem extends HelixHeadlessSpeedDialItem {
|
|
24
27
|
static styles: CSSResultGroup;
|