@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,58 +1,4 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`::placeholder {
|
|
3
|
-
color: var(--helix-color-foreground-subtle);
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
[part="label"] {
|
|
8
|
-
color: var(--helix-color-foreground);
|
|
9
|
-
font-family: var(--helix-font-sans);
|
|
10
|
-
font-size: var(--helix-text-sm);
|
|
11
|
-
font-weight: var(--helix-weight-medium);
|
|
12
|
-
line-height: var(--helix-leading-tight);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host([required]) [part="label"]::after {
|
|
16
|
-
color: var(--helix-color-danger);
|
|
17
|
-
content: "*";
|
|
18
|
-
margin-inline-start: var(--helix-space-2xs);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@supports (content: "*" / "") {
|
|
22
|
-
:host([required]) [part="label"]::after {
|
|
23
|
-
content: "*" / "";
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="hint"],
|
|
28
|
-
[part="feedback"] {
|
|
29
|
-
font-family: var(--helix-font-sans);
|
|
30
|
-
font-size: var(--helix-text-xs);
|
|
31
|
-
line-height: var(--helix-leading-normal);
|
|
32
|
-
margin: var(--helix-space-none);
|
|
33
|
-
margin-block-start: var(--helix-space-2xs);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[part="hint"] {
|
|
37
|
-
color: var(--helix-color-foreground-subtle);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[part="feedback"] {
|
|
41
|
-
color: var(--helix-color-danger);
|
|
42
|
-
|
|
43
|
-
font-weight: var(--helix-weight-medium);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host(:disabled) [part="label"],
|
|
47
|
-
:host(:disabled) [part="hint"] {
|
|
48
|
-
opacity: 0.5;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
[part="label"][data-hidden] {
|
|
52
|
-
block-size: 1px;
|
|
53
|
-
clip-path: inset(50%);
|
|
54
|
-
inline-size: 1px;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
position: absolute;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`::placeholder {color: var(--helix-color-foreground-subtle);font-weight: var(--helix-weight-medium);}[part="label"] {color: var(--helix-color-foreground);font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);font-weight: var(--helix-weight-medium);line-height: var(--helix-leading-tight);}:host([required]) [part="label"]::after {color: var(--helix-color-danger);content: "*";margin-inline-start: var(--helix-space-2xs);}@supports (content: "*" / "") {:host([required]) [part="label"]::after {content: "*" / "";}}[part="hint"],
|
|
3
|
+
[part="feedback"] {font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);line-height: var(--helix-leading-normal);margin: var(--helix-space-none);margin-block-start: var(--helix-space-2xs);}[part="hint"] {color: var(--helix-color-foreground-subtle);}[part="feedback"] {color: var(--helix-color-danger);font-weight: var(--helix-weight-medium);}:host(:disabled) [part="label"],
|
|
4
|
+
:host(:disabled) [part="hint"] {opacity: 0.5;}[part="label"][data-hidden] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;overflow: hidden;position: absolute;white-space: nowrap;}`);
|
|
@@ -1,39 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="surface"] {
|
|
3
|
-
--_travel: calc(var(--helix-space-2xs) * -1);
|
|
4
|
-
|
|
5
|
-
opacity: 0;
|
|
6
|
-
scale: 0.96;
|
|
7
|
-
transform: translateY(var(--_travel));
|
|
8
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`[part="surface"] {--_travel: calc(var(--helix-space-2xs) * -1);opacity: 0;scale: 0.96;transform: translateY(var(--_travel));transition:
|
|
9
3
|
opacity var(--helix-duration-fast) var(--helix-easing-standard),
|
|
10
4
|
scale var(--helix-duration-fast) var(--helix-easing-emphasized),
|
|
11
5
|
transform var(--helix-duration-fast) var(--helix-easing-emphasized),
|
|
12
6
|
display var(--helix-duration-fast) allow-discrete,
|
|
13
|
-
overlay var(--helix-duration-fast) allow-discrete;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[part="surface"][data-placement^="top"] {
|
|
17
|
-
--_travel: var(--helix-space-2xs);
|
|
18
|
-
|
|
19
|
-
transform-origin: var(--floating-arrow-x, 50%) 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
[part="surface"][data-placement^="bottom"] {
|
|
23
|
-
transform-origin: var(--floating-arrow-x, 50%) 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
[part="surface"][data-placed] {
|
|
27
|
-
opacity: 1;
|
|
28
|
-
scale: 1;
|
|
29
|
-
transform: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media (prefers-reduced-motion: reduce) {
|
|
33
|
-
[part="surface"],
|
|
34
|
-
[part="surface"][data-placed] {
|
|
35
|
-
scale: 1;
|
|
36
|
-
transform: none;
|
|
37
|
-
transition: none;
|
|
38
|
-
}
|
|
39
|
-
}`);
|
|
7
|
+
overlay var(--helix-duration-fast) allow-discrete;}[part="surface"][data-placement^="top"] {--_travel: var(--helix-space-2xs);transform-origin: var(--floating-arrow-x, 50%) 100%;}[part="surface"][data-placement^="bottom"] {transform-origin: var(--floating-arrow-x, 50%) 0;}[part="surface"][data-placed] {opacity: 1;scale: 1;transform: none;}@media (prefers-reduced-motion: reduce) {[part="surface"],
|
|
8
|
+
[part="surface"][data-placed] {scale: 1;transform: none;transition: none;}}`);
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="surface"] {
|
|
3
|
-
|
|
4
|
-
border: var(--_floating-border-width, var(--helix-border-floating)) solid
|
|
5
|
-
var(--_floating-border-color, var(--helix-color-border));
|
|
6
|
-
border-radius: var(--helix-radii-sm);
|
|
7
|
-
box-shadow: var(--_floating-shadow, var(--helix-shadow-floating));
|
|
8
|
-
inset: auto;
|
|
9
|
-
margin: var(--helix-space-none);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
[part="surface"][hidden] {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[part="surface"]:not(:popover-open) {
|
|
17
|
-
display: none;
|
|
18
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="surface"] {background-color: var(--_floating-background-color, var(--helix-color-surface-overlay));border: var(--_floating-border-width, var(--helix-border-floating)) solid
|
|
3
|
+
var(--_floating-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);box-shadow: var(--_floating-shadow, var(--helix-shadow-floating));inset: auto;margin: var(--helix-space-none);}[part="surface"][hidden] {display: none;}[part="surface"]:not(:popover-open) {display: none;}`);
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[data-glyph] {
|
|
3
|
-
block-size: var(--icon-size, var(--helix-size-icon));
|
|
4
|
-
flex: 0 0 auto;
|
|
5
|
-
inline-size: var(--icon-size, var(--helix-size-icon));
|
|
6
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[data-glyph] {block-size: var(--icon-size, var(--helix-size-icon));flex: 0 0 auto;inline-size: var(--icon-size, var(--helix-size-icon));}`);
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="live"] {
|
|
3
|
-
block-size: 1px;
|
|
4
|
-
clip-path: inset(50%);
|
|
5
|
-
inline-size: 1px;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
position: absolute;
|
|
8
|
-
white-space: nowrap;
|
|
9
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="live"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;overflow: hidden;position: absolute;white-space: nowrap;}`);
|
|
@@ -1,40 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="tags"] {
|
|
3
|
-
display: contents;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:where(button)[part="rest"] {
|
|
7
|
-
all: unset;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
[part="rest"] {
|
|
12
|
-
align-self: center;
|
|
13
|
-
color: var(--helix-color-foreground-subtle);
|
|
14
|
-
flex: 0 0 auto;
|
|
15
|
-
font-family: var(--helix-font-sans);
|
|
16
|
-
font-size: var(--helix-text-xs);
|
|
17
|
-
font-weight: var(--helix-weight-medium);
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
button[part="rest"] {
|
|
22
|
-
border-radius: var(--helix-radii-sm);
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
button[part="rest"]:hover {
|
|
28
|
-
color: var(--helix-color-foreground);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button[part="rest"]:focus-visible {
|
|
32
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
33
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
button[part="rest"] svg {
|
|
37
|
-
block-size: var(--helix-size-icon-tight);
|
|
38
|
-
flex: 0 0 auto;
|
|
39
|
-
inline-size: var(--helix-size-icon-tight);
|
|
40
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="tags"] {display: contents;}:where(button)[part="rest"] {all: unset;box-sizing: border-box;}[part="rest"] {align-self: center;color: var(--helix-color-foreground-subtle);flex: 0 0 auto;font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);font-weight: var(--helix-weight-medium);white-space: nowrap;}button[part="rest"] {border-radius: var(--helix-radii-sm);cursor: pointer;transition: color var(--helix-duration-fast) var(--helix-easing-standard);}button[part="rest"]:hover {color: var(--helix-color-foreground);}button[part="rest"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}button[part="rest"] svg {block-size: var(--helix-size-icon-tight);flex: 0 0 auto;inline-size: var(--helix-size-icon-tight);}`);
|
|
@@ -1,148 +1,21 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="controls"] {
|
|
3
|
-
display: grid;
|
|
4
|
-
gap: var(--helix-space-2xs);
|
|
5
|
-
|
|
6
|
-
grid-template-areas:
|
|
2
|
+
export const styles = createSheet(`[part="controls"] {display: grid;gap: var(--helix-space-2xs);grid-template-areas:
|
|
7
3
|
". up . zoomin"
|
|
8
4
|
"start . end zoomout"
|
|
9
|
-
". down . full";
|
|
10
|
-
position: absolute;
|
|
11
|
-
|
|
12
|
-
inset-block-start: var(--helix-space-sm);
|
|
13
|
-
inset-inline-end: var(--helix-space-sm);
|
|
14
|
-
transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part="controls"]:not(:has([part="zoom-in"])) {
|
|
18
|
-
grid-template-areas:
|
|
5
|
+
". down . full";position: absolute;inset-block-start: var(--helix-space-sm);inset-inline-end: var(--helix-space-sm);transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);}[part="controls"]:not(:has([part="zoom-in"])) {grid-template-areas:
|
|
19
6
|
". up ."
|
|
20
7
|
"start . end"
|
|
21
|
-
". down full";
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part="controls"]:not(:has([part="pan-up"])) {
|
|
25
|
-
grid-template-areas:
|
|
8
|
+
". down full";}[part="controls"]:not(:has([part="pan-up"])) {grid-template-areas:
|
|
26
9
|
"zoomin"
|
|
27
10
|
"zoomout"
|
|
28
|
-
"full";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host(:fullscreen) {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host(:state(fullscreen)) [part="region"] {
|
|
36
|
-
block-size: 100dvh;
|
|
37
|
-
border: none;
|
|
38
|
-
border-radius: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([controls-placement="top-end"]) [part="controls"] {
|
|
42
|
-
inset-block: var(--helix-space-sm) auto;
|
|
43
|
-
inset-inline: auto var(--helix-space-sm);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([controls-placement="top-start"]) [part="controls"] {
|
|
47
|
-
inset-block: var(--helix-space-sm) auto;
|
|
48
|
-
inset-inline: var(--helix-space-sm) auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host([controls-placement="bottom-end"]) [part="controls"] {
|
|
52
|
-
inset-block: auto var(--helix-space-sm);
|
|
53
|
-
inset-inline: auto var(--helix-space-sm);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([controls-placement="bottom-start"]) [part="controls"] {
|
|
57
|
-
inset-block: auto var(--helix-space-sm);
|
|
58
|
-
inset-inline: var(--helix-space-sm) auto;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="pan-up"] {
|
|
62
|
-
grid-area: up;
|
|
63
|
-
}
|
|
64
|
-
[part="pan-down"] {
|
|
65
|
-
grid-area: down;
|
|
66
|
-
}
|
|
67
|
-
[part="pan-start"] {
|
|
68
|
-
grid-area: start;
|
|
69
|
-
}
|
|
70
|
-
[part="pan-end"] {
|
|
71
|
-
grid-area: end;
|
|
72
|
-
}
|
|
73
|
-
[part="zoom-in"] {
|
|
74
|
-
grid-area: zoomin;
|
|
75
|
-
}
|
|
76
|
-
[part="zoom-out"] {
|
|
77
|
-
grid-area: zoomout;
|
|
78
|
-
}
|
|
79
|
-
[part="fullscreen"] {
|
|
80
|
-
grid-area: full;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
[part="controls"] button {
|
|
84
|
-
align-items: center;
|
|
85
|
-
background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));
|
|
86
|
-
border: var(--helix-border-floating) solid var(--helix-color-border);
|
|
87
|
-
border-radius: var(--helix-radii-sm);
|
|
88
|
-
box-shadow: var(--helix-shadow-floating);
|
|
89
|
-
block-size: var(--helix-size-control-sm);
|
|
90
|
-
color: var(--helix-color-foreground);
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
font-family: var(--helix-font-sans);
|
|
94
|
-
font-size: var(--helix-text-sm);
|
|
95
|
-
inline-size: var(--helix-size-control-sm);
|
|
96
|
-
justify-content: center;
|
|
97
|
-
padding: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part="controls"] button:focus-visible {
|
|
101
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
102
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[part="controls"] button:hover {
|
|
106
|
-
background-color: color-mix(
|
|
11
|
+
"full";}:host(:fullscreen) {display: block;}:host(:state(fullscreen)) [part="region"] {block-size: 100dvh;border: none;border-radius: 0;}:host([controls-placement="top-end"]) [part="controls"] {inset-block: var(--helix-space-sm) auto;inset-inline: auto var(--helix-space-sm);}:host([controls-placement="top-start"]) [part="controls"] {inset-block: var(--helix-space-sm) auto;inset-inline: var(--helix-space-sm) auto;}:host([controls-placement="bottom-end"]) [part="controls"] {inset-block: auto var(--helix-space-sm);inset-inline: auto var(--helix-space-sm);}:host([controls-placement="bottom-start"]) [part="controls"] {inset-block: auto var(--helix-space-sm);inset-inline: var(--helix-space-sm) auto;}[part="pan-up"] {grid-area: up;}[part="pan-down"] {grid-area: down;}[part="pan-start"] {grid-area: start;}[part="pan-end"] {grid-area: end;}[part="zoom-in"] {grid-area: zoomin;}[part="zoom-out"] {grid-area: zoomout;}[part="fullscreen"] {grid-area: full;}[part="controls"] button {align-items: center;background-color: var(--viewport-control-background-color, var(--helix-color-surface-overlay));border: var(--helix-border-floating) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);box-shadow: var(--helix-shadow-floating);block-size: var(--helix-size-control-sm);color: var(--helix-color-foreground);cursor: pointer;display: inline-flex;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);inline-size: var(--helix-size-control-sm);justify-content: center;padding: 0;}[part="controls"] button:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="controls"] button:hover {background-color: color-mix(
|
|
107
12
|
in oklab,
|
|
108
13
|
var(--helix-color-foreground) 10%,
|
|
109
14
|
var(--viewport-control-background-color, var(--helix-color-surface-overlay))
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
[part="gesture-hint"],
|
|
114
|
-
[part="gesture-status"] {
|
|
115
|
-
background-color: var(--helix-color-surface-inverse);
|
|
116
|
-
border-radius: var(--helix-radii-sm);
|
|
117
|
-
color: var(--helix-color-foreground-inverse);
|
|
118
|
-
|
|
119
|
-
left: 50%;
|
|
120
|
-
max-inline-size: calc(100% - var(--helix-space-lg) * 2);
|
|
121
|
-
pointer-events: none;
|
|
122
|
-
position: absolute;
|
|
123
|
-
text-align: center;
|
|
124
|
-
z-index: calc(var(--helix-layer-raised) + 2);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
[part="gesture-hint"] {
|
|
128
|
-
font-size: var(--helix-text-sm);
|
|
129
|
-
inset-block-start: clamp(
|
|
15
|
+
);}[part="gesture-hint"],
|
|
16
|
+
[part="gesture-status"] {background-color: var(--helix-color-surface-inverse);border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-inverse);left: 50%;max-inline-size: calc(100% - var(--helix-space-lg) * 2);pointer-events: none;position: absolute;text-align: center;z-index: calc(var(--helix-layer-raised) + 2);}[part="gesture-hint"] {font-size: var(--helix-text-sm);inset-block-start: clamp(
|
|
130
17
|
var(--helix-space-2xl),
|
|
131
18
|
var(--_viewport-hint-y, 50%),
|
|
132
19
|
calc(100% - var(--helix-space-2xl))
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
translate: -50% -50%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
[part="gesture-status"] {
|
|
139
|
-
font-size: var(--helix-text-xs);
|
|
140
|
-
inset-block-start: var(--helix-space-xs);
|
|
141
|
-
padding: var(--helix-space-2xs) var(--helix-space-xs);
|
|
142
|
-
translate: -50% 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
[part="gesture-hint"][hidden],
|
|
146
|
-
[part="gesture-status"][hidden] {
|
|
147
|
-
display: none;
|
|
148
|
-
}`);
|
|
20
|
+
);padding: var(--helix-space-xs) var(--helix-space-sm);translate: -50% -50%;}[part="gesture-status"] {font-size: var(--helix-text-xs);inset-block-start: var(--helix-space-xs);padding: var(--helix-space-2xs) var(--helix-space-xs);translate: -50% 0;}[part="gesture-hint"][hidden],
|
|
21
|
+
[part="gesture-status"][hidden] {display: none;}`);
|
|
@@ -1,128 +1,20 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: block;
|
|
4
|
-
inline-size: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host(:not([shape])) {
|
|
8
|
-
block-size: var(--skeleton-block-size, var(--helix-size-control));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host([shape="text"]) {
|
|
12
|
-
block-size: 1em;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host([shape="circle"]) {
|
|
16
|
-
aspect-ratio: 1 / 1;
|
|
17
|
-
|
|
18
|
-
inline-size: var(--skeleton-size, var(--helix-size-control));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="skeleton"] {
|
|
22
|
-
background-color: var(
|
|
2
|
+
export const styles = createSheet(`:host {display: block;inline-size: 100%;}:host(:not([shape])) {block-size: var(--skeleton-block-size, var(--helix-size-control));}:host([shape="text"]) {block-size: 1em;}:host([shape="circle"]) {aspect-ratio: 1 / 1;inline-size: var(--skeleton-size, var(--helix-size-control));}[part="skeleton"] {background-color: var(
|
|
23
3
|
--skeleton-color,
|
|
24
4
|
color-mix(in oklab, var(--helix-color-foreground) 8%, transparent)
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
border-radius: var(--skeleton-radius, var(--helix-radii-sm));
|
|
28
|
-
display: block;
|
|
29
|
-
inline-size: 100%;
|
|
30
|
-
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
position: relative;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[part="skeleton"]::after {
|
|
36
|
-
animation: helix-skeleton-sweep var(--skeleton-duration, calc(var(--helix-duration-slow) * 4))
|
|
37
|
-
ease-in-out infinite;
|
|
38
|
-
background-image: linear-gradient(
|
|
5
|
+
);block-size: 100%;border-radius: var(--skeleton-radius, var(--helix-radii-sm));display: block;inline-size: 100%;overflow: hidden;position: relative;}[part="sheen"] {animation: helix-skeleton-sweep var(--skeleton-duration, calc(var(--helix-duration-slow) * 4))
|
|
6
|
+
ease-in-out infinite;background-image: linear-gradient(
|
|
39
7
|
90deg,
|
|
40
8
|
transparent 0%,
|
|
41
9
|
var(--skeleton-sheen-color, color-mix(in oklab, var(--helix-color-foreground) 8%, transparent))
|
|
42
10
|
50%,
|
|
43
11
|
transparent 100%
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
position: absolute;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([
|
|
53
|
-
border-radius: var(--helix-radii-full);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([shape="circle"]) [part="skeleton"] {
|
|
57
|
-
|
|
58
|
-
border-radius: var(--helix-radii-full);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([effect="pulse"]) [part="skeleton"]::after,
|
|
62
|
-
:host([effect="none"]) [part="skeleton"]::after {
|
|
63
|
-
animation: none;
|
|
64
|
-
background-image: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([effect="pulse"]) [part="skeleton"] {
|
|
68
|
-
animation: helix-skeleton-pulse var(--skeleton-duration, calc(var(--helix-duration-slow) * 4))
|
|
69
|
-
ease-in-out infinite;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@keyframes helix-skeleton-pulse {
|
|
73
|
-
50% {
|
|
74
|
-
opacity: 0.4;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:host(:not(:empty)) {
|
|
79
|
-
block-size: auto;
|
|
80
|
-
inline-size: fit-content;
|
|
81
|
-
max-inline-size: 100%;
|
|
82
|
-
position: relative;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host(:not(:empty)) [part="content"] {
|
|
86
|
-
display: block;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host(:not(:empty)) [part="skeleton"] {
|
|
90
|
-
block-size: auto;
|
|
91
|
-
inset: 0;
|
|
92
|
-
position: absolute;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host(:not(:empty):not([loading])) [part="skeleton"] {
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host([loading]:not(:empty)) [part="content"] {
|
|
100
|
-
visibility: hidden;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@keyframes helix-skeleton-sweep {
|
|
104
|
-
from {
|
|
105
|
-
translate: -50% 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
to {
|
|
109
|
-
translate: 50% 0;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media (prefers-reduced-motion: reduce) {
|
|
114
|
-
[part="skeleton"]::after,
|
|
115
|
-
:host([effect="pulse"]) [part="skeleton"] {
|
|
116
|
-
animation: none;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
[part="skeleton"]::after {
|
|
120
|
-
background-image: none;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@media print {
|
|
125
|
-
:host {
|
|
126
|
-
display: none;
|
|
127
|
-
}
|
|
128
|
-
}`);
|
|
12
|
+
);display: block;inline-size: 200%;inset-block: 0;inset-inline-start: 0;position: absolute;}:host([shape="text"]) [part="skeleton"] {border-radius: var(--helix-radii-full);}:host([shape="circle"]) [part="skeleton"] {border-radius: var(--helix-radii-full);}:host([effect="pulse"]) [part="sheen"],
|
|
13
|
+
:host([effect="none"]) [part="sheen"] {animation: none;background-image: none;}:host([effect="pulse"]) [part="skeleton"] {animation: helix-skeleton-pulse var(--skeleton-duration, calc(var(--helix-duration-slow) * 4))
|
|
14
|
+
ease-in-out infinite;}@keyframes helix-skeleton-pulse {50% {opacity: 0.4;}}:host(:state(wrapping)),
|
|
15
|
+
:host(:not(:defined):not(:empty)) {block-size: auto;inline-size: fit-content;max-inline-size: 100%;position: relative;}:host(:state(wrapping)) [part="content"],
|
|
16
|
+
:host(:not(:defined):not(:empty)) [part="content"] {display: block;}:host(:state(wrapping)) [part="skeleton"],
|
|
17
|
+
:host(:not(:defined):not(:empty)) [part="skeleton"] {block-size: auto;inset: 0;position: absolute;}:host(:state(wrapping):not([loading])) [part="skeleton"],
|
|
18
|
+
:host(:not(:defined):not(:empty):not([loading])) [part="skeleton"] {display: none;}:host([loading]:state(wrapping)) [part="content"],
|
|
19
|
+
:host([loading]:not(:defined):not(:empty)) [part="content"] {visibility: hidden;}@keyframes helix-skeleton-sweep {from {translate: -50% 0;}to {translate: 50% 0;}}@media (prefers-reduced-motion: reduce) {[part="sheen"],
|
|
20
|
+
:host([effect="pulse"]) [part="skeleton"] {animation: none;}[part="sheen"] {background-image: none;}}@media print {:host {display: none;}}`);
|
|
@@ -18,6 +18,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
18
18
|
* @documentation https://fusion.dev/helix/components/skeleton
|
|
19
19
|
*
|
|
20
20
|
* @csspart content - The box around the content, hidden while `loading`.
|
|
21
|
+
* @csspart sheen - The highlight swept across the shape. Hidden for `effect="pulse"` and `effect="none"`.
|
|
21
22
|
* @csspart skeleton - The placeholder shape.
|
|
22
23
|
*
|
|
23
24
|
* @cssproperty --skeleton-block-size - The height of the block shape, which is the shape when `shape` is unset. Defaults to the control height.
|
|
@@ -1,36 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: block;
|
|
4
|
-
inset-block-start: var(--skip-link-inset-block, var(--helix-space-sm));
|
|
5
|
-
inset-inline-start: var(--skip-link-inset-inline, var(--helix-space-sm));
|
|
6
|
-
position: fixed;
|
|
7
|
-
z-index: var(--helix-layer-overlay);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[part="link"] {
|
|
11
|
-
background-color: var(--skip-link-background-color, var(--helix-color-surface-inverse));
|
|
12
|
-
border: var(--skip-link-border-width, var(--helix-border-floating)) solid
|
|
13
|
-
var(--skip-link-border-color, var(--helix-color-border));
|
|
14
|
-
border-radius: var(--skip-link-radius, var(--helix-radii-sm));
|
|
15
|
-
box-shadow: var(--skip-link-shadow, var(--helix-shadow-floating));
|
|
16
|
-
color: var(--skip-link-color, var(--helix-color-foreground-inverse));
|
|
17
|
-
display: inline-block;
|
|
18
|
-
font-family: var(--helix-font-sans);
|
|
19
|
-
font-size: var(--skip-link-font-size, var(--helix-text-sm));
|
|
20
|
-
font-weight: var(--helix-weight-medium);
|
|
21
|
-
line-height: var(--helix-leading-normal);
|
|
22
|
-
padding-block: var(--skip-link-padding-block, var(--helix-space-sm));
|
|
23
|
-
padding-inline: var(--skip-link-padding-inline, var(--helix-space-md));
|
|
24
|
-
text-decoration: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="link"]:focus-visible {
|
|
28
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
29
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media print {
|
|
33
|
-
:host {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: block;inset-block-start: var(--skip-link-inset-block, var(--helix-space-sm));inset-inline-start: var(--skip-link-inset-inline, var(--helix-space-sm));position: fixed;z-index: var(--helix-layer-overlay);}:host(:not(:focus-within)) {block-size: 1px;border: var(--helix-space-none);clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;padding: var(--helix-space-none);position: absolute;white-space: nowrap;}[part="link"] {background-color: var(--skip-link-background-color, var(--helix-color-surface-inverse));border: var(--skip-link-border-width, var(--helix-border-floating)) solid
|
|
3
|
+
var(--skip-link-border-color, var(--helix-color-border));border-radius: var(--skip-link-radius, var(--helix-radii-sm));box-shadow: var(--skip-link-shadow, var(--helix-shadow-floating));color: var(--skip-link-color, var(--helix-color-foreground-inverse));display: inline-block;font-family: var(--helix-font-sans);font-size: var(--skip-link-font-size, var(--helix-text-sm));font-weight: var(--helix-weight-medium);line-height: var(--helix-leading-normal);padding-block: var(--skip-link-padding-block, var(--helix-space-sm));padding-inline: var(--skip-link-padding-inline, var(--helix-space-md));text-decoration: none;}[part="link"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}@media print {:host {display: none;}}`);
|
|
@@ -6,9 +6,9 @@ import type { CSSResultGroup } from 'lit';
|
|
|
6
6
|
*
|
|
7
7
|
* @description
|
|
8
8
|
* Hidden until it receives keyboard focus, then shown in the corner of the
|
|
9
|
-
* viewport.
|
|
10
|
-
* stays in the tab order and the accessibility tree
|
|
11
|
-
*
|
|
9
|
+
* viewport. Its own stylesheet hides it with the visually hidden recipe the
|
|
10
|
+
* base layer uses, so it stays in the tab order and the accessibility tree,
|
|
11
|
+
* and is hidden with or without the base layer.
|
|
12
12
|
*
|
|
13
13
|
* It is fixed to the viewport, because the page may already be scrolled when
|
|
14
14
|
* focus arrives, from a restored position or an anchor in the address.
|