@ethlete/components 1.0.0-next.68 → 1.0.0-next.70

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 (239) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/design/button.ts +57 -0
  3. package/design/form-field.ts +210 -0
  4. package/design/select.ts +110 -0
  5. package/fesm2022/ethlete-components-testing.mjs +3 -1
  6. package/fesm2022/ethlete-components-testing.mjs.map +1 -1
  7. package/fesm2022/ethlete-components.mjs +1543 -352
  8. package/fesm2022/ethlete-components.mjs.map +1 -1
  9. package/package.json +20 -14
  10. package/src/lib/accordion/accordion-group.component.css +12 -0
  11. package/src/lib/accordion/accordion.component.css +185 -0
  12. package/src/lib/avatar/avatar-group.component.css +31 -0
  13. package/src/lib/avatar/avatar.component.css +75 -0
  14. package/src/lib/badge/badge.component.css +111 -0
  15. package/src/lib/banner/banner.component.css +94 -0
  16. package/src/lib/bracket/bracket-default-continue.component.css +29 -0
  17. package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
  18. package/src/lib/bracket/bracket-default-match.component.css +21 -0
  19. package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
  20. package/src/lib/bracket/bracket-participants.component.css +13 -0
  21. package/src/lib/bracket/bracket-pick-card.component.css +232 -0
  22. package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
  23. package/src/lib/bracket/bracket-skeleton.component.css +55 -0
  24. package/src/lib/bracket/bracket.component.css +102 -0
  25. package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
  26. package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
  27. package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
  28. package/src/lib/button/button-properties-styles.component.css +143 -0
  29. package/src/lib/button/button.component.css +196 -0
  30. package/src/lib/button/fab.component.css +252 -0
  31. package/src/lib/button/icon-button.component.css +143 -0
  32. package/src/lib/button/split-button.component.css +77 -0
  33. package/src/lib/button/text-button.component.css +140 -0
  34. package/src/lib/button/window-control-button.component.css +158 -0
  35. package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
  36. package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
  37. package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
  38. package/src/lib/calendar/calendar.component.css +366 -0
  39. package/src/lib/card/card.component.css +39 -0
  40. package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
  41. package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
  42. package/src/lib/carousel/carousel.component.css +142 -0
  43. package/src/lib/chart/bar-chart.component.css +176 -0
  44. package/src/lib/chart/chart-axis.component.css +40 -0
  45. package/src/lib/chart/chart-grid.component.css +6 -0
  46. package/src/lib/chart/chart-legend.component.css +46 -0
  47. package/src/lib/chart/chart-tooltip.component.css +34 -0
  48. package/src/lib/chart/line-chart-tooltip.component.css +51 -0
  49. package/src/lib/chart/line-chart.component.css +234 -0
  50. package/src/lib/chart/pie-chart.component.css +176 -0
  51. package/src/lib/chart/sankey-chart.component.css +221 -0
  52. package/src/lib/chip/chip.component.css +155 -0
  53. package/src/lib/command-palette/command-palette-item.component.css +94 -0
  54. package/src/lib/command-palette/command-palette.component.css +100 -0
  55. package/src/lib/description-list/description-list.component.css +77 -0
  56. package/src/lib/divider/divider.component.css +36 -0
  57. package/src/lib/empty-state/empty-state.component.css +73 -0
  58. package/src/lib/floating-action/floating-action-styles.component.css +78 -0
  59. package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
  60. package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
  61. package/src/lib/forms/cascader/cascader-panel.component.css +386 -0
  62. package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
  63. package/src/lib/forms/cascader/cascader.component.css +52 -0
  64. package/src/lib/forms/checkbox/checkbox.component.css +247 -0
  65. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
  66. package/src/lib/forms/choice-field/choice-field.component.css +186 -0
  67. package/src/lib/forms/color-input/color-input.component.css +108 -0
  68. package/src/lib/forms/color-input/color-picker-panel.component.css +349 -0
  69. package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
  70. package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
  71. package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
  72. package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
  73. package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
  74. package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
  75. package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
  76. package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
  77. package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
  78. package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
  79. package/src/lib/forms/dropzone/dropzone-item.component.css +51 -0
  80. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
  81. package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
  82. package/src/lib/forms/dropzone/dropzone.component.css +267 -0
  83. package/src/lib/forms/form-field/counter.component.css +25 -0
  84. package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +116 -0
  85. package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
  86. package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +66 -0
  87. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
  88. package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
  89. package/src/lib/forms/form-field/form-field.component.css +328 -0
  90. package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
  91. package/src/lib/forms/form-field/headless/label.directive.css +25 -0
  92. package/src/lib/forms/form-field/hint.component.css +20 -0
  93. package/src/lib/forms/input/input.component.css +49 -0
  94. package/src/lib/forms/input/number-input.component.css +128 -0
  95. package/src/lib/forms/input/password-input.component.css +103 -0
  96. package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
  97. package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
  98. package/src/lib/forms/otp-input/otp-input.component.css +194 -0
  99. package/src/lib/forms/phone-input/phone-input.component.css +126 -0
  100. package/src/lib/forms/rating/rating.component.css +197 -0
  101. package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
  102. package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -0
  103. package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
  104. package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
  105. package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
  106. package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +199 -0
  107. package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
  108. package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
  109. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
  110. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
  111. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
  112. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
  113. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
  114. package/src/lib/forms/select/select-all-option.component.css +14 -0
  115. package/src/lib/forms/select/select-extras-styles.component.css +143 -0
  116. package/src/lib/forms/select/select-option-group.component.css +35 -0
  117. package/src/lib/forms/select/select-option-styles.component.css +137 -0
  118. package/src/lib/forms/select/select-panel.component.css +112 -0
  119. package/src/lib/forms/select/select.component.css +180 -0
  120. package/src/lib/forms/selection-card-styles.component.css +136 -0
  121. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -0
  122. package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
  123. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +153 -0
  124. package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
  125. package/src/lib/forms/selection-list/radio-group/radio.component.css +137 -0
  126. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
  127. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
  128. package/src/lib/forms/slider/range-slider.component.css +348 -0
  129. package/src/lib/forms/slider/slider.component.css +342 -0
  130. package/src/lib/forms/switch/switch.component.css +187 -0
  131. package/src/lib/forms/tag-input/tag-input.component.css +54 -0
  132. package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
  133. package/src/lib/forms/textarea/textarea.component.css +40 -0
  134. package/src/lib/grid/grid-debug.component.css +130 -0
  135. package/src/lib/grid/grid-item-default-actions.component.css +11 -0
  136. package/src/lib/grid/grid-item.component.css +172 -0
  137. package/src/lib/grid/grid.component.css +56 -0
  138. package/src/lib/icon/headless/icon-styles.component.css +7 -0
  139. package/src/lib/kbd/kbd.component.css +62 -0
  140. package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
  141. package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
  142. package/src/lib/loader/spinner/spinner.component.css +216 -0
  143. package/src/lib/masonry/masonry-styles.component.css +84 -0
  144. package/src/lib/match/match-card.component.css +441 -0
  145. package/src/lib/match/match-participant.component.css +137 -0
  146. package/src/lib/match/match-score.component.css +74 -0
  147. package/src/lib/menu/menu-group-label.component.css +12 -0
  148. package/src/lib/menu/menu-item-shortcut.component.css +10 -0
  149. package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
  150. package/src/lib/menu/menu-item.component.css +32 -0
  151. package/src/lib/menu/menu-search-styles.component.css +56 -0
  152. package/src/lib/menu/menu-selection-item.component.css +88 -0
  153. package/src/lib/menu/menu-separator.component.css +9 -0
  154. package/src/lib/menu/menu.component.css +296 -0
  155. package/src/lib/notification/notification-stack.component.css +114 -0
  156. package/src/lib/notification/notification.component.css +271 -0
  157. package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
  158. package/src/lib/overlay/floating-panel-styles.component.css +71 -0
  159. package/src/lib/overlay/floating-tip-styles.component.css +78 -0
  160. package/src/lib/overlay/overlay-container.component.css +167 -0
  161. package/src/lib/overlay/overlay-main-styles.component.css +105 -0
  162. package/src/lib/overlay/overlay-template-host.component.css +7 -0
  163. package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
  164. package/src/lib/overlay/routing/overlay-router-outlet.component.css +207 -0
  165. package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
  166. package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
  167. package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
  168. package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
  169. package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
  170. package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
  171. package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
  172. package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
  173. package/src/lib/pagination/page-size-select.component.css +102 -0
  174. package/src/lib/pagination/pagination.component.css +192 -0
  175. package/src/lib/picture/picture.component.css +66 -0
  176. package/src/lib/progress-steps/progress-step.component.css +187 -0
  177. package/src/lib/progress-steps/progress-steps.component.css +26 -0
  178. package/src/lib/query-error/query-error.component.css +21 -0
  179. package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
  180. package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
  181. package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
  182. package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
  183. package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
  184. package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
  185. package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
  186. package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
  187. package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
  188. package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
  189. package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
  190. package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
  191. package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
  192. package/src/lib/scheduler/scheduler.component.css +87 -0
  193. package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
  194. package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
  195. package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
  196. package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
  197. package/src/lib/scrollable/scrollable.component.css +192 -0
  198. package/src/lib/scrollbar/scrollbar.component.css +110 -0
  199. package/src/lib/skeleton/skeleton.component.css +108 -0
  200. package/src/lib/standings/standings-pick.component.css +172 -0
  201. package/src/lib/standings/standings.component.css +201 -0
  202. package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
  203. package/src/lib/stat-tile/stat-tile.component.css +111 -0
  204. package/src/lib/stream/pip/pip-chrome.component.css +96 -0
  205. package/src/lib/stream/pip/pip-player.component.css +40 -0
  206. package/src/lib/stream/pip/pip-window.component.css +222 -0
  207. package/src/lib/stream/stream-manager-styles.component.css +10 -0
  208. package/src/lib/stream/stream-overlay-card-styles.component.css +43 -0
  209. package/src/lib/stream/stream-player-slot-styles.component.css +14 -0
  210. package/src/lib/table/table-column-chooser.component.css +17 -0
  211. package/src/lib/table/table-column-menu-trigger.component.css +31 -0
  212. package/src/lib/table/table-detail-styles.component.css +103 -0
  213. package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
  214. package/src/lib/table/table-expander-cell.component.css +58 -0
  215. package/src/lib/table/table-filter-trigger.component.css +44 -0
  216. package/src/lib/table/table-group-header-row.component.css +38 -0
  217. package/src/lib/table/table-inline-edit-styles.component.css +20 -0
  218. package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
  219. package/src/lib/table/table-reorder-overlay.component.css +42 -0
  220. package/src/lib/table/table-resize-grip.component.css +65 -0
  221. package/src/lib/table/table-row-box-styles.component.css +260 -0
  222. package/src/lib/table/table-select-cell.component.css +89 -0
  223. package/src/lib/table/table-skeleton-rows.component.css +19 -0
  224. package/src/lib/table/table-sort-priority-styles.component.css +15 -0
  225. package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
  226. package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
  227. package/src/lib/table/table.component.css +829 -0
  228. package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
  229. package/src/lib/tabs/tab-bar-styles.component.css +173 -0
  230. package/src/lib/tabs/tab-scale-styles.component.css +61 -0
  231. package/src/lib/time-picker/time-picker.component.css +220 -0
  232. package/src/lib/timeline/timeline-item.component.css +116 -0
  233. package/src/lib/timeline/timeline.component.css +7 -0
  234. package/src/lib/toggletip/toggletip.component.css +83 -0
  235. package/src/lib/toolbar/toolbar.component.css +40 -0
  236. package/src/lib/tooltip/tooltip.component.css +64 -0
  237. package/src/lib/tree/tree.component.css +221 -0
  238. package/types/ethlete-components-testing.d.ts +1 -1
  239. package/types/ethlete-components.d.ts +275 -36
