@ethlete/components 0.1.0-next.9 → 1.0.0-next.101

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 (579) hide show
  1. package/CHANGELOG.md +3519 -0
  2. package/README.md +1 -1
  3. package/design/accordion.ts +73 -0
  4. package/design/anchored-dialog.ts +102 -0
  5. package/design/avatar.ts +90 -0
  6. package/design/badge.ts +48 -0
  7. package/design/banner.ts +77 -0
  8. package/design/bracket.ts +457 -0
  9. package/design/breadcrumb.ts +144 -0
  10. package/design/button.ts +116 -0
  11. package/design/calendar.ts +306 -0
  12. package/design/card.ts +92 -0
  13. package/design/carousel.ts +240 -0
  14. package/design/chart.ts +512 -0
  15. package/design/checkbox.ts +275 -0
  16. package/design/chip.ts +64 -0
  17. package/design/config.json +26 -0
  18. package/design/control.ts +19 -0
  19. package/design/copy-button.ts +59 -0
  20. package/design/description-list.ts +41 -0
  21. package/design/dialog.ts +210 -0
  22. package/design/divider.ts +27 -0
  23. package/design/empty-state.ts +45 -0
  24. package/design/floating-action.ts +55 -0
  25. package/design/form-field.ts +256 -0
  26. package/design/grid.ts +148 -0
  27. package/design/icon-set.ts +19 -0
  28. package/design/icon.ts +9 -0
  29. package/design/input.ts +86 -0
  30. package/design/kbd.ts +19 -0
  31. package/design/loader.ts +156 -0
  32. package/design/masonry.ts +115 -0
  33. package/design/match.ts +131 -0
  34. package/design/menu.ts +149 -0
  35. package/design/notification.ts +132 -0
  36. package/design/otp-input.ts +107 -0
  37. package/design/pagination.ts +120 -0
  38. package/design/picture.ts +80 -0
  39. package/design/progress-steps.ts +79 -0
  40. package/design/query-error.ts +60 -0
  41. package/design/radio-group.ts +132 -0
  42. package/design/scheduler.ts +369 -0
  43. package/design/scrollable.ts +219 -0
  44. package/design/scrollbar.ts +47 -0
  45. package/design/sdk/assets/fallback.svg +1 -0
  46. package/design/sdk/assets/fonts/et-kbd-arrows-400-normal.woff2 +0 -0
  47. package/design/sdk/assets/fonts/et-kbd-control-400-normal.woff2 +0 -0
  48. package/design/sdk/assets/fonts/et-kbd-keys-400-normal.woff2 +0 -0
  49. package/design/sdk/assets/fonts/source-code-pro-latin-wght-normal.woff2 +0 -0
  50. package/design/sdk/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
  51. package/design/sdk/assets/tall.svg +1 -0
  52. package/design/sdk/assets/wide.svg +1 -0
  53. package/design/sdk/components/accent-on-light/accent-on-light.css +35 -0
  54. package/design/sdk/components/accent-on-light/accent-on-light.ts +15 -0
  55. package/design/sdk/components/accent-on-light/shared/controls.ts +46 -0
  56. package/design/sdk/components/accordion/accordion.css +17 -0
  57. package/design/sdk/components/accordion/accordion.ts +79 -0
  58. package/design/sdk/components/action-sheet/action-sheet.css +124 -0
  59. package/design/sdk/components/action-sheet/action-sheet.ts +131 -0
  60. package/design/sdk/components/anchored-dialog/anchored-dialog.css +60 -0
  61. package/design/sdk/components/anchored-dialog/anchored-dialog.ts +89 -0
  62. package/design/sdk/components/avatar/avatar.css +14 -0
  63. package/design/sdk/components/avatar/avatar.ts +95 -0
  64. package/design/sdk/components/badge/badge.css +31 -0
  65. package/design/sdk/components/badge/badge.ts +89 -0
  66. package/design/sdk/components/banner/banner.css +18 -0
  67. package/design/sdk/components/banner/banner.ts +160 -0
  68. package/design/sdk/components/bracket/bracket.css +56 -0
  69. package/design/sdk/components/bracket/bracket.ts +183 -0
  70. package/design/sdk/components/breadcrumb/breadcrumb.css +25 -0
  71. package/design/sdk/components/breadcrumb/breadcrumb.ts +96 -0
  72. package/design/sdk/components/button/button.css +19 -0
  73. package/design/sdk/components/button/button.ts +201 -0
  74. package/design/sdk/components/calendar/calendar.css +33 -0
  75. package/design/sdk/components/calendar/calendar.ts +183 -0
  76. package/design/sdk/components/card/card.css +19 -0
  77. package/design/sdk/components/card/card.ts +111 -0
  78. package/design/sdk/components/carousel/carousel.css +44 -0
  79. package/design/sdk/components/carousel/carousel.ts +162 -0
  80. package/design/sdk/components/chart/chart.css +56 -0
  81. package/design/sdk/components/chart/chart.ts +146 -0
  82. package/design/sdk/components/checkbox/checkbox.css +10 -0
  83. package/design/sdk/components/checkbox/checkbox.ts +223 -0
  84. package/design/sdk/components/chip/chip.css +18 -0
  85. package/design/sdk/components/chip/chip.ts +99 -0
  86. package/design/sdk/components/copy-button/copy-button.css +14 -0
  87. package/design/sdk/components/copy-button/copy-button.ts +77 -0
  88. package/design/sdk/components/description-list/description-list.css +7 -0
  89. package/design/sdk/components/description-list/description-list.ts +64 -0
  90. package/design/sdk/components/dialog/dialog.css +29 -0
  91. package/design/sdk/components/dialog/dialog.ts +173 -0
  92. package/design/sdk/components/divider/divider.css +26 -0
  93. package/design/sdk/components/divider/divider.ts +49 -0
  94. package/design/sdk/components/empty-state/empty-state.css +39 -0
  95. package/design/sdk/components/empty-state/empty-state.ts +67 -0
  96. package/design/sdk/components/floating-action/floating-action.css +51 -0
  97. package/design/sdk/components/floating-action/floating-action.ts +78 -0
  98. package/design/sdk/components/form-field/form-field.ts +204 -0
  99. package/design/sdk/components/grid/grid.css +17 -0
  100. package/design/sdk/components/grid/grid.ts +96 -0
  101. package/design/sdk/components/input/input.css +48 -0
  102. package/design/sdk/components/input/input.ts +156 -0
  103. package/design/sdk/components/kbd/kbd.css +25 -0
  104. package/design/sdk/components/kbd/kbd.ts +70 -0
  105. package/design/sdk/components/loader/loader.css +37 -0
  106. package/design/sdk/components/loader/loader.ts +79 -0
  107. package/design/sdk/components/masonry/masonry.css +7 -0
  108. package/design/sdk/components/masonry/masonry.ts +50 -0
  109. package/design/sdk/components/match/match.css +22 -0
  110. package/design/sdk/components/match/match.ts +95 -0
  111. package/design/sdk/components/menu/menu.css +22 -0
  112. package/design/sdk/components/menu/menu.ts +120 -0
  113. package/design/sdk/components/notification/notification.css +32 -0
  114. package/design/sdk/components/notification/notification.ts +117 -0
  115. package/design/sdk/components/otp-input/otp-input.css +35 -0
  116. package/design/sdk/components/otp-input/otp-input.ts +94 -0
  117. package/design/sdk/components/pagination/pagination.css +14 -0
  118. package/design/sdk/components/pagination/pagination.ts +97 -0
  119. package/design/sdk/components/picture/picture.css +37 -0
  120. package/design/sdk/components/picture/picture.ts +112 -0
  121. package/design/sdk/components/progress-steps/progress-steps.css +37 -0
  122. package/design/sdk/components/progress-steps/progress-steps.ts +109 -0
  123. package/design/sdk/components/query-error/query-error.css +27 -0
  124. package/design/sdk/components/query-error/query-error.ts +167 -0
  125. package/design/sdk/components/radio-group/radio-group.css +10 -0
  126. package/design/sdk/components/radio-group/radio-group.ts +209 -0
  127. package/design/sdk/components/scheduler/scheduler.css +49 -0
  128. package/design/sdk/components/scheduler/scheduler.ts +267 -0
  129. package/design/sdk/components/scrollable/scrollable.css +58 -0
  130. package/design/sdk/components/scrollable/scrollable.ts +198 -0
  131. package/design/sdk/components/scrollbar/scrollbar.css +78 -0
  132. package/design/sdk/components/scrollbar/scrollbar.ts +152 -0
  133. package/design/sdk/components/select/select.css +5 -0
  134. package/design/sdk/components/select/select.ts +42 -0
  135. package/design/sdk/components/select/shared/select-part.ts +80 -0
  136. package/design/sdk/components/select-panel/select-panel.css +3 -0
  137. package/design/sdk/components/select-panel/select-panel.ts +144 -0
  138. package/design/sdk/components/skeleton/skeleton.css +22 -0
  139. package/design/sdk/components/skeleton/skeleton.ts +58 -0
  140. package/design/sdk/components/slider/slider.css +47 -0
  141. package/design/sdk/components/slider/slider.ts +133 -0
  142. package/design/sdk/components/standings/standings.css +32 -0
  143. package/design/sdk/components/standings/standings.ts +146 -0
  144. package/design/sdk/components/stat-tile/stat-tile.css +15 -0
  145. package/design/sdk/components/stat-tile/stat-tile.ts +97 -0
  146. package/design/sdk/components/stream/stream.css +42 -0
  147. package/design/sdk/components/stream/stream.ts +63 -0
  148. package/design/sdk/components/switch/switch.ts +94 -0
  149. package/design/sdk/components/table/table.css +67 -0
  150. package/design/sdk/components/table/table.ts +320 -0
  151. package/design/sdk/components/tabs/tabs.css +13 -0
  152. package/design/sdk/components/tabs/tabs.ts +95 -0
  153. package/design/sdk/components/textarea/textarea.css +90 -0
  154. package/design/sdk/components/textarea/textarea.ts +154 -0
  155. package/design/sdk/components/timeline/timeline.css +30 -0
  156. package/design/sdk/components/timeline/timeline.ts +98 -0
  157. package/design/sdk/components/toolbar/toolbar.css +24 -0
  158. package/design/sdk/components/toolbar/toolbar.ts +104 -0
  159. package/design/sdk/components/tooltip/tooltip.css +15 -0
  160. package/design/sdk/components/tooltip/tooltip.ts +39 -0
  161. package/design/sdk/components/tree/selected-tint.css +15 -0
  162. package/design/sdk/components/tree/tree.ts +89 -0
  163. package/design/sdk/fixtures.ts +0 -0
  164. package/design/sdk/foundations/colors/colors.css +602 -0
  165. package/design/sdk/foundations/colors/colors.ts +218 -0
  166. package/design/sdk/foundations/colors/faces.css +75 -0
  167. package/design/sdk/foundations/colors/overrides.json +19 -0
  168. package/design/sdk/foundations/colors/shared/contrast.ts +105 -0
  169. package/design/sdk/foundations/elevation/elevation.css +6 -0
  170. package/design/sdk/foundations/elevation/elevation.ts +18 -0
  171. package/design/sdk/foundations/elevation/shared/elevation/scene.css +106 -0
  172. package/design/sdk/foundations/elevation/shared/elevation/scene.ts +74 -0
  173. package/design/sdk/foundations/icons/icons.ts +125 -0
  174. package/design/sdk/lint-baseline.json +6 -0
  175. package/design/sdk/ready.json +488 -0
  176. package/design/sdk/rule-baseline.json +48 -0
  177. package/design/select.ts +199 -0
  178. package/design/skeleton.ts +67 -0
  179. package/design/slider.ts +155 -0
  180. package/design/standings.ts +166 -0
  181. package/design/stat-tile.ts +109 -0
  182. package/design/stream.ts +92 -0
  183. package/design/switch.ts +83 -0
  184. package/design/table.ts +309 -0
  185. package/design/tabs.ts +75 -0
  186. package/design/textarea.ts +94 -0
  187. package/design/timeline.ts +52 -0
  188. package/design/toggletip.ts +85 -0
  189. package/design/toolbar.ts +95 -0
  190. package/design/tooltip.ts +95 -0
  191. package/design/tree.ts +106 -0
  192. package/fesm2022/ethlete-components-testing.mjs +440 -0
  193. package/fesm2022/ethlete-components-testing.mjs.map +1 -0
  194. package/fesm2022/ethlete-components.mjs +115628 -12455
  195. package/fesm2022/ethlete-components.mjs.map +1 -1
  196. package/generators/component/component-names.js +42 -0
  197. package/generators/component/component-templates.js +211 -0
  198. package/generators/component/generator.js +144 -0
  199. package/generators/component/schema.json +109 -0
  200. package/generators/component/workspace-edits.js +92 -0
  201. package/generators/generators.json +126 -0
  202. package/generators/icons/generator.js +231 -0
  203. package/generators/icons/schema.json +35 -0
  204. package/generators/migrate-bracket-default-cards/bracket-default-cards.js +67 -0
  205. package/generators/migrate-bracket-default-cards/migration.js +63 -0
  206. package/generators/migrate-bracket-default-cards/schema.json +26 -0
  207. package/generators/migrate-bracket-ethlete-renames/bracket-ethlete-renames.js +15 -0
  208. package/generators/migrate-bracket-ethlete-renames/migration.js +31 -0
  209. package/generators/migrate-bracket-ethlete-renames/schema.json +26 -0
  210. package/generators/migrate-cascader-tree-internals/cascader-tree-internals.js +6 -0
  211. package/generators/migrate-cascader-tree-internals/migration.js +11 -0
  212. package/generators/migrate-cascader-tree-internals/schema.json +26 -0
  213. package/generators/migrate-chart-baseline-y/chart-baseline-y.js +10 -0
  214. package/generators/migrate-chart-baseline-y/migration.js +41 -0
  215. package/generators/migrate-chart-baseline-y/schema.json +26 -0
  216. package/generators/migrate-duration-format-internals/duration-format-internals.js +6 -0
  217. package/generators/migrate-duration-format-internals/migration.js +11 -0
  218. package/generators/migrate-duration-format-internals/schema.json +26 -0
  219. package/generators/migrate-error-color-theme-signal/error-color-theme-signal.js +37 -0
  220. package/generators/migrate-error-color-theme-signal/migration.js +55 -0
  221. package/generators/migrate-error-color-theme-signal/schema.json +26 -0
  222. package/generators/migrate-grid-engine-internals/grid-engine-internals.js +43 -0
  223. package/generators/migrate-grid-engine-internals/migration.js +11 -0
  224. package/generators/migrate-grid-engine-internals/schema.json +26 -0
  225. package/generators/migrate-line-chart-stacked-area-mix/line-chart-stacked-area-mix.js +48 -0
  226. package/generators/migrate-line-chart-stacked-area-mix/migration.js +35 -0
  227. package/generators/migrate-line-chart-stacked-area-mix/schema.json +26 -0
  228. package/generators/migrate-loader-determinate/loader-determinate.js +87 -0
  229. package/generators/migrate-loader-determinate/migration.js +49 -0
  230. package/generators/migrate-loader-determinate/schema.json +26 -0
  231. package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
  232. package/generators/migrate-overlay-and-column-api/migration.js +39 -0
  233. package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
  234. package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
  235. package/generators/migrate-overlay-and-column-api/schema.json +26 -0
  236. package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
  237. package/generators/migrate-overlay-fullscreen-animation/migration.js +11 -0
  238. package/generators/migrate-overlay-fullscreen-animation/overlay-fullscreen-animation.js +16 -0
  239. package/generators/migrate-overlay-fullscreen-animation/schema.json +26 -0
  240. package/generators/migrate-overlay-nav-tab-imports/migration.js +35 -0
  241. package/generators/migrate-overlay-nav-tab-imports/overlay-nav-tab-imports.js +25 -0
  242. package/generators/migrate-overlay-nav-tab-imports/schema.json +26 -0
  243. package/generators/migrate-pip-window-z-index/migration.js +85 -0
  244. package/generators/migrate-pip-window-z-index/pip-window-z-index.js +60 -0
  245. package/generators/migrate-pip-window-z-index/schema.json +26 -0
  246. package/generators/migrate-query-error-labels/migration-scope.js +30 -0
  247. package/generators/migrate-query-error-labels/migration.js +58 -0
  248. package/generators/migrate-query-error-labels/query-error-labels.js +30 -0
  249. package/generators/migrate-query-error-labels/schema.json +26 -0
  250. package/generators/migrate-rich-text-editor-floating-toolbar/migration.js +57 -0
  251. package/generators/migrate-rich-text-editor-floating-toolbar/rich-text-editor-floating-toolbar.js +28 -0
  252. package/generators/migrate-rich-text-editor-floating-toolbar/schema.json +26 -0
  253. package/generators/migrate-rich-text-editor-link-editor/migration.js +57 -0
  254. package/generators/migrate-rich-text-editor-link-editor/rich-text-editor-link-editor.js +28 -0
  255. package/generators/migrate-rich-text-editor-link-editor/schema.json +26 -0
  256. package/generators/migrate-rich-text-editor-tools/migration.js +64 -0
  257. package/generators/migrate-rich-text-editor-tools/rich-text-editor-tools.js +36 -0
  258. package/generators/migrate-rich-text-editor-tools/schema.json +26 -0
  259. package/generators/migrate-select-input-renames/migration.js +41 -0
  260. package/generators/migrate-select-input-renames/schema.json +26 -0
  261. package/generators/migrate-select-input-renames/select-input-renames.js +37 -0
  262. package/generators/migrate-stream-default-components/migration.js +86 -0
  263. package/generators/migrate-stream-default-components/schema.json +26 -0
  264. package/generators/migrate-stream-default-components/stream-default-components.js +111 -0
  265. package/generators/migrate-tabs-active-underline/migration.js +31 -0
  266. package/generators/migrate-tabs-active-underline/schema.json +26 -0
  267. package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
  268. package/generators/migrate-time-picker-ring/migration.js +17 -0
  269. package/generators/migrate-time-picker-ring/schema.json +26 -0
  270. package/generators/migrate-time-picker-ring/time-picker-ring.js +25 -0
  271. package/generators/migrate-youtube-player-slot-directive/migration.js +11 -0
  272. package/generators/migrate-youtube-player-slot-directive/schema.json +26 -0
  273. package/generators/migrate-youtube-player-slot-directive/youtube-player-slot-directive.js +12 -0
  274. package/generators/removed-exports/removed-exports.js +154 -0
  275. package/generators/removed-exports/run-removed-exports-migration.js +48 -0
  276. package/migrations/components-sdk-layer.md +55 -0
  277. package/migrations.json +211 -0
  278. package/package.json +47 -17
  279. package/src/lib/accordion/accordion-group.component.css +12 -0
  280. package/src/lib/accordion/accordion.component.css +236 -0
  281. package/src/lib/avatar/avatar-group.component.css +31 -0
  282. package/src/lib/avatar/avatar.component.css +90 -0
  283. package/src/lib/badge/badge.component.css +118 -0
  284. package/src/lib/banner/banner.component.css +102 -0
  285. package/src/lib/bracket/bracket-default-continue.component.css +29 -0
  286. package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
  287. package/src/lib/bracket/bracket-default-match.component.css +21 -0
  288. package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
  289. package/src/lib/bracket/bracket-default-section-title.component.css +14 -0
  290. package/src/lib/bracket/bracket-participants.component.css +13 -0
  291. package/src/lib/bracket/bracket-pick-card.component.css +232 -0
  292. package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
  293. package/src/lib/bracket/bracket-skeleton.component.css +55 -0
  294. package/src/lib/bracket/bracket.component.css +123 -0
  295. package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
  296. package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +14 -0
  297. package/src/lib/breadcrumb/breadcrumb-outlet.component.css +5 -0
  298. package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
  299. package/src/lib/breadcrumb/breadcrumb.component.css +126 -0
  300. package/src/lib/button/button-properties-styles.component.css +195 -0
  301. package/src/lib/button/button.component.css +259 -0
  302. package/src/lib/button/button.types.ts +33 -0
  303. package/src/lib/button/fab.component.css +257 -0
  304. package/src/lib/button/icon-button.component.css +152 -0
  305. package/src/lib/button/split-button.component.css +103 -0
  306. package/src/lib/button/text-button.component.css +142 -0
  307. package/src/lib/button/window-control-button.component.css +214 -0
  308. package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
  309. package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
  310. package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
  311. package/src/lib/calendar/calendar.component.css +374 -0
  312. package/src/lib/card/card.component.css +43 -0
  313. package/src/lib/carousel/carousel-autoplay-styles.component.css +171 -0
  314. package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
  315. package/src/lib/carousel/carousel.component.css +220 -0
  316. package/src/lib/chart/bar-chart.component.css +176 -0
  317. package/src/lib/chart/chart-axis.component.css +40 -0
  318. package/src/lib/chart/chart-grid.component.css +6 -0
  319. package/src/lib/chart/chart-legend.component.css +46 -0
  320. package/src/lib/chart/chart-tooltip.component.css +34 -0
  321. package/src/lib/chart/line-chart-tooltip.component.css +51 -0
  322. package/src/lib/chart/line-chart.component.css +234 -0
  323. package/src/lib/chart/pie-chart.component.css +176 -0
  324. package/src/lib/chart/sankey-chart.component.css +221 -0
  325. package/src/lib/chip/chip.component.css +161 -0
  326. package/src/lib/collapse/collapse.component.css +43 -0
  327. package/src/lib/command-palette/command-palette-item.component.css +98 -0
  328. package/src/lib/command-palette/command-palette.component.css +148 -0
  329. package/src/lib/description-list/description-list.component.css +78 -0
  330. package/src/lib/divider/divider.component.css +40 -0
  331. package/src/lib/empty-state/empty-state.component.css +79 -0
  332. package/src/lib/floating-action/floating-action-styles.component.css +105 -0
  333. package/src/lib/focus-ring/focus-ring-styles.component.css +31 -0
  334. package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
  335. package/src/lib/forms/cascader/cascader-panel.component.css +390 -0
  336. package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
  337. package/src/lib/forms/cascader/cascader.component.css +52 -0
  338. package/src/lib/forms/checkbox/checkbox.component.css +278 -0
  339. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +66 -0
  340. package/src/lib/forms/choice-field/choice-field.component.css +227 -0
  341. package/src/lib/forms/color-input/color-input.component.css +109 -0
  342. package/src/lib/forms/color-input/color-picker-panel.component.css +354 -0
  343. package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
  344. package/src/lib/forms/date-time/date-picker-panel.component.css +118 -0
  345. package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
  346. package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
  347. package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
  348. package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
  349. package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
  350. package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
  351. package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
  352. package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
  353. package/src/lib/forms/description/description.component.css +7 -0
  354. package/src/lib/forms/dropzone/dropzone-crop.component.css +139 -0
  355. package/src/lib/forms/dropzone/dropzone-item.component.css +67 -0
  356. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +83 -0
  357. package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
  358. package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
  359. package/src/lib/forms/dropzone/dropzone.component.css +291 -0
  360. package/src/lib/forms/form-field/counter.component.css +25 -0
  361. package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +174 -0
  362. package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
  363. package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +93 -0
  364. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +396 -0
  365. package/src/lib/forms/form-field/form-field-textarea-styles.component.css +94 -0
  366. package/src/lib/forms/form-field/form-field.component.css +381 -0
  367. package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
  368. package/src/lib/forms/form-field/headless/label.directive.css +25 -0
  369. package/src/lib/forms/form-field/hint.component.css +18 -0
  370. package/src/lib/forms/input/input.component.css +53 -0
  371. package/src/lib/forms/input/number-input.component.css +128 -0
  372. package/src/lib/forms/input/password-input.component.css +103 -0
  373. package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
  374. package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +101 -0
  375. package/src/lib/forms/otp-input/otp-input.component.css +218 -0
  376. package/src/lib/forms/phone-input/phone-input.component.css +126 -0
  377. package/src/lib/forms/rating/rating.component.css +197 -0
  378. package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
  379. package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +95 -0
  380. package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
  381. package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
  382. package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
  383. package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +206 -0
  384. package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
  385. package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
  386. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
  387. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
  388. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
  389. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
  390. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
  391. package/src/lib/forms/select/select-all-option.component.css +14 -0
  392. package/src/lib/forms/select/select-extras-styles.component.css +146 -0
  393. package/src/lib/forms/select/select-option-group.component.css +36 -0
  394. package/src/lib/forms/select/select-option-styles.component.css +167 -0
  395. package/src/lib/forms/select/select-panel.component.css +122 -0
  396. package/src/lib/forms/select/select.component.css +247 -0
  397. package/src/lib/forms/selection-card-styles.component.css +144 -0
  398. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +98 -0
  399. package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
  400. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +162 -0
  401. package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
  402. package/src/lib/forms/selection-list/radio-group/radio.component.css +144 -0
  403. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +213 -0
  404. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +200 -0
  405. package/src/lib/forms/slider/range-slider.component.css +434 -0
  406. package/src/lib/forms/slider/slider.component.css +428 -0
  407. package/src/lib/forms/switch/switch.component.css +214 -0
  408. package/src/lib/forms/tag-input/tag-input.component.css +54 -0
  409. package/src/lib/forms/textarea/textarea-autosize-styles.component.css +16 -0
  410. package/src/lib/forms/textarea/textarea.component.css +45 -0
  411. package/src/lib/grid/grid-debug.component.css +130 -0
  412. package/src/lib/grid/grid-item-default-actions.component.css +11 -0
  413. package/src/lib/grid/grid-item-toolbar.component.css +10 -0
  414. package/src/lib/grid/grid-item.component.css +176 -0
  415. package/src/lib/grid/grid.component.css +56 -0
  416. package/src/lib/icon/headless/align-icons.ts +30 -0
  417. package/src/lib/icon/headless/arrow-out-up-right-icon.ts +17 -0
  418. package/src/lib/icon/headless/arrow-right-icon.ts +23 -0
  419. package/src/lib/icon/headless/arrow-up-icon.ts +30 -0
  420. package/src/lib/icon/headless/arrows-left-right-icon.ts +31 -0
  421. package/src/lib/icon/headless/bold-icon.ts +11 -0
  422. package/src/lib/icon/headless/calendar-icon.ts +21 -0
  423. package/src/lib/icon/headless/check-icon.ts +14 -0
  424. package/src/lib/icon/headless/chevron-icon.ts +14 -0
  425. package/src/lib/icon/headless/circle-check-icon.ts +14 -0
  426. package/src/lib/icon/headless/circle-info-icon.ts +14 -0
  427. package/src/lib/icon/headless/clipboard-check-icon.ts +28 -0
  428. package/src/lib/icon/headless/clock-icon.ts +21 -0
  429. package/src/lib/icon/headless/code-block-icon.ts +15 -0
  430. package/src/lib/icon/headless/code-icon.ts +14 -0
  431. package/src/lib/icon/headless/ellipsis-icon.ts +13 -0
  432. package/src/lib/icon/headless/ellipsis-vertical-icon.ts +13 -0
  433. package/src/lib/icon/headless/eye-icons.ts +27 -0
  434. package/src/lib/icon/headless/eyedropper-icon.ts +22 -0
  435. package/src/lib/icon/headless/file-icon.ts +16 -0
  436. package/src/lib/icon/headless/filter-icon.ts +11 -0
  437. package/src/lib/icon/headless/floppy-disk-icon.ts +27 -0
  438. package/src/lib/icon/headless/focus-frame-icon.ts +16 -0
  439. package/src/lib/icon/headless/grid-2x2-icon.ts +17 -0
  440. package/src/lib/icon/headless/heading-1-icon.ts +11 -0
  441. package/src/lib/icon/headless/heading-2-icon.ts +11 -0
  442. package/src/lib/icon/headless/heading-3-icon.ts +11 -0
  443. package/src/lib/icon/headless/icon-definition.ts +14 -0
  444. package/src/lib/icon/headless/icon-styles.component.css +7 -0
  445. package/src/lib/icon/headless/image-icon.ts +14 -0
  446. package/src/lib/icon/headless/italic-icon.ts +19 -0
  447. package/src/lib/icon/headless/link-icon.ts +17 -0
  448. package/src/lib/icon/headless/list-bulleted-icon.ts +14 -0
  449. package/src/lib/icon/headless/list-numbered-icon.ts +14 -0
  450. package/src/lib/icon/headless/location-icon.ts +21 -0
  451. package/src/lib/icon/headless/lock-icon.ts +14 -0
  452. package/src/lib/icon/headless/minus-icon.ts +14 -0
  453. package/src/lib/icon/headless/paragraph-icon.ts +11 -0
  454. package/src/lib/icon/headless/pause-icon.ts +11 -0
  455. package/src/lib/icon/headless/pencil-icon.ts +21 -0
  456. package/src/lib/icon/headless/play-icon.ts +10 -0
  457. package/src/lib/icon/headless/plus-icon.ts +21 -0
  458. package/src/lib/icon/headless/quote-icon.ts +15 -0
  459. package/src/lib/icon/headless/rotate-right-icon.ts +16 -0
  460. package/src/lib/icon/headless/star-icon.ts +14 -0
  461. package/src/lib/icon/headless/strikethrough-icon.ts +18 -0
  462. package/src/lib/icon/headless/table-icon.ts +15 -0
  463. package/src/lib/icon/headless/thumbtack-icon.ts +18 -0
  464. package/src/lib/icon/headless/times-icon.ts +14 -0
  465. package/src/lib/icon/headless/trash-icon.ts +24 -0
  466. package/src/lib/icon/headless/triangle-exclamation-icon.ts +14 -0
  467. package/src/lib/icon/headless/trophy-icon.ts +24 -0
  468. package/src/lib/icon/headless/underline-icon.ts +12 -0
  469. package/src/lib/icon/headless/undo-redo-icons.ts +24 -0
  470. package/src/lib/icon/headless/upload-icon.ts +16 -0
  471. package/src/lib/kbd/kbd.component.css +62 -0
  472. package/src/lib/loader/brand-loader/brand-loader.component.css +133 -0
  473. package/src/lib/loader/progress-bar/progress-bar.component.css +186 -0
  474. package/src/lib/loader/spinner/spinner-styles.component.css +225 -0
  475. package/src/lib/loader/spinner/spinner-sweep-dashes.ts +19 -0
  476. package/src/lib/masonry/masonry-styles.component.css +84 -0
  477. package/src/lib/match/match-card.component.css +545 -0
  478. package/src/lib/match/match-participant.component.css +236 -0
  479. package/src/lib/match/match-score.component.css +77 -0
  480. package/src/lib/match/match-scoreline.component.css +53 -0
  481. package/src/lib/match/match-time.component.css +5 -0
  482. package/src/lib/menu/menu-group-label.component.css +12 -0
  483. package/src/lib/menu/menu-item-shortcut.component.css +26 -0
  484. package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
  485. package/src/lib/menu/menu-item.component.css +36 -0
  486. package/src/lib/menu/menu-search-styles.component.css +83 -0
  487. package/src/lib/menu/menu-selection-item.component.css +92 -0
  488. package/src/lib/menu/menu-separator.component.css +9 -0
  489. package/src/lib/menu/menu.component.css +310 -0
  490. package/src/lib/notification/notification-stack.component.css +114 -0
  491. package/src/lib/notification/notification.component.css +275 -0
  492. package/src/lib/overlay/alert-dialog/alert-dialog.component.css +55 -0
  493. package/src/lib/overlay/floating-panel-styles.component.css +71 -0
  494. package/src/lib/overlay/floating-tip-styles.component.css +84 -0
  495. package/src/lib/overlay/overlay-container.component.css +173 -0
  496. package/src/lib/overlay/overlay-main-styles.component.css +105 -0
  497. package/src/lib/overlay/overlay-template-host.component.css +7 -0
  498. package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
  499. package/src/lib/overlay/routing/overlay-router-outlet.component.css +215 -0
  500. package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
  501. package/src/lib/overlay/sidebar/overlay-sidebar.component.css +23 -0
  502. package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +78 -0
  503. package/src/lib/overlay/strategies/dialog-styles.component.css +77 -0
  504. package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +141 -0
  505. package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
  506. package/src/lib/overlay/strategies/overlay-origin-clone.component.css +92 -0
  507. package/src/lib/overlay/strategies/sheet-styles.component.css +170 -0
  508. package/src/lib/pagination/page-size-select.component.css +6 -0
  509. package/src/lib/pagination/pagination.component.css +185 -0
  510. package/src/lib/picture/picture.component.css +82 -0
  511. package/src/lib/progress-steps/progress-step.component.css +269 -0
  512. package/src/lib/progress-steps/progress-steps.component.css +26 -0
  513. package/src/lib/query-error/query-error.component.css +27 -0
  514. package/src/lib/scheduler/scheduler-agenda-view.component.css +106 -0
  515. package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +59 -0
  516. package/src/lib/scheduler/scheduler-appointment-styles.component.css +129 -0
  517. package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
  518. package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
  519. package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
  520. package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
  521. package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
  522. package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
  523. package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
  524. package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
  525. package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
  526. package/src/lib/scheduler/scheduler-time-grid-view.component.css +269 -0
  527. package/src/lib/scheduler/scheduler.component.css +87 -0
  528. package/src/lib/scrollable/headless/scrollable-buttons.component.css +223 -0
  529. package/src/lib/scrollable/headless/scrollable-footer.css +37 -0
  530. package/src/lib/scrollable/headless/scrollable-masks.component.css +165 -0
  531. package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
  532. package/src/lib/scrollable/scrollable.component.css +234 -0
  533. package/src/lib/scrollbar/scrollbar.component.css +116 -0
  534. package/src/lib/skeleton/skeleton.component.css +132 -0
  535. package/src/lib/standings/standings-pick.component.css +208 -0
  536. package/src/lib/standings/standings.component.css +347 -0
  537. package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
  538. package/src/lib/stat-tile/stat-tile.component.css +134 -0
  539. package/src/lib/stream/consent/stream-consent.component.css +100 -0
  540. package/src/lib/stream/error/stream-player-error.component.css +101 -0
  541. package/src/lib/stream/loading/stream-player-loading.component.css +16 -0
  542. package/src/lib/stream/pip/pip-player.component.css +40 -0
  543. package/src/lib/stream/pip/pip-slot-placeholder.component.css +68 -0
  544. package/src/lib/stream/pip/pip-stage-styles.component.css +93 -0
  545. package/src/lib/stream/pip/pip-window.component.css +221 -0
  546. package/src/lib/stream/stream-manager-styles.component.css +10 -0
  547. package/src/lib/stream/stream-overlay-card-styles.component.css +69 -0
  548. package/src/lib/stream/stream-player-slot-styles.component.css +18 -0
  549. package/src/lib/table/table-column-chooser.component.css +17 -0
  550. package/src/lib/table/table-column-menu-trigger.component.css +31 -0
  551. package/src/lib/table/table-detail-styles.component.css +103 -0
  552. package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
  553. package/src/lib/table/table-expander-cell.component.css +64 -0
  554. package/src/lib/table/table-filter-trigger.component.css +44 -0
  555. package/src/lib/table/table-group-header-row.component.css +38 -0
  556. package/src/lib/table/table-inline-edit-styles.component.css +20 -0
  557. package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
  558. package/src/lib/table/table-reorder-overlay.component.css +42 -0
  559. package/src/lib/table/table-resize-grip.component.css +65 -0
  560. package/src/lib/table/table-row-box-styles.component.css +268 -0
  561. package/src/lib/table/table-select-cell.component.css +119 -0
  562. package/src/lib/table/table-skeleton-rows.component.css +19 -0
  563. package/src/lib/table/table-sort-priority-styles.component.css +15 -0
  564. package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
  565. package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
  566. package/src/lib/table/table.component.css +853 -0
  567. package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
  568. package/src/lib/tabs/tab-bar-styles.component.css +266 -0
  569. package/src/lib/tabs/tab-scale-styles.component.css +61 -0
  570. package/src/lib/tabs/tabs/tab-group.component.css +115 -0
  571. package/src/lib/time-picker/time-picker.component.css +212 -0
  572. package/src/lib/timeline/timeline-item.component.css +139 -0
  573. package/src/lib/timeline/timeline.component.css +7 -0
  574. package/src/lib/toggletip/toggletip.component.css +88 -0
  575. package/src/lib/toolbar/toolbar.component.css +44 -0
  576. package/src/lib/tooltip/tooltip.component.css +84 -0
  577. package/src/lib/tree/tree.component.css +221 -0
  578. package/types/ethlete-components-testing.d.ts +300 -0
  579. package/types/ethlete-components.d.ts +37511 -3814
