@fusion.dev/helix 0.146.0 → 0.148.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 +10225 -1400
- package/dist/accordion/item/accordion-item.css.js +4 -96
- 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 -57
- 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 +12 -207
- package/dist/badge/root/badge-root.d.ts +2 -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 +8 -2
- package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +13 -98
- package/dist/breadcrumbs/root/breadcrumbs-root.css.js +5 -42
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +17 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.js +4 -0
- package/dist/button/root/button-root.css.js +16 -197
- package/dist/button/root/button-root.d.ts +1 -0
- package/dist/button-group/root/button-group-root.css.js +11 -52
- package/dist/button-group/root/button-group-root.d.ts +29 -7
- package/dist/button-group/root/button-group-root.js +19 -0
- package/dist/callout/root/callout-root.css.js +5 -138
- package/dist/callout/root/callout-root.d.ts +4 -2
- package/dist/canvas/node/canvas-node.css.js +10 -367
- package/dist/canvas/node/canvas-node.d.ts +5 -0
- package/dist/canvas/root/canvas-root.css.js +11 -270
- package/dist/canvas/root/canvas-root.d.ts +6 -0
- package/dist/card/root/card-root.css.js +5 -134
- package/dist/card/root/card-root.d.ts +4 -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 -239
- package/dist/chat/message/chat-message.d.ts +5 -0
- package/dist/chat/root/chat-root.css.js +5 -162
- package/dist/chat/typing.css.js +9 -46
- package/dist/checkbox/root/checkbox-root.css.js +12 -177
- 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-block/root/code-block-root.css.js +22 -279
- package/dist/code-block/root/code-block-root.d.ts +7 -0
- package/dist/color-input/root/color-input-root.css.js +5 -114
- package/dist/color-picker/root/color-picker-root.css.js +39 -337
- package/dist/color-picker/root/color-picker-root.d.ts +2 -0
- package/dist/combobox/root/combobox-root.css.js +8 -147
- package/dist/combobox/root/combobox-root.js +2 -0
- package/dist/command/root/command-root.css.js +3 -74
- package/dist/copy-button/root/copy-button-root.css.js +3 -43
- package/dist/data-table/root/data-table-root.css.js +21 -245
- package/dist/data-table/root/data-table-root.d.ts +7 -0
- package/dist/date-input/root/date-input-root.css.js +8 -103
- 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 +8 -0
- package/dist/description-list/root/description-list-root.css.js +2 -34
- package/dist/description-list/root/description-list-root.d.ts +13 -0
- package/dist/description-list/root/description-list-root.js +7 -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 +5 -81
- package/dist/divider/root/divider-root.d.ts +3 -0
- package/dist/donut-chart/root/donut-chart-root.css.js +7 -193
- package/dist/drawer/root/drawer-root.css.js +11 -237
- package/dist/drilldown/item/drilldown-item.css.js +4 -51
- package/dist/drilldown/item/drilldown-item.d.ts +1 -0
- package/dist/drilldown/root/drilldown-root.css.js +6 -120
- package/dist/element-events.generated.js +5 -1
- package/dist/empty/root/empty-root.css.js +2 -42
- package/dist/file-input/root/file-input-root.css.js +7 -173
- package/dist/file-input/root/file-input-root.d.ts +4 -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 -113
- package/dist/flex/root/flex-root.css.js +4 -207
- package/dist/flex/root/flex-root.d.ts +2 -2
- package/dist/format-date/root/format-date-root.css.js +1 -13
- package/dist/format-date/root/format-date-root.d.ts +0 -1
- package/dist/format-date/root/format-date-root.js +0 -1
- package/dist/graph/root/graph-root.css.js +9 -444
- package/dist/grid/root/grid-root.css.js +1 -171
- package/dist/heatmap/root/heatmap-root.css.js +8 -156
- 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 +25 -203
- package/dist/icon-button/root/icon-button-root.d.ts +1 -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 -71
- package/dist/kbd/root/kbd-root.d.ts +7 -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 -37
- package/dist/lightbox/root/lightbox-root.css.js +38 -183
- package/dist/line-chart/root/line-chart-root.css.js +4 -170
- package/dist/line-chart/root/line-chart-root.d.ts +1 -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 +7 -111
- package/dist/listbox/root/listbox-root.d.ts +2 -0
- package/dist/listbox/root/listbox-root.js +1 -0
- package/dist/loader/root/loader-root.css.js +5 -171
- 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 +14 -352
- package/dist/map/root/map-root.d.ts +10 -0
- 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 +11 -162
- package/dist/megamenu/root/megamenu-root.d.ts +8 -0
- package/dist/menu/item/menu-item.css.js +7 -130
- 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 +17 -207
- package/dist/meter/root/meter-root.d.ts +3 -0
- package/dist/navigation/root/navigation-root.css.js +2 -54
- 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 -125
- package/dist/notifications/root/notifications-root.d.ts +7 -2
- package/dist/number-input/root/number-input-root.css.js +10 -103
- package/dist/object-inspector/root/object-inspector-root.css.js +11 -162
- 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/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/root/pagination-root.d.ts +14 -0
- package/dist/pagination/size/pagination-size.css.js +1 -22
- package/dist/pagination/size/pagination-size.d.ts +3 -0
- package/dist/pagination/summary/pagination-summary.css.js +1 -7
- package/dist/pagination/summary/pagination-summary.d.ts +3 -0
- package/dist/pin-input/root/pin-input-root.css.js +2 -73
- package/dist/pin-input/root/pin-input-root.d.ts +9 -3
- package/dist/popover/root/popover-root.css.js +6 -127
- package/dist/progress/root/progress-root.css.js +7 -230
- package/dist/progress/root/progress-root.d.ts +4 -0
- package/dist/qr-code/root/qr-code-root.css.js +1 -68
- package/dist/qr-code/root/qr-code-root.d.ts +3 -0
- package/dist/quote/root/quote-root.css.js +1 -20
- package/dist/radio/group/radio-group.css.js +1 -21
- package/dist/radio/root/radio-root.css.js +5 -208
- package/dist/rating/root/rating-root.css.js +4 -117
- package/dist/sandbox/frame.d.ts +2 -1
- package/dist/sandbox/frame.js +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/preview/sandbox-preview.css.js +1 -12
- package/dist/sandbox/preview/sandbox-preview.d.ts +27 -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 -95
- package/dist/sandbox/source/sandbox-source.d.ts +31 -25
- package/dist/sandbox/source/sandbox-source.js +12 -5
- 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 +4 -0
- package/dist/sandbox/terminal/sandbox-terminal.js +2 -1
- package/dist/sandbox/tokens.d.ts +2 -2
- package/dist/sandbox/toolbar/sandbox-toolbar.css.js +1 -36
- package/dist/scatter-chart/root/scatter-chart-root.css.js +11 -146
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +1 -0
- package/dist/scroll-area/root/scroll-area-root.css.js +14 -181
- package/dist/select/root/select-root.css.js +7 -124
- package/dist/select/root/select-root.js +2 -0
- 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/skip-link/root/skip-link-root.css.js +2 -47
- package/dist/slider/root/slider-root.css.js +19 -330
- package/dist/slider/root/slider-root.d.ts +2 -0
- package/dist/sparkline/root/sparkline-root.css.js +8 -143
- package/dist/sparkline/root/sparkline-root.d.ts +2 -0
- package/dist/speed-dial/group/speed-dial-group.css.d.ts +1 -0
- package/dist/speed-dial/group/speed-dial-group.css.js +2 -0
- package/dist/speed-dial/group/speed-dial-group.d.ts +27 -0
- package/dist/speed-dial/group/speed-dial-group.js +16 -0
- package/dist/speed-dial/index.d.ts +1 -0
- package/dist/speed-dial/index.js +1 -0
- package/dist/speed-dial/item/speed-dial-item.css.js +4 -73
- package/dist/speed-dial/item/speed-dial-item.d.ts +1 -0
- package/dist/speed-dial/root/speed-dial-root.css.js +3 -149
- package/dist/splitter/root/splitter-root.css.js +19 -176
- package/dist/splitter/root/splitter-root.d.ts +4 -0
- package/dist/stat/group/stat-group.css.js +1 -36
- package/dist/stat/root/stat-root.css.js +3 -62
- package/dist/steps/root/steps-root.css.js +7 -92
- 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/tab/tab.css.js +6 -54
- package/dist/tag/group/tag-group.css.js +1 -11
- package/dist/tag/root/tag-root.css.js +1 -166
- package/dist/tag/root/tag-root.d.ts +2 -0
- package/dist/text/root/text-root.css.js +11 -200
- package/dist/textarea/root/textarea-root.css.js +3 -71
- package/dist/time-input/root/time-input-root.css.js +7 -118
- package/dist/time-picker/root/time-picker-root.css.js +15 -134
- package/dist/time-picker/root/time-picker-root.d.ts +7 -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 +11 -250
- package/dist/toast/item/toast-item.d.ts +10 -0
- package/dist/toast/root/toast-root.css.js +1 -85
- package/dist/toast/root/toast-root.js +2 -1
- package/dist/toggle/group/toggle-group.css.js +7 -126
- package/dist/toggle/root/toggle-root.css.js +1 -23
- package/dist/toolbar/root/toolbar-root.css.js +1 -36
- package/dist/toolbar/root/toolbar-root.d.ts +11 -0
- package/dist/toolbar/root/toolbar-root.js +4 -0
- package/dist/tooltip/root/tooltip-root.css.js +5 -101
- package/dist/tooltip/root/tooltip-root.d.ts +2 -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 +12 -238
- package/dist/tree/root/tree-root.css.js +1 -40
- package/dist/trend/root/trend-root.css.js +5 -53
- 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 +3 -40
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +4595 -777
- package/types/svelte.d.ts +2 -0
- package/types/vue.d.ts +1312 -210
|
@@ -1,133 +1,37 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
align-items: center;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
font-size: var(--helix-text-sm);
|
|
7
|
-
gap: var(--pagination-gap, var(--helix-space-2xs));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[part="list"] {
|
|
11
|
-
align-items: center;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
gap: var(--pagination-gap, var(--helix-space-2xs));
|
|
15
|
-
|
|
16
|
-
list-style: none;
|
|
17
|
-
margin: var(--helix-space-none);
|
|
18
|
-
padding: var(--helix-space-none);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="item"] {
|
|
22
|
-
display: inline-flex;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part="first"],
|
|
2
|
+
export const styles = createSheet(`:host {align-items: center;display: flex;flex-wrap: wrap;font-size: var(--pagination-font-size, var(--helix-text-sm));gap: var(--pagination-gap, var(--helix-space-2xs));}[part="list"] {align-items: center;display: flex;flex-wrap: wrap;gap: var(--pagination-gap, var(--helix-space-2xs));list-style: none;margin: var(--helix-space-none);padding: var(--helix-space-none);}[part="item"] {display: inline-flex;}[part="first"],
|
|
26
3
|
[part="gap"],
|
|
27
4
|
[part="last"],
|
|
28
5
|
[part~="page"],
|
|
29
6
|
[part="previous"],
|
|
30
|
-
[part="next"] {
|
|
31
|
-
align-items: center;
|
|
32
|
-
appearance: none;
|
|
33
|
-
background-color: transparent;
|
|
34
|
-
block-size: var(--pagination-size, var(--helix-size-control-tight));
|
|
35
|
-
border: var(--helix-border-thin) solid transparent;
|
|
36
|
-
border-radius: var(--helix-radii-sm);
|
|
37
|
-
color: var(--helix-color-foreground-muted);
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
font: inherit;
|
|
41
|
-
font-variant-numeric: tabular-nums;
|
|
42
|
-
font-weight: var(--helix-weight-medium);
|
|
43
|
-
justify-content: center;
|
|
44
|
-
min-inline-size: var(--pagination-size, var(--helix-size-control-tight));
|
|
45
|
-
padding-inline: var(--helix-space-2xs);
|
|
46
|
-
text-decoration: none;
|
|
47
|
-
transition:
|
|
7
|
+
[part="next"] {align-items: center;appearance: none;background-color: transparent;block-size: var(--pagination-size, var(--helix-size-control-tight));border: var(--helix-border-thin) solid transparent;border-radius: var(--pagination-radius, var(--helix-radii-sm));color: var(--pagination-foreground-color, var(--helix-color-foreground-muted));cursor: pointer;display: inline-flex;font: inherit;font-variant-numeric: tabular-nums;font-weight: var(--pagination-font-weight, var(--helix-weight-medium));justify-content: center;min-inline-size: var(--pagination-size, var(--helix-size-control-tight));padding-inline: var(--pagination-padding, var(--helix-space-2xs));text-decoration: none;transition:
|
|
48
8
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
49
|
-
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[part="first"]:hover,
|
|
9
|
+
color var(--helix-duration-fast) var(--helix-easing-standard);}[part="first"]:hover,
|
|
53
10
|
[part="gap"]:hover,
|
|
54
11
|
[part="last"]:hover,
|
|
55
12
|
[part~="page"]:hover,
|
|
56
13
|
[part="previous"]:hover,
|
|
57
|
-
[part="next"]:hover {
|
|
58
|
-
background-color: var(--pagination-hover-color, var(--helix-color-surface-sunken));
|
|
59
|
-
color: var(--helix-color-foreground);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
[part="first"]:focus-visible,
|
|
14
|
+
[part="next"]:hover {background-color: var(--pagination-hover-color, var(--helix-color-surface-sunken));color: var(--pagination-hover-foreground-color, var(--helix-color-foreground));}[part="first"]:focus-visible,
|
|
63
15
|
[part="gap"]:focus-visible,
|
|
64
16
|
[part="last"]:focus-visible,
|
|
65
17
|
[part~="page"]:focus-visible,
|
|
66
18
|
[part="previous"]:focus-visible,
|
|
67
|
-
[part="next"]:focus-visible {
|
|
68
|
-
|
|
69
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[part~="page"][aria-current="page"],
|
|
73
|
-
[part~="page"][aria-current="page"]:hover {
|
|
74
|
-
background-color: var(--pagination-current-color, var(--helix-color-surface-raised));
|
|
75
|
-
border-color: var(--helix-color-border);
|
|
76
|
-
color: var(--helix-color-foreground);
|
|
77
|
-
font-weight: var(--helix-weight-semibold);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
[part="first"]:disabled,
|
|
19
|
+
[part="next"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part~="page"][aria-current="page"],
|
|
20
|
+
[part~="page"][aria-current="page"]:hover {background-color: var(--pagination-current-color, var(--helix-color-surface-raised));border-color: var(--pagination-current-border-color, var(--helix-color-border));color: var(--pagination-current-foreground-color, var(--helix-color-foreground));font-weight: var(--pagination-current-font-weight, var(--helix-weight-semibold));}[part="first"]:disabled,
|
|
81
21
|
[part="last"]:disabled,
|
|
82
22
|
[part="previous"]:disabled,
|
|
83
23
|
[part="next"]:disabled,
|
|
84
24
|
[part="first"][aria-disabled="true"],
|
|
85
25
|
[part="last"][aria-disabled="true"],
|
|
86
26
|
[part="previous"][aria-disabled="true"],
|
|
87
|
-
[part="next"][aria-disabled="true"] {
|
|
88
|
-
color: var(--helix-color-foreground-subtle);
|
|
89
|
-
cursor: default;
|
|
90
|
-
opacity: 0.5;
|
|
91
|
-
pointer-events: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
[part="first"] svg,
|
|
27
|
+
[part="next"][aria-disabled="true"] {color: var(--pagination-disabled-foreground-color, var(--helix-color-foreground-subtle));cursor: default;opacity: var(--pagination-disabled-opacity, 0.5);pointer-events: none;}[part="first"] svg,
|
|
95
28
|
[part="last"] svg,
|
|
96
29
|
[part="previous"] svg,
|
|
97
30
|
[part="next"] svg,
|
|
98
31
|
::slotted([slot="first-icon"]),
|
|
99
32
|
::slotted([slot="last-icon"]),
|
|
100
33
|
::slotted([slot="previous-icon"]),
|
|
101
|
-
::slotted([slot="next-icon"]) {
|
|
102
|
-
block-size: var(--helix-size-icon-tight);
|
|
103
|
-
inline-size: var(--helix-size-icon-tight);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host(:dir(rtl)) ::slotted([slot="first-icon"]),
|
|
34
|
+
::slotted([slot="next-icon"]) {block-size: var(--pagination-icon-size, var(--helix-size-icon-tight));inline-size: var(--pagination-icon-size, var(--helix-size-icon-tight));}:host(:dir(rtl)) ::slotted([slot="first-icon"]),
|
|
107
35
|
:host(:dir(rtl)) ::slotted([slot="last-icon"]),
|
|
108
36
|
:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
109
|
-
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {
|
|
110
|
-
scale: -1 1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[part="gap"] {
|
|
114
|
-
color: var(--helix-color-foreground-subtle);
|
|
115
|
-
user-select: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host(:state(empty)) {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
[part="status"] {
|
|
123
|
-
color: var(--helix-color-foreground-muted);
|
|
124
|
-
font-variant-numeric: tabular-nums;
|
|
125
|
-
font-weight: var(--helix-weight-medium);
|
|
126
|
-
padding-inline: var(--helix-space-xs);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media print {
|
|
130
|
-
:host {
|
|
131
|
-
display: none;
|
|
132
|
-
}
|
|
133
|
-
}`);
|
|
37
|
+
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {scale: -1 1;}[part="gap"] {color: var(--pagination-ellipsis-foreground-color, var(--helix-color-foreground-subtle));user-select: none;}:host(:state(empty)) {display: none;}[part="status"] {color: var(--pagination-status-foreground-color, var(--helix-color-foreground-muted));font-variant-numeric: tabular-nums;font-weight: var(--pagination-font-weight, var(--helix-weight-medium));padding-inline: var(--helix-space-xs);}@media print {:host {display: none;}}`);
|
|
@@ -35,10 +35,24 @@ import type { CSSResultGroup } from 'lit';
|
|
|
35
35
|
* @csspart previous - The control that moves back one page.
|
|
36
36
|
* @csspart status - The text that says which page you are on, in `compact`.
|
|
37
37
|
*
|
|
38
|
+
* @cssproperty --pagination-current-border-color - Edge of the page you are on.
|
|
38
39
|
* @cssproperty --pagination-current-color - Fill behind the page you are on.
|
|
40
|
+
* @cssproperty --pagination-current-font-weight - Weight of the number of the page you are on.
|
|
41
|
+
* @cssproperty --pagination-current-foreground-color - Color of the number of the page you are on.
|
|
42
|
+
* @cssproperty --pagination-disabled-foreground-color - Color of a first, previous, next or last control with nowhere to go.
|
|
43
|
+
* @cssproperty --pagination-disabled-opacity - How faint a control with nowhere to go is drawn.
|
|
44
|
+
* @cssproperty --pagination-ellipsis-foreground-color - Color of the control that stands in for hidden pages.
|
|
45
|
+
* @cssproperty --pagination-font-size - Size of the numbers and the status text.
|
|
46
|
+
* @cssproperty --pagination-font-weight - Weight of the numbers and the status text.
|
|
47
|
+
* @cssproperty --pagination-foreground-color - Color of the numbers and the marks on every control.
|
|
39
48
|
* @cssproperty --pagination-gap - Space between one control and the next.
|
|
40
49
|
* @cssproperty --pagination-hover-color - Fill behind a control under the pointer.
|
|
50
|
+
* @cssproperty --pagination-hover-foreground-color - Color of a control's number or mark under the pointer.
|
|
51
|
+
* @cssproperty --pagination-icon-size - Size of the mark on a first, previous, next or last control, drawn or slotted.
|
|
52
|
+
* @cssproperty --pagination-padding - Space either side of a control's number or mark.
|
|
53
|
+
* @cssproperty --pagination-radius - Corner radius of every control in the row.
|
|
41
54
|
* @cssproperty --pagination-size - The box every control in the row takes.
|
|
55
|
+
* @cssproperty --pagination-status-foreground-color - Color of the text that says which page you are on, in `compact`.
|
|
42
56
|
*/
|
|
43
57
|
export declare class HelixPagination extends HelixHeadlessPagination {
|
|
44
58
|
static styles: CSSResultGroup;
|
|
@@ -1,23 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host(:state(empty)) {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[part="control"] {
|
|
11
|
-
align-items: center;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
gap: var(--helix-space-xs);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[part="control"]::part(label) {
|
|
17
|
-
padding-block-end: var(--helix-space-none);
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="control"]::part(trigger) {
|
|
22
|
-
block-size: var(--helix-size-control-tight);
|
|
23
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: inline-flex;}:host(:state(empty)) {display: none;}[part="control"] {align-items: center;flex-direction: row;gap: var(--pagination-size-gap, var(--helix-space-xs));}[part="control"]::part(label) {padding-block-end: var(--helix-space-none);white-space: nowrap;}[part="control"]::part(trigger) {block-size: var(--pagination-size, var(--helix-size-control-tight));}`);
|
|
@@ -20,6 +20,9 @@ import '../../select/index.js';
|
|
|
20
20
|
* @documentation https://fusion.dev/helix/components/pagination
|
|
21
21
|
*
|
|
22
22
|
* @csspart control - The select.
|
|
23
|
+
*
|
|
24
|
+
* @cssproperty --pagination-size - Height of the select's trigger, the same hook that sizes every control in the page row.
|
|
25
|
+
* @cssproperty --pagination-size-gap - Space between the label and the select.
|
|
23
26
|
*/
|
|
24
27
|
export declare class HelixPaginationSize extends HelixHeadlessPaginationSize {
|
|
25
28
|
static tier: string;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
color: var(--helix-color-foreground-subtle);
|
|
4
|
-
display: inline-block;
|
|
5
|
-
font-family: var(--helix-font-sans);
|
|
6
|
-
font-size: var(--helix-text-sm);
|
|
7
|
-
font-variant-numeric: tabular-nums;
|
|
8
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {color: var(--pagination-summary-foreground-color, var(--helix-color-foreground-subtle));display: inline-block;font-family: var(--helix-font-sans);font-size: var(--pagination-font-size, var(--helix-text-sm));font-variant-numeric: tabular-nums;}`);
|
|
@@ -11,6 +11,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
11
11
|
* @status stable
|
|
12
12
|
* @aliases Result count, Range
|
|
13
13
|
* @documentation https://fusion.dev/helix/components/pagination
|
|
14
|
+
*
|
|
15
|
+
* @cssproperty --pagination-font-size - Size of the text, the same hook that sizes the page numbers.
|
|
16
|
+
* @cssproperty --pagination-summary-foreground-color - Color of the text.
|
|
14
17
|
*/
|
|
15
18
|
export declare class HelixPaginationSummary extends HelixHeadlessPaginationSummary {
|
|
16
19
|
static styles: CSSResultGroup;
|
|
@@ -1,74 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: var(--helix-space-2xs);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
[part="field"] {
|
|
9
|
-
align-self: start;
|
|
10
|
-
display: flex;
|
|
11
|
-
gap: var(--pin-input-gap, var(--helix-space-xs));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[part="cell"] {
|
|
15
|
-
all: unset;
|
|
16
|
-
background-color: var(--pin-input-cell-background-color, var(--helix-color-well));
|
|
17
|
-
block-size: var(--pin-input-cell-size, var(--helix-size-control));
|
|
18
|
-
border: var(--helix-border-thin) solid
|
|
19
|
-
var(--pin-input-cell-border-color, var(--helix-color-border));
|
|
20
|
-
border-radius: var(--pin-input-cell-radius, var(--helix-radii-sm));
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
color: var(--pin-input-cell-color, var(--helix-color-foreground));
|
|
23
|
-
font-family: var(--helix-font-sans);
|
|
24
|
-
font-size: var(--pin-input-cell-font-size, var(--helix-text-lg));
|
|
25
|
-
|
|
26
|
-
font-variant-numeric: tabular-nums;
|
|
27
|
-
font-weight: var(--helix-weight-medium);
|
|
28
|
-
inline-size: var(--pin-input-cell-size, var(--helix-size-control));
|
|
29
|
-
text-align: center;
|
|
30
|
-
transition: border-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host(:not(:disabled)) [part="cell"]:hover {
|
|
34
|
-
border-color: var(--helix-color-foreground-muted);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[part="cell"]:focus-visible {
|
|
38
|
-
border-color: var(--pin-input-cell-border-color-focus, var(--helix-color-primary));
|
|
39
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
40
|
-
outline-offset: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:host(:state(invalid)) [part="cell"] {
|
|
44
|
-
border-color: var(--helix-color-danger);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host(:disabled) [part="cell"] {
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
opacity: 0.5;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([readonly]) [part="cell"] {
|
|
53
|
-
background-color: transparent;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([mask]) [part="cell"] {
|
|
57
|
-
font-size: var(--helix-text-xl);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
[part="separator"] {
|
|
61
|
-
align-self: center;
|
|
62
|
-
color: var(--pin-input-separator-color, var(--helix-color-foreground-muted));
|
|
63
|
-
font-size: var(--helix-text-lg);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
[part="cell"]::placeholder {
|
|
67
|
-
color: var(--helix-color-foreground-subtle);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media print {
|
|
71
|
-
:host {
|
|
72
|
-
print-color-adjust: exact;
|
|
73
|
-
}
|
|
74
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: flex;flex-direction: column;gap: var(--helix-space-2xs);}[part="field"] {align-self: start;display: flex;gap: var(--pin-input-gap, var(--helix-space-xs));}[part~="cell"] {all: unset;align-items: center;background-color: var(--pin-input-cell-background-color, var(--helix-color-well));block-size: var(--pin-input-cell-size, var(--helix-size-control));border: var(--helix-border-thin) solid
|
|
3
|
+
var(--pin-input-cell-border-color, var(--helix-color-border));border-radius: var(--pin-input-cell-radius, var(--helix-radii-sm));box-sizing: border-box;color: var(--pin-input-cell-color, var(--helix-color-foreground));cursor: text;display: flex;font-family: var(--helix-font-sans);font-size: var(--pin-input-cell-font-size, var(--helix-text-lg));font-variant-numeric: tabular-nums;font-weight: var(--helix-weight-medium);inline-size: var(--pin-input-cell-size, var(--helix-size-control));justify-content: center;text-align: center;transition: border-color var(--helix-duration-fast) var(--helix-easing-standard);}:host(:not(:disabled)) [part~="cell"]:hover {border-color: var(--helix-color-foreground-muted);}[part~="cell-active"] {border-color: var(--pin-input-cell-border-color-focus, var(--helix-color-primary));outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: 0;}:host(:state(invalid)) [part~="cell"] {border-color: var(--helix-color-danger);}:host(:disabled) [part~="cell"] {cursor: not-allowed;opacity: 0.5;}:host([readonly]) [part~="cell"] {background-color: transparent;}:host([mask]) [part~="cell"] {font-size: var(--helix-text-xl);}[part="separator"] {align-self: center;color: var(--pin-input-separator-color, var(--helix-color-foreground-muted));font-size: var(--helix-text-lg);}[part="placeholder"] {color: var(--pin-input-placeholder-color, var(--helix-color-foreground-subtle));}[part="caret"] {background-color: var(--pin-input-caret-color, currentcolor);block-size: 1em;inline-size: var(--helix-border-thin);}@media print {:host {print-color-adjust: exact;}}`);
|
|
@@ -7,8 +7,8 @@ import type { CSSResultGroup } from 'lit';
|
|
|
7
7
|
* Square boxes at the control height, with space between them so the code reads
|
|
8
8
|
* as separate characters.
|
|
9
9
|
*
|
|
10
|
-
* The focus ring is on the
|
|
11
|
-
* next.
|
|
10
|
+
* The focus ring is on the box the caret is in, so you can see which character
|
|
11
|
+
* comes next, and the caret is drawn there while it is empty.
|
|
12
12
|
*
|
|
13
13
|
* Figures are tabular, so every digit takes the same width and the row does not
|
|
14
14
|
* shift as you type.
|
|
@@ -19,18 +19,24 @@ import type { CSSResultGroup } from 'lit';
|
|
|
19
19
|
* @aliases PinField, OTP, One-time code, Verification code, InputPin
|
|
20
20
|
* @documentation https://fusion.dev/helix/components/pin-input
|
|
21
21
|
*
|
|
22
|
+
* @csspart caret - The caret, drawn in the empty box it is in while the field has focus.
|
|
22
23
|
* @csspart cell - One box.
|
|
24
|
+
* @csspart cell-active - The box the caret is in, while the field has focus. Set together with `cell`.
|
|
25
|
+
* @csspart cell-filled - A box that holds a character. Set together with `cell`.
|
|
23
26
|
* @csspart field - The row of boxes.
|
|
27
|
+
* @csspart placeholder - The `placeholder` text in an empty box.
|
|
24
28
|
* @csspart separator - The text `format` draws between two boxes.
|
|
25
29
|
*
|
|
30
|
+
* @cssproperty --pin-input-caret-color - The color of the caret drawn in an empty box. Without it, the character color applies.
|
|
26
31
|
* @cssproperty --pin-input-cell-background-color - Fill behind each box.
|
|
27
32
|
* @cssproperty --pin-input-cell-border-color - Edge of each box at rest. Hover, focus and an error still draw their own.
|
|
28
|
-
* @cssproperty --pin-input-cell-border-color-focus - Edge of the box
|
|
33
|
+
* @cssproperty --pin-input-cell-border-color-focus - Edge of the box the caret is in.
|
|
29
34
|
* @cssproperty --pin-input-cell-color - The color of a typed character.
|
|
30
35
|
* @cssproperty --pin-input-cell-font-size - The size of a typed character.
|
|
31
36
|
* @cssproperty --pin-input-cell-radius - Corner radius of each box.
|
|
32
37
|
* @cssproperty --pin-input-cell-size - Width and height of each box.
|
|
33
38
|
* @cssproperty --pin-input-gap - The space between one box and the next.
|
|
39
|
+
* @cssproperty --pin-input-placeholder-color - The color of the `placeholder` text in an empty box.
|
|
34
40
|
* @cssproperty --pin-input-separator-color - The color of the text `format` draws between boxes.
|
|
35
41
|
*/
|
|
36
42
|
export declare class HelixPinInput extends HelixHeadlessPinInput {
|
|
@@ -1,132 +1,11 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
display:
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
[part="popover"] {
|
|
8
|
-
overflow: visible;
|
|
9
|
-
background-color: var(--helix-color-surface-overlay);
|
|
10
|
-
|
|
11
|
-
border: var(--popover-border-width, var(--helix-border-floating)) solid
|
|
12
|
-
var(--popover-border-color, var(--helix-color-border));
|
|
13
|
-
|
|
14
|
-
--_popover-edge: var(--popover-border-width, var(--helix-border-floating)) solid
|
|
15
|
-
var(--popover-border-color, var(--helix-color-border));
|
|
16
|
-
|
|
17
|
-
border-radius: var(--helix-radii-sm);
|
|
18
|
-
box-shadow: var(--popover-shadow, var(--helix-shadow-floating));
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
color: var(--helix-color-foreground);
|
|
21
|
-
|
|
22
|
-
inset: auto;
|
|
23
|
-
margin: var(--helix-space-none);
|
|
24
|
-
|
|
25
|
-
max-inline-size: calc(100vw - var(--helix-space-lg));
|
|
26
|
-
|
|
27
|
-
padding: var(--helix-space-none);
|
|
28
|
-
inline-size: var(--popover-inline-size, max-content);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[part="popover"]:not(:popover-open) {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[part="popover"] {
|
|
36
|
-
--_travel: calc(var(--helix-space-2xs) * -1);
|
|
37
|
-
|
|
38
|
-
--_popover-from: 0.96;
|
|
39
|
-
opacity: 0;
|
|
40
|
-
transform: translateY(var(--_travel));
|
|
41
|
-
scale: var(--_popover-from);
|
|
42
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {display: contents;}[part="popover"] {overflow: visible;background-color: var(--helix-color-surface-overlay);border: var(--popover-border-width, var(--helix-border-floating)) solid
|
|
3
|
+
var(--popover-border-color, var(--helix-color-border));--_popover-edge: var(--popover-border-width, var(--helix-border-floating)) solid
|
|
4
|
+
var(--popover-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);box-shadow: var(--popover-shadow, var(--helix-shadow-floating));box-sizing: border-box;color: var(--helix-color-foreground);inset: auto;margin: var(--helix-space-none);max-inline-size: calc(100vw - var(--helix-space-lg));padding: var(--helix-space-none);inline-size: var(--popover-inline-size, max-content);}[part="popover"]:not(:popover-open) {display: none;}[part="popover"] {--_travel: calc(var(--helix-space-2xs) * -1);--_popover-from: 0.96;opacity: 0;transform: translateY(var(--_travel));scale: var(--_popover-from);transition:
|
|
43
5
|
opacity var(--helix-duration-fast) var(--helix-easing-standard),
|
|
44
6
|
scale var(--helix-duration-fast) var(--helix-easing-emphasized),
|
|
45
7
|
transform var(--helix-duration-fast) var(--helix-easing-emphasized),
|
|
46
8
|
display var(--helix-duration-fast) allow-discrete,
|
|
47
|
-
overlay var(--helix-duration-fast) allow-discrete;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[part="popover"][data-placement^="top"] {
|
|
51
|
-
--_travel: var(--helix-space-2xs);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
[part="popover"][data-placed] {
|
|
55
|
-
opacity: 1;
|
|
56
|
-
scale: 1;
|
|
57
|
-
transform: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
[part="popover"][data-placement^="top"] {
|
|
61
|
-
transform-origin: var(--floating-arrow-x, 50%) 100%;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
[part="popover"][data-placement^="bottom"] {
|
|
65
|
-
transform-origin: var(--floating-arrow-x, 50%) 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[part="popover"][data-placement^="left"] {
|
|
69
|
-
transform-origin: 100% var(--floating-arrow-y, 50%);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[part="popover"][data-placement^="right"] {
|
|
73
|
-
transform-origin: 0 var(--floating-arrow-y, 50%);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@media (prefers-reduced-motion: reduce) {
|
|
77
|
-
[part="popover"],
|
|
78
|
-
[part="popover"][data-placed] {
|
|
79
|
-
scale: 1;
|
|
80
|
-
transform: none;
|
|
81
|
-
transition: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[part="content"] {
|
|
86
|
-
max-block-size: var(--popover-max-block-size, var(--floating-available-block-size, none));
|
|
87
|
-
overflow: auto;
|
|
88
|
-
padding: var(--popover-padding, var(--helix-space-md));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host([separation="plain"]) [part="content"] {
|
|
92
|
-
padding: var(--popover-padding, var(--helix-space-none));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
[part="popover"]:focus,
|
|
96
|
-
[part="popover"]:focus-visible {
|
|
97
|
-
outline: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part~="arrow"] {
|
|
101
|
-
background-color: var(--helix-color-surface-overlay);
|
|
102
|
-
block-size: var(--popover-arrow-size, 0.5rem);
|
|
103
|
-
inline-size: var(--popover-arrow-size, 0.5rem);
|
|
104
|
-
position: absolute;
|
|
105
|
-
rotate: 45deg;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[part="popover"][data-placement^="bottom"] [part~="arrow"] {
|
|
109
|
-
border-left: var(--_popover-edge);
|
|
110
|
-
border-top: var(--_popover-edge);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[part="popover"][data-placement^="top"] [part~="arrow"] {
|
|
114
|
-
border-bottom: var(--_popover-edge);
|
|
115
|
-
border-right: var(--_popover-edge);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
[part="popover"][data-placement^="right"] [part~="arrow"] {
|
|
119
|
-
border-bottom: var(--_popover-edge);
|
|
120
|
-
border-left: var(--_popover-edge);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
[part="popover"][data-placement^="left"] [part~="arrow"] {
|
|
124
|
-
border-right: var(--_popover-edge);
|
|
125
|
-
border-top: var(--_popover-edge);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@media print {
|
|
129
|
-
:host {
|
|
130
|
-
display: none;
|
|
131
|
-
}
|
|
132
|
-
}`);
|
|
9
|
+
overlay var(--helix-duration-fast) allow-discrete;}[part="popover"][data-placement^="top"] {--_travel: var(--helix-space-2xs);}[part="popover"][data-placed] {opacity: 1;scale: 1;transform: none;}[part="popover"][data-placement^="top"] {transform-origin: var(--floating-arrow-x, 50%) 100%;}[part="popover"][data-placement^="bottom"] {transform-origin: var(--floating-arrow-x, 50%) 0;}[part="popover"][data-placement^="left"] {transform-origin: 100% var(--floating-arrow-y, 50%);}[part="popover"][data-placement^="right"] {transform-origin: 0 var(--floating-arrow-y, 50%);}@media (prefers-reduced-motion: reduce) {[part="popover"],
|
|
10
|
+
[part="popover"][data-placed] {scale: 1;transform: none;transition: none;}}[part="content"] {max-block-size: var(--popover-max-block-size, var(--floating-available-block-size, none));overflow: auto;padding: var(--popover-padding, var(--helix-space-md));}:host([separation="plain"]) [part="content"] {padding: var(--popover-padding, var(--helix-space-none));}[part="popover"]:focus,
|
|
11
|
+
[part="popover"]:focus-visible {outline: none;}[part~="arrow"] {background-color: var(--helix-color-surface-overlay);block-size: var(--popover-arrow-size, 0.5rem);inline-size: var(--popover-arrow-size, 0.5rem);position: absolute;rotate: 45deg;}[part="popover"][data-placement^="bottom"] [part~="arrow"] {border-left: var(--_popover-edge);border-top: var(--_popover-edge);}[part="popover"][data-placement^="top"] [part~="arrow"] {border-bottom: var(--_popover-edge);border-right: var(--_popover-edge);}[part="popover"][data-placement^="right"] [part~="arrow"] {border-bottom: var(--_popover-edge);border-left: var(--_popover-edge);}[part="popover"][data-placement^="left"] [part~="arrow"] {border-right: var(--_popover-edge);border-top: var(--_popover-edge);}@media print {:host {display: none;}}`);
|