@fusion.dev/helix 0.146.0 → 0.148.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/custom-elements.json +10225 -1400
  2. package/dist/accordion/item/accordion-item.css.js +4 -96
  3. package/dist/accordion/root/accordion-root.css.js +2 -28
  4. package/dist/announcement/root/announcement-root.css.js +10 -154
  5. package/dist/announcement/root/announcement-root.d.ts +3 -0
  6. package/dist/app-header/root/app-header-root.css.js +2 -118
  7. package/dist/area-chart/root/area-chart-root.css.js +4 -94
  8. package/dist/area-chart/root/area-chart-root.d.ts +1 -0
  9. package/dist/aura/root/aura-root.css.js +2 -57
  10. package/dist/avatar/group/avatar-group.css.js +5 -36
  11. package/dist/avatar/group/avatar-group.d.ts +3 -0
  12. package/dist/avatar/root/avatar-root.css.js +1 -53
  13. package/dist/avatar/root/avatar-root.d.ts +2 -0
  14. package/dist/badge/root/badge-root.css.js +12 -207
  15. package/dist/badge/root/badge-root.d.ts +2 -0
  16. package/dist/bar-chart/root/bar-chart-root.css.js +8 -292
  17. package/dist/blockquote/root/blockquote-root.css.js +1 -43
  18. package/dist/blockquote/root/blockquote-root.d.ts +8 -2
  19. package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +13 -98
  20. package/dist/breadcrumbs/root/breadcrumbs-root.css.js +5 -42
  21. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +17 -0
  22. package/dist/breadcrumbs/root/breadcrumbs-root.js +4 -0
  23. package/dist/button/root/button-root.css.js +16 -197
  24. package/dist/button/root/button-root.d.ts +1 -0
  25. package/dist/button-group/root/button-group-root.css.js +11 -52
  26. package/dist/button-group/root/button-group-root.d.ts +29 -7
  27. package/dist/button-group/root/button-group-root.js +19 -0
  28. package/dist/callout/root/callout-root.css.js +5 -138
  29. package/dist/callout/root/callout-root.d.ts +4 -2
  30. package/dist/canvas/node/canvas-node.css.js +10 -367
  31. package/dist/canvas/node/canvas-node.d.ts +5 -0
  32. package/dist/canvas/root/canvas-root.css.js +11 -270
  33. package/dist/canvas/root/canvas-root.d.ts +6 -0
  34. package/dist/card/root/card-root.css.js +5 -134
  35. package/dist/card/root/card-root.d.ts +4 -0
  36. package/dist/carousel/root/carousel-root.css.js +20 -386
  37. package/dist/chat/composer/chat-composer.css.js +4 -105
  38. package/dist/chat/message/chat-message.css.js +5 -239
  39. package/dist/chat/message/chat-message.d.ts +5 -0
  40. package/dist/chat/root/chat-root.css.js +5 -162
  41. package/dist/chat/typing.css.js +9 -46
  42. package/dist/checkbox/root/checkbox-root.css.js +12 -177
  43. package/dist/checkbox-group/root/checkbox-group-root.css.js +1 -27
  44. package/dist/code/root/code-root.css.js +3 -25
  45. package/dist/code-block/root/code-block-root.css.js +22 -279
  46. package/dist/code-block/root/code-block-root.d.ts +7 -0
  47. package/dist/color-input/root/color-input-root.css.js +5 -114
  48. package/dist/color-picker/root/color-picker-root.css.js +39 -337
  49. package/dist/color-picker/root/color-picker-root.d.ts +2 -0
  50. package/dist/combobox/root/combobox-root.css.js +8 -147
  51. package/dist/combobox/root/combobox-root.js +2 -0
  52. package/dist/command/root/command-root.css.js +3 -74
  53. package/dist/copy-button/root/copy-button-root.css.js +3 -43
  54. package/dist/data-table/root/data-table-root.css.js +21 -245
  55. package/dist/data-table/root/data-table-root.d.ts +7 -0
  56. package/dist/date-input/root/date-input-root.css.js +8 -103
  57. package/dist/date-picker/root/date-picker-root.css.js +16 -278
  58. package/dist/date-picker/root/date-picker-root.d.ts +1 -0
  59. package/dist/description-list/item/description-list-item.css.js +1 -41
  60. package/dist/description-list/item/description-list-item.d.ts +8 -0
  61. package/dist/description-list/root/description-list-root.css.js +2 -34
  62. package/dist/description-list/root/description-list-root.d.ts +13 -0
  63. package/dist/description-list/root/description-list-root.js +7 -0
  64. package/dist/dialog/root/dialog-root.css.js +7 -221
  65. package/dist/dialog/root/dialog-root.d.ts +3 -0
  66. package/dist/divider/root/divider-root.css.js +5 -81
  67. package/dist/divider/root/divider-root.d.ts +3 -0
  68. package/dist/donut-chart/root/donut-chart-root.css.js +7 -193
  69. package/dist/drawer/root/drawer-root.css.js +11 -237
  70. package/dist/drilldown/item/drilldown-item.css.js +4 -51
  71. package/dist/drilldown/item/drilldown-item.d.ts +1 -0
  72. package/dist/drilldown/root/drilldown-root.css.js +6 -120
  73. package/dist/element-events.generated.js +5 -1
  74. package/dist/empty/root/empty-root.css.js +2 -42
  75. package/dist/file-input/root/file-input-root.css.js +7 -173
  76. package/dist/file-input/root/file-input-root.d.ts +4 -0
  77. package/dist/filter-input/chip/filter-chip.css.js +2 -84
  78. package/dist/filter-input/field/filter-field.css.js +1 -3
  79. package/dist/filter-input/menu/filter-menu.css.js +1 -3
  80. package/dist/filter-input/operator/filter-operator.css.js +1 -3
  81. package/dist/filter-input/root/filter-input-root.css.js +6 -113
  82. package/dist/flex/root/flex-root.css.js +4 -207
  83. package/dist/flex/root/flex-root.d.ts +2 -2
  84. package/dist/format-date/root/format-date-root.css.js +1 -13
  85. package/dist/format-date/root/format-date-root.d.ts +0 -1
  86. package/dist/format-date/root/format-date-root.js +0 -1
  87. package/dist/graph/root/graph-root.css.js +9 -444
  88. package/dist/grid/root/grid-root.css.js +1 -171
  89. package/dist/heatmap/root/heatmap-root.css.js +8 -156
  90. package/dist/heatmap/root/heatmap-root.d.ts +2 -0
  91. package/dist/icon/index.d.ts +1 -1
  92. package/dist/icon/root/icon-root.css.js +1 -18
  93. package/dist/icon/root/index.d.ts +1 -1
  94. package/dist/icon-button/root/icon-button-root.css.js +25 -203
  95. package/dist/icon-button/root/icon-button-root.d.ts +1 -0
  96. package/dist/image/root/image-root.css.js +7 -65
  97. package/dist/image/root/image-root.d.ts +3 -0
  98. package/dist/input/root/input-root.css.js +6 -79
  99. package/dist/kbd/root/kbd-root.css.js +2 -71
  100. package/dist/kbd/root/kbd-root.d.ts +7 -0
  101. package/dist/legend/root/legend-root.css.js +9 -106
  102. package/dist/legend/root/legend-root.d.ts +2 -0
  103. package/dist/lightbox/item/lightbox-item.css.js +1 -37
  104. package/dist/lightbox/root/lightbox-root.css.js +38 -183
  105. package/dist/line-chart/root/line-chart-root.css.js +4 -170
  106. package/dist/line-chart/root/line-chart-root.d.ts +1 -0
  107. package/dist/list/item/list-item.css.js +2 -94
  108. package/dist/list/root/list-root.css.js +4 -88
  109. package/dist/listbox/root/listbox-root.css.js +7 -111
  110. package/dist/listbox/root/listbox-root.d.ts +2 -0
  111. package/dist/listbox/root/listbox-root.js +1 -0
  112. package/dist/loader/root/loader-root.css.js +5 -171
  113. package/dist/map/area/map-area.css.js +1 -23
  114. package/dist/map/buildings/map-buildings.css.js +1 -26
  115. package/dist/map/contours/map-contours.css.js +2 -5
  116. package/dist/map/landcover/map-landcover.css.js +1 -4
  117. package/dist/map/marker/map-marker.css.js +14 -327
  118. package/dist/map/points/map-points.css.js +1 -86
  119. package/dist/map/position/map-position.css.js +8 -227
  120. package/dist/map/raster/map-raster.css.js +1 -3
  121. package/dist/map/root/map-root.css.js +14 -352
  122. package/dist/map/root/map-root.d.ts +10 -0
  123. package/dist/map/route/map-route.css.js +1 -24
  124. package/dist/map/terrain/map-terrain.css.js +3 -7
  125. package/dist/megamenu/root/megamenu-root.css.js +11 -162
  126. package/dist/megamenu/root/megamenu-root.d.ts +8 -0
  127. package/dist/menu/item/menu-item.css.js +7 -130
  128. package/dist/menu/root/menu-root.css.js +1 -110
  129. package/dist/menu/section/menu-section.css.js +1 -13
  130. package/dist/meter/root/meter-root.css.js +17 -207
  131. package/dist/meter/root/meter-root.d.ts +3 -0
  132. package/dist/navigation/root/navigation-root.css.js +2 -54
  133. package/dist/notifications/group/notification-group.css.js +1 -61
  134. package/dist/notifications/notification/notification.css.js +17 -264
  135. package/dist/notifications/root/notifications-root.css.js +7 -125
  136. package/dist/notifications/root/notifications-root.d.ts +7 -2
  137. package/dist/number-input/root/number-input-root.css.js +10 -103
  138. package/dist/object-inspector/root/object-inspector-root.css.js +11 -162
  139. package/dist/option/group/option-group.css.js +1 -22
  140. package/dist/option/index.d.ts +1 -0
  141. package/dist/option/index.js +1 -0
  142. package/dist/option/root/option-root.css.js +3 -85
  143. package/dist/option/separator/option-separator.css.d.ts +1 -0
  144. package/dist/option/separator/option-separator.css.js +3 -0
  145. package/dist/option/separator/option-separator.d.ts +26 -0
  146. package/dist/option/separator/option-separator.js +16 -0
  147. package/dist/orb/root/orb-root.css.js +1 -41
  148. package/dist/outline/root/outline-root.css.js +24 -122
  149. package/dist/outline/root/outline-root.d.ts +17 -4
  150. package/dist/pagination/root/pagination-root.css.js +9 -105
  151. package/dist/pagination/root/pagination-root.d.ts +14 -0
  152. package/dist/pagination/size/pagination-size.css.js +1 -22
  153. package/dist/pagination/size/pagination-size.d.ts +3 -0
  154. package/dist/pagination/summary/pagination-summary.css.js +1 -7
  155. package/dist/pagination/summary/pagination-summary.d.ts +3 -0
  156. package/dist/pin-input/root/pin-input-root.css.js +2 -73
  157. package/dist/pin-input/root/pin-input-root.d.ts +9 -3
  158. package/dist/popover/root/popover-root.css.js +6 -127
  159. package/dist/progress/root/progress-root.css.js +7 -230
  160. package/dist/progress/root/progress-root.d.ts +4 -0
  161. package/dist/qr-code/root/qr-code-root.css.js +1 -68
  162. package/dist/qr-code/root/qr-code-root.d.ts +3 -0
  163. package/dist/quote/root/quote-root.css.js +1 -20
  164. package/dist/radio/group/radio-group.css.js +1 -21
  165. package/dist/radio/root/radio-root.css.js +5 -208
  166. package/dist/rating/root/rating-root.css.js +4 -117
  167. package/dist/sandbox/frame.d.ts +2 -1
  168. package/dist/sandbox/frame.js +1 -1
  169. package/dist/sandbox/index.d.ts +1 -1
  170. package/dist/sandbox/preview/sandbox-preview.css.js +1 -12
  171. package/dist/sandbox/preview/sandbox-preview.d.ts +27 -3
  172. package/dist/sandbox/preview/sandbox-preview.js +17 -11
  173. package/dist/sandbox/root/sandbox-root.css.js +3 -70
  174. package/dist/sandbox/root/sandbox-root.d.ts +16 -4
  175. package/dist/sandbox/root/sandbox-root.js +29 -50
  176. package/dist/sandbox/source/sandbox-source.css.js +3 -95
  177. package/dist/sandbox/source/sandbox-source.d.ts +31 -25
  178. package/dist/sandbox/source/sandbox-source.js +12 -5
  179. package/dist/sandbox/status-bar/sandbox-status-bar.css.js +1 -21
  180. package/dist/sandbox/terminal/sandbox-terminal.css.js +5 -106
  181. package/dist/sandbox/terminal/sandbox-terminal.d.ts +4 -0
  182. package/dist/sandbox/terminal/sandbox-terminal.js +2 -1
  183. package/dist/sandbox/tokens.d.ts +2 -2
  184. package/dist/sandbox/toolbar/sandbox-toolbar.css.js +1 -36
  185. package/dist/scatter-chart/root/scatter-chart-root.css.js +11 -146
  186. package/dist/scatter-chart/root/scatter-chart-root.d.ts +1 -0
  187. package/dist/scroll-area/root/scroll-area-root.css.js +14 -181
  188. package/dist/select/root/select-root.css.js +7 -124
  189. package/dist/select/root/select-root.js +2 -0
  190. package/dist/shared/chart/series.css.js +1 -36
  191. package/dist/shared/chart/terminus.css.js +1 -47
  192. package/dist/shared/chart/tooltip.css.js +1 -68
  193. package/dist/shared/collection/state.css.js +1 -9
  194. package/dist/shared/field/field-frame.css.js +3 -33
  195. package/dist/shared/field/field-inline.css.js +1 -4
  196. package/dist/shared/field/field-segments.css.js +1 -39
  197. package/dist/shared/field/field-stacked.css.js +1 -5
  198. package/dist/shared/field/field.css.js +3 -57
  199. package/dist/shared/floating/entrance.css.js +3 -34
  200. package/dist/shared/floating/panel.css.js +2 -17
  201. package/dist/shared/glyph/glyph.css.js +1 -5
  202. package/dist/shared/live/live.css.js +1 -8
  203. package/dist/shared/tags/tags.css.js +1 -39
  204. package/dist/shared/viewport/viewport.css.js +8 -135
  205. package/dist/skeleton/root/skeleton-root.css.js +12 -120
  206. package/dist/skip-link/root/skip-link-root.css.js +2 -47
  207. package/dist/slider/root/slider-root.css.js +19 -330
  208. package/dist/slider/root/slider-root.d.ts +2 -0
  209. package/dist/sparkline/root/sparkline-root.css.js +8 -143
  210. package/dist/sparkline/root/sparkline-root.d.ts +2 -0
  211. package/dist/speed-dial/group/speed-dial-group.css.d.ts +1 -0
  212. package/dist/speed-dial/group/speed-dial-group.css.js +2 -0
  213. package/dist/speed-dial/group/speed-dial-group.d.ts +27 -0
  214. package/dist/speed-dial/group/speed-dial-group.js +16 -0
  215. package/dist/speed-dial/index.d.ts +1 -0
  216. package/dist/speed-dial/index.js +1 -0
  217. package/dist/speed-dial/item/speed-dial-item.css.js +4 -73
  218. package/dist/speed-dial/item/speed-dial-item.d.ts +1 -0
  219. package/dist/speed-dial/root/speed-dial-root.css.js +3 -149
  220. package/dist/splitter/root/splitter-root.css.js +19 -176
  221. package/dist/splitter/root/splitter-root.d.ts +4 -0
  222. package/dist/stat/group/stat-group.css.js +1 -36
  223. package/dist/stat/root/stat-root.css.js +3 -62
  224. package/dist/steps/root/steps-root.css.js +7 -92
  225. package/dist/steps/step/step.css.js +5 -156
  226. package/dist/switch/root/switch-root.css.js +2 -110
  227. package/dist/table/cell/table-cell.css.js +1 -33
  228. package/dist/table/column/table-column.css.js +7 -105
  229. package/dist/table/root/table-root.css.js +1 -43
  230. package/dist/table/row/table-row.css.js +6 -18
  231. package/dist/table/row/table-row.d.ts +2 -0
  232. package/dist/tabs/panel/tab-panel.css.js +2 -17
  233. package/dist/tabs/root/tabs-root.css.js +6 -177
  234. package/dist/tabs/tab/tab.css.js +6 -54
  235. package/dist/tag/group/tag-group.css.js +1 -11
  236. package/dist/tag/root/tag-root.css.js +1 -166
  237. package/dist/tag/root/tag-root.d.ts +2 -0
  238. package/dist/text/root/text-root.css.js +11 -200
  239. package/dist/textarea/root/textarea-root.css.js +3 -71
  240. package/dist/time-input/root/time-input-root.css.js +7 -118
  241. package/dist/time-picker/root/time-picker-root.css.js +15 -134
  242. package/dist/time-picker/root/time-picker-root.d.ts +7 -0
  243. package/dist/timeline/group/timeline-group.css.js +1 -31
  244. package/dist/timeline/item/timeline-item.css.js +3 -134
  245. package/dist/timeline/root/timeline-root.css.js +1 -66
  246. package/dist/toast/item/toast-item.css.js +11 -250
  247. package/dist/toast/item/toast-item.d.ts +10 -0
  248. package/dist/toast/root/toast-root.css.js +1 -85
  249. package/dist/toast/root/toast-root.js +2 -1
  250. package/dist/toggle/group/toggle-group.css.js +7 -126
  251. package/dist/toggle/root/toggle-root.css.js +1 -23
  252. package/dist/toolbar/root/toolbar-root.css.js +1 -36
  253. package/dist/toolbar/root/toolbar-root.d.ts +11 -0
  254. package/dist/toolbar/root/toolbar-root.js +4 -0
  255. package/dist/tooltip/root/tooltip-root.css.js +5 -101
  256. package/dist/tooltip/root/tooltip-root.d.ts +2 -0
  257. package/dist/tour/root/tour-root.css.js +2 -28
  258. package/dist/tour/stop/tour-stop.css.js +2 -109
  259. package/dist/tree/item/tree-item.css.js +12 -238
  260. package/dist/tree/root/tree-root.css.js +1 -40
  261. package/dist/trend/root/trend-root.css.js +5 -53
  262. package/dist/video/root/video-root.css.js +16 -398
  263. package/dist/video-playlist/item/video-playlist-item.css.js +12 -86
  264. package/dist/video-playlist/item/video-playlist-item.d.ts +12 -0
  265. package/dist/video-playlist/menu/video-playlist-menu.css.js +1 -41
  266. package/dist/video-playlist/root/video-playlist-root.css.js +1 -19
  267. package/dist/video-playlist/root/video-playlist-root.d.ts +2 -0
  268. package/dist/virtual-list/root/virtual-list-root.css.js +3 -40
  269. package/lint.json +1 -1
  270. package/package.json +6 -6
  271. package/types/jsx.d.ts +4595 -777
  272. package/types/svelte.d.ts +2 -0
  273. package/types/vue.d.ts +1312 -210
