@fusion.dev/helix 0.146.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 +5556 -539
- 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/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 +2 -52
- 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/root/canvas-root.css.js +7 -270
- package/dist/card/root/card-root.css.js +5 -134
- 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 +9 -274
- 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/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 +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 -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 +4 -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/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 +4 -111
- 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 +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 +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 +3 -1
- 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/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 +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/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 +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 -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 +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/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/item/speed-dial-item.css.js +4 -73
- package/dist/speed-dial/root/speed-dial-root.css.js +3 -149
- 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 -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 +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 -250
- 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 +2 -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 +2804 -619
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +810 -169
|
@@ -1,69 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="mark"] {
|
|
3
|
-
block-size: 1px;
|
|
4
|
-
inline-size: 1px;
|
|
5
|
-
pointer-events: none;
|
|
6
|
-
position: absolute;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
[part="tooltip-anchor"] {
|
|
10
|
-
inset: 0;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
position: absolute;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[part="tooltip-label"] {
|
|
16
|
-
display: block;
|
|
17
|
-
font-weight: var(--helix-weight-medium);
|
|
18
|
-
margin-block-end: var(--helix-space-2xs);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part~="tooltip-cell"] {
|
|
22
|
-
align-items: baseline;
|
|
23
|
-
column-gap: var(--helix-space-sm);
|
|
24
|
-
display: grid;
|
|
25
|
-
grid-template-columns: 0.5em minmax(0, 1fr) auto;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
[part="tooltip-name"] {
|
|
29
|
-
grid-column: 2;
|
|
30
|
-
|
|
31
|
-
opacity: 0.72;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="tooltip-value"] {
|
|
35
|
-
font-variant-numeric: tabular-nums;
|
|
36
|
-
grid-column: 3;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part~="tooltip-cell"][data-series]::before {
|
|
40
|
-
background-color: var(--chart-series);
|
|
41
|
-
block-size: 0.5em;
|
|
42
|
-
border-radius: var(--helix-radii-full);
|
|
43
|
-
content: "";
|
|
44
|
-
grid-column: 1;
|
|
45
|
-
inline-size: 0.5em;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part~="tooltip-cell-current"] {
|
|
49
|
-
font-weight: var(--helix-weight-medium);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[part~="tooltip-cell-current"] [part="tooltip-name"] {
|
|
53
|
-
opacity: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[part="plot"]:focus-visible {
|
|
57
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
58
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="live"] {
|
|
62
|
-
block-size: 1px;
|
|
63
|
-
clip-path: inset(50%);
|
|
64
|
-
inline-size: 1px;
|
|
65
|
-
margin: var(--helix-space-none);
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
position: absolute;
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="mark"] {block-size: 1px;inline-size: 1px;pointer-events: none;position: absolute;}[part="tooltip-anchor"] {inset: 0;pointer-events: none;position: absolute;}[part="tooltip-label"] {display: block;font-weight: var(--helix-weight-medium);margin-block-end: var(--helix-space-2xs);}[part~="tooltip-cell"] {align-items: baseline;column-gap: var(--helix-space-sm);display: grid;grid-template-columns: 0.5em minmax(0, 1fr) auto;}[part="tooltip-name"] {grid-column: 2;opacity: 0.72;}[part="tooltip-value"] {font-variant-numeric: tabular-nums;grid-column: 3;}[part~="tooltip-cell"][data-series]::before {background-color: var(--chart-series);block-size: 0.5em;border-radius: var(--helix-radii-full);content: "";grid-column: 1;inline-size: 0.5em;}[part~="tooltip-cell-current"] {font-weight: var(--helix-weight-medium);}[part~="tooltip-cell-current"] [part="tooltip-name"] {opacity: 1;}[part="plot"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="live"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap;}`);
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
2
|
export const styles = createSheet(`[part="empty"],
|
|
3
|
-
[part="loading"] {
|
|
4
|
-
color: var(--helix-color-foreground-subtle);
|
|
5
|
-
font-family: var(--helix-font-sans);
|
|
6
|
-
font-size: var(--helix-text-sm);
|
|
7
|
-
margin: var(--helix-space-none);
|
|
8
|
-
padding-block: var(--_collection-inset-block, var(--helix-space-md));
|
|
9
|
-
padding-inline: var(--_collection-inset-inline, var(--helix-space-sm));
|
|
10
|
-
text-align: center;
|
|
11
|
-
}`);
|
|
3
|
+
[part="loading"] {color: var(--helix-color-foreground-subtle);font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);margin: var(--helix-space-none);padding-block: var(--_collection-inset-block, var(--helix-space-md));padding-inline: var(--_collection-inset-inline, var(--helix-space-sm));text-align: center;}`);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: var(--helix-space-2xs);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host(:not(:disabled)) [part="field"]:hover {
|
|
9
|
-
border-color: var(--helix-color-primary);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host(:focus-within) [part="field"],
|
|
13
|
-
:host(:focus-within) [part="field"]:hover {
|
|
14
|
-
border-color: var(--helix-color-primary);
|
|
15
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
16
|
-
outline-offset: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host(:state(invalid)) [part="field"],
|
|
2
|
+
export const styles = createSheet(`:host {display: flex;flex-direction: column;gap: var(--helix-space-2xs);}:host(:not(:disabled)) [part="field"]:hover {border-color: var(--helix-color-primary);}:host(:focus-within) [part="field"],
|
|
3
|
+
:host(:focus-within) [part="field"]:hover {border-color: var(--helix-color-primary);outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: 0;}:host(:state(invalid)) [part="field"],
|
|
20
4
|
:host(:state(invalid)) [part="field"]:hover,
|
|
21
5
|
:host(:state(invalid):focus-within) [part="field"],
|
|
22
|
-
:host(:state(invalid):focus-within) [part="field"]:hover {
|
|
23
|
-
border-color: var(--helix-color-danger);
|
|
24
|
-
outline-color: var(--helix-color-danger);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part="control"] {
|
|
28
|
-
all: unset;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
color: var(--helix-color-foreground);
|
|
31
|
-
flex: 1 1 auto;
|
|
32
|
-
font-family: var(--helix-font-sans);
|
|
33
|
-
font-size: var(--helix-text-md);
|
|
34
|
-
font-weight: var(--helix-weight-medium);
|
|
35
|
-
min-inline-size: 0;
|
|
36
|
-
}`);
|
|
6
|
+
:host(:state(invalid):focus-within) [part="field"]:hover {border-color: var(--helix-color-danger);outline-color: var(--helix-color-danger);}[part="control"] {all: unset;box-sizing: border-box;color: var(--helix-color-foreground);flex: 1 1 auto;font-family: var(--helix-font-sans);font-size: var(--helix-text-md);font-weight: var(--helix-weight-medium);min-inline-size: 0;}`);
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
2
|
export const styles = createSheet(`[part="hint"],
|
|
3
|
-
[part="feedback"] {
|
|
4
|
-
|
|
5
|
-
padding-inline-start: calc(var(--_field-control-inline-size, 0px) + var(--helix-space-xs));
|
|
6
|
-
}`);
|
|
3
|
+
[part="feedback"] {padding-inline-start: calc(var(--_field-control-inline-size, 0px) + var(--helix-space-xs));}`);
|
|
@@ -1,40 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="segments"] {
|
|
3
|
-
align-items: center;
|
|
4
|
-
color: var(--helix-color-foreground);
|
|
5
|
-
display: flex;
|
|
6
|
-
flex: 1 1 auto;
|
|
7
|
-
font-family: var(--helix-font-sans);
|
|
8
|
-
font-size: var(--helix-text-md);
|
|
9
|
-
|
|
10
|
-
font-variant-numeric: tabular-nums;
|
|
11
|
-
font-weight: var(--helix-weight-medium);
|
|
12
|
-
min-inline-size: 0;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[part~="segment"] {
|
|
17
|
-
border-radius: var(--helix-radii-sm);
|
|
18
|
-
caret-color: transparent;
|
|
19
|
-
outline: none;
|
|
20
|
-
padding-inline: calc(var(--helix-space-2xs) / 2);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[part~="segment"]:focus {
|
|
24
|
-
background-color: var(--_segment-focus-background-color, var(--helix-color-primary));
|
|
25
|
-
color: var(--_segment-focus-color, var(--helix-color-foreground-on-primary));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
[part~="segment-placeholder"] {
|
|
29
|
-
color: var(--_segment-placeholder-color, var(--helix-color-foreground-subtle));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
[part="literal"] {
|
|
33
|
-
color: var(--_segment-literal-color, var(--helix-color-foreground-muted));
|
|
34
|
-
white-space: pre;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host(:disabled) [part="segments"] {
|
|
38
|
-
color: var(--helix-color-foreground-subtle);
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="segments"] {align-items: center;color: var(--helix-color-foreground);display: flex;flex: 1 1 auto;font-family: var(--helix-font-sans);font-size: var(--helix-text-md);font-variant-numeric: tabular-nums;font-weight: var(--helix-weight-medium);min-inline-size: 0;white-space: nowrap;}[part~="segment"] {border-radius: var(--helix-radii-sm);caret-color: transparent;outline: none;padding-inline: calc(var(--helix-space-2xs) / 2);}[part~="segment"]:focus {background-color: var(--_segment-focus-background-color, var(--helix-color-primary));color: var(--_segment-focus-color, var(--helix-color-foreground-on-primary));}[part~="segment-placeholder"] {color: var(--_segment-placeholder-color, var(--helix-color-foreground-subtle));}[part="literal"] {color: var(--_segment-literal-color, var(--helix-color-foreground-muted));white-space: pre;}:host(:disabled) [part="segments"] {color: var(--helix-color-foreground-subtle);cursor: not-allowed;}`);
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="label"] {
|
|
3
|
-
display: block;
|
|
4
|
-
|
|
5
|
-
padding-block-end: var(--helix-space-2xs);
|
|
6
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`[part="label"] {display: block;padding-block-end: var(--helix-space-2xs);}`);
|
|
@@ -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="sheen"] {
|
|
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="sheen"],
|
|
62
|
-
:host([effect="none"]) [part="sheen"] {
|
|
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(:state(wrapping)) {
|
|
79
|
-
block-size: auto;
|
|
80
|
-
inline-size: fit-content;
|
|
81
|
-
max-inline-size: 100%;
|
|
82
|
-
position: relative;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host(:state(wrapping)) [part="content"] {
|
|
86
|
-
display: block;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host(:state(wrapping)) [part="skeleton"] {
|
|
90
|
-
block-size: auto;
|
|
91
|
-
inset: 0;
|
|
92
|
-
position: absolute;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host(:state(wrapping):not([loading])) [part="skeleton"] {
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host([loading]:state(wrapping)) [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="sheen"],
|
|
115
|
-
:host([effect="pulse"]) [part="skeleton"] {
|
|
116
|
-
animation: none;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
[part="sheen"] {
|
|
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;}}`);
|