@ethlete/components 1.0.0-next.69 → 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 +29 -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 +823 -105
  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 +172 -7
@@ -0,0 +1,112 @@
1
+ @layer components {
2
+ .et-scrollable-masks {
3
+ grid-row: 1 / 1;
4
+ grid-column: 1 / 1;
5
+ pointer-events: none;
6
+
7
+ .et-scrollable-mask {
8
+ position: absolute;
9
+ opacity: 0;
10
+ }
11
+ }
12
+
13
+ .et-scrollable {
14
+ &[direction='horizontal'],
15
+ &:not([direction]) {
16
+ & .et-scrollable-mask {
17
+ inline-size: var(--mask-size);
18
+ block-size: 100%;
19
+ }
20
+
21
+ & .et-scrollable-mask--start {
22
+ inset-block-start: 0;
23
+ inset-inline: 0 0;
24
+ background: linear-gradient(to right, var(--_mask-color) 0, transparent 100%);
25
+ }
26
+
27
+ & .et-scrollable-mask--end {
28
+ inset-block-start: 0;
29
+ inset-inline: calc(100% - var(--mask-size)) 100%;
30
+ background: linear-gradient(to left, var(--_mask-color) 0, transparent 100%);
31
+ }
32
+ }
33
+
34
+ &[direction='vertical'] {
35
+ & .et-scrollable-mask {
36
+ block-size: var(--mask-size);
37
+ inline-size: 100%;
38
+ }
39
+
40
+ & .et-scrollable-mask--start {
41
+ inset-block-start: 0;
42
+ inset-inline-start: 0;
43
+ background: linear-gradient(to bottom, var(--_mask-color) 0, transparent 100%);
44
+ }
45
+
46
+ & .et-scrollable-mask--end {
47
+ inset-block-end: 0;
48
+ inset-inline-start: 0;
49
+ background: linear-gradient(to top, var(--_mask-color) 0, transparent 100%);
50
+ }
51
+ }
52
+
53
+ &.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-start) {
54
+ & .et-scrollable-masks .et-scrollable-mask--start {
55
+ opacity: 1;
56
+ transform: translate(0);
57
+ }
58
+ }
59
+
60
+ &.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-end) {
61
+ & .et-scrollable-masks .et-scrollable-mask--end {
62
+ opacity: 1;
63
+ transform: translate(0);
64
+ }
65
+ }
66
+
67
+ &.et-scrollable--can-animate.et-scrollable--can-scroll {
68
+ & .et-scrollable-mask {
69
+ transition: opacity 300ms var(--ease-5);
70
+ }
71
+ }
72
+
73
+ &[mask-variant='border'] {
74
+ & .et-scrollable-mask {
75
+ background: none;
76
+ }
77
+
78
+ &[direction='horizontal'],
79
+ &:not([direction]) {
80
+ & .et-scrollable-mask {
81
+ inline-size: 0;
82
+ block-size: 100%;
83
+ border-inline-start: 1px solid var(--et-surface-border-solid, #404040);
84
+ }
85
+
86
+ & .et-scrollable-mask--start {
87
+ inset-inline: 0;
88
+ }
89
+
90
+ & .et-scrollable-mask--end {
91
+ inset-inline: auto 0;
92
+ }
93
+ }
94
+
95
+ &[direction='vertical'] {
96
+ & .et-scrollable-mask {
97
+ block-size: 0;
98
+ inline-size: 100%;
99
+ border-block-start: 1px solid var(--et-surface-border-solid, #404040);
100
+ }
101
+
102
+ & .et-scrollable-mask--start {
103
+ inset-block-start: 0;
104
+ }
105
+
106
+ & .et-scrollable-mask--end {
107
+ inset-block: auto 0;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,94 @@
1
+ @layer components {
2
+ .et-scrollable-navigation {
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ }
7
+
8
+ .et-scrollable-navigation-item {
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ border: none;
13
+ padding: 0;
14
+ inline-size: 20px;
15
+ block-size: 20px;
16
+ border-radius: 50%;
17
+ cursor: pointer;
18
+ background-color: transparent;
19
+
20
+ &.et-scrollable-navigation-item--active::after {
21
+ background-color: var(--et-theme-color-primary, #c6c6c6);
22
+ }
23
+
24
+ &::after {
25
+ content: '';
26
+ display: block;
27
+ inline-size: 50%;
28
+ block-size: 50%;
29
+ border-radius: 50%;
30
+ background-color: var(--et-surface-interaction-solid, #4b4b4b);
31
+ opacity: 0.3;
32
+ transform: scale(0);
33
+ }
34
+
35
+ &[active-offset='0']::after {
36
+ opacity: 1;
37
+ transform: scale(1);
38
+ }
39
+ &[active-offset='1']::after {
40
+ opacity: 0.6;
41
+ transform: scale(0.75);
42
+ }
43
+ &[active-offset='2']::after {
44
+ opacity: 0.45;
45
+ transform: scale(0.6);
46
+ }
47
+ &[active-offset='3']::after {
48
+ opacity: 0.35;
49
+ transform: scale(0.5);
50
+ }
51
+ &[active-offset='4']::after {
52
+ opacity: 0.3;
53
+ transform: scale(0.4);
54
+ }
55
+ }
56
+
57
+ .et-scrollable-progress-bar {
58
+ overflow: hidden;
59
+ max-inline-size: 100px;
60
+ display: flex;
61
+ align-items: center;
62
+
63
+ .et-scrollable-dots-container {
64
+ display: flex;
65
+ flex-wrap: nowrap;
66
+ }
67
+ }
68
+
69
+ .et-scrollable {
70
+ &[direction='vertical'] {
71
+ & .et-scrollable-progress-bar {
72
+ flex-direction: column;
73
+ max-block-size: 100px;
74
+ }
75
+
76
+ & .et-scrollable-dots-container {
77
+ flex-direction: column;
78
+ }
79
+ }
80
+
81
+ &.et-scrollable--can-animate {
82
+ & .et-scrollable-dots-container {
83
+ transition: transform 0.3s var(--ease-5);
84
+ }
85
+
86
+ & .et-scrollable-navigation-item::after {
87
+ transition:
88
+ background-color 200ms linear,
89
+ opacity 200ms linear,
90
+ transform 200ms linear;
91
+ }
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,192 @@
1
+ @layer components {
2
+ :where(.et-scrollable) {
3
+ --mask-size: 25px;
4
+ --_mask-color: var(--et-surface-background-solid, #121212);
5
+ --darken-non-intersecting-items-amount: 0.75;
6
+ --_auto-size: min-content;
7
+
8
+ display: block;
9
+ position: relative;
10
+ }
11
+
12
+ .et-scrollable {
13
+ & .et-scrollable-wrapper {
14
+ display: grid;
15
+ position: relative;
16
+ block-size: 100%;
17
+ inline-size: 100%;
18
+ }
19
+
20
+ &[item-size='same'] {
21
+ --_auto-size: 1fr;
22
+ }
23
+
24
+ &[item-size='half'] {
25
+ --_auto-size: calc((100% - var(--item-gap)) / 2);
26
+ }
27
+
28
+ &[item-size='third'] {
29
+ --_auto-size: calc((100% - (var(--item-gap) * 2)) / 3);
30
+ }
31
+
32
+ &[item-size='quarter'] {
33
+ --_auto-size: calc((100% - (var(--item-gap) * 3)) / 4);
34
+ }
35
+
36
+ &[item-size='full'] {
37
+ --_auto-size: 100%;
38
+ }
39
+
40
+ &[render-scrollbars='false'],
41
+ &:not([render-scrollbars]) {
42
+ & .et-scrollable-container {
43
+ scrollbar-width: none;
44
+
45
+ &::-webkit-scrollbar {
46
+ display: none;
47
+ }
48
+ }
49
+ }
50
+
51
+ &:where([snap]) {
52
+ --_et-scrollable-snap-strictness: mandatory;
53
+ --_et-scrollable-snap-align: start;
54
+ --_et-scrollable-snap-margin: var(--_et-scrollable-scroll-margin, 0px);
55
+
56
+ &:where([snap-origin='auto']) {
57
+ --_et-scrollable-snap-strictness: proximity;
58
+ }
59
+
60
+ &:where([snap-origin='center']) {
61
+ --_et-scrollable-snap-align: center;
62
+ --_et-scrollable-snap-margin: 0px;
63
+ }
64
+
65
+ &:where([snap-origin='end']) {
66
+ --_et-scrollable-snap-align: end;
67
+ }
68
+
69
+ & .et-scrollable-container > *:not([etScrollableIgnoreChild]) {
70
+ scroll-snap-align: var(--_et-scrollable-snap-align);
71
+ scroll-margin-inline: var(--_et-scrollable-snap-margin);
72
+ scroll-margin-block: var(--_et-scrollable-snap-margin);
73
+ }
74
+ }
75
+
76
+ &[direction='horizontal'],
77
+ &:not([direction]) {
78
+ & .et-scrollable-container {
79
+ grid-auto-flow: column;
80
+ grid-auto-columns: var(--_auto-size);
81
+ overflow-x: auto;
82
+ overflow-y: hidden;
83
+
84
+ /* Containment is scoped to the axis this rail actually scrolls. `overflow-y: hidden` still makes
85
+ the container a scroll container on the block axis, so a wheel or a flick latches onto it there
86
+ even though the user cannot move it — containing that axis too would swallow the gesture instead
87
+ of letting the page take it. */
88
+ overscroll-behavior-x: contain;
89
+
90
+ & > :nth-child(2) {
91
+ grid-column: 1 / 1;
92
+ grid-row: 1 / 1;
93
+ }
94
+
95
+ & > :nth-last-child(2) {
96
+ grid-column: var(--item-count) / var(--item-count);
97
+ grid-row: 1 / 1;
98
+ }
99
+ }
100
+
101
+ &:where([snap]:not([snap-suspended])) .et-scrollable-container {
102
+ scroll-snap-type: x var(--_et-scrollable-snap-strictness);
103
+ }
104
+
105
+ & .et-scroll-observer-first-element,
106
+ & .et-scroll-observer-last-element {
107
+ block-size: 100%;
108
+ inline-size: 1px;
109
+ }
110
+
111
+ & .et-scroll-observer-first-element {
112
+ margin-inline-start: 3px;
113
+ grid-column: 1 / 1;
114
+ grid-row: 1 / 1;
115
+ }
116
+
117
+ & .et-scroll-observer-last-element {
118
+ margin-inline-end: 3px;
119
+ grid-column: var(--item-count) / var(--item-count);
120
+ grid-row: 1 / 1;
121
+ justify-self: end;
122
+ }
123
+ }
124
+
125
+ &[direction='vertical'] {
126
+ & .et-scrollable-container {
127
+ grid-auto-flow: row;
128
+ grid-auto-rows: var(--_auto-size);
129
+ overflow-x: hidden;
130
+ overflow-y: auto;
131
+ overscroll-behavior-y: contain;
132
+
133
+ & > :nth-child(2) {
134
+ grid-row: 1 / 1;
135
+ grid-column: 1 / 1;
136
+ }
137
+
138
+ & > :nth-last-child(2) {
139
+ grid-row: var(--item-count) / var(--item-count);
140
+ grid-column: 1 / 1;
141
+ }
142
+ }
143
+
144
+ &:where([snap]:not([snap-suspended])) .et-scrollable-container {
145
+ scroll-snap-type: y var(--_et-scrollable-snap-strictness);
146
+ }
147
+
148
+ & .et-scroll-observer-first-element,
149
+ & .et-scroll-observer-last-element {
150
+ inline-size: 100%;
151
+ block-size: 1px;
152
+ }
153
+
154
+ & .et-scroll-observer-first-element {
155
+ margin-block-start: 3px;
156
+ grid-row: 1 / 1;
157
+ grid-column: 1 / 1;
158
+ }
159
+
160
+ & .et-scroll-observer-last-element {
161
+ margin-block-end: 3px;
162
+ grid-row: var(--item-count) / var(--item-count);
163
+ grid-column: 1 / 1;
164
+ align-self: end;
165
+ }
166
+ }
167
+
168
+ & .et-scrollable-container {
169
+ display: grid;
170
+ position: relative;
171
+ grid-row: 1 / 1;
172
+ grid-column: 1 / 1;
173
+ }
174
+
175
+ & .et-scroll-observer-first-element,
176
+ & .et-scroll-observer-last-element {
177
+ pointer-events: none;
178
+ }
179
+
180
+ &.et-scrollable--can-animate.et-scrollable--darken-non-intersecting-items {
181
+ & .et-scrollable-item {
182
+ transition: opacity 300ms var(--ease-5);
183
+ }
184
+ }
185
+
186
+ &.et-scrollable--darken-non-intersecting-items {
187
+ & .et-scrollable-item--not-intersecting {
188
+ opacity: var(--darken-non-intersecting-items-amount);
189
+ }
190
+ }
191
+ }
192
+ }
@@ -0,0 +1,110 @@
1
+ @layer components {
2
+ @property --et-scrollbar-thickness {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 12px;
6
+ }
7
+
8
+ @property --et-scrollbar-thumb-thickness {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 6px;
12
+ }
13
+
14
+ @property --et-scrollbar-thumb-radius {
15
+ syntax: '<length-percentage>';
16
+ inherits: true;
17
+ initial-value: 999px;
18
+ }
19
+
20
+ @property --et-scrollbar-fade-duration {
21
+ syntax: '<time>';
22
+ inherits: true;
23
+ initial-value: 150ms;
24
+ }
25
+
26
+ /* Set by `ScrollbarDirective` on the container it mirrors. */
27
+ .et-scrollbar-host {
28
+ scrollbar-width: none;
29
+
30
+ &::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+ }
34
+
35
+ .et-scrollbar {
36
+ position: absolute;
37
+ z-index: 1;
38
+ opacity: 0;
39
+ transition: opacity var(--et-scrollbar-fade-duration) ease;
40
+ pointer-events: none;
41
+ touch-action: none;
42
+ -webkit-user-select: none;
43
+ user-select: none;
44
+
45
+ /* The thumb offset is a distance from the start edge, which is the right edge in a right-to-left
46
+ container. Mirroring the target's direction here is what maps it back to a physical side, and
47
+ it has to be read off the target: the scrollbar can sit outside the subtree that sets it. */
48
+ &:where([data-direction='rtl']) {
49
+ direction: rtl;
50
+ }
51
+
52
+ &:where([data-orientation='vertical']) {
53
+ inset-block: 0;
54
+ inset-inline-end: 0;
55
+ inline-size: var(--et-scrollbar-thickness);
56
+ }
57
+
58
+ &:where([data-orientation='horizontal']) {
59
+ inset-inline: 0;
60
+ inset-block-end: 0;
61
+ block-size: var(--et-scrollbar-thickness);
62
+ }
63
+
64
+ &:where(.et-scrollbar--visible) {
65
+ opacity: 1;
66
+ pointer-events: auto;
67
+ }
68
+
69
+ & .et-scrollbar-thumb {
70
+ position: absolute;
71
+ transition: background-color var(--et-scrollbar-fade-duration) ease;
72
+ border-radius: var(--et-scrollbar-thumb-radius);
73
+ background-color: var(
74
+ --et-scrollbar-thumb-color,
75
+ color-mix(in srgb, var(--et-surface-interaction-solid, gray) 35%, transparent)
76
+ );
77
+ }
78
+
79
+ &:where([data-orientation='vertical']) .et-scrollbar-thumb {
80
+ inset-block-start: var(--_et-scrollbar-thumb-offset, 0px);
81
+ inset-inline: 0;
82
+ block-size: var(--_et-scrollbar-thumb-size, 0px);
83
+ inline-size: var(--et-scrollbar-thumb-thickness);
84
+ margin-inline: auto;
85
+ }
86
+
87
+ &:where([data-orientation='horizontal']) .et-scrollbar-thumb {
88
+ inset-block: 0;
89
+ inset-inline-start: var(--_et-scrollbar-thumb-offset, 0px);
90
+ block-size: var(--et-scrollbar-thumb-thickness);
91
+ inline-size: var(--_et-scrollbar-thumb-size, 0px);
92
+ margin-block: auto;
93
+ }
94
+
95
+ & .et-scrollbar-thumb:hover,
96
+ &.et-scrollbar--dragging .et-scrollbar-thumb {
97
+ background-color: var(
98
+ --et-scrollbar-thumb-active-color,
99
+ color-mix(in srgb, var(--et-surface-interaction-solid, gray) 60%, transparent)
100
+ );
101
+ }
102
+ }
103
+
104
+ @media (prefers-reduced-motion: reduce) {
105
+ .et-scrollbar,
106
+ .et-scrollbar .et-scrollbar-thumb {
107
+ transition: none;
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,108 @@
1
+ @layer components {
2
+ /* `syntax: '*'` with no initial-value, so the fallback at each use site resolves `1em` against the
3
+ element's own font. A registered `<length>` cannot carry a relative initial-value - the whole
4
+ @property rule is dropped - which left this token unregistered and every unsized bone at
5
+ `block-size: auto`. */
6
+ @property --et-skeleton-size {
7
+ syntax: '*';
8
+ inherits: true;
9
+ }
10
+
11
+ @property --et-skeleton-radius {
12
+ syntax: '<length>';
13
+ inherits: true;
14
+ initial-value: 4px;
15
+ }
16
+
17
+ @property --et-skeleton-gap {
18
+ syntax: '<length>';
19
+ inherits: true;
20
+ initial-value: 8px;
21
+ }
22
+
23
+ @property --et-skeleton-duration {
24
+ syntax: '<time>';
25
+ inherits: true;
26
+ initial-value: 1400ms;
27
+ }
28
+
29
+ .et-skeleton {
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: var(--et-skeleton-gap);
33
+ /* The pointer says "not yet" too, which is cheaper than disabling everything inside. */
34
+ cursor: progress;
35
+ }
36
+
37
+ /* The bone. A neutral tint mixed over whatever surface it sits on — never a hardcoded grey, so it
38
+ reads correctly on every registered surface and elevation. */
39
+ .et-skeleton-item {
40
+ display: block;
41
+ position: relative;
42
+ overflow: hidden;
43
+ inline-size: 100%;
44
+ block-size: var(--et-skeleton-size, 1em);
45
+ border-radius: var(--et-skeleton-radius);
46
+ background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent);
47
+ }
48
+
49
+ /* `text` is a line of text's height rather than a fixed px, so a bar sits in running copy without
50
+ changing the layout around it. */
51
+ /* A text bone stands in for words, so it flows with them: inline-block on the text baseline rather
52
+ than a block that pushes the sentence apart. Inside a flex parent (an `et-skeleton-text` line, a
53
+ table cell) it is blockified anyway, so this costs those cases nothing. */
54
+ .et-skeleton-item:where([data-shape='text']) {
55
+ display: inline-block;
56
+ vertical-align: middle;
57
+ block-size: 0.85em;
58
+ /* Fill the line box the replaced text would occupy, so a row of them keeps its rhythm. */
59
+ margin-block: calc((1.4em - 0.85em) / 2);
60
+ }
61
+
62
+ .et-skeleton-item:where([data-shape='circle']) {
63
+ inline-size: var(--et-skeleton-size, 1em);
64
+ block-size: var(--et-skeleton-size, 1em);
65
+ flex: none;
66
+ border-radius: 50%;
67
+ }
68
+
69
+ .et-skeleton-item:where([data-shape='rect']) {
70
+ border-radius: var(--et-skeleton-radius);
71
+ }
72
+
73
+ .et-skeleton-text {
74
+ display: flex;
75
+ flex-direction: column;
76
+ gap: var(--et-skeleton-gap);
77
+ inline-size: 100%;
78
+ }
79
+
80
+ /* The shimmer: a highlight sweeping across the bone. Only inside an animated container, so a single
81
+ item can't animate on its own by accident, and only where motion is welcome — under reduced
82
+ motion the sweep is omitted rather than paused, leaving a static placeholder. */
83
+ @media (prefers-reduced-motion: no-preference) {
84
+ .et-skeleton--animated .et-skeleton-item::after {
85
+ content: '';
86
+ position: absolute;
87
+ inset-block: 0;
88
+ inset-inline: 0;
89
+ background: linear-gradient(
90
+ 90deg,
91
+ transparent,
92
+ color-mix(in srgb, var(--et-surface-interaction-solid, gray) 16%, transparent),
93
+ transparent
94
+ );
95
+ animation: et-skeleton-sweep var(--et-skeleton-duration) ease-in-out infinite;
96
+ }
97
+ }
98
+
99
+ @keyframes et-skeleton-sweep {
100
+ from {
101
+ transform: translateX(-100%);
102
+ }
103
+
104
+ to {
105
+ transform: translateX(100%);
106
+ }
107
+ }
108
+ }