@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,349 @@
1
+ @layer components {
2
+ @property --et-color-picker-area-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 240px;
6
+ }
7
+
8
+ @property --et-color-picker-font-size {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 14px;
12
+ }
13
+
14
+ @property --et-color-picker-track-size {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 12px;
18
+ }
19
+
20
+ @property --et-color-picker-thumb-size {
21
+ syntax: '<length>';
22
+ inherits: true;
23
+ initial-value: 12px;
24
+ }
25
+
26
+ .et-overlay.et-with-default-animation.et-overlay--color-picker {
27
+ &.et-animation-enter-from,
28
+ &.et-animation-leave-to {
29
+ opacity: 0;
30
+ }
31
+
32
+ &.et-animation-enter-active {
33
+ transition: opacity 140ms ease;
34
+ }
35
+
36
+ &.et-animation-leave-active {
37
+ transition: opacity 100ms ease;
38
+ }
39
+ }
40
+
41
+ .et-color-picker-panel {
42
+ display: block;
43
+ box-sizing: border-box;
44
+ max-inline-size: calc(100vw - 24px);
45
+ overflow: hidden;
46
+ padding: 12px;
47
+ border-radius: 10px;
48
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
49
+ background: var(--et-surface-background-solid, rgb(32 32 32));
50
+ color: var(--et-surface-color-solid, rgb(244 244 245));
51
+ box-shadow: var(--et-anchored-panel-shadow, 0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16));
52
+ /* the pane is detached from the field, so it inherits the root font size (10px in this
53
+ workspace) rather than the field's - it has to name its own */
54
+ font-size: var(--et-color-picker-font-size);
55
+
56
+ &.et-color-picker-panel--resizing {
57
+ overflow: clip;
58
+ }
59
+ }
60
+
61
+ .et-color-picker-panel-body {
62
+ display: grid;
63
+ /* minmax(0, …), not the implicit auto: an auto track never shrinks below the footer's
64
+ min-content width, which would push the surfaces out past the pane - where a pointer
65
+ release counts as "outside" and closes the picker */
66
+ grid-template-columns: minmax(0, 1fr);
67
+ /* at least half a thumb: a thumb at an axis end has its centre on the edge, so it reaches
68
+ half its own size into whatever comes next */
69
+ gap: 12px;
70
+ inline-size: var(--et-color-picker-area-size);
71
+ }
72
+
73
+ /* pinned LTR: the gradients below paint physically and the pointer reading in
74
+ `internals/color-picker-engine.ts` is deliberately not mirrored, so a mirrored surface would
75
+ put the thumbs' `inset-inline-start` and the range inputs' arrow keys at odds with both */
76
+ .et-color-picker-area,
77
+ .et-color-picker-track {
78
+ direction: ltr;
79
+ }
80
+
81
+ .et-color-picker-area {
82
+ position: relative;
83
+ aspect-ratio: 1;
84
+ border-radius: 8px;
85
+ background-image:
86
+ linear-gradient(to top, #000, transparent),
87
+ linear-gradient(to right, #fff, var(--_et-color-picker-area-hue, #f00));
88
+ cursor: crosshair;
89
+
90
+ &:has(.et-color-picker-channel:focus-visible) {
91
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
92
+ outline-offset: 2px;
93
+ }
94
+ }
95
+
96
+ .et-color-picker-track {
97
+ position: relative;
98
+ block-size: var(--et-color-picker-track-size);
99
+ border-radius: 999px;
100
+
101
+ &:has(.et-color-picker-channel:focus-visible) {
102
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
103
+ outline-offset: 2px;
104
+ }
105
+ }
106
+
107
+ .et-color-picker-track--hue {
108
+ background-image: linear-gradient(
109
+ to right,
110
+ hsl(0 100% 50%),
111
+ hsl(60 100% 50%),
112
+ hsl(120 100% 50%),
113
+ hsl(180 100% 50%),
114
+ hsl(240 100% 50%),
115
+ hsl(300 100% 50%),
116
+ hsl(360 100% 50%)
117
+ );
118
+ }
119
+
120
+ .et-color-picker-track--alpha {
121
+ --_et-color-picker-checker: color-mix(in srgb, currentColor 18%, transparent);
122
+
123
+ background-image:
124
+ linear-gradient(to right, transparent, var(--_et-color-picker-alpha-color, #000)),
125
+ linear-gradient(
126
+ 45deg,
127
+ var(--_et-color-picker-checker) 25%,
128
+ transparent 25% 75%,
129
+ var(--_et-color-picker-checker) 75%
130
+ ),
131
+ linear-gradient(
132
+ 45deg,
133
+ var(--_et-color-picker-checker) 25%,
134
+ transparent 25% 75%,
135
+ var(--_et-color-picker-checker) 75%
136
+ );
137
+ background-size:
138
+ 100% 100%,
139
+ 8px 8px,
140
+ 8px 8px;
141
+ background-position:
142
+ 0 0,
143
+ 0 0,
144
+ 4px 4px;
145
+ }
146
+
147
+ /* the ring is white over a dark halo, not a theme token: a thumb sits on the color the user is
148
+ choosing, so it has to stay legible over every hue a token could not anticipate */
149
+ .et-color-picker-area-thumb,
150
+ .et-color-picker-track-thumb {
151
+ position: absolute;
152
+ inline-size: var(--et-color-picker-thumb-size);
153
+ block-size: var(--et-color-picker-thumb-size);
154
+ border-radius: 50%;
155
+ border: 2px solid #fff;
156
+ box-shadow: 0 0 0 1px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.35);
157
+ pointer-events: none;
158
+ }
159
+
160
+ .et-color-picker-area-thumb {
161
+ translate: -50% 50%;
162
+ }
163
+
164
+ .et-color-picker-track-thumb {
165
+ inset-block-start: 50%;
166
+ translate: -50% -50%;
167
+ }
168
+
169
+ .et-color-picker-channel {
170
+ position: absolute;
171
+ inset: 0;
172
+ inline-size: 100%;
173
+ block-size: 100%;
174
+ margin: 0;
175
+ padding: 0;
176
+ appearance: none;
177
+ background: none;
178
+ border: none;
179
+ opacity: 0;
180
+ cursor: inherit;
181
+
182
+ /* a zero-width thumb makes the native value map edge to edge, so the visible thumb above it can
183
+ sit at the same percentage without drifting half a thumb out at either end */
184
+ &::-webkit-slider-thumb {
185
+ appearance: none;
186
+ inline-size: 0;
187
+ block-size: 100%;
188
+ }
189
+
190
+ &::-moz-range-thumb {
191
+ inline-size: 0;
192
+ block-size: 100%;
193
+ border: none;
194
+ }
195
+ }
196
+
197
+ .et-color-picker-area .et-color-picker-channel {
198
+ pointer-events: none;
199
+ }
200
+
201
+ .et-color-picker-swatches {
202
+ display: flex;
203
+ flex-wrap: wrap;
204
+ gap: 6px;
205
+ }
206
+
207
+ .et-color-picker-swatch {
208
+ inline-size: 20px;
209
+ block-size: 20px;
210
+ padding: 0;
211
+ border-radius: 4px;
212
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
213
+ cursor: pointer;
214
+
215
+ &[aria-pressed='true'] {
216
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
217
+ outline-offset: 1px;
218
+ }
219
+
220
+ &:disabled {
221
+ cursor: default;
222
+ }
223
+ }
224
+
225
+ .et-color-picker-preview {
226
+ --_et-color-picker-checker: color-mix(in srgb, currentColor 18%, transparent);
227
+ --_et-color-picker-preview-color: transparent;
228
+
229
+ flex: none;
230
+ inline-size: 20px;
231
+ block-size: 20px;
232
+ border-radius: 4px;
233
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
234
+ background-image:
235
+ linear-gradient(var(--_et-color-picker-preview-color), var(--_et-color-picker-preview-color)),
236
+ linear-gradient(
237
+ 45deg,
238
+ var(--_et-color-picker-checker) 25%,
239
+ transparent 25% 75%,
240
+ var(--_et-color-picker-checker) 75%
241
+ ),
242
+ linear-gradient(
243
+ 45deg,
244
+ var(--_et-color-picker-checker) 25%,
245
+ transparent 25% 75%,
246
+ var(--_et-color-picker-checker) 75%
247
+ );
248
+ background-size:
249
+ 100% 100%,
250
+ 8px 8px,
251
+ 8px 8px;
252
+ background-position:
253
+ 0 0,
254
+ 0 0,
255
+ 4px 4px;
256
+ }
257
+
258
+ .et-color-picker-value {
259
+ flex: 1;
260
+ min-inline-size: 0;
261
+ }
262
+
263
+ .et-color-picker-notation {
264
+ white-space: nowrap;
265
+ }
266
+
267
+ button.et-color-picker-notation {
268
+ text-decoration: underline dotted from-font;
269
+ text-underline-offset: 3px;
270
+
271
+ &:focus-visible {
272
+ color: var(--et-surface-color-solid, rgb(244 244 245));
273
+ }
274
+
275
+ @media (hover: hover) {
276
+ &:hover {
277
+ color: var(--et-surface-color-solid, rgb(244 244 245));
278
+ }
279
+ }
280
+
281
+ &:disabled {
282
+ cursor: default;
283
+ text-decoration: none;
284
+ }
285
+ }
286
+
287
+ .et-color-picker-eyedropper {
288
+ display: grid;
289
+ flex: none;
290
+ place-items: center;
291
+ inline-size: 24px;
292
+ block-size: 24px;
293
+ border-radius: 4px;
294
+
295
+ i {
296
+ inline-size: 16px;
297
+ block-size: 16px;
298
+ }
299
+
300
+ &:disabled {
301
+ cursor: default;
302
+ }
303
+ }
304
+
305
+ .et-overlay.et-color-picker-sheet {
306
+ --et-color-picker-area-size: min(320px, calc(100vw - 48px));
307
+ --et-color-picker-track-size: 16px;
308
+ --et-color-picker-thumb-size: 20px;
309
+
310
+ border-radius: 16px 16px 0 0;
311
+
312
+ .et-overlay-container-drag-handle {
313
+ display: none;
314
+ }
315
+
316
+ .et-color-picker-panel {
317
+ max-inline-size: none;
318
+ border: none;
319
+ border-radius: 0;
320
+ box-shadow: none;
321
+ padding-block: 8px max(16px, env(safe-area-inset-bottom));
322
+
323
+ &::before {
324
+ content: '';
325
+ display: block;
326
+ inline-size: 32px;
327
+ block-size: 4px;
328
+ margin-inline: auto;
329
+ margin-block-end: 12px;
330
+ border-radius: 999px;
331
+ background: var(--et-surface-border-solid, rgb(255 255 255 / 0.2));
332
+ }
333
+ }
334
+
335
+ .et-color-picker-panel-body {
336
+ margin-inline: auto;
337
+ }
338
+
339
+ .et-color-picker-swatch {
340
+ inline-size: 28px;
341
+ block-size: 28px;
342
+ }
343
+
344
+ .et-color-picker-eyedropper {
345
+ inline-size: 40px;
346
+ block-size: 40px;
347
+ }
348
+ }
349
+ }
@@ -0,0 +1,35 @@
1
+ @layer components {
2
+ et-date-input {
3
+ display: flex;
4
+ align-items: center;
5
+ flex: 1;
6
+ min-inline-size: 0;
7
+ color: inherit;
8
+
9
+ .et-date-input-field {
10
+ flex: 1;
11
+ min-inline-size: 0;
12
+ border: none;
13
+ outline: none;
14
+ background: transparent;
15
+ font: inherit;
16
+ color: inherit;
17
+ padding: 0;
18
+ caret-color: var(--et-theme-color-primary-solid, currentColor);
19
+ font-variant-numeric: tabular-nums;
20
+
21
+ &::placeholder {
22
+ color: color-mix(in srgb, currentColor 46%, transparent);
23
+ }
24
+
25
+ &:disabled {
26
+ cursor: not-allowed;
27
+ }
28
+ }
29
+
30
+ &[data-mixed] .et-date-input-field::placeholder {
31
+ font-style: italic;
32
+ color: color-mix(in srgb, currentColor 72%, transparent);
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,115 @@
1
+ @layer components {
2
+ .et-overlay.et-with-default-animation.et-overlay--date-picker {
3
+ &.et-animation-enter-from,
4
+ &.et-animation-leave-to {
5
+ opacity: 0;
6
+ }
7
+
8
+ &.et-animation-enter-active {
9
+ transition:
10
+ transform 140ms ease,
11
+ opacity 140ms ease;
12
+ }
13
+
14
+ &.et-animation-leave-active {
15
+ transition:
16
+ transform 100ms ease,
17
+ opacity 100ms ease;
18
+ }
19
+ }
20
+
21
+ .et-overlay--date-picker[data-overlay-placement^='top'] {
22
+ &.et-animation-enter-from,
23
+ &.et-animation-leave-to {
24
+ transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) translateY(0.3rem) !important;
25
+ }
26
+ }
27
+
28
+ .et-overlay--date-picker[data-overlay-placement^='bottom'] {
29
+ &.et-animation-enter-from,
30
+ &.et-animation-leave-to {
31
+ transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
32
+ translateY(-0.3rem) !important;
33
+ }
34
+ }
35
+
36
+ @media (prefers-reduced-motion: reduce) {
37
+ .et-overlay.et-with-default-animation.et-overlay--date-picker {
38
+ &.et-animation-enter-active {
39
+ transition: opacity 140ms ease;
40
+ }
41
+
42
+ &.et-animation-leave-active {
43
+ transition: opacity 100ms ease;
44
+ }
45
+ }
46
+
47
+ .et-overlay--date-picker[data-overlay-placement] {
48
+ &.et-animation-enter-from,
49
+ &.et-animation-leave-to {
50
+ transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) !important;
51
+ }
52
+ }
53
+ }
54
+
55
+ .et-date-picker-panel {
56
+ display: block;
57
+ box-sizing: border-box;
58
+ max-inline-size: calc(100vw - 24px);
59
+ overflow: hidden;
60
+ padding: 12px;
61
+ border-radius: 10px;
62
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
63
+ background: var(--et-surface-background-solid, rgb(32 32 32));
64
+ color: var(--et-surface-color-solid, rgb(244 244 245));
65
+ box-shadow: var(
66
+ --et-date-picker-panel-shadow,
67
+ var(--et-anchored-panel-shadow, 0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16))
68
+ );
69
+
70
+ &.et-date-picker-panel--resizing {
71
+ overflow: clip;
72
+ }
73
+ }
74
+
75
+ .et-overlay.et-date-picker-sheet {
76
+ --et-calendar-cell-size: min(44px, (100vw - 24px) / 7);
77
+ --et-time-picker-ring-size: min(328px, 100vw - 24px);
78
+
79
+ border-radius: 16px 16px 0 0;
80
+
81
+ .et-overlay-container-drag-handle {
82
+ display: none;
83
+ }
84
+
85
+ .et-date-picker-panel {
86
+ max-inline-size: none;
87
+ border: none;
88
+ border-radius: 0;
89
+ box-shadow: none;
90
+ padding-block: 8px max(16px, env(safe-area-inset-bottom));
91
+
92
+ &::before {
93
+ content: '';
94
+ display: block;
95
+ inline-size: 32px;
96
+ block-size: 4px;
97
+ margin-inline: auto;
98
+ margin-block-end: 12px;
99
+ border-radius: 999px;
100
+ background: var(--et-surface-border-solid, rgb(255 255 255 / 0.2));
101
+ }
102
+ }
103
+
104
+ .et-date-picker-panel-body {
105
+ display: grid;
106
+ justify-content: center;
107
+ }
108
+
109
+ /* the tallest case, reserved here and nowhere else: a sheet grows upwards, so a height that
110
+ followed its content would slide the sheet's top edge under the reader's thumb */
111
+ .et-calendar-grid {
112
+ min-block-size: calc(32px + 6 * var(--et-calendar-cell-size));
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,16 @@
1
+ @layer components {
2
+ et-date-range-input {
3
+ --et-range-input-stack-threshold: 13em;
4
+ container: et-date-range-input / inline-size;
5
+
6
+ @container et-date-range-input (inline-size < 13em) {
7
+ .et-date-range-input-field {
8
+ flex-basis: 100%;
9
+ }
10
+
11
+ .et-date-range-input-separator {
12
+ display: none;
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,60 @@
1
+ @layer components {
2
+ @property --et-date-range-presets-gap {
3
+ syntax: '<length>';
4
+ inherits: false;
5
+ initial-value: 2px;
6
+ }
7
+
8
+ .et-date-range-presets-layout {
9
+ display: flex;
10
+ align-items: stretch;
11
+ gap: 12px;
12
+ }
13
+
14
+ .et-date-range-presets {
15
+ display: flex;
16
+ flex-direction: column;
17
+ flex: none;
18
+ gap: var(--et-date-range-presets-gap);
19
+ min-inline-size: 12rem;
20
+ padding-inline-end: 12px;
21
+ border-inline-end: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.08));
22
+
23
+ .et-date-range-preset {
24
+ justify-content: start;
25
+ }
26
+ }
27
+
28
+ .et-overlay.et-date-picker-sheet {
29
+ .et-date-range-presets-layout {
30
+ flex-direction: column;
31
+ align-items: center;
32
+ min-inline-size: 0;
33
+ max-inline-size: 100%;
34
+ }
35
+
36
+ .et-date-range-presets {
37
+ --et-date-range-presets-gap: 8px;
38
+
39
+ flex-direction: row;
40
+ align-self: stretch;
41
+ min-inline-size: 0;
42
+ padding-inline-end: 0;
43
+ padding-block-end: 4px;
44
+ border-inline-end: none;
45
+ overflow-x: auto;
46
+ overscroll-behavior-x: contain;
47
+ scrollbar-width: none;
48
+
49
+ .et-date-range-preset {
50
+ --et-button-border-radius: 999px;
51
+
52
+ flex: none;
53
+ }
54
+
55
+ .et-date-range-preset:not([data-pressed='true']) {
56
+ --_et-button-border-color: var(--et-surface-border-solid, rgb(255 255 255 / 0.16));
57
+ }
58
+ }
59
+ }
60
+ }