@@ -0,0 +1,51 @@
1
+ .fa-frame {
2
+ position: relative;
3
+ overflow: hidden;
4
+ box-sizing: border-box;
5
+ block-size: 400px;
6
+ transform: translate(0);
7
+ background: var(--et-surface-background);
8
+ color: var(--et-surface-text);
9
+ font-size: 1.4rem;
10
+
11
+ .fa-page {
12
+ padding: 2.4rem;
13
+ }
14
+
15
+ .et-floating-action {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 1.6rem;
19
+ }
20
+
21
+ p {
22
+ margin: 0;
23
+ }
24
+
25
+ .fa-heading {
26
+ margin: 0;
27
+ font-size: 2rem;
28
+ font-weight: 600;
29
+ }
30
+
31
+ .fa-rows {
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 0.8rem;
35
+ margin: 0;
36
+ padding: 0;
37
+ }
38
+
39
+ .fa-row {
40
+ padding: 1.2rem;
41
+ border-radius: 8px;
42
+ background: color-mix(in srgb, var(--et-surface-text) 8%, transparent);
43
+ list-style: none;
44
+ }
45
+ }
46
+
47
+ @layer components {
48
+ .et-floating-action .et-floating-action-trigger:where([data-floating-action-state='floating']) {
49
+ --et-button-shadow: inset 0 0 0 1px light-dark(var(--et-tone-text), transparent);
50
+ }
51
+ }
@@ -0,0 +1,78 @@
1
+ import { floatingAction, floatingActionStyles } from '@ethlete/components/design/floating-action';
2
+ import { definePart, drawing } from '@design-system';
3
+ import frame from './floating-action.css?inline';
4
+
5
+ type Interaction = 'hover' | 'active' | 'focus-visible';
6
+
7
+ type Props = {
8
+ state?: 'inline' | 'floating' | 'hidden';
9
+ interaction?: Interaction;
10
+ filterIcon?: boolean;
11
+ color?: string;
12
+ inset?: number;
13
+ overRow?: boolean;
14
+ };
15
+
16
+ const SCROLL = { inline: 0, floating: 236, hidden: 980 };
17
+ const OVER_ROW_SCROLL = 252;
18
+ const PARAGRAPH =
19
+ 'Pick a competition and a season, then narrow the list down by team, venue or kick-off time to find the match you are after.';
20
+
21
+ const rows = Array.from({ length: 12 }, (_, index) => `<li class="fa-row">Result ${index + 1}</li>`).join('');
22
+ const paragraphs = (count: number) => Array.from({ length: count }, () => `<p>${PARAGRAPH}</p>`).join('');
23
+
24
+ const render = ({ state = 'inline', interaction, filterIcon, color, inset }: Props) =>
25
+ floatingAction({
26
+ state,
27
+ filterIcon,
28
+ trigger: { label: 'Filter (2)', color },
29
+ triggerAttributes: interaction ? `data-et-force="${interaction}"` : undefined,
30
+ heldSize: { inlineSize: filterIcon ? 132 : 104, blockSize: 40 },
31
+ before: `${paragraphs(2)}<h2 class="fa-heading">Results</h2>`,
32
+ scope: `<ul class="fa-rows">${rows}</ul>`,
33
+ after: paragraphs(8),
34
+ attributes:
35
+ inset === undefined
36
+ ? undefined
37
+ : `style="--et-floating-action-inset-inline-end: ${inset}px; --et-floating-action-inset-block-end: ${inset}px"`,
38
+ });
39
+
40
+ export default definePart({
41
+ note: 'Q138: the floating trigger gets the Q99a 1px inset ink edge in light only, so it reaches 3:1 on a light grey row (4.68) and the page (5.48); dark unchanged.',
42
+ consumerAction: 'its button runs the action the consumer binds',
43
+ madeBy: ['claude-opus-5-5'],
44
+ states: {
45
+ inline: {},
46
+ floating: { state: 'floating' },
47
+ 'floating-hover': { state: 'floating', interaction: 'hover' },
48
+ 'floating-active': { state: 'floating', interaction: 'active' },
49
+ 'floating-focus-visible': { state: 'floating', interaction: 'focus-visible' },
50
+ 'inline-focus-visible': { interaction: 'focus-visible' },
51
+ 'floating-icon': { state: 'floating', filterIcon: true },
52
+ 'floating-inset': { state: 'floating', inset: 12 },
53
+ 'floating-danger': { state: 'floating', color: 'danger' },
54
+ 'floating-danger-hover': { state: 'floating', color: 'danger', interaction: 'hover' },
55
+ 'floating-over-row': { state: 'floating', overRow: true },
56
+ hidden: { state: 'hidden' },
57
+ },
58
+ describe: {
59
+ inline: 'Filter (2) inline above the results at the top of the page; check that it sits in the flow.',
60
+ floating: 'Scrolled into the results, Filter (2) floats at the bottom end; check its inset and shadow.',
61
+ 'floating-hover': 'The floating trigger hovered; check its hover look.',
62
+ 'floating-active': 'The floating trigger pressed; check that the press goes past hover.',
63
+ 'floating-focus-visible': 'The floating trigger with keyboard focus; check the focus ring around it.',
64
+ 'inline-focus-visible': 'The inline trigger with keyboard focus; check the focus ring in the flow.',
65
+ 'floating-icon': 'The floating trigger with a filter icon; check the icon and the wider trigger.',
66
+ 'floating-inset': 'The floating trigger at a 12 px inset; check that it moves closer to the corner.',
67
+ 'floating-danger': 'The floating trigger in the danger colour; check that the label reads on the fill.',
68
+ 'floating-danger-hover': 'The danger trigger hovered; check its hover step.',
69
+ 'floating-over-row': 'The floating trigger over a result row; check that it stays readable over the row.',
70
+ hidden: 'Scrolled past the results; check that the trigger is gone.',
71
+ },
72
+ widths: [480],
73
+ render: (props: Props) =>
74
+ drawing({
75
+ body: `<div class="fa-frame" data-et-skip="CLIPPED"><div class="fa-page" style="margin-block-start: -${props.overRow ? OVER_ROW_SCROLL : SCROLL[props.state ?? 'inline']}px">${render(props)}</div></div>`,
76
+ styles: [floatingActionStyles, frame].join('\n'),
77
+ }),
78
+ });
@@ -0,0 +1,204 @@
1
+ import {
2
+ formField,
3
+ formFieldStyles,
4
+ input,
5
+ textarea,
6
+ type FormFieldMockOptions,
7
+ } from '@ethlete/components/design/form-field';
8
+ import { definePart, drawing, interactionRows } from '@design-system';
9
+
10
+ type FieldInteraction = 'hover' | 'focus-visible';
11
+
12
+ type FieldControl = 'input' | 'textarea';
13
+
14
+ type Axes = Pick<FormFieldMockOptions, 'appearance' | 'fill' | 'labelMode' | 'size'>;
15
+
16
+ type Props = Axes & {
17
+ control?: FieldControl;
18
+ value?: string;
19
+ textAlign?: 'center' | 'end';
20
+ hint?: string;
21
+ error?: string;
22
+ focused?: boolean;
23
+ disabled?: boolean;
24
+ interaction?: FieldInteraction;
25
+ };
26
+
27
+ const multiLine = 'Ada Lovelace\nAnalytical Engine notes';
28
+
29
+ const axisRow: Props = { value: 'Ada Lovelace' };
30
+
31
+ const AXES = {
32
+ appearance: ['box', 'underline'],
33
+ fill: ['transparent', 'filled'],
34
+ labelMode: ['static', 'inline', 'floating-inside', 'floating-outside'],
35
+ size: ['sm', 'md', 'lg'],
36
+ } as const satisfies { [K in keyof Axes]-?: readonly NonNullable<Axes[K]>[] };
37
+
38
+ const axisRows = Object.fromEntries(
39
+ Object.entries(AXES).flatMap(([axis, values]) =>
40
+ values.map((value) => [`${axis}-${value}`, { ...axisRow, [axis]: value }]),
41
+ ),
42
+ ) as Record<string, Props>;
43
+
44
+ const ALIGNMENTS = ['center', 'end'] as const;
45
+
46
+ const alignRows = Object.fromEntries(
47
+ ALIGNMENTS.map((textAlign) => [`text-align-${textAlign}`, { ...axisRow, textAlign }]),
48
+ ) as Record<`text-align-${(typeof ALIGNMENTS)[number]}`, Props>;
49
+
50
+ const interactive = interactionRows(
51
+ {
52
+ empty: { hint: 'Shown on your profile' },
53
+ filled: { value: 'Ada Lovelace' },
54
+ error: { error: 'This field is required' },
55
+ 'textarea-empty': { control: 'textarea', hint: 'Shown on your profile' },
56
+ 'textarea-filled': { control: 'textarea', value: multiLine },
57
+ 'textarea-error': { control: 'textarea', error: 'This field is required' },
58
+ ...axisRows,
59
+ ...alignRows,
60
+ } satisfies Record<string, Props>,
61
+ {
62
+ interactions: ['hover', 'focus-visible'],
63
+ force: (props: Props, interaction: FieldInteraction): Props => ({ ...props, interaction }),
64
+ },
65
+ );
66
+
67
+ const states = interactive.states;
68
+ const grid = interactive.grid;
69
+
70
+ const markControl = (markup: string, control: FieldControl, interaction: FieldInteraction | undefined) => {
71
+ const frame = ['data-et-control-part', interaction && `data-et-force="${interaction}"`].filter(Boolean);
72
+ const native = control === 'input' ? '<input class="et-input-native"' : '<textarea class="et-textarea-native"';
73
+
74
+ return markup
75
+ .replace('<et-form-field ', `<et-form-field data-et-control="${control}" `)
76
+ .replace('<div class="et-form-field-control-frame"', `<div class="et-form-field-control-frame" ${frame.join(' ')}`)
77
+ .replace(native, native.replace(' class=', ' data-et-control-part class='));
78
+ };
79
+
80
+ export default definePart<Props>({
81
+ note: 'scale of the decided shape, Q182, lead merge',
82
+ madeBy: ['claude-opus-5-5'],
83
+ states: {
84
+ ...states,
85
+ focused: { value: 'Ada', focused: true },
86
+ disabled: { value: 'Ada Lovelace', disabled: true },
87
+ 'textarea-focused': { control: 'textarea', value: 'Ada', focused: true },
88
+ 'textarea-disabled': { control: 'textarea', value: multiLine, disabled: true },
89
+ },
90
+ grid,
91
+ describe: {
92
+ empty: 'The empty Name input with a hint; check the label, the empty field and the hint.',
93
+ 'empty-hover': 'The empty Name input with a hint, hovered; check that the field edge changes from rest.',
94
+ 'empty-focus-visible':
95
+ 'The empty Name input with a hint, with keyboard focus; check the focus edge in the primary colour.',
96
+ filled: 'The Name input with Ada Lovelace; check the value inside the field.',
97
+ 'filled-hover': 'The Name input with Ada Lovelace, hovered; check that the field edge changes from rest.',
98
+ 'filled-focus-visible':
99
+ 'The Name input with Ada Lovelace, with keyboard focus; check the focus edge in the primary colour.',
100
+ error: 'The empty Name input with an error; check the danger edge and the error under it.',
101
+ 'error-hover': 'The empty Name input with an error, hovered; check that the field edge changes from rest.',
102
+ 'error-focus-visible':
103
+ 'The empty Name input with an error, with keyboard focus; check the focus edge in the primary colour.',
104
+ 'textarea-empty': 'The empty Name textarea with a hint; check the taller field and the hint.',
105
+ 'textarea-empty-hover':
106
+ 'The empty Name textarea with a hint, hovered; check that the field edge changes from rest.',
107
+ 'textarea-empty-focus-visible':
108
+ 'The empty Name textarea with a hint, with keyboard focus; check the focus edge in the primary colour.',
109
+ 'textarea-filled': 'The Name textarea with two lines; check that both lines show inside the field.',
110
+ 'textarea-filled-hover': 'The Name textarea with two lines, hovered; check that the field edge changes from rest.',
111
+ 'textarea-filled-focus-visible':
112
+ 'The Name textarea with two lines, with keyboard focus; check the focus edge in the primary colour.',
113
+ 'textarea-error': 'The empty Name textarea with an error; check the danger edge and the error under it.',
114
+ 'textarea-error-hover':
115
+ 'The empty Name textarea with an error, hovered; check that the field edge changes from rest.',
116
+ 'textarea-error-focus-visible':
117
+ 'The empty Name textarea with an error, with keyboard focus; check the focus edge in the primary colour.',
118
+ 'appearance-box':
119
+ 'The filled Name input with appearance box; check how appearance box draws the field and its label.',
120
+ 'appearance-box-hover':
121
+ 'The filled Name input with appearance box, hovered; check that the field edge changes from rest.',
122
+ 'appearance-box-focus-visible':
123
+ 'The filled Name input with appearance box, with keyboard focus; check the focus edge in the primary colour.',
124
+ 'appearance-underline':
125
+ 'The filled Name input with appearance underline; check how appearance underline draws the field and its label.',
126
+ 'appearance-underline-hover':
127
+ 'The filled Name input with appearance underline, hovered; check that the field edge changes from rest.',
128
+ 'appearance-underline-focus-visible':
129
+ 'The filled Name input with appearance underline, with keyboard focus; check the focus edge in the primary colour.',
130
+ 'fill-transparent':
131
+ 'The filled Name input with fill transparent; check how fill transparent draws the field and its label.',
132
+ 'fill-transparent-hover':
133
+ 'The filled Name input with fill transparent, hovered; check that the field edge changes from rest.',
134
+ 'fill-transparent-focus-visible':
135
+ 'The filled Name input with fill transparent, with keyboard focus; check the focus edge in the primary colour.',
136
+ 'fill-filled': 'The filled Name input with fill filled; check how fill filled draws the field and its label.',
137
+ 'fill-filled-hover':
138
+ 'The filled Name input with fill filled, hovered; check that the field edge changes from rest.',
139
+ 'fill-filled-focus-visible':
140
+ 'The filled Name input with fill filled, with keyboard focus; check the focus edge in the primary colour.',
141
+ 'labelMode-static':
142
+ 'The filled Name input with labelMode static; check how labelMode static draws the field and its label.',
143
+ 'labelMode-static-hover':
144
+ 'The filled Name input with labelMode static, hovered; check that the field edge changes from rest.',
145
+ 'labelMode-static-focus-visible':
146
+ 'The filled Name input with labelMode static, with keyboard focus; check the focus edge in the primary colour.',
147
+ 'labelMode-inline':
148
+ 'The filled Name input with labelMode inline; check how labelMode inline draws the field and its label.',
149
+ 'labelMode-inline-hover':
150
+ 'The filled Name input with labelMode inline, hovered; check that the field edge changes from rest.',
151
+ 'labelMode-inline-focus-visible':
152
+ 'The filled Name input with labelMode inline, with keyboard focus; check the focus edge in the primary colour.',
153
+ 'labelMode-floating-inside':
154
+ 'The filled Name input with labelMode floating-inside; check how labelMode floating-inside draws the field and its label.',
155
+ 'labelMode-floating-inside-hover':
156
+ 'The filled Name input with labelMode floating-inside, hovered; check that the field edge changes from rest.',
157
+ 'labelMode-floating-inside-focus-visible':
158
+ 'The filled Name input with labelMode floating-inside, with keyboard focus; check the focus edge in the primary colour.',
159
+ 'labelMode-floating-outside':
160
+ 'The filled Name input with labelMode floating-outside; check how labelMode floating-outside draws the field and its label.',
161
+ 'labelMode-floating-outside-hover':
162
+ 'The filled Name input with labelMode floating-outside, hovered; check that the field edge changes from rest.',
163
+ 'labelMode-floating-outside-focus-visible':
164
+ 'The filled Name input with labelMode floating-outside, with keyboard focus; check the focus edge in the primary colour.',
165
+ 'size-sm': 'The filled Name input with size sm; check how size sm draws the field and its label.',
166
+ 'size-sm-hover': 'The filled Name input with size sm, hovered; check that the field edge changes from rest.',
167
+ 'size-sm-focus-visible':
168
+ 'The filled Name input with size sm, with keyboard focus; check the focus edge in the primary colour.',
169
+ 'size-md': 'The filled Name input with size md; check how size md draws the field and its label.',
170
+ 'size-md-hover': 'The filled Name input with size md, hovered; check that the field edge changes from rest.',
171
+ 'size-md-focus-visible':
172
+ 'The filled Name input with size md, with keyboard focus; check the focus edge in the primary colour.',
173
+ 'size-lg': 'The filled Name input with size lg; check how size lg draws the field and its label.',
174
+ 'size-lg-hover': 'The filled Name input with size lg, hovered; check that the field edge changes from rest.',
175
+ 'size-lg-focus-visible':
176
+ 'The filled Name input with size lg, with keyboard focus; check the focus edge in the primary colour.',
177
+ 'text-align-center': 'The value centred in the field; check that it sits centred.',
178
+ 'text-align-end': 'The value aligned to the end; check that it sits at the end.',
179
+ focused: 'The input focused with Ada; check the focus edge and the caret after the value.',
180
+ disabled: 'The disabled input with Ada Lovelace; check that field and label fade.',
181
+ 'textarea-focused': 'The textarea focused with Ada; check the focus edge around the taller field.',
182
+ 'textarea-disabled': 'The disabled textarea with two lines; check that field, value and label fade.',
183
+ },
184
+ widths: [320],
185
+ controls: {
186
+ input: { kind: 'field', input: ['pointer', 'keyboard'], disabled: true },
187
+ textarea: { kind: 'field', input: ['pointer', 'keyboard'], disabled: true },
188
+ },
189
+ render: ({ control = 'input', value, textAlign, interaction, ...field }) =>
190
+ drawing({
191
+ body: markControl(
192
+ formField({
193
+ id: 'name',
194
+ label: 'Name',
195
+ errorColor: 'danger',
196
+ control: control === 'input' ? input({ value, textAlign }) : textarea({ value }),
197
+ ...field,
198
+ }),
199
+ control,
200
+ interaction,
201
+ ),
202
+ styles: formFieldStyles,
203
+ }),
204
+ });
@@ -0,0 +1,17 @@
1
+ .t-frame {
2
+ box-sizing: border-box;
3
+ padding: 1.6rem;
4
+ background: var(--et-surface-background);
5
+ color: var(--et-surface-text);
6
+ font-size: 1.4rem;
7
+ }
8
+
9
+ @layer components {
10
+ .et-grid-item:focus-visible {
11
+ outline-color: var(--et-tone-text);
12
+ }
13
+
14
+ .et-grid-item-toolbar .et-focus-ring {
15
+ --_et-focus-ring-color: var(--et-tone-text);
16
+ }
17
+ }
@@ -0,0 +1,96 @@
1
+ import { grid, GridMockItem, gridStyles } from '@ethlete/components/design/grid';
2
+ import { definePart, drawing } from '@design-system';
3
+ import frame from './grid.css?inline';
4
+
5
+ type Props = {
6
+ layout: 'rest' | 'spans';
7
+ actions?: boolean;
8
+ item?: Partial<GridMockItem> & { id: string };
9
+ drag?: boolean;
10
+ resize?: boolean;
11
+ longTitle?: boolean;
12
+ };
13
+
14
+ const REST: (GridMockItem & { id: string })[] = [
15
+ { id: 'revenue', col: 0, row: 0, colSpan: 2, rowSpan: 1, title: 'Revenue', subtitle: 'Last 30 days' },
16
+ { id: 'visitors', col: 2, row: 0, colSpan: 2, rowSpan: 1, title: 'Visitors', subtitle: 'This week' },
17
+ { id: 'orders', col: 0, row: 1, colSpan: 2, rowSpan: 1, title: 'Orders', subtitle: 'Today' },
18
+ { id: 'refunds', col: 2, row: 1, colSpan: 2, rowSpan: 1, title: 'Refunds', subtitle: 'Today' },
19
+ ];
20
+
21
+ const SPANS: (GridMockItem & { id: string })[] = [
22
+ { id: 'revenue', col: 0, row: 0, colSpan: 2, rowSpan: 1, title: 'Revenue', subtitle: 'Last 30 days' },
23
+ { id: 'visitors', col: 2, row: 0, colSpan: 2, rowSpan: 2, title: 'Visitors', subtitle: 'This week' },
24
+ { id: 'orders', col: 0, row: 1, colSpan: 1, rowSpan: 1, title: 'Orders', subtitle: 'Today' },
25
+ { id: 'refunds', col: 1, row: 1, colSpan: 1, rowSpan: 1, title: 'Refunds', subtitle: 'Today' },
26
+ { id: 'activity', col: 0, row: 2, colSpan: 4, rowSpan: 1, title: 'Activity', subtitle: 'Latest events' },
27
+ ];
28
+
29
+ const LONG_TITLE = 'Revenue by region and sales channel';
30
+
31
+ const itemsOf = (props: Props) => {
32
+ const items = (props.layout === 'rest' ? REST : SPANS).map((item) =>
33
+ props.item?.id === item.id ? { ...item, ...props.item } : item,
34
+ );
35
+
36
+ if (props.drag) {
37
+ return items.map((item) => {
38
+ if (item.id === 'orders') return { ...item, state: 'dragging' as const, offset: { x: 70, y: 18 } };
39
+ if (item.id === 'refunds') return { ...item, col: 0 };
40
+ return item;
41
+ });
42
+ }
43
+
44
+ if (props.resize) {
45
+ return items.map((item) =>
46
+ item.id === 'activity' ? { ...item, rowSpan: 2, state: 'resizing' as const, activeEdge: 's' as const } : item,
47
+ );
48
+ }
49
+
50
+ if (props.longTitle) return items.map((item) => (item.id === 'revenue' ? { ...item, title: LONG_TITLE } : item));
51
+
52
+ return items;
53
+ };
54
+
55
+ export default definePart({
56
+ note: 'Decided rules only',
57
+ madeBy: ['claude-opus-5-5'],
58
+ states: {
59
+ rest: { layout: 'rest' },
60
+ spans: { layout: 'spans' },
61
+ 'item-hover': { layout: 'spans', item: { id: 'visitors', force: 'hover' } },
62
+ 'item-focus-visible': { layout: 'spans', item: { id: 'visitors', force: 'focus-visible' } },
63
+ actions: { layout: 'spans', actions: true },
64
+ 'action-hover': { layout: 'spans', actions: true, item: { id: 'revenue', removeForce: 'hover' } },
65
+ 'action-focus-visible': { layout: 'spans', actions: true, item: { id: 'revenue', removeForce: 'focus-visible' } },
66
+ dragging: { layout: 'spans', drag: true },
67
+ resizing: { layout: 'spans', resize: true },
68
+ 'long-title': { layout: 'spans', actions: true, longTitle: true },
69
+ },
70
+ describe: {
71
+ rest: 'Four equal tiles in a 4-column grid; check the gaps and the title and subtitle in each tile.',
72
+ spans: 'Five tiles with column and row spans; check that Visitors spans two rows and Activity the full width.',
73
+ 'item-hover': 'The Visitors tile hovered; check its hover look.',
74
+ 'item-focus-visible': 'The Visitors tile with keyboard focus; check the focus ring around the tile.',
75
+ actions: 'The tiles with their remove actions; check that each action sits in the tile corner.',
76
+ 'action-hover': 'The Revenue remove action hovered; check its hover tint.',
77
+ 'action-focus-visible': 'The Revenue remove action with keyboard focus; check the focus ring around it.',
78
+ dragging: 'Orders dragged off its cell with the ghost behind; check the lifted tile and the ghost cell.',
79
+ resizing: 'Activity resized to two rows from its bottom edge; check the active edge and the new size.',
80
+ 'long-title': 'Revenue with a long title and its action; check that the title is cut before the action.',
81
+ },
82
+ widths: [480],
83
+ frame: (body) => `<div class="t-frame">${body}</div>`,
84
+ render: (props: Props) =>
85
+ drawing({
86
+ body: grid({
87
+ items: itemsOf(props),
88
+ actions: props.actions,
89
+ ghost: props.drag ? { col: 1, row: 1, colSpan: 1, rowSpan: 1 } : undefined,
90
+ }).replaceAll(
91
+ 'class="et-grid-item-default-actions__remove',
92
+ 'data-et-action="emit:remove" class="et-grid-item-default-actions__remove',
93
+ ),
94
+ styles: [gridStyles, frame].join('\n'),
95
+ }),
96
+ });
@@ -0,0 +1,48 @@
1
+ .t-frame {
2
+ box-sizing: border-box;
3
+ display: grid;
4
+ gap: 1.6rem;
5
+ padding: 1.6rem;
6
+ background: var(--et-surface-background);
7
+ color: var(--et-surface-text);
8
+ font-size: 1.4rem;
9
+ }
10
+
11
+ @layer components {
12
+ et-form-field[data-text-shell] {
13
+ --_et-form-field-frame-border: color-mix(in oklab, var(--et-surface-text) 43%, var(--et-surface-background));
14
+ --_et-form-field-frame-border-hover: var(--et-surface-text);
15
+ }
16
+
17
+ et-form-field[data-text-shell][data-error] {
18
+ --_et-form-field-frame-border: var(--et-tone-fill);
19
+ --_et-form-field-frame-border-hover: light-dark(
20
+ var(--et-tone-fill-hover, var(--et-tone-fill-rest)),
21
+ var(
22
+ --et-tone-text-active,
23
+ var(
24
+ --et-tone-text-focus,
25
+ var(
26
+ --et-tone-text-hover,
27
+ var(
28
+ --et-tone-text-rest,
29
+ var(--et-tone-fill-active, var(--et-tone-fill-focus, var(--et-tone-fill-hover, var(--et-tone-fill-rest))))
30
+ )
31
+ )
32
+ )
33
+ )
34
+ );
35
+ }
36
+
37
+ et-form-field[data-text-shell] .et-form-field-prefix:not(:has(svg)) {
38
+ margin-inline-end: calc(4px - var(--et-form-field-control-affix-gap));
39
+ }
40
+
41
+ et-form-field et-label .et-label-required-marker {
42
+ color: var(--et-tone-text);
43
+ }
44
+
45
+ et-input .et-input-native::placeholder {
46
+ color: color-mix(in srgb, currentColor 60%, transparent);
47
+ }
48
+ }
@@ -0,0 +1,156 @@
1
+ import { textInput, type TextInputMockOptions, textInputStyles } from '@ethlete/components/design/input';
2
+ import { definePart, drawing } from '@design-system';
3
+ import frame from './input.css?inline';
4
+
5
+ type Props = { field: TextInputMockOptions };
6
+
7
+ const email = (extra: Partial<TextInputMockOptions> = {}): Props => ({
8
+ field: { id: 'email', label: 'Email', placeholder: 'name@example.com', ...extra },
9
+ });
10
+
11
+ const VALUE = 'lena.hoffmann@example.com';
12
+
13
+ const INVALID = {
14
+ required: true,
15
+ value: 'lena.hoffmann@',
16
+ error: 'Enter a valid email address.',
17
+ errorColor: 'danger',
18
+ } satisfies Partial<TextInputMockOptions>;
19
+
20
+ export default definePart({
21
+ note: 'scale of the decided shape, Q182, lead merge',
22
+ madeBy: ['claude-opus-5-5', 'design check'],
23
+ groups: [
24
+ {
25
+ label: 'Rest',
26
+ states: ['empty', 'placeholder', 'filled', 'hint', 'description', 'required'],
27
+ },
28
+ {
29
+ label: 'Interaction',
30
+ states: ['hover', 'hover-filled', 'focus', 'focus-filled', 'focus-hover'],
31
+ },
32
+ {
33
+ label: 'Sizes and layout',
34
+ states: ['size-sm', 'size-lg', 'align-end', 'align-center', 'mixed', 'no-label', 'long'],
35
+ },
36
+ {
37
+ label: 'Affixes and types',
38
+ states: ['icon-affixes', 'text-affixes', 'text-prefix', 'search', 'password'],
39
+ },
40
+ {
41
+ label: 'Disabled and readonly',
42
+ states: ['disabled', 'disabled-filled', 'readonly', 'readonly-hover', 'readonly-focus'],
43
+ },
44
+ {
45
+ label: 'Errors',
46
+ states: ['invalid', 'invalid-hover', 'invalid-focus', 'invalid-focus-hover'],
47
+ },
48
+ ],
49
+ states: {
50
+ empty: email({ placeholder: undefined }),
51
+ placeholder: email(),
52
+ filled: email({ value: VALUE }),
53
+ hover: email({ force: 'hover' }),
54
+ 'hover-filled': email({ value: VALUE, force: 'hover' }),
55
+ focus: email({ focused: true, force: 'focus-visible' }),
56
+ 'focus-filled': email({ value: VALUE, focused: true, force: 'focus-visible' }),
57
+ 'focus-hover': email({ value: VALUE, focused: true, force: ['focus-visible', 'hover'] }),
58
+ hint: email({ hint: 'We only use it to sign you in.' }),
59
+ description: email({ description: 'Your team sees this address on your profile.' }),
60
+ required: email({ required: true, hint: 'We only use it to sign you in.' }),
61
+ invalid: email(INVALID),
62
+ 'invalid-hover': email({ ...INVALID, force: 'hover' }),
63
+ 'invalid-focus': email({ ...INVALID, focused: true, force: 'focus-visible' }),
64
+ 'invalid-focus-hover': email({ ...INVALID, focused: true, force: ['focus-visible', 'hover'] }),
65
+ disabled: email({ disabled: true }),
66
+ 'disabled-filled': email({ value: VALUE, disabled: true }),
67
+ readonly: email({ value: VALUE, readonly: true }),
68
+ 'readonly-hover': email({ value: VALUE, readonly: true, force: 'hover' }),
69
+ 'readonly-focus': email({ value: VALUE, readonly: true, focused: true, force: 'focus-visible' }),
70
+ long: email({ value: 'lena.hoffmann-schulze.marketing-department@example-company.com' }),
71
+ 'icon-affixes': {
72
+ field: { id: 'key', label: 'API key', placeholder: 'sk-…', prefixIcon: 'lock', suffixIcon: 'check' },
73
+ },
74
+ 'text-affixes': {
75
+ field: { id: 'site', label: 'Website', value: 'example.com', prefix: 'https://', suffix: '.de' },
76
+ },
77
+ 'text-prefix': {
78
+ field: { id: 'price', label: 'Price', value: '1,250.00', prefix: '€' },
79
+ },
80
+ search: {
81
+ field: { id: 'search', label: 'Search', type: 'search', value: 'running shoes' },
82
+ },
83
+ password: {
84
+ field: { id: 'password', label: 'Password', type: 'password', value: 'correct-horse' },
85
+ },
86
+ 'align-end': {
87
+ field: { id: 'amount', label: 'Amount', value: '1,250.00', textAlign: 'end', suffix: 'EUR' },
88
+ },
89
+ mixed: {
90
+ field: { id: 'title', label: 'Title', value: 'shared draft title', mixed: true, mixedLabel: 'Mixed values' },
91
+ },
92
+ 'no-label': {
93
+ field: { id: 'quick', placeholder: 'Search…', prefixIcon: 'lock' },
94
+ },
95
+ 'size-sm': email({ value: VALUE, size: 'sm' }),
96
+ 'size-lg': email({ value: VALUE, size: 'lg' }),
97
+ 'align-center': email({ value: VALUE, textAlign: 'center' }),
98
+ },
99
+ describe: {
100
+ empty:
101
+ 'The Email field with no value and no placeholder; check that the label sits above an empty, evenly padded box.',
102
+ placeholder:
103
+ 'The empty Email field with its placeholder; check that the placeholder reads muted against a typed value.',
104
+ filled:
105
+ 'The Email field holding an address; check that the value uses full text color and stays vertically centered.',
106
+ hover: 'The empty Email field under hover; check that the border darkens without shifting the box.',
107
+ 'hover-filled': 'The filled Email field under hover; check that the border darkens and the value does not move.',
108
+ focus:
109
+ 'The empty Email field with keyboard focus; check that the focus ring shows around the box without resizing it.',
110
+ 'focus-filled':
111
+ 'The filled Email field with keyboard focus; check that the focus ring shows and the value stays in place.',
112
+ 'focus-hover': 'The filled Email field focused and hovered; check that the focus ring wins over the hover border.',
113
+ hint: 'The Email field with a hint below; check that the hint sits under the box in muted, smaller text.',
114
+ description:
115
+ 'The Email field with a description; check that the description reads as help text near the label, apart from the box.',
116
+ required: 'The required Email field with a hint; check that the required mark shows next to the label.',
117
+ invalid:
118
+ 'A required field with a broken address and an error; check that the border and error text use the danger color.',
119
+ 'invalid-hover':
120
+ 'The invalid field under hover; check that the danger border stays and does not fall back to neutral.',
121
+ 'invalid-focus': 'The invalid field with keyboard focus; check that the focus ring takes the danger color.',
122
+ 'invalid-focus-hover':
123
+ 'The invalid field focused and hovered; check that the danger focus ring still wins over hover.',
124
+ disabled: 'The empty Email field disabled; check that box, label and placeholder fade and no hover shows.',
125
+ 'disabled-filled': 'The filled Email field disabled; check that the value fades with the box but stays readable.',
126
+ readonly:
127
+ 'The filled Email field read-only; check that it looks static, unlike the editable box, but the value stays clear.',
128
+ 'readonly-hover': 'The read-only field under hover; check that hover gives no edit cue.',
129
+ 'readonly-focus':
130
+ 'The read-only field with keyboard focus; check that a focus ring still shows for keyboard users.',
131
+ long: 'The Email field holding a very long address; check that the value clips inside the box and never widens it.',
132
+ 'icon-affixes':
133
+ 'The API key field with a lock and a check icon; check that both icons sit inside the box, centered on the text.',
134
+ 'text-affixes':
135
+ 'The Website field with https:// and .de affixes; check that the affixes read muted and frame the value.',
136
+ 'text-prefix': 'The Price field with a € prefix; check that the prefix sits before the value with a steady gap.',
137
+ search:
138
+ 'A search-type field with a query; check that it looks like the other fields, without a stray browser clear icon.',
139
+ password: 'A password field; check that the value shows as masked dots at the same height as text.',
140
+ 'align-end':
141
+ 'The Amount field aligned to the end with an EUR suffix; check that the value hugs the suffix on the right.',
142
+ mixed: 'The Title field in the mixed state; check that the Mixed values label shows instead of a single value.',
143
+ 'no-label':
144
+ 'A field without a label, with a lock icon and placeholder; check that the box keeps its height with no label space.',
145
+ 'size-sm': 'The filled Email field at size sm; check that the box and text shrink together and stay centered.',
146
+ 'size-lg': 'The filled Email field at size lg; check that the box and text grow together and stay centered.',
147
+ 'align-center': 'The filled Email field with centered text; check that the value sits in the middle of the box.',
148
+ },
149
+ widths: [320, 360, 640],
150
+ frame: (body) => `<div class="t-frame">${body}</div>`,
151
+ render: (props: Props) =>
152
+ drawing({
153
+ body: textInput(props.field),
154
+ styles: [textInputStyles, frame].join('\n'),
155
+ }),
156
+ });