@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,272 +1,25 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_notifications-line: calc(var(--helix-text-sm) * var(--helix-leading-normal));
|
|
5
|
-
|
|
6
|
-
--_notifications-pad-block: var(--notifications-padding-block, var(--helix-space-xs));
|
|
7
|
-
--_notifications-unread: var(--notifications-unread-block-size, var(--helix-space-xs));
|
|
8
|
-
|
|
9
|
-
container-type: inline-size;
|
|
10
|
-
|
|
11
|
-
display: block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part="item"] {
|
|
15
|
-
align-items: start;
|
|
16
|
-
border-block-end: var(--helix-border-thin) solid
|
|
17
|
-
var(--notifications-rule, var(--helix-color-border));
|
|
18
|
-
|
|
19
|
-
cursor: default;
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr) auto;
|
|
22
|
-
padding-block: var(--_notifications-pad-block);
|
|
23
|
-
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
24
|
-
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host(:not(:state(read))) [part="item"]::before {
|
|
29
|
-
background-color: var(--notifications-unread-mark, var(--helix-color-accent));
|
|
30
|
-
block-size: var(--_notifications-unread);
|
|
31
|
-
border-radius: var(--notifications-unread-radius, var(--helix-radii-full));
|
|
32
|
-
content: "";
|
|
33
|
-
inline-size: var(--notifications-unread-inline-size, var(--_notifications-unread));
|
|
34
|
-
|
|
35
|
-
inset-block-start: var(
|
|
2
|
+
export const styles = createSheet(`:host {--_notifications-line: calc(var(--helix-text-sm) * var(--helix-leading-normal));--_notifications-pad-block: var(--notifications-padding-block, var(--helix-space-xs));--_notifications-unread: var(--notifications-unread-block-size, var(--helix-space-xs));--_notifications-pad-inline: var(--notifications-padding-inline, var(--helix-space-lg));container-type: inline-size;display: block;}[part="item"] {align-items: start;border-block-end: var(--helix-border-thin) solid
|
|
3
|
+
var(--notifications-rule, var(--helix-color-border));cursor: default;display: grid;grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr) auto;padding-block: var(--_notifications-pad-block);padding-inline: var(--_notifications-pad-inline);position: relative;}:host(:not(:state(read))) [part="item"]::before {background-color: var(--notifications-unread-mark, var(--helix-color-accent));block-size: var(--_notifications-unread);border-radius: var(--notifications-unread-radius, var(--helix-radii-full));content: "";inline-size: var(--notifications-unread-inline-size, var(--_notifications-unread));inset-block-start: var(
|
|
36
4
|
--notifications-unread-offset,
|
|
37
5
|
calc(
|
|
38
6
|
var(--_notifications-pad-block) +
|
|
39
7
|
(var(--_notifications-line) - var(--_notifications-unread)) /
|
|
40
8
|
2
|
|
41
9
|
)
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:host([separation="filled"]) [part="item"],
|
|
55
|
-
:host([separation="outlined"]) [part="item"] {
|
|
56
|
-
border: var(--helix-border-thin) solid var(--notifications-item-edge, var(--helix-color-border));
|
|
57
|
-
border-radius: var(--notifications-item-radius, var(--helix-radii-md));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([separation="filled"]) [part="item"] {
|
|
61
|
-
background-color: var(--notifications-item-fill, var(--helix-color-surface-raised));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host([separation="filled"]) {
|
|
65
|
-
--avatar-background-color: color-mix(in oklab, var(--helix-color-foreground) 8%, transparent);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[part="media"] {
|
|
69
|
-
display: grid;
|
|
70
|
-
|
|
71
|
-
grid-template-rows: var(--_notifications-line);
|
|
72
|
-
place-items: center start;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
[part="body"] {
|
|
76
|
-
display: grid;
|
|
77
|
-
gap: var(--helix-space-2xs);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
[part="label"] {
|
|
81
|
-
color: var(--notifications-color, var(--helix-color-foreground-muted));
|
|
82
|
-
font-family: var(--helix-font-sans);
|
|
83
|
-
font-size: var(--helix-text-sm);
|
|
84
|
-
line-height: var(--_notifications-line);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
slot[name="description"]::slotted(*) {
|
|
88
|
-
color: var(--helix-color-foreground-subtle);
|
|
89
|
-
font-family: var(--helix-font-sans);
|
|
90
|
-
font-size: var(--helix-text-xs);
|
|
91
|
-
line-height: var(--helix-leading-normal);
|
|
92
|
-
margin: var(--helix-space-none);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
slot[name="detail"]::slotted(*) {
|
|
96
|
-
margin-block: var(--helix-space-2xs) var(--helix-space-none);
|
|
97
|
-
margin-inline: var(--helix-space-none);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part="body"] slot:not([name])::slotted(a) {
|
|
101
|
-
color: inherit;
|
|
102
|
-
text-decoration: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[part="body"] slot:not([name])::slotted(a:hover) {
|
|
106
|
-
text-decoration: underline;
|
|
107
|
-
text-decoration-color: color-mix(in oklab, currentcolor 35%, transparent);
|
|
108
|
-
text-decoration-thickness: 1px;
|
|
109
|
-
text-underline-offset: 0.25em;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:host(:not(:state(read))) [part="label"] {
|
|
113
|
-
color: var(--helix-color-foreground);
|
|
114
|
-
font-weight: var(--helix-weight-medium);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
[part="controls"] {
|
|
118
|
-
margin-inline-end: calc((var(--helix-size-control) - var(--helix-size-icon)) / -2);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
[part="trailing"] {
|
|
122
|
-
align-items: center;
|
|
123
|
-
align-self: start;
|
|
124
|
-
display: grid;
|
|
125
|
-
grid-template-areas: "swap";
|
|
126
|
-
justify-items: end;
|
|
127
|
-
|
|
128
|
-
grid-template-rows: var(--_notifications-line);
|
|
129
|
-
margin-inline-start: var(--helix-space-sm);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
[part="trailing"] > * {
|
|
133
|
-
grid-area: swap;
|
|
134
|
-
transition:
|
|
10
|
+
);inset-inline-start: var(
|
|
11
|
+
--notifications-unread-inset,
|
|
12
|
+
calc(
|
|
13
|
+
(
|
|
14
|
+
var(--_notifications-pad-inline) -
|
|
15
|
+
var(--notifications-unread-inline-size, var(--_notifications-unread))
|
|
16
|
+
) /
|
|
17
|
+
2
|
|
18
|
+
)
|
|
19
|
+
);position: absolute;}:host([separation="filled"]),
|
|
20
|
+
:host([separation="outlined"]) {--notifications-rule: transparent;margin-block-end: var(--notifications-item-gap, var(--helix-space-xs));}:host([separation="filled"]) [part="item"],
|
|
21
|
+
:host([separation="outlined"]) [part="item"] {border: var(--helix-border-thin) solid var(--notifications-item-edge, var(--helix-color-border));border-radius: var(--notifications-item-radius, var(--helix-radii-md));}:host([separation="filled"]) [part="item"] {background-color: var(--notifications-item-fill, var(--helix-color-surface-raised));}:host([separation="filled"]) {--avatar-background-color: color-mix(in oklab, var(--helix-color-foreground) 8%, transparent);}[part="media"] {display: grid;grid-template-rows: var(--_notifications-line);place-items: center start;}[part="body"] {display: grid;gap: var(--helix-space-2xs);}[part="label"] {color: var(--notifications-color, var(--helix-color-foreground-muted));font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);line-height: var(--_notifications-line);}slot[name="description"]::slotted(*) {color: var(--helix-color-foreground-subtle);font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);line-height: var(--helix-leading-normal);margin: var(--helix-space-none);}slot[name="detail"]::slotted(*) {margin-block: var(--helix-space-2xs) var(--helix-space-none);margin-inline: var(--helix-space-none);}[part="body"] slot:not([name])::slotted(a) {color: inherit;text-decoration: none;}[part="body"] slot:not([name])::slotted(a:hover) {text-decoration: underline;text-decoration-color: color-mix(in oklab, currentcolor 35%, transparent);text-decoration-thickness: 1px;text-underline-offset: 0.25em;}:host(:not(:state(read))) [part="label"] {color: var(--helix-color-foreground);font-weight: var(--helix-weight-medium);}[part="controls"] {margin-inline-end: calc((var(--helix-size-control) - var(--helix-size-icon)) / -2);}[part="trailing"] {align-items: center;align-self: start;display: grid;grid-template-areas: "swap";justify-items: end;grid-template-rows: var(--_notifications-line);margin-inline-start: var(--helix-space-sm);}[part="trailing"] > * {grid-area: swap;transition:
|
|
135
22
|
opacity var(--helix-duration-normal) var(--helix-easing-standard),
|
|
136
|
-
translate var(--helix-duration-normal) var(--helix-easing-decelerate);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
:host {
|
|
140
|
-
--_notifications-swap: 0;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
[part="trailing"] > :not([part="controls"]) {
|
|
144
|
-
color: var(--helix-color-foreground-subtle);
|
|
145
|
-
|
|
146
|
-
display: block;
|
|
147
|
-
font-family: var(--helix-font-sans);
|
|
148
|
-
font-size: var(--helix-text-xs);
|
|
149
|
-
line-height: var(--_notifications-line);
|
|
150
|
-
opacity: calc(1 - var(--_notifications-swap));
|
|
151
|
-
|
|
152
|
-
translate: calc(var(--helix-space-2xs) * var(--_notifications-swap)) 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
[part="controls"] {
|
|
156
|
-
align-items: center;
|
|
157
|
-
display: flex;
|
|
158
|
-
opacity: var(--_notifications-swap);
|
|
159
|
-
translate: calc(var(--helix-space-2xs) * (1 - var(--_notifications-swap))) 0;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
:host(:hover:state(controls)),
|
|
163
|
-
:host(:focus-within:state(controls)) {
|
|
164
|
-
--_notifications-swap: 1;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
[part="controls"] {
|
|
168
|
-
pointer-events: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:host(:hover:state(controls)) [part="controls"],
|
|
172
|
-
:host(:focus-within:state(controls)) [part="controls"] {
|
|
173
|
-
pointer-events: auto;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@media (hover: none) and (pointer: coarse) {
|
|
177
|
-
[part="trailing"] {
|
|
178
|
-
column-gap: var(--helix-space-sm);
|
|
179
|
-
grid-auto-flow: column;
|
|
180
|
-
grid-template-areas: none;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
[part="trailing"] > * {
|
|
184
|
-
grid-area: auto;
|
|
185
|
-
opacity: 1;
|
|
186
|
-
translate: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
[part="controls"] {
|
|
190
|
-
pointer-events: auto;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@media (prefers-reduced-motion: reduce) {
|
|
195
|
-
[part="trailing"] > * {
|
|
196
|
-
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
197
|
-
translate: none;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
[part="actions"] {
|
|
202
|
-
align-items: center;
|
|
203
|
-
display: flex;
|
|
204
|
-
flex-wrap: wrap;
|
|
205
|
-
gap: var(--helix-space-2xs);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
:host(:not(:state(actions))) [part="actions"] {
|
|
209
|
-
display: none;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
:host(:state(actions)) [part="actions"] {
|
|
213
|
-
margin-block-start: var(--helix-space-2xs);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
[part="dismiss"] {
|
|
217
|
-
background: none;
|
|
218
|
-
border: 0;
|
|
219
|
-
border-radius: var(--helix-radii-sm);
|
|
220
|
-
block-size: var(--helix-size-control);
|
|
221
|
-
color: var(--notifications-dismiss-color, var(--helix-color-foreground-subtle));
|
|
222
|
-
cursor: pointer;
|
|
223
|
-
display: grid;
|
|
224
|
-
inline-size: var(--helix-size-control);
|
|
225
|
-
margin-inline-start: var(--helix-space-2xs);
|
|
226
|
-
padding: var(--helix-space-none);
|
|
227
|
-
place-items: center;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
[part="dismiss"] ::slotted(*) {
|
|
231
|
-
block-size: var(--icon-size, var(--helix-size-icon));
|
|
232
|
-
inline-size: var(--icon-size, var(--helix-size-icon));
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
[part="dismiss"]:hover {
|
|
236
|
-
background-color: color-mix(in oklab, currentcolor 12%, transparent);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
[part="dismiss"]:focus-visible {
|
|
240
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
241
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
[part="item"]:focus-visible {
|
|
245
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
246
|
-
outline-offset: calc(var(--helix-size-focus-offset) * -1);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
@media print {
|
|
250
|
-
[part="dismiss"] {
|
|
251
|
-
display: none;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
:host(:not(:state(read))) [part="item"]::before {
|
|
255
|
-
display: none;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@container (inline-size < 18rem) {
|
|
260
|
-
[part="item"] {
|
|
261
|
-
grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
[part="trailing"] {
|
|
265
|
-
align-self: start;
|
|
266
|
-
grid-column: 2;
|
|
267
|
-
grid-row: 2;
|
|
268
|
-
justify-items: end;
|
|
269
|
-
margin-block-start: var(--helix-space-2xs);
|
|
270
|
-
margin-inline-start: var(--helix-space-none);
|
|
271
|
-
}
|
|
272
|
-
}`);
|
|
23
|
+
translate var(--helix-duration-normal) var(--helix-easing-decelerate);}:host {--_notifications-swap: 0;}[part="trailing"] > :not([part="controls"]) {color: var(--helix-color-foreground-subtle);display: block;font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);line-height: var(--_notifications-line);opacity: calc(1 - var(--_notifications-swap));translate: calc(var(--helix-space-2xs) * var(--_notifications-swap)) 0;}[part="controls"] {align-items: center;display: flex;opacity: var(--_notifications-swap);}:host(:hover:state(controls)),
|
|
24
|
+
:host(:focus-within:state(controls)) {--_notifications-swap: 1;}[part="controls"] {pointer-events: none;}:host(:hover:state(controls)) [part="controls"],
|
|
25
|
+
:host(:focus-within:state(controls)) [part="controls"] {pointer-events: auto;}@media (hover: none) and (pointer: coarse) {[part="trailing"] {column-gap: var(--helix-space-sm);grid-auto-flow: column;grid-template-areas: none;}[part="trailing"] > * {grid-area: auto;opacity: 1;translate: none;}[part="controls"] {pointer-events: auto;}}@media (prefers-reduced-motion: reduce) {[part="trailing"] > * {transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);translate: none;}}[part="actions"] {align-items: center;display: flex;flex-wrap: wrap;gap: var(--helix-space-2xs);}:host(:not(:state(actions))) [part="actions"] {display: none;}:host(:state(actions)) [part="actions"] {margin-block-start: var(--helix-space-2xs);}[part="dismiss"] {background: none;border: 0;border-radius: var(--helix-radii-sm);block-size: var(--helix-size-control);color: var(--notifications-dismiss-color, var(--helix-color-foreground-subtle));cursor: pointer;display: grid;inline-size: var(--helix-size-control);margin-inline-start: var(--helix-space-2xs);padding: var(--helix-space-none);place-items: center;}[part="dismiss"] ::slotted(*) {block-size: var(--icon-size, var(--helix-size-icon));inline-size: var(--icon-size, var(--helix-size-icon));}[part="dismiss"]:hover {background-color: color-mix(in oklab, currentcolor 12%, transparent);}[part="dismiss"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="item"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: calc(var(--helix-size-focus-offset) * -1);}@media print {[part="dismiss"] {display: none;}:host(:not(:state(read))) [part="item"]::before {display: none;}}@container (inline-size < 18rem) {[part="item"] {grid-template-columns: minmax(var(--notifications-media-column, 0px), auto) minmax(0, 1fr);}[part="trailing"] {align-self: start;grid-column: 2;grid-row: 2;justify-items: end;margin-block-start: var(--helix-space-2xs);margin-inline-start: var(--helix-space-none);}}`);
|
|
@@ -1,120 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
--helix-size-
|
|
6
|
-
--helix-size-
|
|
7
|
-
--helix-
|
|
8
|
-
|
|
9
|
-
--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);
|
|
10
|
-
--helix-size-icon: var(--helix-size-icon-sm);
|
|
11
|
-
--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
|
|
12
|
-
--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
|
|
13
|
-
--helix-size-tag: var(--helix-size-tag-sm);
|
|
14
|
-
|
|
15
|
-
--helix-size-avatar: var(--helix-size-avatar-sm);
|
|
16
|
-
|
|
17
|
-
display: grid;
|
|
18
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
19
|
-
max-block-size: var(--notifications-max-block-size, none);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host(:state(media)) {
|
|
23
|
-
--notifications-media-column: calc(var(--helix-size-avatar) + var(--helix-space-sm));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
[part="header"] {
|
|
27
|
-
align-items: center;
|
|
28
|
-
border-block-end: var(--helix-border-thin) solid
|
|
29
|
-
var(--notifications-rule, var(--helix-color-border));
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: var(--helix-space-sm);
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
padding-block: var(--helix-space-sm);
|
|
34
|
-
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part="header"][data-empty],
|
|
38
|
-
[part="footer"][data-empty] {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[part="list"] {
|
|
43
|
-
overflow-y: auto;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
[part="footer"] {
|
|
47
|
-
border-block-start: var(--helix-border-thin) solid
|
|
48
|
-
var(--notifications-rule, var(--helix-color-border));
|
|
49
|
-
padding-block: var(--helix-space-sm);
|
|
50
|
-
padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
::slotted(helix-notification:last-of-type) {
|
|
54
|
-
--notifications-rule: transparent;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[part="mark-all"] {
|
|
58
|
-
background: none;
|
|
59
|
-
border: 0;
|
|
60
|
-
border-radius: var(--helix-radii-sm);
|
|
61
|
-
color: var(--helix-color-foreground-muted);
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
font-family: var(--helix-font-sans);
|
|
64
|
-
font-size: var(--helix-text-sm);
|
|
65
|
-
padding-block: var(--helix-space-2xs);
|
|
66
|
-
padding-inline: var(--helix-space-2xs);
|
|
67
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
[part="mark-all"]:hover {
|
|
71
|
-
color: var(--helix-color-foreground);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[part="more"] {
|
|
75
|
-
background: none;
|
|
76
|
-
border: 0;
|
|
77
|
-
border-block-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
78
|
-
color: var(--helix-color-foreground-muted);
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
font-family: var(--helix-font-sans);
|
|
81
|
-
font-size: var(--helix-text-sm);
|
|
82
|
-
inline-size: 100%;
|
|
83
|
-
padding-block: var(--helix-space-sm);
|
|
84
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
[part="more"]:hover {
|
|
88
|
-
color: var(--helix-color-foreground);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[part="more"]:focus-visible {
|
|
92
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
93
|
-
outline-offset: calc(var(--helix-size-focus-offset) * -1);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[part="mark-all"]:focus-visible {
|
|
97
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
98
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
[part="empty"],
|
|
102
|
-
[part="loading"] {
|
|
103
|
-
--_collection-inset-block: var(--helix-space-lg);
|
|
104
|
-
--_collection-inset-inline: var(--helix-space-md);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@media print {
|
|
108
|
-
:host {
|
|
109
|
-
max-block-size: none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
[part="list"] {
|
|
113
|
-
overflow-y: visible;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part="mark-all"],
|
|
117
|
-
[part="more"] {
|
|
118
|
-
display: none;
|
|
119
|
-
}
|
|
120
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {--helix-size-checkbox: var(--helix-size-checkbox-sm);--helix-size-checkbox-loose: calc(var(--helix-size-checkbox) * 1.2);--helix-size-checkbox-tight: calc(var(--helix-size-checkbox) * 0.8);--helix-size-control: var(--helix-size-control-sm);--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);--helix-size-icon: var(--helix-size-icon-sm);--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);--helix-size-tag: var(--helix-size-tag-sm);--helix-size-avatar: var(--helix-size-avatar-sm);display: grid;grid-template-rows: auto minmax(0, 1fr) auto;max-block-size: var(--notifications-max-block-size, none);}:host(:state(media)) {--notifications-media-column: calc(var(--helix-size-avatar) + var(--helix-space-sm));}[part="header"] {align-items: center;border-block-end: var(--helix-border-thin) solid
|
|
3
|
+
var(--notifications-rule, var(--helix-color-border));display: flex;gap: var(--helix-space-sm);justify-content: space-between;padding-block: var(--helix-space-sm);padding-inline: var(--notifications-padding-inline, var(--helix-space-lg));}[part="header"][data-empty],
|
|
4
|
+
[part="footer"][data-empty] {display: none;}[part="list"] {overflow-y: auto;}[part="footer"] {border-block-start: var(--helix-border-thin) solid
|
|
5
|
+
var(--notifications-rule, var(--helix-color-border));padding-block: var(--helix-space-sm);padding-inline: var(--notifications-padding-inline, var(--helix-space-lg));}::slotted(helix-notification:last-of-type) {--notifications-rule: transparent;}[part="mark-all"] {background: none;border: 0;border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-muted);cursor: pointer;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);padding-block: var(--helix-space-2xs);padding-inline: var(--helix-space-2xs);transition: color var(--helix-duration-fast) var(--helix-easing-standard);}[part="mark-all"]:hover {color: var(--helix-color-foreground);}[part="more"] {background: none;border: 0;border-block-start: var(--helix-border-thin) solid var(--helix-color-border);color: var(--helix-color-foreground-muted);cursor: pointer;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);inline-size: 100%;padding-block: var(--helix-space-sm);transition: color var(--helix-duration-fast) var(--helix-easing-standard);}[part="more"]:hover {color: var(--helix-color-foreground);}[part="more"][aria-disabled="true"],
|
|
6
|
+
[part="more"][aria-disabled="true"]:hover {color: var(--helix-color-foreground-subtle);cursor: default;}[part="more"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: calc(var(--helix-size-focus-offset) * -1);}[part="mark-all"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="empty"],
|
|
7
|
+
[part="loading"] {--_collection-inset-block: var(--helix-space-lg);--_collection-inset-inline: var(--helix-space-md);}@media print {:host {max-block-size: none;}[part="list"] {overflow-y: visible;}[part="mark-all"],
|
|
8
|
+
[part="more"] {display: none;}}`);
|
|
@@ -19,13 +19,15 @@ import '../notification/notification.js';
|
|
|
19
19
|
* @documentation https://fusion.dev/helix/components/notifications
|
|
20
20
|
*
|
|
21
21
|
* @slot - The notifications.
|
|
22
|
+
* @slot empty - Replaces the words of `empty-text` in the `empty` part, such as a picture and a line of your own.
|
|
22
23
|
* @slot footer - Below the list, for a link to everything.
|
|
23
24
|
* @slot header - Above the list, for a title and the mark-all control.
|
|
25
|
+
* @slot loading - Replaces the words of `loading-text` in the `loading` part, such as a loader.
|
|
24
26
|
*
|
|
25
27
|
* @csspart list - The list itself.
|
|
26
28
|
* @csspart live - A copy of the empty and loading messages, in a live region that screen readers announce when they change. Visually hidden in the styled tier.
|
|
27
29
|
* @csspart mark-all - The control that marks everything read.
|
|
28
|
-
* @csspart more - The button after the list that asks for more, while `load-more` is set
|
|
30
|
+
* @csspart more - The button after the list that asks for more, while `load-more` is set. It stays while the feed is loading, in a lighter color and `aria-disabled`, so focus stays on it.
|
|
29
31
|
*
|
|
30
32
|
* @cssproperty --notifications-max-block-size - How tall the feed may get before the list scrolls.
|
|
31
33
|
* @cssproperty --notifications-media-column - Width of the media column that every item keeps when any item in the feed has media.
|
|
@@ -1,102 +1,12 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="field"] {
|
|
3
|
-
|
|
4
|
-
background-color: var(--number-input-background-color, var(--helix-color-
|
|
5
|
-
block-size: var(--number-input-size, var(--helix-size-control));
|
|
6
|
-
border: var(--helix-border-thin) solid var(--number-input-border-color, var(--helix-color-border));
|
|
7
|
-
border-radius: var(--number-input-radius, var(--helix-radii-sm));
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
display: flex;
|
|
10
|
-
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
transition: border-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host(:disabled) [part="field"] {
|
|
16
|
-
cursor: not-allowed;
|
|
17
|
-
opacity: 0.5;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([readonly]) [part="field"] {
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part="control"] {
|
|
25
|
-
font-variant-numeric: tabular-nums;
|
|
26
|
-
padding-inline: var(--helix-space-xs);
|
|
27
|
-
text-align: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
slot[name="start"]::slotted(*),
|
|
31
|
-
slot[name="end"]::slotted(*) {
|
|
32
|
-
color: var(--helix-color-foreground-subtle);
|
|
33
|
-
flex: 0 0 auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
slot[name="start"]::slotted(*) {
|
|
37
|
-
padding-inline-start: var(--helix-space-xs);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
slot[name="end"]::slotted(*) {
|
|
41
|
-
padding-inline-end: var(--helix-space-xs);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part="decrement"],
|
|
45
|
-
[part="increment"] {
|
|
46
|
-
all: unset;
|
|
47
|
-
align-items: center;
|
|
48
|
-
align-self: stretch;
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
color: var(--helix-color-foreground-muted);
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
display: flex;
|
|
53
|
-
flex: none;
|
|
54
|
-
inline-size: var(--helix-size-control);
|
|
55
|
-
justify-content: center;
|
|
56
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`[part="field"] {align-items: center;background-color: var(--number-input-background-color, var(--helix-color-well));block-size: var(--number-input-size, var(--helix-size-control));border: var(--helix-border-thin) solid var(--number-input-border-color, var(--helix-color-border));border-radius: var(--number-input-radius, var(--helix-radii-sm));box-sizing: border-box;display: flex;overflow: hidden;transition: border-color var(--helix-duration-fast) var(--helix-easing-standard);}:host(:disabled) [part="field"] {cursor: not-allowed;opacity: 0.5;}:host([readonly]) [part="field"] {background-color: transparent;}[part="control"] {font-variant-numeric: tabular-nums;padding-inline: var(--number-input-padding-inline, var(--helix-space-xs));text-align: center;}slot[name="start"]::slotted(*),
|
|
3
|
+
slot[name="end"]::slotted(*) {color: var(--helix-color-foreground-subtle);flex: 0 0 auto;}slot[name="start"]::slotted(*) {padding-inline-start: var(--helix-space-xs);}slot[name="end"]::slotted(*) {padding-inline-end: var(--helix-space-xs);}[part="decrement"],
|
|
4
|
+
[part="increment"] {all: unset;align-items: center;align-self: stretch;background-color: var(--number-input-stepper-background-color, transparent);box-sizing: border-box;color: var(--number-input-stepper-color, var(--helix-color-foreground-muted));cursor: pointer;display: flex;flex: none;inline-size: var(--number-input-stepper-size, var(--helix-size-control));justify-content: center;transition:
|
|
57
5
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
58
|
-
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[part="increment"] {
|
|
66
|
-
border-inline-start: var(--helix-border-thin) solid var(--helix-color-border);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[part="decrement"]:hover:not(:disabled),
|
|
70
|
-
[part="increment"]:hover:not(:disabled) {
|
|
71
|
-
background-color: var(--helix-color-surface);
|
|
72
|
-
color: var(--helix-color-foreground);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
[part="decrement"]:disabled,
|
|
76
|
-
[part="increment"]:disabled {
|
|
77
|
-
cursor: default;
|
|
78
|
-
opacity: 0.4;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[part="decrement"] svg,
|
|
82
|
-
[part="increment"] svg {
|
|
83
|
-
block-size: var(--helix-size-icon-tight);
|
|
84
|
-
inline-size: var(--helix-size-icon-tight);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host([scrub]) [part="label"] {
|
|
88
|
-
cursor: ew-resize;
|
|
89
|
-
touch-action: none;
|
|
90
|
-
user-select: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host([scrub]:disabled) [part="label"],
|
|
94
|
-
:host([scrub][readonly]) [part="label"] {
|
|
95
|
-
cursor: default;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@media print {
|
|
99
|
-
:host {
|
|
100
|
-
print-color-adjust: exact;
|
|
101
|
-
}
|
|
102
|
-
}`);
|
|
6
|
+
color var(--helix-duration-fast) var(--helix-easing-standard);}[part="decrement"] {border-inline-end: var(--helix-border-thin) solid
|
|
7
|
+
var(--number-input-stepper-border-color, var(--helix-color-border));}[part="increment"] {border-inline-start: var(--helix-border-thin) solid
|
|
8
|
+
var(--number-input-stepper-border-color, var(--helix-color-border));}[part="decrement"]:hover:not(:disabled),
|
|
9
|
+
[part="increment"]:hover:not(:disabled) {background-color: var(--number-input-stepper-background-color-hover, var(--helix-color-surface));color: var(--number-input-stepper-color-hover, var(--helix-color-foreground));}[part="decrement"]:disabled,
|
|
10
|
+
[part="increment"]:disabled {cursor: default;opacity: 0.4;}[part="decrement"] svg,
|
|
11
|
+
[part="increment"] svg {block-size: var(--number-input-stepper-icon-size, var(--helix-size-icon-tight));inline-size: var(--number-input-stepper-icon-size, var(--helix-size-icon-tight));}:host([scrub]) [part="label"] {cursor: ew-resize;touch-action: none;user-select: none;}:host([scrub]:disabled) [part="label"],
|
|
12
|
+
:host([scrub][readonly]) [part="label"] {cursor: default;}@media print {:host {print-color-adjust: exact;}}`);
|
|
@@ -34,8 +34,16 @@ import type { CSSResultGroup } from 'lit';
|
|
|
34
34
|
*
|
|
35
35
|
* @cssproperty --number-input-background-color - The fill behind the number.
|
|
36
36
|
* @cssproperty --number-input-border-color - Edge of the field at rest. Hover, focus and an error still draw their own.
|
|
37
|
+
* @cssproperty --number-input-padding-inline - Space at each side of the number, inside the steppers.
|
|
37
38
|
* @cssproperty --number-input-radius - Corner radius of the field.
|
|
38
39
|
* @cssproperty --number-input-size - Height of the field.
|
|
40
|
+
* @cssproperty --number-input-stepper-background-color - Fill behind each stepper button at rest.
|
|
41
|
+
* @cssproperty --number-input-stepper-background-color-hover - Fill behind a stepper button under the pointer.
|
|
42
|
+
* @cssproperty --number-input-stepper-border-color - The rule between each stepper button and the number.
|
|
43
|
+
* @cssproperty --number-input-stepper-color - Icon color of the stepper buttons at rest.
|
|
44
|
+
* @cssproperty --number-input-stepper-color-hover - Icon color of a stepper button under the pointer.
|
|
45
|
+
* @cssproperty --number-input-stepper-icon-size - Width and height of the stepper icons.
|
|
46
|
+
* @cssproperty --number-input-stepper-size - Width of each stepper button.
|
|
39
47
|
*/
|
|
40
48
|
export declare class HelixNumberInput extends HelixHeadlessNumberInput {
|
|
41
49
|
static styles: CSSResultGroup;
|