@@ -0,0 +1,234 @@
1
+ @layer components {
2
+ @property --et-line-chart-font-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 12px;
6
+ }
7
+
8
+ @property --et-line-chart-axis-gap {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 8px;
12
+ }
13
+
14
+ @property --et-line-chart-line-width {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 2px;
18
+ }
19
+
20
+ @property --et-line-chart-area-opacity {
21
+ syntax: '<number>';
22
+ inherits: true;
23
+ initial-value: 0.12;
24
+ }
25
+
26
+ @property --et-line-chart-stacked-area-mix {
27
+ syntax: '<percentage>';
28
+ inherits: true;
29
+ initial-value: 45%;
30
+ }
31
+
32
+ @property --et-line-chart-enter-duration {
33
+ syntax: '<time>';
34
+ inherits: true;
35
+ initial-value: 600ms;
36
+ }
37
+
38
+ @property --et-line-chart-focus-ring-min-width {
39
+ syntax: '<length>';
40
+ inherits: true;
41
+ initial-value: 12px;
42
+ }
43
+
44
+ .et-line-chart {
45
+ display: block;
46
+ position: relative;
47
+ font-size: var(--et-line-chart-font-size);
48
+ line-height: 1.4;
49
+ color: var(--et-surface-color-muted-solid, currentColor);
50
+
51
+ .et-line-chart-legend {
52
+ margin-block-end: calc(var(--et-line-chart-axis-gap) * 1.5);
53
+ }
54
+ }
55
+
56
+ .et-line-chart-figure {
57
+ display: grid;
58
+ grid-template-columns: auto minmax(0, 1fr);
59
+ grid-template-areas:
60
+ 'value-axis plot'
61
+ '. x-axis';
62
+ column-gap: var(--et-line-chart-axis-gap);
63
+ row-gap: var(--et-line-chart-axis-gap);
64
+ padding-block-start: 0.7em;
65
+
66
+ .et-line-chart-value-axis {
67
+ grid-area: value-axis;
68
+ }
69
+
70
+ .et-line-chart-x-axis {
71
+ grid-area: x-axis;
72
+ }
73
+
74
+ .et-line-chart-plot {
75
+ grid-area: plot;
76
+ min-inline-size: 0;
77
+
78
+ .et-line-chart-svg {
79
+ display: block;
80
+ overflow: visible;
81
+ touch-action: pan-y;
82
+ }
83
+ }
84
+
85
+ &:where([data-scale='time']) {
86
+ padding-inline-end: 1.5em;
87
+ }
88
+ }
89
+
90
+ .et-line-chart-series-layer {
91
+ animation: et-line-chart-reveal var(--et-line-chart-enter-duration) cubic-bezier(0.2, 0, 0, 1) backwards;
92
+ }
93
+
94
+ .et-line-chart-series,
95
+ .et-line-chart-area {
96
+ --_et-line-chart-color: color-mix(
97
+ in oklab,
98
+ var(--et-theme-color-primary-solid, currentColor) var(--_et-chart-accent-mix, 100%),
99
+ var(--et-surface-background-solid, transparent)
100
+ );
101
+ }
102
+
103
+ .et-line-chart-area {
104
+ fill: var(--_et-line-chart-color);
105
+ fill-opacity: var(--et-line-chart-area-opacity);
106
+ }
107
+
108
+ .et-line-chart-series {
109
+ .et-line-chart-line {
110
+ fill: none;
111
+ stroke: var(--_et-line-chart-color);
112
+ stroke-width: var(--et-line-chart-line-width);
113
+ stroke-linecap: round;
114
+ stroke-linejoin: round;
115
+ }
116
+
117
+ .et-line-chart-point {
118
+ fill: var(--_et-line-chart-color);
119
+ stroke: var(--et-surface-background-solid, transparent);
120
+ stroke-width: 2px;
121
+ }
122
+ }
123
+
124
+ .et-line-chart-svg:where([data-stacked]) .et-line-chart-area {
125
+ fill: color-mix(
126
+ in oklab,
127
+ var(--_et-line-chart-color) var(--et-line-chart-stacked-area-mix),
128
+ var(--et-surface-background-solid, transparent)
129
+ );
130
+ fill-opacity: 1;
131
+ }
132
+
133
+ .et-line-chart-slice {
134
+ --_et-line-chart-slice-tint: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 6%, transparent);
135
+
136
+ outline: none;
137
+
138
+ .et-line-chart-slice-target {
139
+ fill: transparent;
140
+ stroke: transparent;
141
+ stroke-width: 2px;
142
+ }
143
+
144
+ .et-line-chart-focus-ring {
145
+ --_et-line-chart-focus-ring-x: min(
146
+ var(--_et-line-chart-slice-x),
147
+ max(
148
+ var(--_et-line-chart-slice-position) - var(--et-line-chart-focus-ring-min-width) / 2,
149
+ var(--_et-line-chart-slice-x) + var(--_et-line-chart-slice-width) - var(--et-line-chart-focus-ring-min-width)
150
+ )
151
+ );
152
+
153
+ x: var(--_et-line-chart-focus-ring-x);
154
+ width: calc(
155
+ max(
156
+ var(--_et-line-chart-slice-x) + var(--_et-line-chart-slice-width),
157
+ min(
158
+ var(--_et-line-chart-slice-position) + var(--et-line-chart-focus-ring-min-width) / 2,
159
+ var(--_et-line-chart-slice-x) + var(--et-line-chart-focus-ring-min-width)
160
+ )
161
+ ) -
162
+ var(--_et-line-chart-focus-ring-x)
163
+ );
164
+ fill: none;
165
+ stroke: none;
166
+ stroke-width: 2px;
167
+ pointer-events: none;
168
+ }
169
+
170
+ .et-line-chart-crosshair {
171
+ stroke: var(--et-surface-color-subtle-solid, currentColor);
172
+ stroke-width: 1px;
173
+ opacity: 0;
174
+ pointer-events: none;
175
+ }
176
+
177
+ .et-line-chart-slice-point {
178
+ fill: color-mix(
179
+ in oklab,
180
+ var(--et-theme-color-primary-solid, currentColor) var(--_et-chart-accent-mix, 100%),
181
+ var(--et-surface-background-solid, transparent)
182
+ );
183
+ stroke: var(--et-surface-background-solid, transparent);
184
+ stroke-width: 2px;
185
+ opacity: 0;
186
+ pointer-events: none;
187
+ }
188
+
189
+ .et-line-chart-slice-anchor {
190
+ fill: none;
191
+ pointer-events: none;
192
+ }
193
+
194
+ &:focus-visible,
195
+ &:where([data-active]) {
196
+ .et-line-chart-crosshair,
197
+ .et-line-chart-slice-point {
198
+ opacity: 1;
199
+ }
200
+ }
201
+
202
+ @media (hover: hover) {
203
+ &:hover {
204
+ .et-line-chart-crosshair,
205
+ .et-line-chart-slice-point {
206
+ opacity: 1;
207
+ }
208
+ }
209
+ }
210
+
211
+ &:focus-visible .et-line-chart-focus-ring {
212
+ fill: var(--_et-line-chart-slice-tint);
213
+ stroke: var(--et-theme-color-primary-solid, currentColor);
214
+ }
215
+ }
216
+
217
+ @keyframes et-line-chart-reveal {
218
+ from {
219
+ clip-path: inset(-8px 100% -8px -8px);
220
+ opacity: 0;
221
+ }
222
+
223
+ to {
224
+ clip-path: inset(-8px -8px -8px -8px);
225
+ opacity: 1;
226
+ }
227
+ }
228
+
229
+ @media (prefers-reduced-motion: reduce) {
230
+ .et-line-chart-series-layer {
231
+ animation: none;
232
+ }
233
+ }
234
+ }
@@ -0,0 +1,176 @@
1
+ @layer components {
2
+ @property --et-pie-chart-font-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 12px;
6
+ }
7
+
8
+ @property --et-pie-chart-legend-gap {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 24px;
12
+ }
13
+
14
+ @property --et-pie-chart-enter-duration {
15
+ syntax: '<time>';
16
+ inherits: true;
17
+ initial-value: 400ms;
18
+ }
19
+
20
+ @property --et-pie-chart-enter-stagger {
21
+ syntax: '<time>';
22
+ inherits: true;
23
+ initial-value: 40ms;
24
+ }
25
+
26
+ .et-pie-chart {
27
+ display: block;
28
+ position: relative;
29
+ font-size: var(--et-pie-chart-font-size);
30
+ line-height: 1.4;
31
+ color: var(--et-surface-color-muted-solid, currentColor);
32
+ }
33
+
34
+ .et-pie-chart-figure {
35
+ display: flex;
36
+ flex-wrap: wrap;
37
+ align-items: center;
38
+ gap: var(--et-pie-chart-legend-gap);
39
+
40
+ .et-pie-chart-plot {
41
+ position: relative;
42
+ flex: 0 1 auto;
43
+ min-inline-size: 0;
44
+ max-inline-size: 100%;
45
+
46
+ .et-pie-chart-svg {
47
+ display: block;
48
+ overflow: visible;
49
+ }
50
+ }
51
+ }
52
+
53
+ .et-pie-chart-empty {
54
+ fill: none;
55
+ stroke: var(--et-surface-border-solid, currentColor);
56
+ stroke-width: 1px;
57
+ }
58
+
59
+ .et-pie-chart-slice,
60
+ .et-pie-chart-legend-item {
61
+ --_et-pie-chart-slice-fill: color-mix(
62
+ in oklab,
63
+ var(--et-theme-color-primary-solid, currentColor) var(--_et-pie-chart-accent-mix, 100%),
64
+ var(--et-surface-background-solid, transparent)
65
+ );
66
+ }
67
+
68
+ .et-pie-chart-slice {
69
+ --_et-pie-chart-slice-tint: color-mix(
70
+ in oklab,
71
+ var(--_et-pie-chart-slice-fill) 85%,
72
+ var(--et-surface-background-solid, transparent)
73
+ );
74
+
75
+ outline: none;
76
+ animation: et-pie-chart-slice-enter var(--et-pie-chart-enter-duration) cubic-bezier(0.2, 0, 0, 1) backwards;
77
+ animation-delay: calc(min(var(--_et-pie-chart-slice-order, 0), 10) * var(--et-pie-chart-enter-stagger));
78
+
79
+ .et-pie-chart-slice-mark {
80
+ fill: var(--_et-pie-chart-slice-fill);
81
+ stroke: transparent;
82
+ stroke-width: 2px;
83
+ stroke-linejoin: round;
84
+ }
85
+
86
+ .et-pie-chart-slice-anchor {
87
+ fill: none;
88
+ pointer-events: none;
89
+ }
90
+
91
+ &:focus-visible .et-pie-chart-slice-mark {
92
+ fill: var(--_et-pie-chart-slice-tint);
93
+ stroke: var(--et-surface-color-solid, currentColor);
94
+ }
95
+
96
+ @media (hover: hover) {
97
+ &:hover .et-pie-chart-slice-mark {
98
+ fill: var(--_et-pie-chart-slice-tint);
99
+ }
100
+ }
101
+ }
102
+
103
+ .et-pie-chart-center {
104
+ position: absolute;
105
+ inset: 0;
106
+ display: flex;
107
+ flex-direction: column;
108
+ align-items: center;
109
+ justify-content: center;
110
+ margin: auto;
111
+ inline-size: calc(var(--_et-pie-chart-hole-size) * 0.7);
112
+ block-size: calc(var(--_et-pie-chart-hole-size) * 0.7);
113
+ text-align: center;
114
+ pointer-events: none;
115
+
116
+ .et-pie-chart-total {
117
+ font-size: 1.5em;
118
+ line-height: 1.2;
119
+ color: var(--et-surface-color-solid, currentColor);
120
+ font-variant-numeric: tabular-nums;
121
+ }
122
+ }
123
+
124
+ .et-pie-chart-legend {
125
+ display: grid;
126
+ grid-template-columns: auto minmax(0, 1fr) auto auto;
127
+ flex: 1 1 160px;
128
+ max-inline-size: 360px;
129
+ align-items: center;
130
+ column-gap: 8px;
131
+ row-gap: 6px;
132
+ min-inline-size: 0;
133
+ margin: 0;
134
+ padding: 0;
135
+ list-style: none;
136
+
137
+ .et-pie-chart-legend-item {
138
+ display: contents;
139
+ }
140
+
141
+ .et-pie-chart-legend-swatch {
142
+ inline-size: 10px;
143
+ block-size: 10px;
144
+ border-radius: 2px;
145
+ background: var(--_et-pie-chart-slice-fill);
146
+ }
147
+
148
+ .et-pie-chart-legend-label {
149
+ overflow: hidden;
150
+ text-overflow: ellipsis;
151
+ white-space: nowrap;
152
+ }
153
+
154
+ .et-pie-chart-legend-value,
155
+ .et-pie-chart-legend-percent {
156
+ text-align: end;
157
+ font-variant-numeric: tabular-nums;
158
+ }
159
+
160
+ .et-pie-chart-legend-value {
161
+ color: var(--et-surface-color-solid, currentColor);
162
+ }
163
+ }
164
+
165
+ @keyframes et-pie-chart-slice-enter {
166
+ from {
167
+ opacity: 0;
168
+ }
169
+ }
170
+
171
+ @media (prefers-reduced-motion: reduce) {
172
+ .et-pie-chart-slice {
173
+ animation: none;
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,221 @@
1
+ @layer components {
2
+ @property --et-sankey-chart-font-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 12px;
6
+ }
7
+
8
+ @property --et-sankey-chart-min-width {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 480px;
12
+ }
13
+
14
+ @property --et-sankey-chart-link-opacity {
15
+ syntax: '<number>';
16
+ inherits: true;
17
+ initial-value: 0.35;
18
+ }
19
+
20
+ @property --et-sankey-chart-link-highlight-opacity {
21
+ syntax: '<number>';
22
+ inherits: true;
23
+ initial-value: 0.6;
24
+ }
25
+
26
+ @property --et-sankey-chart-link-dim-opacity {
27
+ syntax: '<number>';
28
+ inherits: true;
29
+ initial-value: 0.1;
30
+ }
31
+
32
+ @property --et-sankey-chart-enter-duration {
33
+ syntax: '<time>';
34
+ inherits: true;
35
+ initial-value: 400ms;
36
+ }
37
+
38
+ .et-sankey-chart {
39
+ display: block;
40
+ position: relative;
41
+ font-size: var(--et-sankey-chart-font-size);
42
+ line-height: 1.4;
43
+ color: var(--et-surface-color-solid, currentColor);
44
+
45
+ .et-sankey-chart-scroller {
46
+ overflow-x: auto;
47
+ padding-block: 0.7em;
48
+ }
49
+
50
+ .et-sankey-chart-plot {
51
+ position: relative;
52
+ min-inline-size: var(--et-sankey-chart-min-width);
53
+ }
54
+
55
+ &:where([data-direction='vertical']) .et-sankey-chart-plot {
56
+ min-inline-size: 0;
57
+ }
58
+
59
+ .et-sankey-chart-svg {
60
+ display: block;
61
+ overflow: visible;
62
+ }
63
+
64
+ .et-sankey-chart-labels {
65
+ position: absolute;
66
+ inset: 0;
67
+ pointer-events: none;
68
+ animation: et-sankey-chart-fade var(--et-sankey-chart-enter-duration) ease-out backwards;
69
+ }
70
+
71
+ .et-sankey-chart-label {
72
+ position: absolute;
73
+ inset-block-start: var(--_et-sankey-chart-label-y);
74
+ inset-inline-start: var(--_et-sankey-chart-label-x);
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ white-space: nowrap;
78
+ translate: 0 -50%;
79
+ text-shadow:
80
+ 0 0 2px var(--et-surface-background-solid, transparent),
81
+ 0 0 4px var(--et-surface-background-solid, transparent);
82
+
83
+ &:where([data-side='start']) {
84
+ translate: -100% -50%;
85
+ text-align: end;
86
+ }
87
+
88
+ &:where([data-side='center']) {
89
+ box-sizing: border-box;
90
+ padding: 1px 6px;
91
+ border: 1px solid var(--et-surface-border-solid, currentColor);
92
+ border-radius: 4px;
93
+ background: var(--et-surface-background-solid, transparent);
94
+ text-shadow: none;
95
+ translate: -50% -50%;
96
+ }
97
+ }
98
+
99
+ &:where([data-direction='vertical']) .et-sankey-chart-label {
100
+ translate: -50% 0;
101
+ text-align: center;
102
+
103
+ &:where([data-side='start']) {
104
+ translate: -50% -100%;
105
+ }
106
+
107
+ &:where([data-side='center']) {
108
+ translate: -50% -50%;
109
+ }
110
+ }
111
+ }
112
+
113
+ .et-sankey-chart-node {
114
+ outline: none;
115
+
116
+ .et-sankey-chart-node-target {
117
+ fill: transparent;
118
+ stroke: transparent;
119
+ stroke-width: 2px;
120
+ }
121
+
122
+ .et-sankey-chart-node-mark {
123
+ fill: color-mix(
124
+ in oklab,
125
+ var(--et-theme-color-primary-solid, currentColor) var(--_et-chart-accent-mix, 100%),
126
+ var(--et-surface-background-solid, transparent)
127
+ );
128
+ animation: et-sankey-chart-fade var(--et-sankey-chart-enter-duration) ease-out backwards;
129
+ }
130
+
131
+ &:where([data-active]) .et-sankey-chart-node-target {
132
+ fill: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 8%, transparent);
133
+ }
134
+
135
+ &:focus-visible .et-sankey-chart-node-target {
136
+ stroke: var(--et-theme-color-primary-solid, currentColor);
137
+ }
138
+ }
139
+
140
+ .et-sankey-chart-link {
141
+ outline: none;
142
+
143
+ .et-sankey-chart-link-mark {
144
+ fill: color-mix(
145
+ in oklab,
146
+ var(--et-theme-color-primary-solid, currentColor) var(--_et-chart-accent-mix, 100%),
147
+ var(--et-surface-background-solid, transparent)
148
+ );
149
+ fill-opacity: var(--et-sankey-chart-link-opacity);
150
+ stroke: transparent;
151
+ stroke-width: 4px;
152
+ transition: fill-opacity 150ms ease-out;
153
+ animation: et-sankey-chart-fade var(--et-sankey-chart-enter-duration) ease-out
154
+ calc(var(--et-sankey-chart-enter-duration) / 2) backwards;
155
+ }
156
+
157
+ .et-sankey-chart-link-anchor {
158
+ fill: none;
159
+ pointer-events: none;
160
+ }
161
+
162
+ &:focus-visible .et-sankey-chart-link-mark {
163
+ stroke: var(--et-theme-color-primary-solid, currentColor);
164
+ stroke-width: 2px;
165
+ }
166
+ }
167
+
168
+ .et-sankey-chart-svg:where([data-highlight]) .et-sankey-chart-link {
169
+ .et-sankey-chart-link-mark {
170
+ fill-opacity: var(--et-sankey-chart-link-dim-opacity);
171
+ }
172
+
173
+ &:where([data-highlighted]) .et-sankey-chart-link-mark {
174
+ fill-opacity: var(--et-sankey-chart-link-highlight-opacity);
175
+ }
176
+ }
177
+
178
+ .et-sankey-chart-tooltip {
179
+ display: flex;
180
+ flex-wrap: wrap;
181
+ align-items: baseline;
182
+ gap: 4px 8px;
183
+
184
+ .et-sankey-chart-tooltip-total {
185
+ opacity: 0.75;
186
+ }
187
+
188
+ .et-sankey-chart-tooltip-value {
189
+ font-variant-numeric: tabular-nums;
190
+ }
191
+ }
192
+
193
+ .et-sankey-chart-link-tooltip {
194
+ display: flex;
195
+ flex-direction: column;
196
+ gap: 2px;
197
+
198
+ .et-sankey-chart-tooltip-hint {
199
+ color: var(--et-surface-color-muted-solid, currentColor);
200
+ white-space: nowrap;
201
+ }
202
+ }
203
+
204
+ @keyframes et-sankey-chart-fade {
205
+ from {
206
+ opacity: 0;
207
+ }
208
+ }
209
+
210
+ @media (prefers-reduced-motion: reduce) {
211
+ .et-sankey-chart .et-sankey-chart-labels,
212
+ .et-sankey-chart-node .et-sankey-chart-node-mark,
213
+ .et-sankey-chart-link .et-sankey-chart-link-mark {
214
+ animation: none;
215
+ }
216
+
217
+ .et-sankey-chart-link .et-sankey-chart-link-mark {
218
+ transition: none;
219
+ }
220
+ }
221
+ }