@ethlete/components 1.0.0-next.69 → 1.0.0-next.71

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 +35 -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 +830 -108
  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,194 @@
1
+ @layer components {
2
+ @keyframes et-otp-input-caret-blink {
3
+ 0% {
4
+ opacity: 1;
5
+ }
6
+
7
+ 100% {
8
+ opacity: 0;
9
+ }
10
+ }
11
+
12
+ @property --et-otp-input-segment-size {
13
+ syntax: '<length>';
14
+ inherits: true;
15
+ initial-value: 44px;
16
+ }
17
+
18
+ @property --et-otp-input-segment-gap {
19
+ syntax: '<length>';
20
+ inherits: true;
21
+ initial-value: 8px;
22
+ }
23
+
24
+ @property --et-otp-input-segment-radius {
25
+ syntax: '<length>';
26
+ inherits: true;
27
+ initial-value: 8px;
28
+ }
29
+
30
+ @property --et-otp-input-label-font-size {
31
+ syntax: '<length>';
32
+ inherits: true;
33
+ initial-value: 13px;
34
+ }
35
+
36
+ @property --et-otp-input-support-duration {
37
+ syntax: '<time>';
38
+ inherits: true;
39
+ initial-value: 180ms;
40
+ }
41
+
42
+ @property --et-otp-input-error-font-size {
43
+ syntax: '<length>';
44
+ inherits: true;
45
+ initial-value: 12px;
46
+ }
47
+
48
+ @property --et-otp-input-warning-font-size {
49
+ syntax: '<length>';
50
+ inherits: true;
51
+ initial-value: 12px;
52
+ }
53
+
54
+ @property --et-otp-input-hint-font-size {
55
+ syntax: '<length>';
56
+ inherits: true;
57
+ initial-value: 12px;
58
+ }
59
+
60
+ et-otp-input {
61
+ display: inline-flex;
62
+ flex-direction: column;
63
+ gap: 6px;
64
+ color: var(--et-surface-color-solid, currentColor);
65
+
66
+ --et-form-support-duration: var(--et-otp-input-support-duration);
67
+ --et-form-support-error-font-size: var(--et-otp-input-error-font-size);
68
+ --et-form-support-warning-font-size: var(--et-otp-input-warning-font-size);
69
+ --et-form-support-hint-font-size: var(--et-otp-input-hint-font-size);
70
+
71
+ > et-label {
72
+ font-size: var(--et-otp-input-label-font-size);
73
+ font-weight: 500;
74
+ line-height: 1.2;
75
+ letter-spacing: -0.01em;
76
+ color: var(--et-surface-color-muted-solid, currentColor);
77
+ -webkit-user-select: none;
78
+ user-select: none;
79
+ }
80
+
81
+ .et-otp-input-field {
82
+ position: relative;
83
+ inline-size: fit-content;
84
+ }
85
+
86
+ .et-otp-input-segments {
87
+ display: flex;
88
+ gap: var(--et-otp-input-segment-gap);
89
+ }
90
+
91
+ .et-otp-input-segment {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ inline-size: var(--et-otp-input-segment-size);
96
+ block-size: var(--et-otp-input-segment-size);
97
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
98
+ border-radius: var(--et-otp-input-segment-radius);
99
+ font-size: calc(var(--et-otp-input-segment-size) * 0.45);
100
+ font-variant-numeric: tabular-nums;
101
+ -webkit-user-select: none;
102
+ user-select: none;
103
+
104
+ &[data-caret] {
105
+ border-color: var(--et-theme-color-primary-solid, currentColor);
106
+ outline: 1px solid var(--et-theme-color-primary-solid, currentColor);
107
+ outline-offset: -1px;
108
+ }
109
+
110
+ .et-otp-input-segment-char {
111
+ display: block;
112
+ }
113
+
114
+ /* synthetic caret bar in the active empty segment */
115
+ .et-otp-input-caret {
116
+ inline-size: 2px;
117
+ block-size: 1.1em;
118
+ border-radius: 1px;
119
+ background: var(--et-theme-color-primary-solid, currentColor);
120
+ animation: et-otp-input-caret-blink 1.1s steps(2, jump-none) infinite;
121
+ }
122
+ }
123
+
124
+ /* the real input covers the segments invisibly — it carries focus, autofill and paste */
125
+ .et-otp-input-native {
126
+ position: absolute;
127
+ inset: 0;
128
+ inline-size: 100%;
129
+ block-size: 100%;
130
+ border: none;
131
+ outline: none;
132
+ padding: 0;
133
+ margin: 0;
134
+ background: transparent;
135
+ color: transparent;
136
+ caret-color: transparent;
137
+ /* 16px floors away the iOS focus zoom */
138
+ font-size: max(1em, 16px);
139
+
140
+ &::selection {
141
+ background: transparent;
142
+ }
143
+
144
+ /* nothing can be typed into a readonly code - an I-beam over the segments would say otherwise.
145
+ Before the disabled rule: a disabled input is :read-only too, and there not-allowed wins. */
146
+ &:read-only {
147
+ cursor: default;
148
+ }
149
+
150
+ &:disabled {
151
+ cursor: not-allowed;
152
+ }
153
+ }
154
+
155
+ &[data-error] .et-otp-input-segment {
156
+ border-color: var(--et-theme-color-primary-solid, currentColor);
157
+ }
158
+
159
+ &:has(.et-otp-input-native:disabled) {
160
+ opacity: 0.4;
161
+
162
+ .et-otp-input-segment {
163
+ -webkit-user-select: none;
164
+ user-select: none;
165
+ }
166
+ }
167
+
168
+ &[data-can-animate] {
169
+ .et-otp-input-segment {
170
+ transition:
171
+ border-color 120ms ease,
172
+ outline-color 120ms ease;
173
+ }
174
+
175
+ /* typed characters pop in */
176
+ .et-otp-input-segment-char {
177
+ transition:
178
+ transform 140ms cubic-bezier(0.2, 1.4, 0.4, 1),
179
+ opacity 100ms ease;
180
+
181
+ @starting-style {
182
+ transform: scale(0.4);
183
+ opacity: 0;
184
+ }
185
+ }
186
+ }
187
+
188
+ @media (prefers-reduced-motion: reduce) {
189
+ .et-otp-input-caret {
190
+ animation: none;
191
+ }
192
+ }
193
+ }
194
+ }
@@ -0,0 +1,126 @@
1
+ @layer components {
2
+ et-phone-input {
3
+ display: flex;
4
+ align-items: center;
5
+ gap: 8px;
6
+ flex: 1;
7
+ min-inline-size: 0;
8
+ color: inherit;
9
+
10
+ .et-phone-input-country-trigger {
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 4px;
14
+ border: none;
15
+ outline: none;
16
+ background: transparent;
17
+ font: inherit;
18
+ color: inherit;
19
+ padding: 0;
20
+ margin: 0;
21
+ cursor: pointer;
22
+ appearance: none;
23
+ white-space: nowrap;
24
+
25
+ &:disabled {
26
+ cursor: not-allowed;
27
+ }
28
+
29
+ &:focus-visible {
30
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
31
+ outline-offset: 2px;
32
+ border-radius: 4px;
33
+ }
34
+ }
35
+
36
+ /* the country panel cannot open while readonly */
37
+ &[data-readonly] .et-phone-input-country-trigger {
38
+ cursor: default;
39
+ }
40
+
41
+ .et-phone-input-country-flag {
42
+ display: inline-flex;
43
+ align-items: center;
44
+ }
45
+
46
+ .et-phone-input-dial-code {
47
+ color: var(--et-surface-color-muted-solid, currentColor);
48
+ font-variant-numeric: tabular-nums;
49
+ }
50
+
51
+ .et-phone-input-field {
52
+ flex: 1;
53
+ min-inline-size: 0;
54
+ border: none;
55
+ outline: none;
56
+ background: transparent;
57
+ font: inherit;
58
+ color: inherit;
59
+ padding: 0;
60
+ caret-color: var(--et-theme-color-primary-solid, currentColor);
61
+ font-variant-numeric: tabular-nums;
62
+
63
+ &::placeholder {
64
+ color: color-mix(in srgb, currentColor 46%, transparent);
65
+ }
66
+
67
+ &:disabled {
68
+ cursor: not-allowed;
69
+ }
70
+ }
71
+
72
+ /* an unresolved bulk-edit value reads as provisional — the mixedLabel placeholder sits
73
+ between committed text (full strength) and the regular placeholder (46%). Consumers
74
+ restyle via [data-mixed]. */
75
+ &[data-mixed] .et-phone-input-field::placeholder {
76
+ font-style: italic;
77
+ color: color-mix(in srgb, currentColor 72%, transparent);
78
+ }
79
+ }
80
+
81
+ /* panel content of the country picker (rendered in the overlay pane) */
82
+ .et-phone-input-country-panel {
83
+ /* a fixed width — with content-derived sizing, filtering would resize the panel
84
+ horizontally on every keystroke (the widest visible item keeps changing) */
85
+ inline-size: min(320px, calc(100vw - 24px));
86
+ }
87
+
88
+ /* the projected option content (flag, name, dial code) shares the option's label slot —
89
+ lay it out as a flex row so the pieces get breathing room */
90
+ .et-phone-input-country-panel .et-select-option-label {
91
+ display: flex;
92
+ align-items: center;
93
+ gap: var(--et-select-option-gap, 8px);
94
+ flex: 1;
95
+ min-inline-size: 0;
96
+ }
97
+
98
+ .et-phone-input-option-flag {
99
+ flex: none;
100
+ display: inline-flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ }
104
+
105
+ .et-phone-input-option-name {
106
+ flex: 1;
107
+ min-inline-size: 0;
108
+ overflow: hidden;
109
+ text-overflow: ellipsis;
110
+ white-space: nowrap;
111
+ }
112
+
113
+ .et-phone-input-option-dial {
114
+ flex: none;
115
+ color: var(--et-surface-color-muted-solid, currentColor);
116
+ font-variant-numeric: tabular-nums;
117
+ }
118
+
119
+ /* light default sizing for custom flag art (etPhoneInputFlag) */
120
+ .et-phone-input-country-flag :is(img, svg),
121
+ .et-phone-input-option-flag :is(img, svg) {
122
+ display: block;
123
+ inline-size: 20px;
124
+ block-size: auto;
125
+ }
126
+ }
@@ -0,0 +1,197 @@
1
+ @layer components {
2
+ @property --et-rating-icon-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 24px;
6
+ }
7
+
8
+ @property --et-rating-gap {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 4px;
12
+ }
13
+
14
+ @property --et-rating-label-font-size {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 13px;
18
+ }
19
+
20
+ @property --et-rating-support-duration {
21
+ syntax: '<time>';
22
+ inherits: true;
23
+ initial-value: 180ms;
24
+ }
25
+
26
+ @property --et-rating-error-font-size {
27
+ syntax: '<length>';
28
+ inherits: true;
29
+ initial-value: 12px;
30
+ }
31
+
32
+ @property --et-rating-warning-font-size {
33
+ syntax: '<length>';
34
+ inherits: true;
35
+ initial-value: 12px;
36
+ }
37
+
38
+ @property --et-rating-hint-font-size {
39
+ syntax: '<length>';
40
+ inherits: true;
41
+ initial-value: 12px;
42
+ }
43
+
44
+ et-rating {
45
+ display: inline-flex;
46
+ flex-direction: column;
47
+ gap: 6px;
48
+ color: var(--et-surface-color-solid, currentColor);
49
+ outline: none;
50
+
51
+ --et-form-support-duration: var(--et-rating-support-duration);
52
+ --et-form-support-error-font-size: var(--et-rating-error-font-size);
53
+ --et-form-support-warning-font-size: var(--et-rating-warning-font-size);
54
+ --et-form-support-hint-font-size: var(--et-rating-hint-font-size);
55
+
56
+ > et-label {
57
+ font-size: var(--et-rating-label-font-size);
58
+ font-weight: 500;
59
+ line-height: 1.2;
60
+ letter-spacing: -0.01em;
61
+ color: var(--et-surface-color-muted-solid, currentColor);
62
+ -webkit-user-select: none;
63
+ user-select: none;
64
+ }
65
+
66
+ &:focus-visible .et-rating-icons {
67
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
68
+ outline-offset: 2px;
69
+ border-radius: 4px;
70
+ }
71
+
72
+ .et-rating-icons {
73
+ position: relative;
74
+ display: grid;
75
+ inline-size: fit-content;
76
+ /* icons sit edge-to-edge in a row, so only block-direction padding can grow the tap target
77
+ without one star stealing its neighbour's taps */
78
+ padding-block: max(0px, calc((44px - var(--et-rating-icon-size)) / 2));
79
+ cursor: pointer;
80
+ /* vertical page scrolling stays native; horizontal swipes rate */
81
+ touch-action: pan-y;
82
+ /* one clip width = one continuous fill motion (displayValue icons + crossed gaps). Declared
83
+ here rather than on the fill row so the base row can clip against the same edge. */
84
+ --_et-rating-fill-width: calc(
85
+ var(--_et-rating-fill-icons, 0) * var(--et-rating-icon-size) + var(--_et-rating-fill-gaps, 0) *
86
+ var(--et-rating-gap)
87
+ );
88
+ }
89
+
90
+ .et-rating-row {
91
+ display: flex;
92
+ align-items: center;
93
+ gap: var(--et-rating-gap);
94
+ grid-area: 1 / 1;
95
+ }
96
+
97
+ .et-rating-row--fill {
98
+ pointer-events: none;
99
+ clip-path: inset(0 calc(100% - var(--_et-rating-fill-width)) 0 0);
100
+
101
+ &:dir(rtl) {
102
+ clip-path: inset(0 0 0 calc(100% - var(--_et-rating-fill-width)));
103
+ }
104
+ }
105
+
106
+ &[data-readonly] {
107
+ .et-rating-icons {
108
+ cursor: default;
109
+ }
110
+ }
111
+
112
+ &[data-disabled] {
113
+ opacity: 0.4;
114
+
115
+ .et-rating-icons {
116
+ cursor: not-allowed;
117
+ }
118
+ }
119
+
120
+ .et-rating-icon {
121
+ position: relative;
122
+ display: flex;
123
+ inline-size: var(--et-rating-icon-size);
124
+ block-size: var(--et-rating-icon-size);
125
+ -webkit-user-select: none;
126
+ user-select: none;
127
+
128
+ .et-icon {
129
+ inline-size: 100%;
130
+ block-size: 100%;
131
+ }
132
+ }
133
+
134
+ .et-rating-icon-base {
135
+ color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 32%, transparent);
136
+ }
137
+
138
+ .et-rating-icon-fill {
139
+ color: var(--et-theme-color-primary-solid, currentColor);
140
+ }
141
+
142
+ /* an unresolved bulk-edit rating fills nothing — the stars themselves become a dashed accent
143
+ outline (not a muted/grey one, which would read as disabled), so "provisional / values differ"
144
+ reads on the stars rather than on a rule under them. Same mark the switch parks its thumb in.
145
+ A hovered preview paints its solid fill over the top, so the pick being previewed still reads
146
+ as committed. Consumers restyle via [data-mixed]. */
147
+ &[data-mixed] {
148
+ /* A stroke is centred on its path, so the dashes stand half their width outside the star's
149
+ silhouette and fringe the solid fill a preview paints over them. Clipping the dashed row to
150
+ where the fill is not keeps each star either solid or dashed, never both. Matched on the base
151
+ icon so a custom icon template, which renders one row and no fill, is left alone. */
152
+ .et-rating-row:has(.et-rating-icon-base) {
153
+ clip-path: inset(0 0 0 var(--_et-rating-fill-width));
154
+
155
+ &:dir(rtl) {
156
+ clip-path: inset(0 var(--_et-rating-fill-width) 0 0);
157
+ }
158
+ }
159
+
160
+ .et-rating-icon-base {
161
+ color: var(--et-theme-color-primary-solid, currentColor);
162
+
163
+ /* Stroke widths are in the icon's own viewBox units, so the dash keeps its weight at every
164
+ --et-rating-icon-size rather than needing a knob per size. */
165
+ path {
166
+ fill: none;
167
+ stroke: currentColor;
168
+ stroke-width: 40;
169
+ stroke-dasharray: 48 34;
170
+ stroke-linejoin: round;
171
+ }
172
+ }
173
+ }
174
+
175
+ /* custom icon templates render per-step — expose the state for their own styling */
176
+ .et-rating-icon[data-state] {
177
+ color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 32%, transparent);
178
+
179
+ &[data-state='full'],
180
+ &[data-state='half'] {
181
+ color: var(--et-theme-color-primary-solid, currentColor);
182
+ }
183
+ }
184
+
185
+ &[data-can-animate] {
186
+ .et-rating-row--fill {
187
+ transition: clip-path 160ms ease;
188
+ }
189
+ }
190
+
191
+ @media (prefers-reduced-motion: reduce) {
192
+ &[data-can-animate] .et-rating-row--fill {
193
+ transition: none;
194
+ }
195
+ }
196
+ }
197
+ }