@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,221 +1,25 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
--_carousel-bleed: var(--
|
|
4
|
-
--_carousel-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
10
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[part="track"] {
|
|
14
|
-
grid-area: 2 / 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part="controls"],
|
|
18
|
-
[part="indicators"] {
|
|
19
|
-
align-items: center;
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: var(--helix-space-2xs);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[part="indicators"] {
|
|
25
|
-
grid-area: 3 / 2;
|
|
26
|
-
justify-self: var(--_carousel-indicators-along);
|
|
27
|
-
padding-block-start: var(--helix-space-sm);
|
|
28
|
-
padding-inline: var(--_carousel-bleed);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[part="controls"] {
|
|
32
|
-
grid-area: 3 / 2;
|
|
33
|
-
justify-self: var(--_carousel-controls-along);
|
|
34
|
-
padding-block-start: var(--helix-space-sm);
|
|
35
|
-
padding-inline: var(--_carousel-bleed);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[part="indicators"] {
|
|
39
|
-
--_carousel-indicators-along: start;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[part="controls"] {
|
|
43
|
-
--_carousel-controls-along: end;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (hover: none) and (pointer: coarse) {
|
|
47
|
-
|
|
48
|
-
:host(:not([controls="always"])) [part="indicators"] {
|
|
49
|
-
--_carousel-indicators-along: center;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([indicator-placement="top"]) [part="indicators"] {
|
|
54
|
-
grid-area: 1 / 2;
|
|
55
|
-
padding-block: var(--helix-space-none) var(--helix-space-sm);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([controls-placement="top"]) [part="controls"] {
|
|
59
|
-
grid-area: 1 / 2;
|
|
60
|
-
padding-block: var(--helix-space-none) var(--helix-space-sm);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([indicator-placement="start"]) [part="indicators"],
|
|
64
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
65
|
-
align-self: var(--_carousel-indicators-along);
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
justify-self: center;
|
|
68
|
-
padding-block-start: var(--helix-space-none);
|
|
69
|
-
padding-inline: var(--helix-space-none);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:host([controls-placement="start"]) [part="controls"],
|
|
73
|
-
:host([controls-placement="end"]) [part="controls"] {
|
|
74
|
-
align-self: var(--_carousel-controls-along);
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
justify-self: center;
|
|
77
|
-
padding-block-start: var(--helix-space-none);
|
|
78
|
-
padding-inline: var(--helix-space-none);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host([indicator-placement="start"]) [part="indicators"],
|
|
82
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
83
|
-
--_carousel-indicators-along: center;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host([controls-placement="start"]) [part="controls"],
|
|
2
|
+
export const styles = createSheet(`:host {--_carousel-bleed: var(--carousel-bleed, var(--helix-space-md));--_carousel-gap: var(--carousel-gap, var(--helix-space-md));}:host {display: grid;grid-template-columns: auto minmax(0, 1fr) auto;grid-template-rows: auto minmax(0, 1fr) auto;}[part="track"] {grid-area: 2 / 2;}[part="controls"],
|
|
3
|
+
[part="indicators"] {align-items: center;display: flex;gap: var(--helix-space-2xs);}[part="indicators"] {grid-area: 3 / 2;justify-self: var(--_carousel-indicators-along);padding-block-start: var(--helix-space-sm);padding-inline: var(--_carousel-bleed);}[part="controls"] {grid-area: 3 / 2;justify-self: var(--_carousel-controls-along);padding-block-start: var(--helix-space-sm);padding-inline: var(--_carousel-bleed);}[part="indicators"] {--_carousel-indicators-along: start;}[part="controls"] {--_carousel-controls-along: end;}@media (hover: none) and (pointer: coarse) {:host(:not([controls="always"])) [part="indicators"] {--_carousel-indicators-along: center;}}:host([indicator-placement="top"]) [part="indicators"] {grid-area: 1 / 2;padding-block: var(--helix-space-none) var(--helix-space-sm);}:host([controls-placement="top"]) [part="controls"] {grid-area: 1 / 2;padding-block: var(--helix-space-none) var(--helix-space-sm);}:host([indicator-placement="start"]) [part="indicators"],
|
|
4
|
+
:host([indicator-placement="end"]) [part="indicators"] {align-self: var(--_carousel-indicators-along);flex-direction: column;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);}:host([controls-placement="start"]) [part="controls"],
|
|
5
|
+
:host([controls-placement="end"]) [part="controls"] {align-self: var(--_carousel-controls-along);flex-direction: column;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);}:host([indicator-placement="start"]) [part="indicators"],
|
|
6
|
+
:host([indicator-placement="end"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([controls-placement="start"]) [part="controls"],
|
|
87
7
|
:host([controls-placement="end"]) [part="controls"],
|
|
88
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
89
|
-
--_carousel-controls-along: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
93
|
-
--_carousel-indicators-along: center;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:host([indicator-align="start"]) [part="indicators"] {
|
|
97
|
-
--_carousel-indicators-along: start;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:host([indicator-align="center"]) [part="indicators"] {
|
|
101
|
-
--_carousel-indicators-along: center;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host([indicator-align="end"]) [part="indicators"] {
|
|
105
|
-
--_carousel-indicators-along: end;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host([controls-align="start"]) [part="controls"] {
|
|
109
|
-
--_carousel-controls-along: start;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:host([controls-align="center"]) [part="controls"] {
|
|
113
|
-
--_carousel-controls-along: center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:host([controls-align="end"]) [part="controls"] {
|
|
117
|
-
--_carousel-controls-along: end;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
:host([indicator-placement="start"]) [part="indicators"] {
|
|
121
|
-
grid-area: 2 / 1;
|
|
122
|
-
padding-inline-end: var(--helix-space-sm);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:host([controls-placement="start"]) [part="controls"] {
|
|
126
|
-
grid-area: 2 / 1;
|
|
127
|
-
padding-inline-end: var(--helix-space-sm);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:host([indicator-placement="end"]) [part="indicators"] {
|
|
131
|
-
grid-area: 2 / 3;
|
|
132
|
-
padding-inline-start: var(--helix-space-sm);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([controls-placement="end"]) [part="controls"] {
|
|
136
|
-
grid-area: 2 / 3;
|
|
137
|
-
padding-inline-start: var(--helix-space-sm);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
[part="rotation"],
|
|
8
|
+
:host([controls-placement="overlay"]) [part="controls"] {--_carousel-controls-along: center;}:host([indicator-placement="overlay"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([indicator-align="start"]) [part="indicators"] {--_carousel-indicators-along: start;}:host([indicator-align="center"]) [part="indicators"] {--_carousel-indicators-along: center;}:host([indicator-align="end"]) [part="indicators"] {--_carousel-indicators-along: end;}:host([controls-align="start"]) [part="controls"] {--_carousel-controls-along: start;}:host([controls-align="center"]) [part="controls"] {--_carousel-controls-along: center;}:host([controls-align="end"]) [part="controls"] {--_carousel-controls-along: end;}:host([indicator-placement="start"]) [part="indicators"] {grid-area: 2 / 1;padding-inline-end: var(--helix-space-sm);}:host([controls-placement="start"]) [part="controls"] {grid-area: 2 / 1;padding-inline-end: var(--helix-space-sm);}:host([indicator-placement="end"]) [part="indicators"] {grid-area: 2 / 3;padding-inline-start: var(--helix-space-sm);}:host([controls-placement="end"]) [part="controls"] {grid-area: 2 / 3;padding-inline-start: var(--helix-space-sm);}[part="rotation"],
|
|
141
9
|
[part="previous"],
|
|
142
|
-
[part="next"] {
|
|
143
|
-
all: unset;
|
|
144
|
-
|
|
145
|
-
box-sizing: border-box;
|
|
146
|
-
align-items: center;
|
|
147
|
-
block-size: var(--helix-size-control-tight);
|
|
148
|
-
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
149
|
-
border-radius: var(--helix-radii-sm);
|
|
150
|
-
color: var(--helix-color-foreground-muted);
|
|
151
|
-
cursor: pointer;
|
|
152
|
-
display: inline-flex;
|
|
153
|
-
inline-size: var(--helix-size-control-tight);
|
|
154
|
-
justify-content: center;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
[part="rotation"]:hover,
|
|
10
|
+
[part="next"] {all: unset;box-sizing: border-box;align-items: center;block-size: var(--helix-size-control-tight);border: var(--helix-border-thin) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-muted);cursor: pointer;display: inline-flex;inline-size: var(--helix-size-control-tight);justify-content: center;}[part="rotation"]:hover,
|
|
158
11
|
[part="previous"]:hover,
|
|
159
|
-
[part="next"]:hover {
|
|
160
|
-
background-color: var(--helix-color-surface-sunken);
|
|
161
|
-
color: var(--helix-color-foreground);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
[part="rotation"]:focus-visible,
|
|
12
|
+
[part="next"]:hover {background-color: var(--helix-color-surface-sunken);color: var(--helix-color-foreground);}[part="rotation"]:focus-visible,
|
|
165
13
|
[part="previous"]:focus-visible,
|
|
166
|
-
[part="next"]:focus-visible {
|
|
167
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
168
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
[part="rotation"] svg,
|
|
14
|
+
[part="next"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}[part="rotation"] svg,
|
|
172
15
|
[part="previous"] svg,
|
|
173
16
|
[part="next"] svg,
|
|
174
17
|
::slotted([slot="previous-icon"]),
|
|
175
|
-
::slotted([slot="next-icon"]) {
|
|
176
|
-
|
|
177
|
-
inline-size: 1em;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
181
|
-
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {
|
|
182
|
-
scale: -1 1;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host([mouse-drag]) [part="track"] {
|
|
186
|
-
cursor: grab;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:host(:state(dragging)) [part="track"] {
|
|
190
|
-
cursor: grabbing;
|
|
191
|
-
user-select: none;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[part="track"] {
|
|
195
|
-
|
|
196
|
-
--_carousel-share: calc(
|
|
18
|
+
::slotted([slot="next-icon"]) {block-size: 1em;inline-size: 1em;}:host(:dir(rtl)) ::slotted([slot="previous-icon"]),
|
|
19
|
+
:host(:dir(rtl)) ::slotted([slot="next-icon"]) {scale: -1 1;}:host([mouse-drag]) [part="track"] {cursor: grab;}:host(:state(dragging)) [part="track"] {cursor: grabbing;user-select: none;}[part="track"] {--_carousel-share: calc(
|
|
197
20
|
(100% - (var(--carousel-per-view, 1) - 1) * var(--_carousel-gap)) /
|
|
198
21
|
var(--carousel-per-view, 1)
|
|
199
|
-
);
|
|
200
|
-
--carousel-gap: var(--_carousel-gap);
|
|
201
|
-
--carousel-pane: calc(round(var(--_carousel-share) - 0.015625px, 0.03125px) + 0.015625px);
|
|
202
|
-
display: flex;
|
|
203
|
-
gap: var(--_carousel-gap);
|
|
204
|
-
overflow-x: auto;
|
|
205
|
-
|
|
206
|
-
padding-block: var(--helix-space-md);
|
|
207
|
-
padding-inline: var(--_carousel-bleed);
|
|
208
|
-
scroll-padding-inline: var(--_carousel-bleed);
|
|
209
|
-
scroll-snap-type: x mandatory;
|
|
210
|
-
scrollbar-width: none;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
[part="track"]::-webkit-scrollbar {
|
|
214
|
-
display: none;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:host([per-view="auto"]:not([orientation="vertical"])) [part="track"] {
|
|
218
|
-
--carousel-per-view: max(
|
|
22
|
+
);--carousel-gap: var(--_carousel-gap);--carousel-pane: calc(round(var(--_carousel-share) - 0.015625px, 0.03125px) + 0.015625px);display: flex;gap: var(--_carousel-gap);overflow-x: auto;padding-block: var(--helix-space-md);padding-inline: var(--_carousel-bleed);scroll-padding-inline: var(--_carousel-bleed);scroll-snap-type: x mandatory;scrollbar-width: none;}[part="track"]::-webkit-scrollbar {display: none;}:host([per-view="auto"]:not([orientation="vertical"])) [part="track"] {--carousel-per-view: max(
|
|
219
23
|
1,
|
|
220
24
|
round(
|
|
221
25
|
down,
|
|
@@ -225,185 +29,15 @@ calc(
|
|
|
225
29
|
),
|
|
226
30
|
1
|
|
227
31
|
)
|
|
228
|
-
);
|
|
229
|
-
container-type: inline-size;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host([orientation="vertical"]) [part="track"] {
|
|
233
|
-
block-size: var(--carousel-block-size, 20rem);
|
|
234
|
-
flex-direction: column;
|
|
235
|
-
overflow-x: hidden;
|
|
236
|
-
overflow-y: auto;
|
|
237
|
-
padding-block: var(--_carousel-bleed);
|
|
238
|
-
scroll-padding-block: var(--_carousel-bleed);
|
|
239
|
-
scroll-snap-type: y mandatory;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
[part="slide"] {
|
|
243
|
-
display: flex;
|
|
244
|
-
flex: 0 0 var(--carousel-pane);
|
|
245
|
-
margin-inline-end: var(--carousel-run-end, 0px);
|
|
246
|
-
scroll-snap-align: start;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
:host([per-view="auto"]:not([orientation="vertical"])) [part="slide"] {
|
|
250
|
-
flex-grow: 1;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
[part="slide"] ::slotted(*) {
|
|
254
|
-
flex: 1 1 0;
|
|
255
|
-
min-block-size: 0;
|
|
256
|
-
min-inline-size: 0;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
:host([orientation="vertical"]) [part="slide"] {
|
|
260
|
-
flex-direction: column;
|
|
261
|
-
flex: 0 0 var(--_carousel-share);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
[part~="indicator"] {
|
|
265
|
-
|
|
266
|
-
--_carousel-indicator-motion: var(--helix-duration-slow) var(--helix-easing-emphasized);
|
|
267
|
-
all: unset;
|
|
268
|
-
background-color: var(--helix-color-border);
|
|
269
|
-
block-size: var(--helix-space-xs);
|
|
270
|
-
border-radius: var(--helix-radii-full);
|
|
271
|
-
box-sizing: border-box;
|
|
272
|
-
cursor: pointer;
|
|
273
|
-
inline-size: var(--helix-space-xs);
|
|
274
|
-
transition:
|
|
32
|
+
);container-type: inline-size;}:host([orientation="vertical"]) [part="track"] {block-size: var(--carousel-block-size, 20rem);flex-direction: column;overflow-x: hidden;overflow-y: auto;padding-block: var(--_carousel-bleed);scroll-padding-block: var(--_carousel-bleed);scroll-snap-type: y mandatory;}[part="slide"] {display: flex;flex: 0 0 var(--carousel-pane);margin-inline-end: var(--carousel-run-end, 0px);scroll-snap-align: start;}:host([per-view="auto"]:not([orientation="vertical"])) [part="slide"] {flex-grow: 1;}[part="slide"] ::slotted(*) {flex: 1 1 0;min-block-size: 0;min-inline-size: 0;}:host([orientation="vertical"]) [part="slide"] {flex-direction: column;flex: 0 0 var(--_carousel-share);}[part~="indicator"] {--_carousel-indicator-motion: var(--helix-duration-slow) var(--helix-easing-emphasized);all: unset;background-color: var(--helix-color-border);block-size: var(--helix-space-xs);border-radius: var(--helix-radii-full);box-sizing: border-box;cursor: pointer;inline-size: var(--helix-space-xs);transition:
|
|
275
33
|
background-color var(--_carousel-indicator-motion),
|
|
276
|
-
inline-size var(--_carousel-indicator-motion);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
[part~="indicator"][data-current] {
|
|
280
|
-
background-color: var(--helix-color-primary);
|
|
281
|
-
inline-size: var(--helix-space-lg);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
:host([indicator-placement="start"]) [part~="indicator"],
|
|
285
|
-
:host([indicator-placement="end"]) [part~="indicator"] {
|
|
286
|
-
transition:
|
|
34
|
+
inline-size var(--_carousel-indicator-motion);}[part~="indicator"][data-current] {background-color: var(--helix-color-primary);inline-size: var(--helix-space-lg);}:host([indicator-placement="start"]) [part~="indicator"],
|
|
35
|
+
:host([indicator-placement="end"]) [part~="indicator"] {transition:
|
|
287
36
|
background-color var(--_carousel-indicator-motion),
|
|
288
|
-
block-size var(--_carousel-indicator-motion);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
:host([indicator-placement="start"]) [part~="indicator"][data-current],
|
|
292
|
-
:host([indicator-placement="end"]) [part~="indicator"][data-current] {
|
|
293
|
-
block-size: var(--helix-space-lg);
|
|
294
|
-
inline-size: var(--helix-space-xs);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
[part~="indicator"]:hover {
|
|
298
|
-
background-color: var(--helix-color-foreground-muted);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
[part~="indicator"]:focus-visible {
|
|
302
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
303
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
307
|
-
grid-area: 2 / 2;
|
|
308
|
-
justify-self: stretch;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:host([controls-placement="overlay"]) [part="controls"] {
|
|
312
|
-
align-items: var(--_carousel-controls-along);
|
|
313
|
-
|
|
314
|
-
justify-content: flex-start;
|
|
315
|
-
padding-block-start: var(--helix-space-none);
|
|
316
|
-
|
|
317
|
-
padding-inline: calc(var(--_carousel-bleed) + var(--helix-space-md));
|
|
318
|
-
pointer-events: none;
|
|
319
|
-
z-index: var(--helix-layer-raised);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
:host([controls-placement="overlay"]) [part="previous"],
|
|
37
|
+
block-size var(--_carousel-indicator-motion);}:host([indicator-placement="start"]) [part~="indicator"][data-current],
|
|
38
|
+
:host([indicator-placement="end"]) [part~="indicator"][data-current] {block-size: var(--helix-space-lg);inline-size: var(--helix-space-xs);}[part~="indicator"]:hover {background-color: var(--helix-color-foreground-muted);}[part~="indicator"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}:host([controls-placement="overlay"]) [part="controls"] {grid-area: 2 / 2;justify-self: stretch;}:host([controls-placement="overlay"]) [part="controls"] {align-items: var(--_carousel-controls-along);justify-content: flex-start;padding-block-start: var(--helix-space-none);padding-inline: calc(var(--_carousel-bleed) + var(--helix-space-md));pointer-events: none;z-index: var(--helix-layer-raised);}:host([controls-placement="overlay"]) [part="previous"],
|
|
323
39
|
:host([controls-placement="overlay"]) [part="next"],
|
|
324
|
-
:host([controls-placement="overlay"]) [part="rotation"] {
|
|
325
|
-
background-color: var(--helix-color-surface-overlay);
|
|
326
|
-
border-color: transparent;
|
|
327
|
-
box-shadow: var(--helix-shadow-md);
|
|
328
|
-
pointer-events: auto;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
332
|
-
align-self: end;
|
|
333
|
-
grid-area: 2 / 2;
|
|
334
|
-
z-index: var(--helix-layer-raised);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
:host([indicator-placement="overlay"]) [part="indicators"] {
|
|
338
|
-
background-color: var(--helix-color-surface-overlay);
|
|
339
|
-
border-radius: var(--helix-radii-full);
|
|
340
|
-
box-shadow: var(--helix-shadow-md);
|
|
341
|
-
margin-block-end: calc(var(--_carousel-bleed) + var(--helix-space-md));
|
|
342
|
-
padding-block: var(--helix-space-2xs);
|
|
343
|
-
padding-inline: var(--helix-space-xs);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
:host([indicator-placement="overlay"]) [part~="indicator"] {
|
|
347
|
-
background-color: var(--helix-color-foreground-muted);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
:host([indicator-placement="overlay"]) [part~="indicator"][data-current] {
|
|
351
|
-
background-color: var(--helix-color-primary);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
:host([controls-placement="overlay"]) [part="next"] {
|
|
355
|
-
margin-inline-start: auto;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
:host([controls-placement="overlay"]) [part="rotation"] {
|
|
359
|
-
order: 1;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part="indicators"] {
|
|
363
|
-
align-self: var(--_carousel-indicators-along);
|
|
364
|
-
flex-direction: column;
|
|
365
|
-
grid-area: 2 / 3;
|
|
366
|
-
justify-self: center;
|
|
367
|
-
padding-block-start: var(--helix-space-none);
|
|
368
|
-
padding-inline: var(--helix-space-none);
|
|
369
|
-
padding-inline-start: var(--helix-space-sm);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
:host([orientation="vertical"]:not([controls-placement])) [part="controls"] {
|
|
373
|
-
align-self: var(--_carousel-controls-along);
|
|
374
|
-
flex-direction: column;
|
|
375
|
-
grid-area: 2 / 3;
|
|
376
|
-
justify-self: center;
|
|
377
|
-
padding-block-start: var(--helix-space-none);
|
|
378
|
-
padding-inline: var(--helix-space-none);
|
|
379
|
-
padding-inline-start: var(--helix-space-sm);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"] {
|
|
383
|
-
transition:
|
|
40
|
+
:host([controls-placement="overlay"]) [part="rotation"] {background-color: var(--helix-color-surface-overlay);border-color: transparent;box-shadow: var(--helix-shadow-md);pointer-events: auto;}:host([indicator-placement="overlay"]) [part="indicators"] {align-self: end;grid-area: 2 / 2;z-index: var(--helix-layer-raised);}:host([indicator-placement="overlay"]) [part="indicators"] {background-color: var(--helix-color-surface-overlay);border-radius: var(--helix-radii-full);box-shadow: var(--helix-shadow-md);margin-block-end: calc(var(--_carousel-bleed) + var(--helix-space-md));padding-block: var(--helix-space-2xs);padding-inline: var(--helix-space-xs);}:host([indicator-placement="overlay"]) [part~="indicator"] {background-color: var(--helix-color-foreground-muted);}:host([indicator-placement="overlay"]) [part~="indicator"][data-current] {background-color: var(--helix-color-primary);}:host([controls-placement="overlay"]) [part="next"] {margin-inline-start: auto;}:host([controls-placement="overlay"]) [part="rotation"] {order: 1;}:host([orientation="vertical"]:not([indicator-placement])) [part="indicators"] {align-self: var(--_carousel-indicators-along);flex-direction: column;grid-area: 2 / 3;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);padding-inline-start: var(--helix-space-sm);}:host([orientation="vertical"]:not([controls-placement])) [part="controls"] {align-self: var(--_carousel-controls-along);flex-direction: column;grid-area: 2 / 3;justify-self: center;padding-block-start: var(--helix-space-none);padding-inline: var(--helix-space-none);padding-inline-start: var(--helix-space-sm);}:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"] {transition:
|
|
384
41
|
background-color var(--_carousel-indicator-motion),
|
|
385
|
-
block-size var(--_carousel-indicator-motion);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"][data-current] {
|
|
389
|
-
block-size: var(--helix-space-lg);
|
|
390
|
-
inline-size: var(--helix-space-xs);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
@media print {
|
|
394
|
-
:host {
|
|
395
|
-
box-shadow: none;
|
|
396
|
-
overflow: visible;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
@media (hover: none) and (pointer: coarse) {
|
|
401
|
-
:host(:not([controls="always"])) [part="previous"],
|
|
402
|
-
:host(:not([controls="always"])) [part="next"] {
|
|
403
|
-
display: none;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
:host(:not([controls="always"]):not([autoplay])) [part="controls"] {
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
}`);
|
|
42
|
+
block-size var(--_carousel-indicator-motion);}:host([orientation="vertical"]:not([indicator-placement])) [part~="indicator"][data-current] {block-size: var(--helix-space-lg);inline-size: var(--helix-space-xs);}@media print {:host {box-shadow: none;overflow: visible;}}@media (hover: none) and (pointer: coarse) {:host(:not([controls="always"])) [part="previous"],
|
|
43
|
+
:host(:not([controls="always"])) [part="next"] {display: none;}:host(:not([controls="always"]):not([autoplay])) [part="controls"] {display: none;}}`);
|
|
@@ -1,106 +1,5 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
[part="composer"] {
|
|
7
|
-
background-color: var(--chat-composer-background-color, var(--helix-color-surface));
|
|
8
|
-
border: var(--chat-composer-border-width, var(--helix-border-thin)) solid
|
|
9
|
-
var(--helix-color-border);
|
|
10
|
-
border-radius: var(--helix-radii-md);
|
|
11
|
-
display: grid;
|
|
12
|
-
gap: var(--helix-space-2xs);
|
|
13
|
-
padding: var(--helix-space-xs);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[part="composer"]:focus-within {
|
|
17
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
18
|
-
outline-offset: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[part="field"] {
|
|
22
|
-
background-color: transparent;
|
|
23
|
-
border: 0;
|
|
24
|
-
color: var(--helix-color-foreground);
|
|
25
|
-
|
|
26
|
-
field-sizing: content;
|
|
27
|
-
font-family: var(--helix-font-sans);
|
|
28
|
-
font-size: var(--helix-text-sm);
|
|
29
|
-
line-height: var(--helix-leading-normal);
|
|
30
|
-
max-block-size: var(--chat-composer-max-block-size, 12rem);
|
|
31
|
-
padding-block: var(--helix-space-2xs);
|
|
32
|
-
padding-inline: calc(var(--helix-space-sm) - var(--helix-space-xs) - var(--helix-border-thin));
|
|
33
|
-
resize: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[part="field"]:focus-visible {
|
|
37
|
-
outline: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[part="tools"] {
|
|
41
|
-
align-items: center;
|
|
42
|
-
display: flex;
|
|
43
|
-
gap: var(--helix-space-2xs);
|
|
44
|
-
justify-content: flex-end;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
[part="start"],
|
|
48
|
-
[part="end"] {
|
|
49
|
-
--helix-size-control: var(--helix-size-control-sm);
|
|
50
|
-
--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
|
|
51
|
-
--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);
|
|
52
|
-
--helix-size-icon: var(--helix-size-icon-sm);
|
|
53
|
-
--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
|
|
54
|
-
--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
|
|
55
|
-
|
|
56
|
-
align-items: center;
|
|
57
|
-
display: flex;
|
|
58
|
-
gap: var(--helix-space-2xs);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[part="start"] {
|
|
62
|
-
margin-inline-end: auto;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[part="end"] {
|
|
66
|
-
margin-inline-end: var(--helix-space-2xs);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[part="start"][data-empty],
|
|
70
|
-
[part="end"][data-empty] {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[part="send"] {
|
|
75
|
-
align-items: center;
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
block-size: calc(var(--helix-size-control-tight) - var(--helix-space-2xs));
|
|
78
|
-
border: 0;
|
|
79
|
-
border-radius: var(--helix-radii-sm);
|
|
80
|
-
color: var(--helix-color-foreground-muted);
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
inline-size: calc(var(--helix-size-control-tight) - var(--helix-space-2xs));
|
|
84
|
-
justify-content: center;
|
|
85
|
-
padding: var(--helix-space-none);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
[part="mark"] {
|
|
89
|
-
block-size: var(--helix-size-icon-tight);
|
|
90
|
-
inline-size: var(--helix-size-icon-tight);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
[part="send"]:hover:not(:disabled) {
|
|
94
|
-
background-color: color-mix(in oklab, var(--helix-color-foreground) 8%, transparent);
|
|
95
|
-
color: var(--helix-color-foreground);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
[part="send"]:disabled {
|
|
99
|
-
cursor: not-allowed;
|
|
100
|
-
opacity: 0.5;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[part="send"]:focus-visible {
|
|
104
|
-
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
105
|
-
outline-offset: var(--helix-size-focus-offset);
|
|
106
|
-
}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="composer"] {background-color: var(--chat-composer-background-color, var(--helix-color-surface));border: var(--chat-composer-border-width, var(--helix-border-thin)) solid
|
|
3
|
+
var(--helix-color-border);border-radius: var(--helix-radii-md);display: grid;gap: var(--helix-space-2xs);padding: var(--helix-space-xs);}[part="composer"]:focus-within {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: 0;}[part="field"] {background-color: transparent;border: 0;color: var(--helix-color-foreground);field-sizing: content;font-family: var(--helix-font-sans);font-size: var(--helix-text-sm);line-height: var(--helix-leading-normal);max-block-size: var(--chat-composer-max-block-size, 12rem);padding-block: var(--helix-space-2xs);padding-inline: calc(var(--helix-space-sm) - var(--helix-space-xs) - var(--helix-border-thin));resize: none;}[part="field"]:focus-visible {outline: none;}[part="tools"] {align-items: center;display: flex;gap: var(--helix-space-2xs);justify-content: flex-end;}[part="start"],
|
|
4
|
+
[part="end"] {--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);align-items: center;display: flex;gap: var(--helix-space-2xs);}[part="start"] {margin-inline-end: auto;}[part="end"] {margin-inline-end: var(--helix-space-2xs);}[part="start"][data-empty],
|
|
5
|
+
[part="end"][data-empty] {display: none;}[part="send"] {align-items: center;background-color: transparent;block-size: calc(var(--helix-size-control-tight) - var(--helix-space-2xs));border: 0;border-radius: var(--helix-radii-sm);color: var(--helix-color-foreground-muted);cursor: pointer;display: inline-flex;inline-size: calc(var(--helix-size-control-tight) - var(--helix-space-2xs));justify-content: center;padding: var(--helix-space-none);}[part="mark"] {block-size: var(--helix-size-icon-tight);inline-size: var(--helix-size-icon-tight);}[part="send"]:hover:not(:disabled) {background-color: color-mix(in oklab, var(--helix-color-foreground) 8%, transparent);color: var(--helix-color-foreground);}[part="send"]:disabled {cursor: not-allowed;opacity: 0.5;}[part="send"]:focus-visible {outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);outline-offset: var(--helix-size-focus-offset);}`);
|