@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,175 +1,10 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`[part="field"] {
|
|
3
|
-
align-items: center;
|
|
4
|
-
position: relative;
|
|
5
|
-
background-color: var(--file-input-background-color, var(--helix-color-well));
|
|
6
|
-
border: var(--helix-border-thin) dashed var(--helix-color-border);
|
|
7
|
-
border-radius: var(--helix-radii-sm);
|
|
8
|
-
display: flex;
|
|
9
|
-
gap: var(--helix-space-xs);
|
|
10
|
-
justify-content: center;
|
|
11
|
-
padding: var(--file-input-padding, var(--helix-space-md));
|
|
12
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`[part="field"] {align-items: center;position: relative;background-color: var(--file-input-background-color, var(--helix-color-well));border: var(--helix-border-thin) dashed var(--file-input-border-color, var(--helix-color-border));border-radius: var(--file-input-radius, var(--helix-radii-sm));display: flex;gap: var(--helix-space-xs);justify-content: center;padding: var(--file-input-padding, var(--helix-space-md));transition:
|
|
13
3
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
14
|
-
border-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[part="control"] {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
inset: 0;
|
|
20
|
-
opacity: 0;
|
|
21
|
-
position: absolute;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host(:focus-within) [part="field"]:not(:focus-within) {
|
|
25
|
-
outline: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
[part="field"][data-dropping] {
|
|
29
|
-
background-color: var(--helix-color-primary-subtle);
|
|
30
|
-
border-color: var(--helix-color-primary);
|
|
31
|
-
border-style: solid;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="trigger"] {
|
|
35
|
-
align-items: center;
|
|
36
|
-
color: var(--helix-color-foreground);
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
font-family: var(--helix-font-sans);
|
|
40
|
-
gap: var(--helix-space-2xs);
|
|
41
|
-
text-align: center;
|
|
42
|
-
font-size: var(--helix-text-md);
|
|
43
|
-
font-weight: var(--helix-weight-medium);
|
|
44
|
-
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part="list"] {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
gap: var(--helix-space-2xs);
|
|
52
|
-
list-style: none;
|
|
53
|
-
margin-block: var(--helix-space-2xs) 0;
|
|
54
|
-
padding: var(--helix-space-none);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[part="file"] {
|
|
58
|
-
align-items: center;
|
|
59
|
-
background-color: var(--helix-color-surface);
|
|
60
|
-
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
61
|
-
border-radius: var(--helix-radii-sm);
|
|
62
|
-
display: flex;
|
|
63
|
-
gap: var(--helix-space-sm);
|
|
64
|
-
opacity: 1;
|
|
65
|
-
padding-block: var(--helix-space-xs);
|
|
66
|
-
padding-inline: var(--helix-space-sm);
|
|
67
|
-
scale: 1 1;
|
|
68
|
-
transform-origin: top;
|
|
69
|
-
transition:
|
|
4
|
+
border-color var(--helix-duration-fast) var(--helix-easing-standard);}[part="control"] {cursor: pointer;inset: 0;opacity: 0;position: absolute;}:host(:focus-within) [part="field"]:not(:focus-within) {outline: none;}[part="field"][data-dropping] {background-color: var(--file-input-drop-background-color, var(--helix-color-primary-subtle));border-color: var(--file-input-drop-border-color, var(--helix-color-primary));border-style: solid;}[part="trigger"] {align-items: center;color: var(--helix-color-foreground);display: flex;flex-direction: column;font-family: var(--helix-font-sans);gap: var(--helix-space-2xs);text-align: center;font-size: var(--helix-text-md);font-weight: var(--helix-weight-medium);pointer-events: none;}[part="list"] {display: flex;flex-direction: column;gap: var(--helix-space-2xs);list-style: none;margin-block: var(--helix-space-2xs) 0;padding: var(--helix-space-none);}[part~="file"] {align-items: center;background-color: var(--file-input-file-background-color, var(--helix-color-surface));border: var(--helix-border-thin) solid
|
|
5
|
+
var(--file-input-file-border-color, var(--helix-color-border));border-radius: var(--file-input-file-radius, var(--helix-radii-sm));display: flex;gap: var(--helix-space-sm);opacity: 1;padding-block: var(--file-input-file-padding-block, var(--helix-space-xs));padding-inline: var(--file-input-file-padding-inline, var(--helix-space-sm));scale: 1 1;transform-origin: top;transition:
|
|
70
6
|
opacity var(--helix-duration-fast) var(--helix-easing-standard),
|
|
71
|
-
scale var(--helix-duration-fast) var(--helix-easing-emphasized);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@
|
|
75
|
-
[part="file"] {
|
|
76
|
-
opacity: 0;
|
|
77
|
-
scale: 1 0.9;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[part="detail"] {
|
|
82
|
-
align-items: center;
|
|
83
|
-
column-gap: var(--helix-space-sm);
|
|
84
|
-
display: flex;
|
|
85
|
-
flex: 1 1 auto;
|
|
86
|
-
flex-wrap: wrap;
|
|
87
|
-
min-inline-size: 0;
|
|
88
|
-
row-gap: var(--helix-space-2xs);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[part="name"] {
|
|
92
|
-
min-inline-size: min(100%, 16ch);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
[part="meta"] {
|
|
96
|
-
--helix-size-tag: var(--helix-size-tag-sm);
|
|
97
|
-
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-wrap: wrap;
|
|
100
|
-
gap: var(--helix-space-2xs);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[part="size"] {
|
|
104
|
-
font-variant-numeric: tabular-nums;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[part="name"] {
|
|
108
|
-
color: var(--helix-color-foreground);
|
|
109
|
-
flex: 1 1 auto;
|
|
110
|
-
font-family: var(--helix-font-sans);
|
|
111
|
-
font-size: var(--helix-text-sm);
|
|
112
|
-
|
|
113
|
-
overflow-wrap: anywhere;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part="remove"] {
|
|
117
|
-
--icon-size: var(--helix-size-icon-tight);
|
|
118
|
-
all: unset;
|
|
119
|
-
|
|
120
|
-
align-items: center;
|
|
121
|
-
border-radius: var(--helix-radii-sm);
|
|
122
|
-
box-sizing: border-box;
|
|
123
|
-
color: var(--helix-color-foreground-muted);
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
display: flex;
|
|
126
|
-
flex: none;
|
|
127
|
-
justify-content: center;
|
|
128
|
-
min-block-size: var(--helix-size-icon-loose);
|
|
129
|
-
min-inline-size: var(--helix-size-icon-loose);
|
|
130
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
[part="remove"]:hover {
|
|
134
|
-
color: var(--helix-color-danger);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
[part="remove"]:focus-visible {
|
|
138
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
139
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
:host(:disabled) [part="field"] {
|
|
143
|
-
border-style: solid;
|
|
144
|
-
color: var(--helix-color-foreground-subtle);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:host(:disabled) [part="control"],
|
|
148
|
-
:host(:disabled) [part="trigger"] {
|
|
149
|
-
cursor: not-allowed;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@media (prefers-reduced-motion: reduce) {
|
|
153
|
-
[part="field"],
|
|
154
|
-
[part="file"],
|
|
155
|
-
[part="remove"] {
|
|
156
|
-
transition: none;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
[part="file"] {
|
|
160
|
-
opacity: 1;
|
|
161
|
-
scale: 1 1;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
::slotted(helix-icon[slot="trigger"]) {
|
|
166
|
-
--icon-size: var(--helix-size-icon-loose);
|
|
167
|
-
|
|
168
|
-
color: var(--helix-color-foreground-muted);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@media print {
|
|
172
|
-
:host {
|
|
173
|
-
print-color-adjust: exact;
|
|
174
|
-
}
|
|
175
|
-
}`);
|
|
7
|
+
scale var(--helix-duration-fast) var(--helix-easing-emphasized);}@starting-style {[part~="file"] {opacity: 0;scale: 1 0.9;}}[part="detail"] {align-items: center;column-gap: var(--helix-space-sm);display: flex;flex: 1 1 auto;flex-wrap: wrap;min-inline-size: 0;row-gap: var(--helix-space-2xs);}[part="name"] {min-inline-size: min(100%, 16ch);}[part="meta"] {--helix-size-tag: var(--helix-size-tag-sm);display: flex;flex-wrap: wrap;gap: var(--helix-space-2xs);}[part="size"] {font-variant-numeric: tabular-nums;}[part="name"] {color: var(--helix-color-foreground);flex: 1 1 auto;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);overflow-wrap: anywhere;}[part="status"] {align-items: center;color: var(--file-input-status-color, var(--helix-color-foreground-muted));display: flex;flex: 1 1 100%;font-family: var(--helix-font-sans);font-size: var(--helix-text-xs);gap: var(--helix-space-xs);}[part~="file-error"] [part="status"] {color: var(--file-input-status-color-error, var(--helix-color-danger));}[part="progress"] {appearance: none;background-color: var(--file-input-progress-track-color, var(--helix-color-border));block-size: var(--helix-border-thick);border: 0;border-radius: var(--helix-radii-full);flex: 1 1 auto;overflow: hidden;}[part="progress"]::-webkit-progress-bar {background-color: transparent;}[part="progress"]::-webkit-progress-value {background-color: var(--file-input-progress-color, var(--helix-color-primary));}[part="progress"]::-moz-progress-bar {background-color: var(--file-input-progress-color, var(--helix-color-primary));}[part="remove"] {--icon-size: var(--helix-size-icon-tight);all: unset;align-items: center;border-radius: var(--helix-radii-sm);box-sizing: border-box;color: var(--file-input-remove-color, var(--helix-color-foreground-muted));cursor: pointer;display: flex;flex: none;justify-content: center;min-block-size: var(--helix-size-icon-loose);min-inline-size: var(--helix-size-icon-loose);transition: color var(--helix-duration-fast) var(--helix-easing-standard);}[part="remove"]:hover {color: var(--file-input-remove-color-hover, var(--helix-color-danger));}[part="remove"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host(:disabled) [part="field"] {border-style: solid;color: var(--helix-color-foreground-subtle);}:host(:disabled) [part="control"],
|
|
8
|
+
:host(:disabled) [part="trigger"] {cursor: not-allowed;}@media (prefers-reduced-motion: reduce) {[part="field"],
|
|
9
|
+
[part~="file"],
|
|
10
|
+
[part="remove"] {transition: none;}[part~="file"] {opacity: 1;scale: 1 1;}}::slotted(helix-icon[slot="trigger"]) {--icon-size: var(--helix-size-icon-loose);color: var(--helix-color-foreground-muted);}@media print {:host {print-color-adjust: exact;}}`);
|
|
@@ -22,7 +22,22 @@ import '../../tag/index.js';
|
|
|
22
22
|
* @documentation https://fusion.dev/helix/components/file-input
|
|
23
23
|
*
|
|
24
24
|
* @cssproperty --file-input-background-color - Fill behind the field.
|
|
25
|
+
* @cssproperty --file-input-border-color - The field's dashed edge at rest.
|
|
26
|
+
* @cssproperty --file-input-drop-background-color - Fill behind the field while files are dragged over it.
|
|
27
|
+
* @cssproperty --file-input-drop-border-color - The field's edge while files are dragged over it.
|
|
28
|
+
* @cssproperty --file-input-file-background-color - Fill behind each chosen file.
|
|
29
|
+
* @cssproperty --file-input-file-border-color - The edge of each chosen file.
|
|
30
|
+
* @cssproperty --file-input-file-padding-block - Padding above and below each chosen file.
|
|
31
|
+
* @cssproperty --file-input-file-padding-inline - Padding at each side of each chosen file.
|
|
32
|
+
* @cssproperty --file-input-file-radius - Corner radius of each chosen file.
|
|
25
33
|
* @cssproperty --file-input-padding - Padding inside the field.
|
|
34
|
+
* @cssproperty --file-input-progress-color - The filled part of a file's upload bar.
|
|
35
|
+
* @cssproperty --file-input-progress-track-color - The unfilled part of a file's upload bar.
|
|
36
|
+
* @cssproperty --file-input-radius - Corner radius of the field.
|
|
37
|
+
* @cssproperty --file-input-remove-color - The remove button's icon at rest.
|
|
38
|
+
* @cssproperty --file-input-remove-color-hover - The remove button's icon under the pointer.
|
|
39
|
+
* @cssproperty --file-input-status-color - The words beside a file's upload bar.
|
|
40
|
+
* @cssproperty --file-input-status-color-error - The words beside a file whose upload failed.
|
|
26
41
|
*/
|
|
27
42
|
export declare class HelixFileInput extends HelixHeadlessFileInput {
|
|
28
43
|
static tier: string;
|
|
@@ -1,85 +1,3 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
align-items: center;
|
|
4
|
-
background-color: var(--filter-input-chip-background-color, var(--helix-color-surface-sunken));
|
|
5
|
-
border: var(--helix-border-thin) solid
|
|
6
|
-
var(--filter-input-chip-border-color, var(--helix-color-border));
|
|
7
|
-
border-radius: var(--filter-input-chip-radius, var(--helix-radii-sm));
|
|
8
|
-
color: var(--helix-color-foreground);
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
font-family: var(--helix-font-sans);
|
|
11
|
-
font-size: var(--helix-text-sm);
|
|
12
|
-
|
|
13
|
-
gap: var(--helix-space-none);
|
|
14
|
-
line-height: var(--helix-leading-normal);
|
|
15
|
-
max-inline-size: 100%;
|
|
16
|
-
|
|
17
|
-
min-block-size: var(--helix-size-tag);
|
|
18
|
-
padding-inline: var(--helix-space-xs);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host {
|
|
22
|
-
--helix-size-control: var(--helix-size-control-sm);
|
|
23
|
-
--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
|
|
24
|
-
--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);
|
|
25
|
-
--helix-size-icon: var(--helix-size-icon-sm);
|
|
26
|
-
--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
|
|
27
|
-
--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[part="field"] {
|
|
31
|
-
color: var(--helix-color-foreground-muted);
|
|
32
|
-
padding-inline-end: var(--helix-space-2xs);
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[part="operator"] {
|
|
37
|
-
align-items: center;
|
|
38
|
-
color: var(--helix-color-foreground-subtle);
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
padding-inline-end: var(--helix-space-2xs);
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part="values"] {
|
|
45
|
-
font-weight: var(--helix-weight-medium);
|
|
46
|
-
min-inline-size: 0;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
text-overflow: ellipsis;
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[part="dismiss"] {
|
|
53
|
-
background: none;
|
|
54
|
-
block-size: var(--helix-size-icon);
|
|
55
|
-
border: 0;
|
|
56
|
-
border-radius: var(--helix-radii-sm);
|
|
57
|
-
color: var(--helix-color-foreground-subtle);
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
display: grid;
|
|
60
|
-
inline-size: var(--helix-size-icon);
|
|
61
|
-
margin-inline-start: var(--helix-space-2xs);
|
|
62
|
-
padding: var(--helix-space-none);
|
|
63
|
-
place-items: center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
[part="dismiss-mark"] {
|
|
67
|
-
block-size: var(--icon-size, 0.85em);
|
|
68
|
-
inline-size: var(--icon-size, 0.85em);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[part="dismiss"]:hover {
|
|
72
|
-
background-color: color-mix(in oklab, currentcolor 12%, transparent);
|
|
73
|
-
color: var(--helix-color-foreground);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
[part="dismiss"]:focus-visible {
|
|
77
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
78
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@media print {
|
|
82
|
-
[part="dismiss"] {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {align-items: center;background-color: var(--filter-input-chip-background-color, var(--helix-color-surface-sunken));border: var(--helix-border-thin) solid
|
|
3
|
+
var(--filter-input-chip-border-color, var(--helix-color-border));border-radius: var(--filter-input-chip-radius, var(--helix-radii-sm));color: var(--helix-color-foreground);display: inline-flex;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);gap: var(--helix-space-none);line-height: var(--helix-leading-normal);max-inline-size: 100%;min-block-size: var(--helix-size-tag);padding-inline: var(--helix-space-xs);}:host {--helix-size-control: var(--helix-size-control-sm);--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);--helix-size-icon: var(--helix-size-icon-sm);--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);}[part="field"] {color: var(--helix-color-foreground-muted);padding-inline-end: var(--helix-space-2xs);white-space: nowrap;}[part="operator"] {align-items: center;color: var(--helix-color-foreground-subtle);display: inline-flex;padding-inline-end: var(--helix-space-2xs);white-space: nowrap;}[part="values"] {font-weight: var(--helix-weight-medium);min-inline-size: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}[part="dismiss"] {background: none;block-size: var(--helix-size-icon);border: 0;border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-subtle);cursor: pointer;display: grid;inline-size: var(--helix-size-icon);margin-inline-start: var(--helix-space-2xs);padding: var(--helix-space-none);place-items: center;}[part="dismiss-mark"] {block-size: var(--icon-size, 0.85em);inline-size: var(--icon-size, 0.85em);}[part="dismiss"]:hover {background-color: color-mix(in oklab, currentcolor 12%, transparent);color: var(--helix-color-foreground);}[part="dismiss"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}@media print {[part="dismiss"] {display: none;}}`);
|
|
@@ -1,114 +1,8 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_filter-input-size: var(--filter-input-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="field"] {
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: var(--filter-input-background-color, var(--helix-color-well));
|
|
9
|
-
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
10
|
-
border-radius: var(--helix-radii-sm);
|
|
11
|
-
color: var(--helix-color-foreground-subtle);
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-wrap: wrap;
|
|
14
|
-
gap: var(--helix-space-2xs);
|
|
15
|
-
min-block-size: var(--_filter-input-size);
|
|
16
|
-
|
|
17
|
-
padding-block: var(--helix-space-2xs);
|
|
18
|
-
padding-inline: var(--helix-space-xs);
|
|
19
|
-
transition:
|
|
2
|
+
export const styles = createSheet(`:host {--_filter-input-size: var(--filter-input-size, var(--helix-size-control));}[part="field"] {align-items: center;background-color: var(--filter-input-background-color, var(--helix-color-well));border: var(--helix-border-thin) solid
|
|
3
|
+
var(--filter-input-field-border-color, var(--helix-color-border));border-radius: var(--filter-input-radius, var(--helix-radii-sm));color: var(--helix-color-foreground-subtle);display: flex;flex-wrap: wrap;gap: var(--helix-space-2xs);min-block-size: var(--_filter-input-size);padding-block: var(--helix-space-2xs);padding-inline: var(--filter-input-padding-inline, var(--helix-space-xs));transition:
|
|
20
4
|
border-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
21
|
-
background-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
::slotted([
|
|
25
|
-
flex: 0 0 auto;
|
|
26
|
-
max-inline-size: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[part="control"] {
|
|
30
|
-
flex: 1 1 var(--filter-input-control-size, 6ch);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
[part="lead"] {
|
|
34
|
-
align-items: center;
|
|
35
|
-
align-self: stretch;
|
|
36
|
-
border-inline-end: var(--helix-border-thin) solid
|
|
37
|
-
var(--filter-input-lead-border-color, var(--helix-color-border));
|
|
38
|
-
display: flex;
|
|
39
|
-
margin-block: calc(var(--helix-space-2xs) * -1);
|
|
40
|
-
margin-inline-start: calc(var(--helix-space-xs) * -1);
|
|
41
|
-
padding-inline: var(--helix-space-2xs) var(--helix-space-xs);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part="lead"][hidden] {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[part="lead"],
|
|
49
|
-
slot[name="end"] {
|
|
50
|
-
--button-size: var(--filter-input-action-size, var(--helix-size-tag));
|
|
51
|
-
--icon-button-size: var(--filter-input-action-size, var(--helix-size-tag));
|
|
52
|
-
--button-padding-inline: var(--filter-input-action-padding-inline, var(--helix-space-xs));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
slot[name="start"]::slotted(*),
|
|
56
|
-
slot[name="end"]::slotted(*) {
|
|
57
|
-
color: var(--helix-color-foreground-subtle);
|
|
58
|
-
flex: 0 0 auto;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="clear"] {
|
|
62
|
-
--icon-size: 0.85em;
|
|
63
|
-
all: unset;
|
|
64
|
-
|
|
65
|
-
align-items: center;
|
|
66
|
-
align-self: center;
|
|
67
|
-
border-radius: var(--helix-radii-sm);
|
|
68
|
-
box-sizing: border-box;
|
|
69
|
-
color: var(--helix-color-foreground-subtle);
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
display: flex;
|
|
72
|
-
flex: 0 0 auto;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
min-block-size: var(--helix-size-icon-loose);
|
|
75
|
-
min-inline-size: var(--helix-size-icon-loose);
|
|
76
|
-
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[part="clear"]:hover {
|
|
80
|
-
background-color: color-mix(in oklab, currentcolor 12%, transparent);
|
|
81
|
-
color: var(--helix-color-foreground);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[part="clear"]:focus-visible {
|
|
85
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
86
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host(:disabled) [part="field"] {
|
|
90
|
-
cursor: not-allowed;
|
|
91
|
-
opacity: 0.5;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@media print {
|
|
95
|
-
:host {
|
|
96
|
-
print-color-adjust: exact;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part="surface"] {
|
|
101
|
-
--_floating-border-color: var(--filter-input-border-color, var(--helix-color-border));
|
|
102
|
-
--_floating-border-width: var(--filter-input-border-width, var(--helix-border-floating));
|
|
103
|
-
--_floating-shadow: var(--filter-input-shadow, var(--helix-shadow-floating));
|
|
104
|
-
|
|
105
|
-
box-sizing: border-box;
|
|
106
|
-
inline-size: var(--filter-input-panel-size, var(--floating-anchor-inline-size, 100%));
|
|
107
|
-
|
|
108
|
-
max-block-size: var(--floating-available-block-size, 20rem);
|
|
109
|
-
min-inline-size: max-content;
|
|
110
|
-
overflow-y: auto;
|
|
111
|
-
padding-block: var(--helix-space-2xs);
|
|
112
|
-
padding-inline: var(--helix-space-none);
|
|
113
|
-
position: absolute;
|
|
114
|
-
}`);
|
|
5
|
+
background-color var(--helix-duration-fast) var(--helix-easing-standard);}::slotted([slot="tags"]) {flex: 0 0 auto;max-inline-size: 100%;}[part="control"] {flex: 1 1 var(--filter-input-control-size, 6ch);}[part="lead"] {align-items: center;align-self: stretch;border-inline-end: var(--helix-border-thin) solid
|
|
6
|
+
var(--filter-input-lead-border-color, var(--helix-color-border));display: flex;margin-block: calc(var(--helix-space-2xs) * -1);margin-inline-start: calc(var(--helix-space-xs) * -1);padding-inline: var(--helix-space-2xs) var(--helix-space-xs);}[part="lead"][hidden] {display: none;}[part="lead"],
|
|
7
|
+
slot[name="end"] {--button-size: var(--filter-input-action-size, var(--helix-size-tag));--icon-button-size: var(--filter-input-action-size, var(--helix-size-tag));--button-padding-inline: var(--filter-input-action-padding-inline, var(--helix-space-xs));}slot[name="start"]::slotted(*),
|
|
8
|
+
slot[name="end"]::slotted(*) {color: var(--helix-color-foreground-subtle);flex: 0 0 auto;}[part="clear"] {--icon-size: 0.85em;all: unset;align-items: center;align-self: center;border-radius: var(--helix-radii-sm);box-sizing: border-box;color: var(--filter-input-clear-color, var(--helix-color-foreground-subtle));cursor: pointer;display: flex;flex: 0 0 auto;justify-content: center;min-block-size: var(--helix-size-icon-loose);min-inline-size: var(--helix-size-icon-loose);transition: color var(--helix-duration-fast) var(--helix-easing-standard);}[part="clear"]:hover {background-color: color-mix(in oklab, currentcolor 12%, transparent);color: var(--filter-input-clear-color-hover, var(--helix-color-foreground));}[part="clear"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host(:disabled) [part="field"] {cursor: not-allowed;opacity: 0.5;}@media print {:host {print-color-adjust: exact;}}[part="surface"] {--_floating-border-color: var(--filter-input-border-color, var(--helix-color-border));--_floating-border-width: var(--filter-input-border-width, var(--helix-border-floating));--_floating-shadow: var(--filter-input-shadow, var(--helix-shadow-floating));box-sizing: border-box;inline-size: var(--filter-input-panel-size, var(--floating-anchor-inline-size, 100%));max-block-size: var(--floating-available-block-size, 20rem);min-inline-size: max-content;overflow-y: auto;padding-block: var(--helix-space-2xs);padding-inline: var(--helix-space-none);position: absolute;}`);
|
|
@@ -32,9 +32,14 @@ import '../../option/index.js';
|
|
|
32
32
|
* @cssproperty --filter-input-background-color - The fill behind the field.
|
|
33
33
|
* @cssproperty --filter-input-border-color - The color of the suggestion panel's border.
|
|
34
34
|
* @cssproperty --filter-input-border-width - The width of the suggestion panel's border. It follows `--helix-border-floating`.
|
|
35
|
+
* @cssproperty --filter-input-clear-color - The clear button's icon at rest.
|
|
36
|
+
* @cssproperty --filter-input-clear-color-hover - The clear button's icon under the pointer.
|
|
35
37
|
* @cssproperty --filter-input-control-size - The smallest width the text keeps as tokens fill the line. Below it, the text wraps to its own line.
|
|
38
|
+
* @cssproperty --filter-input-field-border-color - The field's edge at rest. Hover, focus, and an error still draw their own.
|
|
36
39
|
* @cssproperty --filter-input-lead-border-color - The color of the line between the leading box and the text.
|
|
40
|
+
* @cssproperty --filter-input-padding-inline - Space at each side of the field, inside its edge.
|
|
37
41
|
* @cssproperty --filter-input-panel-size - The width of the suggestion panel. It matches the field by default.
|
|
42
|
+
* @cssproperty --filter-input-radius - Corner radius of the field.
|
|
38
43
|
* @cssproperty --filter-input-shadow - The shadow under the panel. It follows
|
|
39
44
|
* `--helix-shadow-floating`. The panel can sit over any content, so it has a
|
|
40
45
|
* shadow by default.
|
|
@@ -1,201 +1,7 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
|
|
4
|
-
--_flex-column-gap: var(--_flex-gap);
|
|
5
|
-
--_flex-gap: var(--helix-space-none);
|
|
6
|
-
--_flex-row-gap: var(--_flex-gap);
|
|
7
|
-
|
|
8
|
-
column-gap: var(--_flex-column-gap);
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
row-gap: var(--_flex-row-gap);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([inline]) {
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([direction="column"]) {
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([direction="row-reverse"]) {
|
|
23
|
-
flex-direction: row-reverse;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([direction="column-reverse"]) {
|
|
27
|
-
flex-direction: column-reverse;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([layout="cluster"]),
|
|
2
|
+
export const styles = createSheet(`:host {--_flex-column-gap: var(--_flex-gap);--_flex-gap: var(--helix-space-none);--_flex-row-gap: var(--_flex-gap);column-gap: var(--_flex-column-gap);display: flex;flex-direction: row;row-gap: var(--_flex-row-gap);}:host([inline]) {display: inline-flex;}:host([direction="column"]) {flex-direction: column;}:host([direction="row-reverse"]) {flex-direction: row-reverse;}:host([direction="column-reverse"]) {flex-direction: column-reverse;}:host([layout="cluster"]),
|
|
31
3
|
:host([layout="flank"]),
|
|
32
4
|
:host([layout="flank-end"]),
|
|
33
|
-
:host([layout="split"]) {
|
|
34
|
-
|
|
35
|
-
flex-wrap: wrap;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([layout="split"]) {
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host([layout="flank"]) ::slotted(:first-child),
|
|
43
|
-
:host([layout="flank-end"]) ::slotted(:last-child) {
|
|
44
|
-
flex-basis: var(--flex-flank-size, auto);
|
|
45
|
-
flex-grow: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host([layout="flank"]) ::slotted(:last-child),
|
|
49
|
-
:host([layout="flank-end"]) ::slotted(:first-child) {
|
|
50
|
-
flex-basis: 0;
|
|
51
|
-
flex-grow: 999;
|
|
52
|
-
min-inline-size: var(--flex-flank-min, 50%);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host([wrap]) {
|
|
56
|
-
flex-wrap: wrap;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host([wrap="reverse"]) {
|
|
60
|
-
flex-wrap: wrap-reverse;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([gap="2xs"]) {
|
|
64
|
-
--_flex-gap: var(--helix-space-2xs);
|
|
65
|
-
}
|
|
66
|
-
:host([gap="xs"]) {
|
|
67
|
-
--_flex-gap: var(--helix-space-xs);
|
|
68
|
-
}
|
|
69
|
-
:host([gap="sm"]) {
|
|
70
|
-
--_flex-gap: var(--helix-space-sm);
|
|
71
|
-
}
|
|
72
|
-
:host([gap="md"]) {
|
|
73
|
-
--_flex-gap: var(--helix-space-md);
|
|
74
|
-
}
|
|
75
|
-
:host([gap="lg"]) {
|
|
76
|
-
--_flex-gap: var(--helix-space-lg);
|
|
77
|
-
}
|
|
78
|
-
:host([gap="xl"]) {
|
|
79
|
-
--_flex-gap: var(--helix-space-xl);
|
|
80
|
-
}
|
|
81
|
-
:host([gap="2xl"]) {
|
|
82
|
-
--_flex-gap: var(--helix-space-2xl);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host([gap="3xl"]) {
|
|
86
|
-
--_flex-gap: var(--helix-space-3xl);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host([row-gap="none"]) {
|
|
90
|
-
--_flex-row-gap: var(--helix-space-none);
|
|
91
|
-
}
|
|
92
|
-
:host([row-gap="2xs"]) {
|
|
93
|
-
--_flex-row-gap: var(--helix-space-2xs);
|
|
94
|
-
}
|
|
95
|
-
:host([row-gap="xs"]) {
|
|
96
|
-
--_flex-row-gap: var(--helix-space-xs);
|
|
97
|
-
}
|
|
98
|
-
:host([row-gap="sm"]) {
|
|
99
|
-
--_flex-row-gap: var(--helix-space-sm);
|
|
100
|
-
}
|
|
101
|
-
:host([row-gap="md"]) {
|
|
102
|
-
--_flex-row-gap: var(--helix-space-md);
|
|
103
|
-
}
|
|
104
|
-
:host([row-gap="lg"]) {
|
|
105
|
-
--_flex-row-gap: var(--helix-space-lg);
|
|
106
|
-
}
|
|
107
|
-
:host([row-gap="xl"]) {
|
|
108
|
-
--_flex-row-gap: var(--helix-space-xl);
|
|
109
|
-
}
|
|
110
|
-
:host([row-gap="2xl"]) {
|
|
111
|
-
--_flex-row-gap: var(--helix-space-2xl);
|
|
112
|
-
}
|
|
113
|
-
:host([row-gap="3xl"]) {
|
|
114
|
-
--_flex-row-gap: var(--helix-space-3xl);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:host([column-gap="none"]) {
|
|
118
|
-
--_flex-column-gap: var(--helix-space-none);
|
|
119
|
-
}
|
|
120
|
-
:host([column-gap="2xs"]) {
|
|
121
|
-
--_flex-column-gap: var(--helix-space-2xs);
|
|
122
|
-
}
|
|
123
|
-
:host([column-gap="xs"]) {
|
|
124
|
-
--_flex-column-gap: var(--helix-space-xs);
|
|
125
|
-
}
|
|
126
|
-
:host([column-gap="sm"]) {
|
|
127
|
-
--_flex-column-gap: var(--helix-space-sm);
|
|
128
|
-
}
|
|
129
|
-
:host([column-gap="md"]) {
|
|
130
|
-
--_flex-column-gap: var(--helix-space-md);
|
|
131
|
-
}
|
|
132
|
-
:host([column-gap="lg"]) {
|
|
133
|
-
--_flex-column-gap: var(--helix-space-lg);
|
|
134
|
-
}
|
|
135
|
-
:host([column-gap="xl"]) {
|
|
136
|
-
--_flex-column-gap: var(--helix-space-xl);
|
|
137
|
-
}
|
|
138
|
-
:host([column-gap="2xl"]) {
|
|
139
|
-
--_flex-column-gap: var(--helix-space-2xl);
|
|
140
|
-
}
|
|
141
|
-
:host([column-gap="3xl"]) {
|
|
142
|
-
--_flex-column-gap: var(--helix-space-3xl);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:host([align-items="start"]) {
|
|
146
|
-
align-items: flex-start;
|
|
147
|
-
}
|
|
148
|
-
:host([align-items="center"]) {
|
|
149
|
-
align-items: center;
|
|
150
|
-
}
|
|
151
|
-
:host([align-items="end"]) {
|
|
152
|
-
align-items: flex-end;
|
|
153
|
-
}
|
|
154
|
-
:host([align-items="baseline"]) {
|
|
155
|
-
align-items: baseline;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host([align-content="start"]) {
|
|
159
|
-
align-content: flex-start;
|
|
160
|
-
}
|
|
161
|
-
:host([align-content="center"]) {
|
|
162
|
-
align-content: center;
|
|
163
|
-
}
|
|
164
|
-
:host([align-content="end"]) {
|
|
165
|
-
align-content: flex-end;
|
|
166
|
-
}
|
|
167
|
-
:host([align-content="between"]) {
|
|
168
|
-
align-content: space-between;
|
|
169
|
-
}
|
|
170
|
-
:host([align-content="around"]) {
|
|
171
|
-
align-content: space-around;
|
|
172
|
-
}
|
|
173
|
-
:host([align-content="stretch"]) {
|
|
174
|
-
align-content: stretch;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
:host([align-items="stretch"]) {
|
|
178
|
-
align-items: stretch;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:host([justify-content="start"]) {
|
|
182
|
-
justify-content: flex-start;
|
|
183
|
-
}
|
|
184
|
-
:host([justify-content="center"]) {
|
|
185
|
-
justify-content: center;
|
|
186
|
-
}
|
|
187
|
-
:host([justify-content="end"]) {
|
|
188
|
-
justify-content: flex-end;
|
|
189
|
-
}
|
|
190
|
-
:host([justify-content="between"]) {
|
|
191
|
-
justify-content: space-between;
|
|
192
|
-
}
|
|
193
|
-
:host([justify-content="around"]) {
|
|
194
|
-
justify-content: space-around;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@media print {
|
|
198
|
-
:host {
|
|
199
|
-
print-color-adjust: economy;
|
|
200
|
-
}
|
|
201
|
-
}`);
|
|
5
|
+
:host([layout="split"]) {align-items: center;flex-wrap: wrap;}:host([layout="split"]) {justify-content: space-between;}:host([layout="flank"]) ::slotted(:first-child),
|
|
6
|
+
:host([layout="flank-end"]) ::slotted(:last-child) {flex-basis: var(--flex-flank-size, auto);flex-grow: 1;}:host([layout="flank"]) ::slotted(:last-child),
|
|
7
|
+
:host([layout="flank-end"]) ::slotted(:first-child) {flex-basis: 0;flex-grow: 999;min-inline-size: var(--flex-flank-min, 50%);}:host([layout="switch"]) {flex-wrap: wrap;}:host([layout="switch"]) ::slotted(*) {flex-basis: calc((var(--flex-switch-at, 30rem) - 100%) * 999);flex-grow: 1;}:host([wrap]) {flex-wrap: wrap;}:host([wrap="reverse"]) {flex-wrap: wrap-reverse;}:host([gap="2xs"]) {--_flex-gap: var(--helix-space-2xs);}:host([gap="xs"]) {--_flex-gap: var(--helix-space-xs);}:host([gap="sm"]) {--_flex-gap: var(--helix-space-sm);}:host([gap="md"]) {--_flex-gap: var(--helix-space-md);}:host([gap="lg"]) {--_flex-gap: var(--helix-space-lg);}:host([gap="xl"]) {--_flex-gap: var(--helix-space-xl);}:host([gap="2xl"]) {--_flex-gap: var(--helix-space-2xl);}:host([gap="3xl"]) {--_flex-gap: var(--helix-space-3xl);}:host([row-gap="none"]) {--_flex-row-gap: var(--helix-space-none);}:host([row-gap="2xs"]) {--_flex-row-gap: var(--helix-space-2xs);}:host([row-gap="xs"]) {--_flex-row-gap: var(--helix-space-xs);}:host([row-gap="sm"]) {--_flex-row-gap: var(--helix-space-sm);}:host([row-gap="md"]) {--_flex-row-gap: var(--helix-space-md);}:host([row-gap="lg"]) {--_flex-row-gap: var(--helix-space-lg);}:host([row-gap="xl"]) {--_flex-row-gap: var(--helix-space-xl);}:host([row-gap="2xl"]) {--_flex-row-gap: var(--helix-space-2xl);}:host([row-gap="3xl"]) {--_flex-row-gap: var(--helix-space-3xl);}:host([column-gap="none"]) {--_flex-column-gap: var(--helix-space-none);}:host([column-gap="2xs"]) {--_flex-column-gap: var(--helix-space-2xs);}:host([column-gap="xs"]) {--_flex-column-gap: var(--helix-space-xs);}:host([column-gap="sm"]) {--_flex-column-gap: var(--helix-space-sm);}:host([column-gap="md"]) {--_flex-column-gap: var(--helix-space-md);}:host([column-gap="lg"]) {--_flex-column-gap: var(--helix-space-lg);}:host([column-gap="xl"]) {--_flex-column-gap: var(--helix-space-xl);}:host([column-gap="2xl"]) {--_flex-column-gap: var(--helix-space-2xl);}:host([column-gap="3xl"]) {--_flex-column-gap: var(--helix-space-3xl);}:host([align-items="start"]) {align-items: flex-start;}:host([align-items="center"]) {align-items: center;}:host([align-items="end"]) {align-items: flex-end;}:host([align-items="baseline"]) {align-items: baseline;}:host([align-content="start"]) {align-content: flex-start;}:host([align-content="center"]) {align-content: center;}:host([align-content="end"]) {align-content: flex-end;}:host([align-content="between"]) {align-content: space-between;}:host([align-content="around"]) {align-content: space-around;}:host([align-content="stretch"]) {align-content: stretch;}:host([align-items="stretch"]) {align-items: stretch;}:host([justify-content="start"]) {justify-content: flex-start;}:host([justify-content="center"]) {justify-content: center;}:host([justify-content="end"]) {justify-content: flex-end;}:host([justify-content="between"]) {justify-content: space-between;}:host([justify-content="around"]) {justify-content: space-around;}@media print {:host {print-color-adjust: economy;}}`);
|