@@ -1,20 +1,5 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- --_avatar-group-ring: var(--avatar-group-ring-color, var(--helix-color-background));
4
- align-items: center;
5
- display: flex;
6
- }
7
-
8
- ::slotted(*) {
9
- box-shadow: 0 0 0 var(--helix-border-thick) var(--_avatar-group-ring);
10
- flex: 0 0 auto;
11
- }
12
-
13
- ::slotted(*:not(:first-child)) {
14
- margin-inline-start: calc(-1 * var(--avatar-group-overlap, var(--helix-space-sm)));
15
- }
16
-
17
- :host([max="1"]) ::slotted(:nth-child(n + 2)),
2
+ export const styles = createSheet(`:host {--_avatar-group-ring: var(--avatar-group-ring-color, var(--helix-color-background));align-items: center;display: flex;}::slotted(*) {box-shadow: 0 0 0 var(--helix-border-thick) var(--_avatar-group-ring);flex: 0 0 auto;}::slotted(*:not(:first-child)) {margin-inline-start: calc(-1 * var(--avatar-group-overlap, var(--helix-space-sm)));}:host([max="1"]) ::slotted(:nth-child(n + 2)),
18
3
  :host([max="2"]) ::slotted(:nth-child(n + 3)),
19
4
  :host([max="3"]) ::slotted(:nth-child(n + 4)),
20
5
  :host([max="4"]) ::slotted(:nth-child(n + 5)),
@@ -25,23 +10,7 @@ margin-inline-start: calc(-1 * var(--avatar-group-overlap, var(--helix-space-sm)
25
10
  :host([max="9"]) ::slotted(:nth-child(n + 10)),
26
11
  :host([max="10"]) ::slotted(:nth-child(n + 11)),
27
12
  :host([max="11"]) ::slotted(:nth-child(n + 12)),
28
- :host([max="12"]) ::slotted(:nth-child(n + 13)) {
29
- display: none;
30
- }
31
-
32
- [part="overflow"] {
33
- align-items: center;
34
- margin-inline-start: calc(-1 * var(--avatar-group-overlap, var(--helix-space-sm)));
35
- background-color: var(--helix-color-surface-sunken);
36
- block-size: var(--avatar-size, var(--helix-size-control-md));
37
- border-radius: var(--helix-radii-full);
38
- box-shadow: 0 0 0 var(--helix-border-thick) var(--_avatar-group-ring);
39
- color: var(--helix-color-foreground-muted);
40
- display: inline-flex;
41
- flex: 0 0 auto;
42
- font-family: var(--helix-font-sans);
43
- font-size: var(--helix-text-xs);
44
- font-weight: var(--helix-weight-medium);
45
- inline-size: var(--avatar-size, var(--helix-size-control-md));
46
- justify-content: center;
47
- }`);
13
+ :host([max="12"]) ::slotted(:nth-child(n + 13)) {display: none;}[part="overflow"] {align-items: center;margin-inline-start: calc(-1 * var(--avatar-group-overlap, var(--helix-space-sm)));background-color: var(
14
+ --avatar-group-overflow-background-color,
15
+ var(--helix-color-surface-sunken)
16
+ );block-size: var(--avatar-size, var(--helix-size-control-md));border-radius: var(--helix-radii-full);box-shadow: 0 0 0 var(--helix-border-thick) var(--_avatar-group-ring);color: var(--avatar-group-overflow-color, var(--helix-color-foreground-muted));display: inline-flex;flex: 0 0 auto;font-family: var(--helix-font-sans);font-size: var(--avatar-group-overflow-font-size, var(--helix-text-xs));font-weight: var(--helix-weight-medium);inline-size: var(--avatar-size, var(--helix-size-control-md));justify-content: center;}`);
@@ -18,6 +18,9 @@ import type { CSSResultGroup } from 'lit';
18
18
  * @aliases Avatar stack, Facepile
19
19
  * @documentation https://fusion.dev/helix/components/avatar
20
20
  *
21
+ * @cssproperty --avatar-group-overflow-background-color - The fill of the count of avatars past `max`.
22
+ * @cssproperty --avatar-group-overflow-color - The color of the count of avatars past `max`.
23
+ * @cssproperty --avatar-group-overflow-font-size - The type size of the count of avatars past `max`.
21
24
  * @cssproperty --avatar-group-overlap - How far each avatar sits over the one before it.
22
25
  * @cssproperty --avatar-group-ring-color - Color of the ring that separates one avatar from the next.
23
26
  */
@@ -1,54 +1,2 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- --_avatar-size: var(--avatar-size, var(--helix-size-avatar));
4
-
5
- align-items: center;
6
-
7
- background-color: var(--avatar-background-color, var(--helix-color-surface-raised));
8
- block-size: var(--_avatar-size);
9
- border-radius: var(--helix-radii-full);
10
- color: var(--helix-color-foreground);
11
- display: inline-flex;
12
- flex: 0 0 auto;
13
- inline-size: var(--_avatar-size);
14
- justify-content: center;
15
- overflow: hidden;
16
- }
17
-
18
- :host([size="sm"]) {
19
- --_avatar-size: var(--avatar-size, var(--helix-size-avatar-sm));
20
- }
21
-
22
- :host([size="lg"]) {
23
- --_avatar-size: var(--avatar-size, var(--helix-size-avatar-lg));
24
- }
25
-
26
- :host([shape="rounded"]) {
27
- border-radius: var(--helix-radii-md);
28
- }
29
-
30
- ::slotted(*) {
31
- block-size: 100%;
32
- inline-size: 100%;
33
- object-fit: cover;
34
- }
35
-
36
- [part="image"] {
37
- block-size: 100%;
38
- inline-size: 100%;
39
- object-fit: cover;
40
- }
41
-
42
- [part="initials"] {
43
- font-size: calc(var(--_avatar-size) * 0.4);
44
- font-weight: var(--helix-weight-medium);
45
- letter-spacing: var(--helix-tracking-wide);
46
- line-height: 1;
47
- user-select: none;
48
- }
49
-
50
- @media print {
51
- :host {
52
- print-color-adjust: economy;
53
- }
54
- }`);
2
+ export const styles = createSheet(`:host {--_avatar-size: var(--avatar-size, var(--helix-size-avatar));align-items: center;background-color: var(--avatar-background-color, var(--helix-color-surface-raised));block-size: var(--_avatar-size);border-radius: var(--helix-radii-full);color: var(--avatar-color, var(--helix-color-foreground));display: inline-flex;flex: 0 0 auto;inline-size: var(--_avatar-size);justify-content: center;overflow: hidden;}:host([size="sm"]) {--_avatar-size: var(--avatar-size, var(--helix-size-avatar-sm));}:host([size="lg"]) {--_avatar-size: var(--avatar-size, var(--helix-size-avatar-lg));}:host([shape="rounded"]) {border-radius: var(--helix-radii-md);}::slotted(*) {block-size: 100%;inline-size: 100%;object-fit: cover;}[part="image"] {block-size: 100%;inline-size: 100%;object-fit: cover;}[part="initials"] {font-size: calc(var(--_avatar-size) * 0.4);font-weight: var(--avatar-font-weight, var(--helix-weight-medium));letter-spacing: var(--helix-tracking-wide);line-height: 1;user-select: none;}@media print {:host {print-color-adjust: economy;}}`);
@@ -20,6 +20,8 @@ import type { CSSResultGroup } from 'lit';
20
20
  * @csspart initials - The initials shown when there is no usable image.
