@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,221 +1,98 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_icon-button-size: var(--icon-button-size, var(--helix-size-control));
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
--_icon-button-edge: var(--helix-color-border);
|
|
9
|
-
|
|
10
|
-
--_icon-button-turn: 0.8s;
|
|
11
|
-
--_icon-button-ink: var(--helix-color-foreground-muted);
|
|
12
|
-
--_icon-button-ink-hover: var(--helix-color-foreground);
|
|
13
|
-
|
|
14
|
-
--_icon-button-fill: var(--_icon-button-tone);
|
|
15
|
-
--_icon-button-fill-hover: var(--_icon-button-tone-hover);
|
|
16
|
-
--_icon-button-on-tone: var(--helix-color-background);
|
|
17
|
-
--_icon-button-tone: var(--helix-color-foreground);
|
|
18
|
-
--_icon-button-tone-hover: color-mix(
|
|
2
|
+
export const styles = createSheet(`:host {--_icon-button-size: var(--icon-button-size, var(--helix-size-control));display: inline-flex;}:host {--_icon-button-edge: var(--helix-color-border);--_icon-button-turn: 0.8s;--_icon-button-ink: var(--helix-color-foreground-muted);--_icon-button-ink-hover: var(--helix-color-foreground);--_icon-button-fill: var(--_icon-button-tone);--_icon-button-fill-hover: var(--_icon-button-tone-hover);--_icon-button-on-tone: var(--helix-color-background);--_icon-button-tone: var(--helix-color-foreground);--_icon-button-tone-hover: color-mix(
|
|
19
3
|
in oklab,
|
|
20
4
|
var(--helix-color-foreground) 86%,
|
|
21
5
|
var(--helix-color-background)
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
:host([tone="primary"]) {
|
|
25
|
-
--_icon-button-edge: var(--helix-color-primary);
|
|
26
|
-
--_icon-button-ink: var(--helix-color-primary);
|
|
27
|
-
--_icon-button-ink-hover: var(--helix-color-primary);
|
|
28
|
-
--_icon-button-fill: var(--helix-color-primary-surface);
|
|
29
|
-
--_icon-button-fill-hover: var(--helix-color-primary-surface-hover);
|
|
30
|
-
--_icon-button-on-tone: var(--helix-color-foreground-on-primary);
|
|
31
|
-
--_icon-button-tone: var(--helix-color-primary);
|
|
32
|
-
--_icon-button-tone-hover: var(--helix-color-primary-hover);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([tone="accent"]) {
|
|
36
|
-
--_icon-button-edge: var(--helix-color-accent);
|
|
37
|
-
--_icon-button-ink: var(--helix-color-accent);
|
|
38
|
-
--_icon-button-ink-hover: var(--helix-color-accent);
|
|
39
|
-
--_icon-button-fill: var(--helix-color-accent-surface);
|
|
40
|
-
--_icon-button-fill-hover: var(--helix-color-accent-surface-hover);
|
|
41
|
-
--_icon-button-on-tone: var(--helix-color-foreground-on-accent);
|
|
42
|
-
--_icon-button-tone: var(--helix-color-accent);
|
|
43
|
-
--_icon-button-tone-hover: var(--helix-color-accent-hover);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([tone="danger"]) {
|
|
47
|
-
--_icon-button-edge: var(--helix-color-danger);
|
|
48
|
-
--_icon-button-ink: var(--helix-color-danger);
|
|
49
|
-
--_icon-button-ink-hover: var(--helix-color-danger);
|
|
50
|
-
--_icon-button-fill: var(--helix-color-danger-surface);
|
|
51
|
-
--_icon-button-fill-hover: var(--helix-color-danger-surface-hover);
|
|
52
|
-
--_icon-button-on-tone: var(--helix-color-foreground-on-status);
|
|
53
|
-
--_icon-button-tone: var(--helix-color-danger);
|
|
54
|
-
--_icon-button-tone-hover: color-mix(
|
|
6
|
+
);}:host([tone="primary"]) {--_icon-button-edge: var(--helix-color-primary);--_icon-button-ink: var(--helix-color-primary);--_icon-button-ink-hover: var(--helix-color-primary);--_icon-button-fill: var(--helix-color-primary-surface);--_icon-button-fill-hover: var(--helix-color-primary-surface-hover);--_icon-button-on-tone: var(--helix-color-foreground-on-primary);--_icon-button-tone: var(--helix-color-primary);--_icon-button-tone-hover: var(--helix-color-primary-hover);}:host([tone="accent"]) {--_icon-button-edge: var(--helix-color-accent);--_icon-button-ink: var(--helix-color-accent);--_icon-button-ink-hover: var(--helix-color-accent);--_icon-button-fill: var(--helix-color-accent-surface);--_icon-button-fill-hover: var(--helix-color-accent-surface-hover);--_icon-button-on-tone: var(--helix-color-foreground-on-accent);--_icon-button-tone: var(--helix-color-accent);--_icon-button-tone-hover: var(--helix-color-accent-hover);}:host([tone="danger"]) {--_icon-button-edge: var(--helix-color-danger);--_icon-button-ink: var(--helix-color-danger);--_icon-button-ink-hover: var(--helix-color-danger);--_icon-button-fill: var(--helix-color-danger-surface);--_icon-button-fill-hover: var(--helix-color-danger-surface-hover);--_icon-button-on-tone: var(--helix-color-foreground-on-status);--_icon-button-tone: var(--helix-color-danger);--_icon-button-tone-hover: color-mix(
|
|
55
7
|
in oklab,
|
|
56
8
|
var(--helix-color-danger) 86%,
|
|
57
9
|
var(--helix-color-foreground)
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
align-items: center;
|
|
63
|
-
background-color: var(--icon-button-background-color, transparent);
|
|
64
|
-
block-size: var(--_icon-button-size);
|
|
65
|
-
border: var(--helix-border-thin) solid transparent;
|
|
66
|
-
|
|
67
|
-
border-end-end-radius: var(--button-radius-end, var(--icon-button-radius, var(--helix-radii-sm)));
|
|
68
|
-
border-end-start-radius: var(
|
|
10
|
+
);}[part="button"] {align-items: center;background-color: var(
|
|
11
|
+
--_icon-button-pressed-fill,
|
|
12
|
+
var(--icon-button-background-color, transparent)
|
|
13
|
+
);block-size: var(--_icon-button-size);border: var(--helix-border-thin) solid transparent;border-end-end-radius: var(--button-radius-end, var(--icon-button-radius, var(--helix-radii-sm)));border-end-start-radius: var(
|
|
69
14
|
--button-radius-start,
|
|
70
15
|
var(--icon-button-radius, var(--helix-radii-sm))
|
|
71
|
-
);
|
|
72
|
-
border-start-end-radius: var(
|
|
16
|
+
);border-start-end-radius: var(
|
|
73
17
|
--button-radius-end,
|
|
74
18
|
var(--icon-button-radius, var(--helix-radii-sm))
|
|
75
|
-
);
|
|
76
|
-
border-start-start-radius: var(
|
|
19
|
+
);border-start-start-radius: var(
|
|
77
20
|
--button-radius-start,
|
|
78
21
|
var(--icon-button-radius, var(--helix-radii-sm))
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
|
|
84
|
-
font: inherit;
|
|
85
|
-
inline-size: var(--_icon-button-size);
|
|
86
|
-
justify-content: center;
|
|
87
|
-
padding: var(--helix-space-none);
|
|
88
|
-
transition:
|
|
22
|
+
);color: var(
|
|
23
|
+
--_icon-button-pressed-ink,
|
|
24
|
+
var(--icon-button-foreground-color, var(--_icon-button-ink))
|
|
25
|
+
);cursor: pointer;display: inline-flex;font: inherit;inline-size: var(--_icon-button-size);justify-content: center;padding: var(--helix-space-none);transition:
|
|
89
26
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
90
|
-
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:host(:not(:disabled)) [part="button"]:hover {
|
|
94
|
-
background-color: var(
|
|
27
|
+
color var(--helix-duration-fast) var(--helix-easing-standard);}:host(:not(:disabled)) [part="button"]:hover {background-color: var(
|
|
28
|
+
--_icon-button-pressed-fill,
|
|
29
|
+
var(
|
|
95
30
|
--icon-button-background-color-hover,
|
|
96
31
|
var(
|
|
97
32
|
--icon-button-background-color,
|
|
98
33
|
color-mix(in oklab, var(--_icon-button-tone) 8%, transparent)
|
|
99
34
|
)
|
|
100
|
-
)
|
|
101
|
-
color: var(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:host([shape="circle"]) [part="button"] {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
box-shadow: var(--icon-button-shadow, var(--helix-shadow-lg));
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:host([raised]:not(:disabled)) [part="button"]:active {
|
|
117
|
-
box-shadow: var(--icon-button-shadow, var(--helix-shadow-sm));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
[part="button"]:focus-visible {
|
|
121
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
122
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:host([emphasis="solid"]) [part="button"] {
|
|
126
|
-
background-color: var(--icon-button-background-color, var(--_icon-button-fill));
|
|
127
|
-
border-color: transparent;
|
|
128
|
-
color: var(--icon-button-foreground-color, var(--_icon-button-on-tone));
|
|
129
|
-
}
|
|
130
|
-
:host(:not(:disabled)[emphasis="solid"]) [part="button"]:hover {
|
|
131
|
-
background-color: var(
|
|
35
|
+
)
|
|
36
|
+
);color: var(
|
|
37
|
+
--_icon-button-pressed-ink,
|
|
38
|
+
var(--icon-button-foreground-color, var(--_icon-button-ink-hover))
|
|
39
|
+
);}:host(:not(:disabled)) [part="button"]:active {--_icon-button-pressed-fill: var(--icon-button-background-color-active);--_icon-button-pressed-ink: var(--icon-button-foreground-color-active);}:host([shape="circle"]) [part="button"] {border-radius: var(--helix-radii-full);}:host([raised]) [part="button"] {box-shadow: var(--icon-button-shadow, var(--helix-shadow-md));}:host([raised]:not(:disabled)) [part="button"]:hover {box-shadow: var(--icon-button-shadow, var(--helix-shadow-lg));}:host([raised]:not(:disabled)) [part="button"]:active {box-shadow: var(--icon-button-shadow, var(--helix-shadow-sm));}[part="button"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host([emphasis="solid"]) [part="button"] {background-color: var(
|
|
40
|
+
--_icon-button-pressed-fill,
|
|
41
|
+
var(--icon-button-background-color, var(--_icon-button-fill))
|
|
42
|
+
);border-color: transparent;color: var(
|
|
43
|
+
--_icon-button-pressed-ink,
|
|
44
|
+
var(--icon-button-foreground-color, var(--_icon-button-on-tone))
|
|
45
|
+
);}:host(:not(:disabled)[emphasis="solid"]) [part="button"]:hover {background-color: var(
|
|
46
|
+
--_icon-button-pressed-fill,
|
|
47
|
+
var(
|
|
132
48
|
--icon-button-background-color-hover,
|
|
133
49
|
var(--icon-button-background-color, var(--_icon-button-fill-hover))
|
|
134
|
-
)
|
|
135
|
-
color: var(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
:host([emphasis="outlined"]) [part="button"] {
|
|
139
|
-
|
|
50
|
+
)
|
|
51
|
+
);color: var(
|
|
52
|
+
--_icon-button-pressed-ink,
|
|
53
|
+
var(--icon-button-foreground-color, var(--_icon-button-on-tone))
|
|
54
|
+
);}:host([emphasis="outlined"]) [part="button"] {background-color: var(
|
|
55
|
+
--_icon-button-pressed-fill,
|
|
56
|
+
var(
|
|
140
57
|
--icon-button-background-color,
|
|
141
58
|
color-mix(in oklab, var(--_icon-button-tone) 6%, transparent)
|
|
142
|
-
)
|
|
143
|
-
border-color: var(--_icon-button-edge);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
:host(:not(:disabled)[emphasis="outlined"]) [part="button"]:hover {
|
|
147
|
-
|
|
59
|
+
)
|
|
60
|
+
);border-color: var(--_icon-button-edge);color: var(
|
|
61
|
+
--_icon-button-pressed-ink,
|
|
62
|
+
var(--icon-button-foreground-color, var(--_icon-button-tone))
|
|
63
|
+
);}:host(:not(:disabled)[emphasis="outlined"]) [part="button"]:hover {background-color: var(
|
|
64
|
+
--_icon-button-pressed-fill,
|
|
65
|
+
var(
|
|
148
66
|
--icon-button-background-color-hover,
|
|
149
67
|
var(
|
|
150
68
|
--icon-button-background-color,
|
|
151
69
|
color-mix(in oklab, var(--_icon-button-tone) 12%, transparent)
|
|
152
70
|
)
|
|
153
|
-
)
|
|
154
|
-
color: var(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
:host([emphasis="subtle"]) [part="button"] {
|
|
158
|
-
|
|
71
|
+
)
|
|
72
|
+
);color: var(
|
|
73
|
+
--_icon-button-pressed-ink,
|
|
74
|
+
var(--icon-button-foreground-color, var(--_icon-button-tone))
|
|
75
|
+
);}:host([emphasis="subtle"]) [part="button"] {background-color: var(
|
|
76
|
+
--_icon-button-pressed-fill,
|
|
77
|
+
var(
|
|
159
78
|
--icon-button-background-color,
|
|
160
79
|
color-mix(in oklab, var(--_icon-button-tone) 14%, transparent)
|
|
161
|
-
)
|
|
162
|
-
border-color: transparent;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
80
|
+
)
|
|
81
|
+
);border-color: transparent;color: var(
|
|
82
|
+
--_icon-button-pressed-ink,
|
|
83
|
+
var(--icon-button-foreground-color, var(--_icon-button-tone))
|
|
84
|
+
);}:host(:not(:disabled)[emphasis="subtle"]) [part="button"]:hover {background-color: var(
|
|
85
|
+
--_icon-button-pressed-fill,
|
|
86
|
+
var(
|
|
168
87
|
--icon-button-background-color-hover,
|
|
169
88
|
var(
|
|
170
89
|
--icon-button-background-color,
|
|
171
90
|
color-mix(in oklab, var(--_icon-button-tone) 22%, transparent)
|
|
172
91
|
)
|
|
173
|
-
)
|
|
174
|
-
color: var(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:host(:disabled) [part="button"] {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
:host(:state(pending)) [part="button"] {
|
|
183
|
-
cursor: progress;
|
|
184
|
-
position: relative;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:host(:state(pending)) [part="button"] > * {
|
|
188
|
-
visibility: hidden;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:host(:state(pending)) [part="button"]::after {
|
|
192
|
-
animation: helix-icon-button-turn var(--_icon-button-turn) linear infinite;
|
|
193
|
-
block-size: var(--icon-button-spinner-size, 1.15em);
|
|
194
|
-
border: var(--helix-border-thick) solid color-mix(in oklab, currentColor 30%, transparent);
|
|
195
|
-
border-block-start-color: currentColor;
|
|
196
|
-
border-radius: var(--helix-radii-full);
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
content: "";
|
|
199
|
-
inline-size: var(--icon-button-spinner-size, 1.15em);
|
|
200
|
-
inset: 0;
|
|
201
|
-
margin: auto;
|
|
202
|
-
position: absolute;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@keyframes helix-icon-button-turn {
|
|
206
|
-
to {
|
|
207
|
-
rotate: 1turn;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@media (prefers-reduced-motion: reduce) {
|
|
212
|
-
:host(:state(pending)) [part="button"]::after {
|
|
213
|
-
animation-duration: calc(var(--helix-duration-slow) * 12);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@media print {
|
|
218
|
-
:host {
|
|
219
|
-
display: none;
|
|
220
|
-
}
|
|
221
|
-
}`);
|
|
92
|
+
)
|
|
93
|
+
);color: var(
|
|
94
|
+
--_icon-button-pressed-ink,
|
|
95
|
+
var(--icon-button-foreground-color, var(--_icon-button-tone))
|
|
96
|
+
);}:host(:disabled) [part="button"] {cursor: not-allowed;opacity: 0.5;}:host(:state(pending)) [part="button"] {cursor: progress;position: relative;}:host(:state(pending)) [part="button"] > :not([part="spinner"]) {visibility: hidden;}[part="spinner"] {animation: helix-icon-button-turn var(--icon-button-spinner-duration, var(--_icon-button-turn))
|
|
97
|
+
linear infinite;block-size: var(--icon-button-spinner-size, 1.15em);border: var(--helix-border-thick) solid
|
|
98
|
+
color-mix(in oklab, var(--icon-button-spinner-color, currentColor) 30%, transparent);border-block-start-color: var(--icon-button-spinner-color, currentColor);border-radius: var(--helix-radii-full);box-sizing: border-box;inline-size: var(--icon-button-spinner-size, 1.15em);inset: 0;margin: auto;position: absolute;}@keyframes helix-icon-button-turn {to {rotate: 1turn;}}@media (prefers-reduced-motion: reduce) {[part="spinner"] {animation-duration: calc(var(--helix-duration-slow) * 12);}}@media print {:host {display: none;}}`);
|
|
@@ -23,13 +23,18 @@ declare const HelixIconButton_base: (new (...args: any[]) => import("../../share
|
|
|
23
23
|
*
|
|
24
24
|
* @csspart button - The inner button.
|
|
25
25
|
* @csspart live - The live region that says `pending-label` when the button becomes pending under focus. It is clipped out of view and still read.
|
|
26
|
+
* @csspart spinner - The ring a pending button turns over its icon, sized and colored by the `--icon-button-spinner-*` hooks.
|
|
26
27
|
*
|
|
27
28
|
* @cssproperty --icon-button-background-color - Fill behind the button, in every state.
|
|
29
|
+
* @cssproperty --icon-button-background-color-active - Fill behind the button while it is pressed. Without it, a press shows the fill of the state under it.
|
|
28
30
|
* @cssproperty --icon-button-background-color-hover - Fill behind the button under the pointer. Without it, `--icon-button-background-color` also applies on hover.
|
|
29
31
|
* @cssproperty --icon-button-foreground-color - Icon color.
|
|
32
|
+
* @cssproperty --icon-button-foreground-color-active - Icon color while the button is pressed. Without it, a press shows the color of the state under it.
|
|
30
33
|
* @cssproperty --icon-button-radius - Corner radius of the control, which a group flattens through `--button-radius-start` and `--button-radius-end`.
|
|
31
34
|
* @cssproperty --icon-button-shadow - Shadow of a raised icon button.
|
|
32
35
|
* @cssproperty --icon-button-size - Edge length of the control.
|
|
36
|
+
* @cssproperty --icon-button-spinner-color - Color of the ring a pending button turns. It follows the icon's color.
|
|
37
|
+
* @cssproperty --icon-button-spinner-duration - How long the ring takes to turn once.
|
|
33
38
|
* @cssproperty --icon-button-spinner-size - Size of the ring a pending button turns.
|
|
34
39
|
*
|
|
35
40
|
* @cssstate pending - The button is pending: `pending` is set. A ring turns over its hidden icon.
|
|
@@ -1,66 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
display: block
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:host([shape="rounded"]) {
|
|
10
|
-
border-radius: var(--image-radius, var(--helix-radii-md));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[part="image"] {
|
|
14
|
-
block-size: 100%;
|
|
15
|
-
display: block;
|
|
16
|
-
inline-size: 100%;
|
|
17
|
-
object-fit: var(--image-fit, cover);
|
|
18
|
-
object-position: var(--image-position, center);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([data-status="error"]) [part="image"] {
|
|
22
|
-
opacity: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part="placeholder"],
|
|
26
|
-
[part="fallback"] {
|
|
27
|
-
align-items: center;
|
|
28
|
-
display: flex;
|
|
29
|
-
inset: 0;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
position: absolute;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host [part="placeholder"][hidden],
|
|
35
|
-
:host [part="fallback"][hidden] {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part="placeholder"] {
|
|
40
|
-
background-color: var(--image-placeholder-color, var(--helix-color-surface-sunken));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
[part="placeholder"] ::slotted(*) {
|
|
44
|
-
block-size: 100%;
|
|
45
|
-
inline-size: 100%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part="fallback"] {
|
|
49
|
-
background-color: var(--image-placeholder-color, var(--helix-color-surface-sunken));
|
|
50
|
-
color: var(--helix-color-foreground-subtle);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
[part="image"] {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
transition: opacity var(--helix-duration-normal) var(--helix-easing-standard);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([data-status="loaded"]) [part="image"] {
|
|
59
|
-
opacity: 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media print {
|
|
63
|
-
:host {
|
|
64
|
-
print-color-adjust: economy;
|
|
65
|
-
}
|
|
66
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {aspect-ratio: var(--image-aspect, auto);display: block;overflow: hidden;position: relative;}:host([shape="rounded"]) {border-radius: var(--image-radius, var(--helix-radii-md));}[part="image"] {block-size: 100%;display: block;inline-size: 100%;object-fit: var(--image-fit, cover);object-position: var(--image-position, center);}:host([data-status="error"]) [part="image"] {opacity: 0;}[part="placeholder"],
|
|
3
|
+
[part="fallback"] {align-items: center;display: flex;inset: 0;justify-content: center;position: absolute;}:host [part="placeholder"][hidden],
|
|
4
|
+
:host [part="fallback"][hidden] {display: none;}[part="placeholder"] {background-color: var(--image-placeholder-color, var(--helix-color-surface-sunken));}[part="placeholder"] ::slotted(*) {block-size: 100%;inline-size: 100%;}[part="fallback"] {background-color: var(
|
|
5
|
+
--image-fallback-background-color,
|
|
6
|
+
var(--image-placeholder-color, var(--helix-color-surface-sunken))
|
|
7
|
+
);color: var(--image-fallback-color, var(--helix-color-foreground-subtle));}[part="image"] {opacity: 0;transition: opacity var(--image-fade-duration, var(--helix-duration-normal))
|
|
8
|
+
var(--helix-easing-standard);}:host([data-status="loaded"]) [part="image"] {opacity: 1;}@media print {:host {print-color-adjust: economy;}}`);
|
|
@@ -15,6 +15,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
15
15
|
* @documentation https://fusion.dev/helix/components/image
|
|
16
16
|
*
|
|
17
17
|
* @cssproperty --image-aspect - The aspect ratio of the box, such as `16 / 9`.
|
|
18
|
+
* @cssproperty --image-fade-duration - How long the picture takes to fade in once it loads. `0s` shows it at once.
|
|
19
|
+
* @cssproperty --image-fallback-background-color - The background behind the fallback. Defaults to the placeholder's.
|
|
20
|
+
* @cssproperty --image-fallback-color - The color of the fallback's text.
|
|
18
21
|
* @cssproperty --image-fit - How the image fills the box, as an `object-fit` value.
|
|
19
22
|
* @cssproperty --image-placeholder-color - The background behind the placeholder and the fallback.
|
|
20
23
|
* @cssproperty --image-position - Which part of the image stays in view when it is cropped, as an `object-position` value.
|
|
@@ -1,81 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_input-size: var(--input-size, var(--helix-size-control));
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="field"] {
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: var(--input-background-color, var(--helix-color-well));
|
|
9
|
-
block-size: var(--_input-size);
|
|
10
|
-
border: var(--helix-border-thin) solid var(--input-border-color, var(--helix-color-border));
|
|
11
|
-
border-radius: var(--input-radius, var(--helix-radii-sm));
|
|
12
|
-
color: var(--helix-color-foreground-subtle);
|
|
13
|
-
display: flex;
|
|
14
|
-
gap: var(--helix-space-2xs);
|
|
15
|
-
padding-inline: var(--input-padding-inline, var(--helix-space-xs));
|
|
16
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {--_input-size: var(--input-size, var(--helix-size-control));}[part="field"] {align-items: center;background-color: var(--input-background-color, var(--helix-color-well));block-size: var(--_input-size);border: var(--helix-border-thin) solid var(--input-border-color, var(--helix-color-border));border-radius: var(--input-radius, var(--helix-radii-sm));color: var(--helix-color-foreground-subtle);display: flex;gap: var(--helix-space-2xs);padding-inline: var(--input-padding-inline, var(--helix-space-xs));transition:
|
|
17
3
|
border-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
18
|
-
background-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part="control"]::-webkit-search-cancel-button {
|
|
26
|
-
appearance: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
slot[name="start"]::slotted(*),
|
|
30
|
-
slot[name="end"]::slotted(*) {
|
|
31
|
-
color: var(--helix-color-foreground-subtle);
|
|
32
|
-
flex: 0 0 auto;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host(:disabled) [part="field"] {
|
|
36
|
-
cursor: not-allowed;
|
|
37
|
-
opacity: 0.5;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([readonly]) [part="field"] {
|
|
41
|
-
background-color: transparent;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part="clear"],
|
|
45
|
-
[part~="reveal"] {
|
|
46
|
-
--icon-size: var(--helix-size-icon-tight);
|
|
47
|
-
all: unset;
|
|
48
|
-
|
|
49
|
-
align-items: center;
|
|
50
|
-
border-radius: var(--helix-radii-sm);
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
color: var(--helix-color-foreground-muted);
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex: 0 0 auto;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
min-block-size: var(--helix-size-icon-loose);
|
|
58
|
-
min-inline-size: var(--helix-size-icon-loose);
|
|
59
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
[part="clear"]:hover,
|
|
63
|
-
[part~="reveal"]:hover {
|
|
64
|
-
color: var(--helix-color-foreground);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[part="clear"]:focus-visible,
|
|
68
|
-
[part~="reveal"]:focus-visible {
|
|
69
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
70
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[part~="reveal"][aria-pressed="true"] {
|
|
74
|
-
color: var(--helix-color-foreground);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media print {
|
|
78
|
-
:host {
|
|
79
|
-
print-color-adjust: exact;
|
|
80
|
-
}
|
|
81
|
-
}`);
|
|
4
|
+
background-color var(--helix-duration-fast) var(--helix-easing-standard);}[part="control"] {block-size: 100%;}[part="control"]::-webkit-search-cancel-button {appearance: none;}slot[name="start"]::slotted(*),
|
|
5
|
+
slot[name="end"]::slotted(*) {color: var(--helix-color-foreground-subtle);flex: 0 0 auto;}:host(:disabled) [part="field"] {cursor: not-allowed;opacity: 0.5;}:host([readonly]) [part="field"] {background-color: transparent;}[part="clear"],
|
|
6
|
+
[part~="reveal"] {--icon-size: var(--helix-size-icon-tight);all: unset;align-items: center;border-radius: var(--helix-radii-sm);box-sizing: border-box;color: var(--helix-color-foreground-muted);cursor: pointer;display: flex;flex: 0 0 auto;justify-content: center;min-block-size: var(--helix-size-icon-loose);min-inline-size: var(--helix-size-icon-loose);transition: color var(--helix-duration-fast) var(--helix-easing-standard);}[part="clear"]:hover,
|
|
7
|
+
[part~="reveal"]:hover {color: var(--helix-color-foreground);}[part="clear"]:focus-visible,
|
|
8
|
+
[part~="reveal"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part~="reveal"][aria-pressed="true"] {color: var(--helix-color-foreground);}@media print {:host {print-color-adjust: exact;}}`);
|
|
@@ -1,46 +1,4 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_kbd-size: 0.85em;
|
|
5
|
-
--_kbd-height: 1.5em;
|
|
6
|
-
--_kbd-inset: 0.4em;
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
font: inherit;
|
|
9
|
-
|
|
10
|
-
vertical-align: -0.05em;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[part="kbd"] {
|
|
14
|
-
align-items: center;
|
|
15
|
-
background-color: var(--kbd-background-color, var(--helix-color-surface-sunken));
|
|
16
|
-
block-size: var(--_kbd-height);
|
|
17
|
-
border: var(--helix-border-thin) solid var(--kbd-border-color, var(--helix-color-border));
|
|
18
|
-
border-radius: var(--helix-radii-sm);
|
|
19
|
-
|
|
20
|
-
box-shadow: inset 0 -1px 0 0 var(--kbd-border-color, var(--helix-color-border));
|
|
21
|
-
color: var(--helix-color-foreground-muted);
|
|
22
|
-
display: inline-flex;
|
|
23
|
-
font-family: var(--helix-font-mono);
|
|
24
|
-
|
|
25
|
-
font-feature-settings:
|
|
2
|
+
export const styles = createSheet(`:host {--_kbd-size: var(--kbd-font-size, 0.85em);--_kbd-height: var(--kbd-block-size, 1.5em);--_kbd-inset: var(--kbd-padding-inline, 0.4em);display: inline-flex;font: inherit;vertical-align: -0.05em;}[part="kbd"] {align-items: center;background-color: var(--kbd-background-color, var(--helix-color-surface-sunken));block-size: var(--_kbd-height);border: var(--helix-border-thin) solid var(--kbd-border-color, var(--helix-color-border));border-radius: var(--kbd-radius, var(--helix-radii-sm));box-shadow: inset 0 -1px 0 0 var(--kbd-border-color, var(--helix-color-border));color: var(--kbd-color, var(--helix-color-foreground-muted));display: inline-flex;font-family: var(--kbd-font-family, var(--helix-font-mono));font-feature-settings:
|
|
26
3
|
"liga" 0,
|
|
27
|
-
"calt" 0;
|
|
28
|
-
font-size: var(--_kbd-size);
|
|
29
|
-
font-variant-ligatures: none;
|
|
30
|
-
font-weight: var(--helix-weight-medium);
|
|
31
|
-
justify-content: center;
|
|
32
|
-
line-height: 1;
|
|
33
|
-
|
|
34
|
-
min-inline-size: var(--_kbd-height);
|
|
35
|
-
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
padding-inline: var(--_kbd-inset);
|
|
38
|
-
|
|
39
|
-
padding-block-start: var(--helix-border-thin);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media print {
|
|
43
|
-
:host {
|
|
44
|
-
box-shadow: none;
|
|
45
|
-
}
|
|
46
|
-
}`);
|
|
4
|
+
"calt" 0;font-size: var(--_kbd-size);font-variant-ligatures: none;font-weight: var(--kbd-font-weight, var(--helix-weight-medium));justify-content: center;line-height: 1;min-inline-size: var(--_kbd-height);white-space: nowrap;padding-inline: var(--_kbd-inset);padding-block-start: var(--helix-border-thin);}:host([caps]) [part="kbd"] {background-color: transparent;border: 0;box-shadow: none;gap: var(--kbd-gap, var(--helix-space-2xs));min-inline-size: 0;padding: 0;}:host([caps]) [part="key"] {align-items: center;background-color: var(--kbd-background-color, var(--helix-color-surface-sunken));block-size: var(--_kbd-height);border: var(--helix-border-thin) solid var(--kbd-border-color, var(--helix-color-border));border-radius: var(--kbd-radius, var(--helix-radii-sm));box-shadow: inset 0 -1px 0 0 var(--kbd-border-color, var(--helix-color-border));display: inline-flex;justify-content: center;min-inline-size: var(--_kbd-height);padding-block-start: var(--helix-border-thin);padding-inline: var(--_kbd-inset);}[part="separator"] {color: var(--kbd-separator-color, var(--helix-color-foreground-muted));}@media print {:host {box-shadow: none;}}`);
|
|
@@ -17,7 +17,16 @@ import type { CSSResultGroup } from 'lit';
|
|
|
17
17
|
* @documentation https://fusion.dev/helix/components/kbd
|
|
18
18
|
*
|
|
19
19
|
* @cssproperty --kbd-background-color - The fill of the key.
|
|
20
|
+
* @cssproperty --kbd-block-size - The height of a key, and the least width of one, in `em` of the text around it.
|
|
20
21
|
* @cssproperty --kbd-border-color - The color of the key's border and its bottom edge.
|
|
22
|
+
* @cssproperty --kbd-color - The color of the key's label.
|
|
23
|
+
* @cssproperty --kbd-font-family - The face of the key's label. Monospaced by default.
|
|
24
|
+
* @cssproperty --kbd-font-size - The size of the key's label, in `em` of the text around it.
|
|
25
|
+
* @cssproperty --kbd-font-weight - The weight of the key's label.
|
|
26
|
+
* @cssproperty --kbd-gap - The space between two keys of a chord under `caps`.
|
|
27
|
+
* @cssproperty --kbd-padding-inline - The space either side of the key's label.
|
|
28
|
+
* @cssproperty --kbd-radius - How far the key's corners are rounded.
|
|
29
|
+
* @cssproperty --kbd-separator-color - The color of the `+` between two keys of a chord under `caps`.
|
|
21
30
|
*/
|
|
22
31
|
export declare class HelixKbd extends HelixHeadlessKbd {
|
|
23
32
|
static styles: CSSResultGroup;
|