21
21
  *
22
22
  * @cssproperty --avatar-background-color - Fill behind the initials.
23
+ * @cssproperty --avatar-color - The color of the initials.
24
+ * @cssproperty --avatar-font-weight - The weight of the initials.
23
25
  * @cssproperty --avatar-size - Edge length of the avatar.
24
26
  */
25
27
  export declare class HelixAvatar extends HelixHeadlessAvatar {
@@ -1,217 +1,22 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
-
4
- --_badge-size: var(--helix-size-badge);
5
- --_badge-text: var(--helix-text-xs);
6
- --_badge-inset: var(--helix-space-2xs);
7
- --_badge-dot: var(--helix-space-xs);
8
-
9
- --_badge-on: var(--helix-color-foreground-on-primary);
10
-
11
- --_badge-fill: var(--helix-color-primary-surface);
12
- display: inline-flex;
13
- position: relative;
14
- vertical-align: middle;
15
- }
16
-
17
- [part="indicator"] {
18
- align-items: center;
19
-
20
- background-color: var(--badge-background-color, var(--_badge-fill));
21
- block-size: var(--_badge-size);
22
- border-radius: var(--helix-radii-full);
23
-
24
- box-shadow: 0 0 0 var(--helix-border-thick) var(--badge-ring-color, var(--helix-color-background));
25
-
26
- color: var(--badge-color, var(--_badge-on));
27
- display: inline-flex;
28
- font-size: var(--_badge-text);
29
- font-weight: var(--helix-weight-semibold);
30
-
31
- inset-block-start: var(--badge-offset, calc(var(--_badge-size) / 4));
32
- inset-inline-end: var(--badge-offset, calc(var(--_badge-size) / 4));
33
- justify-content: center;
34
- line-height: 1;
35
-
36
- min-inline-size: var(--_badge-size);
37
- padding-inline: var(--_badge-inset);
38
-
39
- pointer-events: none;
40
- position: absolute;
41
- translate: 50% -50%;
42
- white-space: nowrap;
43
- }
44
-
45
- [part="indicator"]:empty {
46
- block-size: var(--_badge-dot);
47
- min-inline-size: var(--_badge-dot);
48
- padding-inline: var(--helix-space-none);
49
- }
50
-
51
- [part="indicator"][data-single] {
52
- padding-inline: var(--helix-space-none);
53
- }
54
-
55
- [part="indicator"] {
56
- scale: 1;
57
- transition:
2
+ export const styles = createSheet(`:host {--_badge-size: var(--helix-size-badge);--_badge-text: var(--helix-text-xs);--_badge-inset: var(--helix-space-2xs);--_badge-dot: var(--helix-space-xs);--_badge-on: var(--helix-color-foreground-on-primary);--_badge-fill: var(--helix-color-primary-surface);display: inline-flex;position: relative;vertical-align: middle;}[part="indicator"] {align-items: center;background-color: var(--badge-background-color, var(--_badge-fill));block-size: var(--_badge-size);border-radius: var(--badge-radius, var(--helix-radii-full));box-shadow: 0 0 0 var(--helix-border-thick) var(--badge-ring-color, var(--helix-color-background));color: var(--badge-color, var(--_badge-on));display: inline-flex;font-size: var(--_badge-text);font-weight: var(--badge-font-weight, var(--helix-weight-semibold));inset-block-start: var(--badge-offset, calc(var(--_badge-size) / 4));inset-inline-end: var(--badge-offset, calc(var(--_badge-size) / 4));justify-content: center;line-height: 1;min-inline-size: var(--_badge-size);padding-inline: var(--_badge-inset);pointer-events: none;position: absolute;translate: 50% -50%;white-space: nowrap;}[part="indicator"]:empty {block-size: var(--_badge-dot);min-inline-size: var(--_badge-dot);padding-inline: var(--helix-space-none);}[part="indicator"][data-single] {padding-inline: var(--helix-space-none);}[part="indicator"] {scale: 1;transition:
58
3
  opacity var(--helix-duration-fast) var(--helix-easing-standard),
59
- scale var(--helix-duration-normal) var(--helix-easing-emphasized);
60
- }
61
-
62
- [part="indicator"][data-blank] {
63
- opacity: 0;
64
- scale: 0;
65
- transition:
4
+ scale var(--helix-duration-normal) var(--helix-easing-emphasized);}[part="indicator"][data-blank] {opacity: 0;scale: 0;transition:
66
5
  opacity var(--helix-duration-fast) var(--helix-easing-standard),
67
- scale var(--helix-duration-fast) var(--helix-easing-accelerate);
68
- }
69
-
70
- :host([tone="primary"]) {
71
- --_badge-fill: var(--helix-color-primary-surface);
72
- }
73
-
74
- :host([tone="accent"]) {
75
- --_badge-fill: var(--helix-color-accent-surface);
76
- }
77
-
78
- :host([tone="accent"]) {
79
- --_badge-on: var(--helix-color-foreground-on-accent);
80
- }
81
-
82
- :host([tone="danger"]),
6
+ scale var(--helix-duration-fast) var(--helix-easing-accelerate);}:host([tone="primary"]) {--_badge-fill: var(--helix-color-primary-surface);}:host([tone="accent"]) {--_badge-fill: var(--helix-color-accent-surface);}:host([tone="accent"]) {--_badge-on: var(--helix-color-foreground-on-accent);}:host([tone="danger"]),
83
7
  :host([tone="info"]),
84
8
  :host([tone="success"]),
85
- :host([tone="warning"]) {
86
- --_badge-on: var(--helix-color-foreground-on-status);
87
- }
88
-
89
- :host([tone="info"]) {
90
- --_badge-fill: var(--helix-color-info-surface);
91
- }
92
-
93
- :host([tone="success"]) {
94
- --_badge-fill: var(--helix-color-success-surface);
95
- }
96
-
97
- :host([tone="warning"]) {
98
- --_badge-fill: var(--helix-color-warning-surface);
99
- }
100
-
101
- :host([tone="danger"]) {
102
- --_badge-fill: var(--helix-color-danger-surface);
103
- }
104
-
105
- :host([tone="neutral"]) {
106
- --_badge-fill: var(--helix-color-surface-raised);
107
- --_badge-on: var(--helix-color-foreground);
108
- }
109
-
110
- :host([placement="top-start"]) [part="indicator"],
111
- :host([placement="bottom-start"]) [part="indicator"] {
112
- inset-inline-end: auto;
113
- inset-inline-start: var(--badge-offset, calc(var(--_badge-size) / 4));
114
- }
115
-
116
- :host([placement="bottom-end"]) [part="indicator"],
117
- :host([placement="bottom-start"]) [part="indicator"] {
118
- inset-block-end: var(--badge-offset, calc(var(--_badge-size) / 4));
119
- inset-block-start: auto;
120
- }
121
-
122
- :host([placement="top-start"]) [part="indicator"] {
123
- translate: -50% -50%;
124
- }
125
-
126
- :host([placement="bottom-end"]) [part="indicator"] {
127
- translate: 50% 50%;
128
- }
129
-
130
- :host([placement="bottom-start"]) [part="indicator"] {
131
- translate: -50% 50%;
132
- }
133
-
134
- :host([placement="inline"]) {
135
- align-items: center;
136
- gap: var(--badge-gap, var(--helix-space-2xs));
137
- }
138
-
139
- :host([placement="inline"]) [part="indicator"] {
140
- box-shadow: none;
141
- position: static;
142
- translate: none;
143
- }
144
-
145
- :host([emphasis="outlined"]) [part="indicator"] {
146
- background-color: var(--badge-background-color, var(--helix-color-background));
147
- box-shadow:
9
+ :host([tone="warning"]) {--_badge-on: var(--helix-color-foreground-on-status);}:host([tone="info"]) {--_badge-fill: var(--helix-color-info-surface);}:host([tone="success"]) {--_badge-fill: var(--helix-color-success-surface);}:host([tone="warning"]) {--_badge-fill: var(--helix-color-warning-surface);}:host([tone="danger"]) {--_badge-fill: var(--helix-color-danger-surface);}:host([tone="neutral"]) {--_badge-fill: var(--helix-color-surface-raised);--_badge-on: var(--helix-color-foreground);}:host([placement="top-start"]) [part="indicator"],
10
+ :host([placement="bottom-start"]) [part="indicator"] {inset-inline-end: auto;inset-inline-start: var(--badge-offset, calc(var(--_badge-size) / 4));}:host([placement="bottom-end"]) [part="indicator"],
11
+ :host([placement="bottom-start"]) [part="indicator"] {inset-block-end: var(--badge-offset, calc(var(--_badge-size) / 4));inset-block-start: auto;}:host([placement="top-start"]) [part="indicator"] {translate: -50% -50%;}:host([placement="bottom-end"]) [part="indicator"] {translate: 50% 50%;}:host([placement="bottom-start"]) [part="indicator"] {translate: -50% 50%;}:host([placement="inline"]) {align-items: center;gap: var(--badge-gap, var(--helix-space-2xs));}:host([placement="inline"]) [part="indicator"] {box-shadow: none;position: static;translate: none;}:host([emphasis="outlined"]) [part="indicator"] {background-color: var(--badge-background-color, var(--helix-color-background));box-shadow:
148
12
  inset 0 0 0 var(--helix-border-thick) var(--_badge-fill),
149
- 0 0 0 var(--helix-border-thick) var(--badge-ring-color, var(--helix-color-background));
150
- color: var(--badge-color, var(--helix-color-foreground));
151
- }
152
-
153
- :host([emphasis="subtle"]) [part="indicator"] {
154
- background-color: var(
13
+ 0 0 0 var(--helix-border-thick) var(--badge-ring-color, var(--helix-color-background));color: var(--badge-color, var(--helix-color-foreground));}:host([emphasis="subtle"]) [part="indicator"] {background-color: var(
155
14
  --badge-background-color,
156
15
  color-mix(in oklab, var(--_badge-fill) 22%, var(--helix-color-background))
157
- );
158
- color: var(--badge-color, var(--helix-color-foreground));
159
- }
160
-
161
- :host([emphasis="outlined"][placement="inline"]) [part="indicator"] {
162
- box-shadow: inset 0 0 0 var(--helix-border-thick) var(--_badge-fill);
163
- }
164
-
165
- :host([attention="pulse"]) [part="indicator"]:not([data-blank]) {
166
- animation: badge-pulse var(--badge-attention-duration, 1.5s) var(--helix-easing-standard) infinite;
167
- }
168
-
169
- :host([attention="bounce"]) [part="indicator"]:not([data-blank]) {
170
- animation: badge-bounce var(--badge-attention-duration, 1s) var(--helix-easing-standard) infinite;
171
- }
172
-
173
- @keyframes badge-pulse {
174
- 0%,
175
- 100% {
176
- transform: scale(1);
177
- }
178
-
179
- 50% {
180
- transform: scale(1.18);
181
- }
182
- }
183
-
184
- @keyframes badge-bounce {
185
- 0%,
16
+ );color: var(--badge-color, var(--helix-color-foreground));}:host([emphasis="outlined"][placement="inline"]) [part="indicator"] {box-shadow: inset 0 0 0 var(--helix-border-thick) var(--_badge-fill);}:host([attention="pulse"]) [part="indicator"]:not([data-blank]) {animation: badge-pulse var(--badge-attention-duration, 1.5s) var(--helix-easing-standard) infinite;}:host([attention="bounce"]) [part="indicator"]:not([data-blank]) {animation: badge-bounce var(--badge-attention-duration, 1s) var(--helix-easing-standard) infinite;}@keyframes badge-pulse {0%,
17
+ 100% {transform: scale(1);}50% {transform: scale(1.18);}}@keyframes badge-bounce {0%,
186
18
  20%,
187
19
  53%,
188
- 100% {
189
- transform: translateY(0);
190
- }
191
-
192
- 40%,
193
- 43% {
194
- transform: translateY(-30%);
195
- }
196
-
197
- 70% {
198
- transform: translateY(-15%);
199
- }
200
-
201
- 90% {
202
- transform: translateY(-4%);
203
- }
204
- }
205
-
206
- @media (prefers-reduced-motion: reduce) {
207
- :host([attention="pulse"]) [part="indicator"]:not([data-blank]),
208
- :host([attention="bounce"]) [part="indicator"]:not([data-blank]) {
209
- animation: none;
210
- }
211
- }
212
-
213
- @media print {
214
- :host {
215
- box-shadow: none;
216
- }
217
- }`);
20
+ 100% {transform: translateY(0);}40%,
21
+ 43% {transform: translateY(-30%);}70% {transform: translateY(-15%);}90% {transform: translateY(-4%);}}@media (prefers-reduced-motion: reduce) {:host([attention="pulse"]) [part="indicator"]:not([data-blank]),
22
+ :host([attention="bounce"]) [part="indicator"]:not([data-blank]) {animation: none;}}@media print {:host {box-shadow: none;}}`);
@@ -23,8 +23,10 @@ import type { CSSResultGroup } from 'lit';
23
23
  * @cssproperty --badge-attention-duration - How long one beat of `attention` takes.
24
24
  * @cssproperty --badge-background-color - The fill of the indicator.
25
25
  * @cssproperty --badge-color - The color of the count, to pair with a fill set through `--badge-background-color`.
26
+ * @cssproperty --badge-font-weight - The weight of the count.
26
27
  * @cssproperty --badge-gap - The space between the content and the count under `placement="inline"`.
27
28
  * @cssproperty --badge-offset - Pulls the mark in from the corner, along both axes.
29
+ * @cssproperty --badge-radius - How far the indicator's corners are rounded.
28
30
  * @cssproperty --badge-ring-color - The color of the ring between the indicator and what is behind it.
29
31
  */
30
32
  export declare class HelixBadge extends HelixHeadlessBadge {
@@ -1,302 +1,18 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- display: grid;
4
- position: relative;
5
- gap: var(--bar-chart-gap, var(--helix-space-2xs));
6
- }
7
-
8
- [part="plot"] {
9
- position: relative;
10
-
11
- block-size: var(--bar-chart-block-size, 12em);
12
- }
13
-
14
- [part="plot"] svg {
15
- block-size: 100%;
16
- inline-size: 100%;
17
-
18
- overflow: visible;
19
- }
20
-
21
- [part="baseline"] {
22
- stroke: var(--helix-color-border);
23
- stroke-width: var(--helix-border-thin);
24
- vector-effect: non-scaling-stroke;
25
- }
26
-
27
- [part="bar"] {
28
- --_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;
29
- --_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;
30
- clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));
31
- fill: var(--_bar-chart-series);
32
- }
33
-
34
- :host([orientation="horizontal"]) [part="bar"] {
35
- --_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;
36
- --_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2);
37
- }
38
-
39
- [part="labels"] {
40
- display: grid;
41
- grid-auto-columns: 1fr;
42
- grid-auto-flow: column;
43
- }
44
-
45
- [part="label"] {
46
- color: var(--helix-color-foreground-muted);
47
- font-size: var(--helix-text-xs);
48
- overflow: hidden;
49
- text-align: center;
50
- text-overflow: ellipsis;
51
- white-space: nowrap;
52
- }
53
-
54
- :host([orientation="horizontal"]) {
55
- grid-template-columns: auto 1fr;
56
- }
57
-
58
- :host([orientation="horizontal"]) [part="labels"] {
59
- grid-column: 1;
60
- grid-row: 1;
61
- }
62
-
63
- :host([orientation="horizontal"]) [part="plot"] {
64
- grid-column: 2;
65
- grid-row: 1;
66
- }
67
-
68
- :host([orientation="horizontal"]) [part="labels"] {
69
- grid-auto-columns: auto;
70
- grid-auto-flow: row;
71
- grid-auto-rows: 1fr;
72
- }
73
-
74
- :host([orientation="horizontal"]) [part="label"] {
75
- align-self: center;
76
- text-align: end;
77
- }
78
-
79
- [part="bar"],
80
- [part="line"] {
81
- --_bar-chart-series: var(--chart-series);
82
- }
83
-
84
- [part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {
85
- opacity: 0.45;
86
- }
87
-
88
- [part~="group"] {
89
- transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate);
90
- }
91
-
92
- [part="bar"] {
93
- transition:
2
+ export const styles = createSheet(`:host {display: grid;position: relative;gap: var(--bar-chart-gap, var(--helix-space-2xs));}[part="plot"] {position: relative;block-size: var(--bar-chart-block-size, 12em);}[part="plot"] svg {block-size: 100%;inline-size: 100%;overflow: visible;}[part="baseline"] {stroke: var(--helix-color-border);stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke;}[part="bar"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;--_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));fill: var(--_bar-chart-series);}:host([orientation="horizontal"]) [part="bar"] {--_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;--_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2);}[part="labels"] {display: grid;grid-auto-columns: 1fr;grid-auto-flow: column;}[part="label"] {color: var(--helix-color-foreground-muted);font-size: var(--helix-text-xs);overflow: hidden;text-align: center;text-overflow: ellipsis;white-space: nowrap;}:host([orientation="horizontal"]) {grid-template-columns: auto 1fr;}:host([orientation="horizontal"]) [part="labels"] {grid-column: 1;grid-row: 1;}:host([orientation="horizontal"]) [part="plot"] {grid-column: 2;grid-row: 1;}:host([orientation="horizontal"]) [part="labels"] {grid-auto-columns: auto;grid-auto-flow: row;grid-auto-rows: 1fr;}:host([orientation="horizontal"]) [part="label"] {align-self: center;text-align: end;}[part="bar"],
3
+ [part="line"] {--_bar-chart-series: var(--chart-series);}[part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {opacity: 0.45;}[part~="group"] {transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate);}[part="bar"] {transition:
94
4
  height var(--helix-duration-normal) var(--helix-easing-decelerate),
95
5
  width var(--helix-duration-normal) var(--helix-easing-decelerate),
96
6
  x var(--helix-duration-normal) var(--helix-easing-decelerate),
97
- y var(--helix-duration-normal) var(--helix-easing-decelerate);
98
- }
99
-
100
- @starting-style {
101
- :host(:not([orientation="horizontal"])) [part="bar"] {
102
- height: 0;
103
- y: 100;
104
- }
105
-
106
- :host([orientation="horizontal"]) [part="bar"] {
107
- width: 0;
108
- }
109
- }
110
-
111
- [part="plot"] {
112
- cursor: crosshair;
113
- }
114
-
115
- [part="gridline"] {
116
- stroke: var(--bar-chart-gridline-color, var(--helix-color-border));
117
- stroke-width: var(--helix-border-thin);
118
- vector-effect: non-scaling-stroke;
119
- }
120
-
121
- [part="band"] {
122
- fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken));
123
- }
124
-
125
- [part="line"] {
126
- fill: none;
127
- stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));
128
- stroke-linecap: round;
129
- stroke-linejoin: round;
130
-
131
- stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));
132
- vector-effect: non-scaling-stroke;
133
- }
134
-
135
- :host([secondary]) {
136
- grid-template-columns: auto 1fr auto;
137
- }
138
-
139
- :host([secondary]) [part="axis"][data-axis="primary"] {
140
- grid-column: 1;
141
- grid-row: 1;
142
- }
143
-
144
- :host([secondary]) [part="plot"] {
145
- grid-column: 2;
146
- grid-row: 1;
147
- }
148
-
149
- [part="axis"][data-axis="secondary"] {
150
- --_bar-chart-axis-ink: color-mix(
7
+ y var(--helix-duration-normal) var(--helix-easing-decelerate);}@starting-style {:host(:not([orientation="horizontal"])) [part="bar"] {height: 0;y: 100;}:host([orientation="horizontal"]) [part="bar"] {width: 0;}}[part="plot"] {cursor: crosshair;}[part="gridline"] {stroke: var(--bar-chart-gridline-color, var(--helix-color-border));stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke;}[part="band"] {fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken));}[part="line"] {fill: none;stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));stroke-linecap: round;stroke-linejoin: round;stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));vector-effect: non-scaling-stroke;}:host([secondary]) {grid-template-columns: auto 1fr auto;}:host([secondary]) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1;}:host([secondary]) [part="plot"] {grid-column: 2;grid-row: 1;}[part="axis"][data-axis="secondary"] {--_bar-chart-axis-ink: color-mix(
151
8
  in oklab,
152
9
  var(--bar-chart-secondary) 45%,
153
10
  var(--helix-color-foreground)
154
- );
155
-
156
- color: var(--_bar-chart-axis-ink, var(--helix-color-foreground-subtle));
157
- }
158
-
159
- :host([secondary]) [part="axis"][data-axis="secondary"] {
160
- grid-column: 3;
161
- grid-row: 1;
162
- }
163
-
164
- :host([secondary]) [part="labels"] {
165
- grid-column: 2;
166
- grid-row: 2;
167
- }
168
-
169
- :host([orientation="horizontal"][secondary]) {
170
- grid-template-columns: auto 1fr;
171
- grid-template-rows: auto 1fr auto;
172
- }
173
-
174
- :host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {
175
- grid-column: 2;
176
- grid-row: 1;
177
- }
178
-
179
- :host([orientation="horizontal"][secondary]) [part="labels"] {
180
- grid-column: 1;
181
- grid-row: 2;
182
- }
183
-
184
- :host([orientation="horizontal"][secondary]) [part="plot"] {
185
- grid-column: 2;
186
- grid-row: 2;
187
- }
188
-
189
- :host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {
190
- grid-column: 2;
191
- grid-row: 3;
192
- }
193
-
194
- [part="axis"] {
195
- color: var(--helix-color-foreground-subtle);
196
- font-size: var(--helix-text-xs);
197
- font-variant-numeric: tabular-nums;
198
- pointer-events: none;
199
- position: relative;
200
- }
201
-
202
- :host(:not([orientation="horizontal"])) [part="axis"] {
203
- inline-size: var(--bar-chart-axis, 3ch);
204
- }
205
-
206
- :host([orientation="horizontal"]) [part="axis"] {
207
- block-size: 1lh;
208
- }
209
-
210
- [part="tick"] {
211
- position: absolute;
212
- }
213
-
214
- :host(:not([orientation="horizontal"])) [part="tick"] {
215
- inset-inline-end: 0;
216
- translate: 0 -50%;
217
- }
218
-
219
- :host([orientation="horizontal"]) [part="tick"] {
220
- translate: -50% 0;
221
- }
222
-
223
- :host([orientation="horizontal"]:dir(rtl)) [part="tick"] {
224
- translate: 50% 0;
225
- }
226
-
227
- :host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {
228
- inset-inline-end: auto;
229
- inset-inline-start: 0;
230
- }
231
-
232
- [part="bar"] {
233
- fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));
234
- stroke-opacity: var(--_bar-chart-through, 1);
235
- }
236
-
237
- [part="bar"][data-emphasis="outlined"],
238
- :host([emphasis="outlined"]) [part="bar"]:not([data-emphasis]) {
239
-
240
- --_bar-chart-foot: var(--_bar-chart-base);
241
- fill: var(--_bar-chart-shade);
242
- stroke: var(--_bar-chart-series);
243
- stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));
244
- vector-effect: non-scaling-stroke;
245
- }
246
-
247
- [part="bar"][data-emphasis="subtle"],
248
- :host([emphasis="subtle"]) [part="bar"]:not([data-emphasis]) {
249
- --_bar-chart-area: 0.2;
250
-
251
- --_bar-chart-foot: var(--_bar-chart-base);
252
- stroke: var(--_bar-chart-series);
253
- stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));
254
- vector-effect: non-scaling-stroke;
255
- }
256
-
257
- [part="bar"] {
258
- --_bar-chart-shade: color-mix(
11
+ );color: var(--_bar-chart-axis-ink, var(--helix-color-foreground-subtle));}:host([secondary]) [part="axis"][data-axis="secondary"] {grid-column: 3;grid-row: 1;}:host([secondary]) [part="labels"] {grid-column: 2;grid-row: 2;}:host([orientation="horizontal"][secondary]) {grid-template-columns: auto 1fr;grid-template-rows: auto 1fr auto;}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {grid-column: 2;grid-row: 1;}:host([orientation="horizontal"][secondary]) [part="labels"] {grid-column: 1;grid-row: 2;}:host([orientation="horizontal"][secondary]) [part="plot"] {grid-column: 2;grid-row: 2;}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 3;}[part="axis"] {color: var(--helix-color-foreground-subtle);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;pointer-events: none;position: relative;}:host(:not([orientation="horizontal"])) [part="axis"] {inline-size: var(--bar-chart-axis, 3ch);}:host([orientation="horizontal"]) [part="axis"] {block-size: 1lh;}[part="tick"] {position: absolute;}:host(:not([orientation="horizontal"])) [part="tick"] {inset-inline-end: 0;translate: 0 -50%;}:host([orientation="horizontal"]) [part="tick"] {translate: -50% 0;}:host([orientation="horizontal"]:dir(rtl)) [part="tick"] {translate: 50% 0;}:host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {inset-inline-end: auto;inset-inline-start: 0;}[part="bar"] {fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));stroke-opacity: var(--_bar-chart-through, 1);}[part="bar"][data-emphasis="outlined"],
12
+ :host([emphasis="outlined"]) [part="bar"]:not([data-emphasis]) {--_bar-chart-foot: var(--_bar-chart-base);fill: var(--_bar-chart-shade);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke;}[part="bar"][data-emphasis="subtle"],
13
+ :host([emphasis="subtle"]) [part="bar"]:not([data-emphasis]) {--_bar-chart-area: 0.2;--_bar-chart-foot: var(--_bar-chart-base);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke;}[part="bar"] {--_bar-chart-shade: color-mix(
259
14
  in oklab,
260
15
  var(--_bar-chart-series) 60%,
261
16
  var(--helix-color-background)
262
- );
263
- }
264
-
265
- [part="bar"][data-material="glass"],
266
- :host([material="glass"]) [part="bar"]:not([data-material]) {
267
- --_bar-chart-through: calc(0.62 * var(--helix-material-opacity));
268
- }
269
-
270
- :host([material="frosted"]) [part="bar"]:not([data-material]) {
271
- --_bar-chart-through: calc(0.88 * var(--helix-material-opacity));
272
- }
273
-
274
- :host([wash="gradient"]) [part="bar"] {
275
- fill: var(--chart-bar-wash);
276
- }
277
-
278
- [part="bar-wash-start"] {
279
- stop-color: var(--chart-series);
280
- stop-opacity: calc(1 * var(--helix-material-opacity));
281
- }
282
-
283
- [part="bar-wash-end"] {
284
- stop-color: var(--chart-series);
285
- stop-opacity: calc(0.35 * var(--helix-material-opacity));
286
- }
287
-
288
- @media print {
289
- :host {
290
- print-color-adjust: exact;
291
- }
292
- }
293
-
294
- [part="summary"] {
295
- block-size: 1px;
296
- clip-path: inset(50%);
297
- inline-size: 1px;
298
- margin: var(--helix-space-none);
299
- overflow: hidden;
300
- position: absolute;
301
- white-space: nowrap;
302
- }`);
17
+ );}[part="bar"][data-material="glass"],
18
+ :host([material="glass"]) [part="bar"]:not([data-material]) {--_bar-chart-through: calc(0.62 * var(--helix-material-opacity));}:host([material="frosted"]) [part="bar"]:not([data-material]) {--_bar-chart-through: calc(0.88 * var(--helix-material-opacity));}:host([wash="gradient"]) [part="bar"] {fill: var(--chart-bar-wash);}[part="bar-wash-start"] {stop-color: var(--chart-series);stop-opacity: calc(1 * var(--helix-material-opacity));}[part="bar-wash-end"] {stop-color: var(--chart-series);stop-opacity: calc(0.35 * var(--helix-material-opacity));}@media print {:host {print-color-adjust: exact;}}[part="summary"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap;}`);