@teseor/css 1.0.0

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 (298) hide show
  1. package/README.md +102 -0
  2. package/dist/compiled.css +4463 -0
  3. package/dist/index.css +4445 -0
  4. package/fonts/.gitkeep +9 -0
  5. package/package.json +38 -0
  6. package/src/00-config/layers/layers.scss +1 -0
  7. package/src/00-config/mixins/_border.scss +13 -0
  8. package/src/00-config/mixins/index.scss +1 -0
  9. package/src/00-config/tokens/_variables.scss +120 -0
  10. package/src/00-config/tokens/borders/index.scss +6 -0
  11. package/src/00-config/tokens/colors/colors.docs.json +168 -0
  12. package/src/00-config/tokens/colors/index.scss +25 -0
  13. package/src/00-config/tokens/grid/grid.docs.json +54 -0
  14. package/src/00-config/tokens/grid/index.scss +11 -0
  15. package/src/00-config/tokens/index.scss +15 -0
  16. package/src/00-config/tokens/input.scss +14 -0
  17. package/src/00-config/tokens/motion/index.scss +25 -0
  18. package/src/00-config/tokens/radius/index.scss +7 -0
  19. package/src/00-config/tokens/semantic/colors/index.scss +30 -0
  20. package/src/00-config/tokens/semantic/spacing/index.scss +10 -0
  21. package/src/00-config/tokens/shadows/index.scss +5 -0
  22. package/src/00-config/tokens/spacing/index.scss +15 -0
  23. package/src/00-config/tokens/spacing/spacing.docs.json +114 -0
  24. package/src/00-config/tokens/theming.docs.json +77 -0
  25. package/src/00-config/tokens/typography/index.scss +119 -0
  26. package/src/00-config/tokens/zindex/index.scss +14 -0
  27. package/src/01-reset/index.scss +1 -0
  28. package/src/01-reset/reset.scss +8 -0
  29. package/src/02-base/index.scss +2 -0
  30. package/src/02-base/root/root.scss +12 -0
  31. package/src/02-base/typography/typography.docs.json +94 -0
  32. package/src/02-base/typography/typography.scss +145 -0
  33. package/src/03-layout/app-shell/app-shell.api.json +26 -0
  34. package/src/03-layout/app-shell/app-shell.docs.json +119 -0
  35. package/src/03-layout/app-shell/index.scss +5 -0
  36. package/src/03-layout/box/box.api.json +15 -0
  37. package/src/03-layout/box/box.docs.json +57 -0
  38. package/src/03-layout/box/index.scss +34 -0
  39. package/src/03-layout/center/center.api.json +6 -0
  40. package/src/03-layout/center/center.docs.json +24 -0
  41. package/src/03-layout/center/index.scss +11 -0
  42. package/src/03-layout/cluster/cluster.api.json +10 -0
  43. package/src/03-layout/cluster/cluster.docs.json +129 -0
  44. package/src/03-layout/cluster/index.scss +18 -0
  45. package/src/03-layout/container/container.api.json +13 -0
  46. package/src/03-layout/container/index.scss +17 -0
  47. package/src/03-layout/flex/flex.api.json +15 -0
  48. package/src/03-layout/flex/flex.docs.json +56 -0
  49. package/src/03-layout/flex/index.scss +51 -0
  50. package/src/03-layout/grid/grid.api.json +10 -0
  51. package/src/03-layout/grid/grid.docs.json +116 -0
  52. package/src/03-layout/grid/index.scss +15 -0
  53. package/src/03-layout/index.scss +11 -0
  54. package/src/03-layout/main/index.scss +17 -0
  55. package/src/03-layout/main/main.api.json +13 -0
  56. package/src/03-layout/sidebar/index.scss +30 -0
  57. package/src/03-layout/sidebar/sidebar.api.json +13 -0
  58. package/src/03-layout/sidebar-nav/index.scss +209 -0
  59. package/src/03-layout/sidebar-nav/sidebar-nav-all.png +0 -0
  60. package/src/03-layout/sidebar-nav/sidebar-nav.api.json +115 -0
  61. package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +100 -0
  62. package/src/03-layout/sidebar-nav/sidebar-nav.visual.spec.ts +14 -0
  63. package/src/03-layout/stack/index.scss +13 -0
  64. package/src/03-layout/stack/stack.api.json +10 -0
  65. package/src/03-layout/stack/stack.docs.json +131 -0
  66. package/src/04-components/accordion/accordion-visual.png +0 -0
  67. package/src/04-components/accordion/accordion.api.json +19 -0
  68. package/src/04-components/accordion/accordion.docs.json +51 -0
  69. package/src/04-components/accordion/accordion.visual.spec.ts +14 -0
  70. package/src/04-components/accordion/index.scss +78 -0
  71. package/src/04-components/alert/alert-visual.png +0 -0
  72. package/src/04-components/alert/alert.api.json +91 -0
  73. package/src/04-components/alert/alert.docs.json +79 -0
  74. package/src/04-components/alert/alert.visual.spec.ts +14 -0
  75. package/src/04-components/alert/index.scss +108 -0
  76. package/src/04-components/avatar/avatar-visual.png +0 -0
  77. package/src/04-components/avatar/avatar.api.json +70 -0
  78. package/src/04-components/avatar/avatar.docs.json +200 -0
  79. package/src/04-components/avatar/avatar.visual.spec.ts +14 -0
  80. package/src/04-components/avatar/index.scss +104 -0
  81. package/src/04-components/badge/badge-visual.png +0 -0
  82. package/src/04-components/badge/badge.api.json +86 -0
  83. package/src/04-components/badge/badge.docs.json +89 -0
  84. package/src/04-components/badge/badge.visual.spec.ts +14 -0
  85. package/src/04-components/badge/index.scss +64 -0
  86. package/src/04-components/breadcrumb/breadcrumb-visual.png +0 -0
  87. package/src/04-components/breadcrumb/breadcrumb.api.json +31 -0
  88. package/src/04-components/breadcrumb/breadcrumb.docs.json +59 -0
  89. package/src/04-components/breadcrumb/breadcrumb.visual.spec.ts +14 -0
  90. package/src/04-components/breadcrumb/index.scss +77 -0
  91. package/src/04-components/button/button-visual.png +0 -0
  92. package/src/04-components/button/button.api.json +138 -0
  93. package/src/04-components/button/button.docs.json +75 -0
  94. package/src/04-components/button/button.visual.spec.ts +14 -0
  95. package/src/04-components/button/index.scss +222 -0
  96. package/src/04-components/button-group/button-group-visual.png +0 -0
  97. package/src/04-components/button-group/button-group.api.json +11 -0
  98. package/src/04-components/button-group/button-group.docs.json +52 -0
  99. package/src/04-components/button-group/button-group.visual.spec.ts +14 -0
  100. package/src/04-components/button-group/index.scss +78 -0
  101. package/src/04-components/card/card-visual.png +0 -0
  102. package/src/04-components/card/card.api.json +53 -0
  103. package/src/04-components/card/card.docs.json +103 -0
  104. package/src/04-components/card/card.visual.spec.ts +14 -0
  105. package/src/04-components/card/index.scss +41 -0
  106. package/src/04-components/checkbox/checkbox-visual.png +0 -0
  107. package/src/04-components/checkbox/checkbox.api.json +50 -0
  108. package/src/04-components/checkbox/checkbox.docs.json +151 -0
  109. package/src/04-components/checkbox/checkbox.visual.spec.ts +14 -0
  110. package/src/04-components/checkbox/index.scss +104 -0
  111. package/src/04-components/code/code-visual.png +0 -0
  112. package/src/04-components/code/code.api.json +47 -0
  113. package/src/04-components/code/code.docs.json +84 -0
  114. package/src/04-components/code/code.visual.spec.ts +14 -0
  115. package/src/04-components/code/index.scss +64 -0
  116. package/src/04-components/data-list/data-list-visual.png +0 -0
  117. package/src/04-components/data-list/data-list.api.json +23 -0
  118. package/src/04-components/data-list/data-list.docs.json +79 -0
  119. package/src/04-components/data-list/data-list.visual.spec.ts +14 -0
  120. package/src/04-components/data-list/index.scss +98 -0
  121. package/src/04-components/dialog/dialog-visual.png +0 -0
  122. package/src/04-components/dialog/dialog.api.json +23 -0
  123. package/src/04-components/dialog/dialog.docs.json +58 -0
  124. package/src/04-components/dialog/dialog.visual.spec.ts +14 -0
  125. package/src/04-components/dialog/index.scss +74 -0
  126. package/src/04-components/disclosure/disclosure-visual.png +0 -0
  127. package/src/04-components/disclosure/disclosure.api.json +31 -0
  128. package/src/04-components/disclosure/disclosure.docs.json +73 -0
  129. package/src/04-components/disclosure/disclosure.visual.spec.ts +14 -0
  130. package/src/04-components/disclosure/index.scss +111 -0
  131. package/src/04-components/divider/divider-visual.png +0 -0
  132. package/src/04-components/divider/divider.api.json +30 -0
  133. package/src/04-components/divider/divider.docs.json +68 -0
  134. package/src/04-components/divider/divider.visual.spec.ts +14 -0
  135. package/src/04-components/divider/index.scss +115 -0
  136. package/src/04-components/drawer/drawer-visual.png +0 -0
  137. package/src/04-components/drawer/drawer.api.json +39 -0
  138. package/src/04-components/drawer/drawer.docs.json +78 -0
  139. package/src/04-components/drawer/drawer.visual.spec.ts +14 -0
  140. package/src/04-components/drawer/index.scss +251 -0
  141. package/src/04-components/field/field-visual.png +0 -0
  142. package/src/04-components/field/field.api.json +11 -0
  143. package/src/04-components/field/field.docs.json +59 -0
  144. package/src/04-components/field/field.visual.spec.ts +14 -0
  145. package/src/04-components/field/index.scss +44 -0
  146. package/src/04-components/form-error/form-error-visual.png +0 -0
  147. package/src/04-components/form-error/form-error.api.json +19 -0
  148. package/src/04-components/form-error/form-error.docs.json +40 -0
  149. package/src/04-components/form-error/form-error.visual.spec.ts +14 -0
  150. package/src/04-components/form-error/index.scss +31 -0
  151. package/src/04-components/form-helper/form-helper-visual.png +0 -0
  152. package/src/04-components/form-helper/form-helper.api.json +19 -0
  153. package/src/04-components/form-helper/form-helper.docs.json +31 -0
  154. package/src/04-components/form-helper/form-helper.visual.spec.ts +14 -0
  155. package/src/04-components/form-helper/index.scss +24 -0
  156. package/src/04-components/heading/heading-visual.png +0 -0
  157. package/src/04-components/heading/heading.api.json +83 -0
  158. package/src/04-components/heading/heading.docs.json +98 -0
  159. package/src/04-components/heading/heading.visual.spec.ts +14 -0
  160. package/src/04-components/heading/index.scss +61 -0
  161. package/src/04-components/icon/icon-visual.png +0 -0
  162. package/src/04-components/icon/icon.api.json +56 -0
  163. package/src/04-components/icon/icon.docs.json +155 -0
  164. package/src/04-components/icon/icon.visual.spec.ts +14 -0
  165. package/src/04-components/icon/index.scss +79 -0
  166. package/src/04-components/index.scss +41 -0
  167. package/src/04-components/input/index.scss +154 -0
  168. package/src/04-components/input/input-visual.png +0 -0
  169. package/src/04-components/input/input.api.json +85 -0
  170. package/src/04-components/input/input.docs.json +189 -0
  171. package/src/04-components/input/input.visual.spec.ts +14 -0
  172. package/src/04-components/label/index.scss +46 -0
  173. package/src/04-components/label/label-visual.png +0 -0
  174. package/src/04-components/label/label.api.json +27 -0
  175. package/src/04-components/label/label.docs.json +73 -0
  176. package/src/04-components/label/label.visual.spec.ts +14 -0
  177. package/src/04-components/link/index.scss +73 -0
  178. package/src/04-components/link/link-visual.png +0 -0
  179. package/src/04-components/link/link.api.json +39 -0
  180. package/src/04-components/link/link.docs.json +104 -0
  181. package/src/04-components/link/link.visual.spec.ts +14 -0
  182. package/src/04-components/menu/index.scss +145 -0
  183. package/src/04-components/menu/menu-visual.png +0 -0
  184. package/src/04-components/menu/menu.api.json +47 -0
  185. package/src/04-components/menu/menu.docs.json +81 -0
  186. package/src/04-components/menu/menu.visual.spec.ts +14 -0
  187. package/src/04-components/modal/index.scss +93 -0
  188. package/src/04-components/modal/modal-visual.png +0 -0
  189. package/src/04-components/modal/modal.api.json +43 -0
  190. package/src/04-components/modal/modal.docs.json +86 -0
  191. package/src/04-components/modal/modal.visual.spec.ts +14 -0
  192. package/src/04-components/overlay/index.scss +49 -0
  193. package/src/04-components/overlay/overlay-visual.png +0 -0
  194. package/src/04-components/overlay/overlay.api.json +23 -0
  195. package/src/04-components/overlay/overlay.docs.json +63 -0
  196. package/src/04-components/overlay/overlay.visual.spec.ts +14 -0
  197. package/src/04-components/pagination/index.scss +114 -0
  198. package/src/04-components/pagination/pagination-visual.png +0 -0
  199. package/src/04-components/pagination/pagination.api.json +39 -0
  200. package/src/04-components/pagination/pagination.docs.json +88 -0
  201. package/src/04-components/pagination/pagination.visual.spec.ts +14 -0
  202. package/src/04-components/popover/index.scss +114 -0
  203. package/src/04-components/popover/popover-visual.png +0 -0
  204. package/src/04-components/popover/popover.api.json +39 -0
  205. package/src/04-components/popover/popover.docs.json +70 -0
  206. package/src/04-components/popover/popover.visual.spec.ts +14 -0
  207. package/src/04-components/progress/index.scss +102 -0
  208. package/src/04-components/progress/progress-visual.png +0 -0
  209. package/src/04-components/progress/progress.api.json +23 -0
  210. package/src/04-components/progress/progress.docs.json +87 -0
  211. package/src/04-components/progress/progress.visual.spec.ts +14 -0
  212. package/src/04-components/radio/index.scss +96 -0
  213. package/src/04-components/radio/radio-visual.png +0 -0
  214. package/src/04-components/radio/radio.api.json +46 -0
  215. package/src/04-components/radio/radio.docs.json +159 -0
  216. package/src/04-components/radio/radio.visual.spec.ts +14 -0
  217. package/src/04-components/select/index.scss +113 -0
  218. package/src/04-components/select/select-visual.png +0 -0
  219. package/src/04-components/select/select.api.json +85 -0
  220. package/src/04-components/select/select.docs.json +162 -0
  221. package/src/04-components/select/select.visual.spec.ts +14 -0
  222. package/src/04-components/skeleton/index.scss +99 -0
  223. package/src/04-components/skeleton/skeleton-visual.png +0 -0
  224. package/src/04-components/skeleton/skeleton.api.json +19 -0
  225. package/src/04-components/skeleton/skeleton.docs.json +62 -0
  226. package/src/04-components/skeleton/skeleton.visual.spec.ts +14 -0
  227. package/src/04-components/spinner/index.scss +60 -0
  228. package/src/04-components/spinner/spinner-visual.png +0 -0
  229. package/src/04-components/spinner/spinner.api.json +63 -0
  230. package/src/04-components/spinner/spinner.docs.json +88 -0
  231. package/src/04-components/spinner/spinner.visual.spec.ts +15 -0
  232. package/src/04-components/status/index.scss +85 -0
  233. package/src/04-components/status/status-visual.png +0 -0
  234. package/src/04-components/status/status.api.json +19 -0
  235. package/src/04-components/status/status.docs.json +60 -0
  236. package/src/04-components/status/status.visual.spec.ts +14 -0
  237. package/src/04-components/table/index.scss +60 -0
  238. package/src/04-components/table/table-visual.png +0 -0
  239. package/src/04-components/table/table.api.json +27 -0
  240. package/src/04-components/table/table.docs.json +59 -0
  241. package/src/04-components/table/table.visual.spec.ts +14 -0
  242. package/src/04-components/tabs/index.scss +77 -0
  243. package/src/04-components/tabs/tabs-visual.png +0 -0
  244. package/src/04-components/tabs/tabs.api.json +31 -0
  245. package/src/04-components/tabs/tabs.docs.json +61 -0
  246. package/src/04-components/tabs/tabs.visual.spec.ts +14 -0
  247. package/src/04-components/tag/index.scss +98 -0
  248. package/src/04-components/tag/tag-visual.png +0 -0
  249. package/src/04-components/tag/tag.api.json +86 -0
  250. package/src/04-components/tag/tag.docs.json +108 -0
  251. package/src/04-components/tag/tag.visual.spec.ts +14 -0
  252. package/src/04-components/textarea/index.scss +124 -0
  253. package/src/04-components/textarea/textarea-visual.png +0 -0
  254. package/src/04-components/textarea/textarea.api.json +93 -0
  255. package/src/04-components/textarea/textarea.docs.json +191 -0
  256. package/src/04-components/textarea/textarea.visual.spec.ts +14 -0
  257. package/src/04-components/toast/index.scss +180 -0
  258. package/src/04-components/toast/toast-visual.png +0 -0
  259. package/src/04-components/toast/toast.api.json +43 -0
  260. package/src/04-components/toast/toast.docs.json +99 -0
  261. package/src/04-components/toast/toast.visual.spec.ts +14 -0
  262. package/src/04-components/toggle/index.scss +117 -0
  263. package/src/04-components/toggle/toggle-visual.png +0 -0
  264. package/src/04-components/toggle/toggle.api.json +43 -0
  265. package/src/04-components/toggle/toggle.docs.json +92 -0
  266. package/src/04-components/toggle/toggle.visual.spec.ts +14 -0
  267. package/src/04-components/tooltip/index.scss +102 -0
  268. package/src/04-components/tooltip/tooltip-visual.png +0 -0
  269. package/src/04-components/tooltip/tooltip.api.json +39 -0
  270. package/src/04-components/tooltip/tooltip.docs.json +63 -0
  271. package/src/04-components/tooltip/tooltip.visual.spec.ts +14 -0
  272. package/src/05-utilities/border/index.scss +21 -0
  273. package/src/05-utilities/display/display.api.json +6 -0
  274. package/src/05-utilities/display/display.docs.json +28 -0
  275. package/src/05-utilities/display/display.scss +195 -0
  276. package/src/05-utilities/index.scss +6 -0
  277. package/src/05-utilities/spacing/spacing.api.json +6 -0
  278. package/src/05-utilities/spacing/spacing.docs.json +43 -0
  279. package/src/05-utilities/spacing/spacing.scss +399 -0
  280. package/src/05-utilities/text/text.api.json +38 -0
  281. package/src/05-utilities/text/text.docs.json +132 -0
  282. package/src/05-utilities/text/text.scss +246 -0
  283. package/src/05-utilities/view-transition/index.scss +198 -0
  284. package/src/05-utilities/view-transition/view-transition.api.json +21 -0
  285. package/src/05-utilities/view-transition/view-transition.docs.json +63 -0
  286. package/src/05-utilities/visually-hidden/index.scss +38 -0
  287. package/src/05-utilities/visually-hidden/visually-hidden.api.json +8 -0
  288. package/src/05-utilities/visually-hidden/visually-hidden.docs.json +29 -0
  289. package/src/99-debug/grid-overlay.scss +79 -0
  290. package/src/99-debug/index.scss +1 -0
  291. package/src/index.scss +30 -0
  292. package/src/testing/api-types.ts +20 -0
  293. package/src/testing/grid-alignment.spec.ts +92 -0
  294. package/src/testing/html-generator.ts +151 -0
  295. package/src/testing/index.ts +15 -0
  296. package/src/testing/page-setup.ts +131 -0
  297. package/src/testing/rhythm.ts +146 -0
  298. package/src/testing/scaffold.ts +50 -0
@@ -0,0 +1,98 @@
1
+ {
2
+ "id": "heading",
3
+ "type": "component",
4
+ "title": "Heading",
5
+ "description": "Semantic headings with visual size control. Use semantic level (h1-h6) for structure, size modifier for visual styling.",
6
+ "api": "./heading.api.json",
7
+ "sections": [
8
+ {
9
+ "title": "Sizes",
10
+ "examples": [
11
+ {
12
+ "layout": "stack",
13
+ "html": "<h1 class=\"ui-heading ui-heading--4xl\">Heading 4xl</h1><h2 class=\"ui-heading ui-heading--3xl\">Heading 3xl</h2><h3 class=\"ui-heading ui-heading--2xl\">Heading 2xl</h3><h4 class=\"ui-heading ui-heading--xl\">Heading xl</h4><h5 class=\"ui-heading ui-heading--lg\">Heading lg</h5><h6 class=\"ui-heading ui-heading--md\">Heading md</h6><p class=\"ui-heading ui-heading--sm\">Heading sm</p>",
14
+ "code": "<h1 class=\"ui-heading ui-heading--4xl\">4xl</h1>\n<h2 class=\"ui-heading ui-heading--3xl\">3xl</h2>\n<h3 class=\"ui-heading ui-heading--2xl\">2xl</h3>\n<h4 class=\"ui-heading ui-heading--xl\">xl</h4>\n<h5 class=\"ui-heading ui-heading--lg\">lg</h5>\n<h6 class=\"ui-heading ui-heading--md\">md</h6>\n<p class=\"ui-heading ui-heading--sm\">sm</p>"
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "title": "Decoupled Sizing",
20
+ "description": "Use any size with any semantic level.",
21
+ "examples": [
22
+ {
23
+ "layout": "stack",
24
+ "html": "<h2 class=\"ui-heading ui-heading--3xl\">h2 styled as 3xl</h2><h1 class=\"ui-heading ui-heading--lg\">h1 styled as lg</h1>",
25
+ "code": "<h2 class=\"ui-heading ui-heading--3xl\">h2 as 3xl</h2>\n<h1 class=\"ui-heading ui-heading--lg\">h1 as lg</h1>"
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "title": "With Text Utilities",
31
+ "description": "Combine with text utilities for color and other styles.",
32
+ "examples": [
33
+ {
34
+ "layout": "stack",
35
+ "html": "<h2 class=\"ui-heading ui-heading--2xl ui-text-muted\">Muted heading</h2><h2 class=\"ui-heading ui-heading--2xl ui-text-primary\">Primary heading</h2>",
36
+ "code": "<h2 class=\"ui-heading ui-text-muted\">Muted</h2>\n<h2 class=\"ui-heading ui-text-primary\">Primary</h2>"
37
+ }
38
+ ]
39
+ }
40
+ ],
41
+ "customization": [
42
+ {
43
+ "token": "--ui-heading-font-size",
44
+ "default": "var(--ui-font-size-xl)",
45
+ "description": "Default font size"
46
+ },
47
+ {
48
+ "token": "--ui-heading-line-height",
49
+ "default": "var(--ui-leading-xl)",
50
+ "description": "Default line height"
51
+ },
52
+ {
53
+ "token": "--ui-heading-weight",
54
+ "default": "var(--ui-weight-bold)",
55
+ "description": "Font weight"
56
+ },
57
+ {
58
+ "token": "--ui-heading-color",
59
+ "default": "var(--ui-color-text)",
60
+ "description": "Text color"
61
+ },
62
+ {
63
+ "token": "--ui-heading-font-size-4xl",
64
+ "default": "var(--ui-font-size-4xl)",
65
+ "description": "4xl size"
66
+ },
67
+ {
68
+ "token": "--ui-heading-font-size-3xl",
69
+ "default": "var(--ui-font-size-3xl)",
70
+ "description": "3xl size"
71
+ },
72
+ {
73
+ "token": "--ui-heading-font-size-2xl",
74
+ "default": "var(--ui-font-size-2xl)",
75
+ "description": "2xl size"
76
+ },
77
+ {
78
+ "token": "--ui-heading-font-size-xl",
79
+ "default": "var(--ui-font-size-xl)",
80
+ "description": "xl size"
81
+ },
82
+ {
83
+ "token": "--ui-heading-font-size-lg",
84
+ "default": "var(--ui-font-size-lg)",
85
+ "description": "lg size"
86
+ },
87
+ {
88
+ "token": "--ui-heading-font-size-md",
89
+ "default": "var(--ui-font-size-md)",
90
+ "description": "md size"
91
+ },
92
+ {
93
+ "token": "--ui-heading-font-size-sm",
94
+ "default": "var(--ui-font-size-sm)",
95
+ "description": "sm size"
96
+ }
97
+ ]
98
+ }
@@ -0,0 +1,14 @@
1
+ import { resolve } from 'node:path';
2
+ import { expect, test } from '@playwright/test';
3
+ import { saveForLostPixel, setupVisualTestFromDocs, validateGridRhythm } from '../../testing';
4
+
5
+ const DOCS_PATH = resolve(__dirname, 'heading.docs.json');
6
+
7
+ test.describe('heading visual regression', () => {
8
+ test('all variations', async ({ page }) => {
9
+ await setupVisualTestFromDocs(page, DOCS_PATH);
10
+ await validateGridRhythm(page, 'heading');
11
+ await saveForLostPixel(page, 'heading');
12
+ await expect(page.locator('body')).toHaveScreenshot('heading.visual.png');
13
+ });
14
+ });
@@ -0,0 +1,61 @@
1
+ @use '../../00-config/tokens/variables' as t;
2
+
3
+ // @component heading
4
+ // @element h2
5
+
6
+ @layer components.tokens {
7
+ .heading {
8
+ --_font-size: var(--ui-heading-font-size, var(--ui-font-size-xl, #{t.$font-size-xl}));
9
+ --_line-height: var(--ui-heading-line-height, var(--ui-leading-xl, #{t.$leading-xl}));
10
+ --_weight: var(--ui-heading-weight, var(--ui-weight-bold, #{t.$weight-bold}));
11
+ --_color: var(--ui-heading-color, var(--ui-color-text, #{t.$color-text}));
12
+ }
13
+
14
+ // @modifier size
15
+ .heading--4xl {
16
+ --_font-size: var(--ui-heading-font-size-4xl, var(--ui-font-size-4xl, #{t.$font-size-4xl}));
17
+ --_line-height: var(--ui-heading-line-height-4xl, var(--ui-leading-4xl, #{t.$leading-4xl}));
18
+ }
19
+
20
+ .heading--3xl {
21
+ --_font-size: var(--ui-heading-font-size-3xl, var(--ui-font-size-3xl, #{t.$font-size-3xl}));
22
+ --_line-height: var(--ui-heading-line-height-3xl, var(--ui-leading-3xl, #{t.$leading-3xl}));
23
+ }
24
+
25
+ .heading--2xl {
26
+ --_font-size: var(--ui-heading-font-size-2xl, var(--ui-font-size-2xl, #{t.$font-size-2xl}));
27
+ --_line-height: var(--ui-heading-line-height-2xl, var(--ui-leading-2xl, #{t.$leading-2xl}));
28
+ }
29
+
30
+ .heading--xl {
31
+ --_font-size: var(--ui-heading-font-size-xl, var(--ui-font-size-xl, #{t.$font-size-xl}));
32
+ --_line-height: var(--ui-heading-line-height-xl, var(--ui-leading-xl, #{t.$leading-xl}));
33
+ }
34
+
35
+ .heading--lg {
36
+ --_font-size: var(--ui-heading-font-size-lg, var(--ui-font-size-lg, #{t.$font-size-lg}));
37
+ --_line-height: var(--ui-heading-line-height-lg, var(--ui-leading-lg, #{t.$leading-lg}));
38
+ }
39
+
40
+ .heading--md {
41
+ --_font-size: var(--ui-heading-font-size-md, var(--ui-font-size-md, #{t.$font-size-md}));
42
+ --_line-height: var(--ui-heading-line-height-md, var(--ui-leading-tight-md, #{t.$leading-tight-md}));
43
+ }
44
+
45
+ .heading--sm {
46
+ --_font-size: var(--ui-heading-font-size-sm, var(--ui-font-size-sm, #{t.$font-size-sm}));
47
+ --_line-height: var(--ui-heading-line-height-sm, var(--ui-leading-tight-sm, #{t.$leading-tight-sm}));
48
+ }
49
+
50
+ }
51
+
52
+ @layer components.styles {
53
+ .heading {
54
+ margin: 0;
55
+
56
+ font-size: var(--_font-size);
57
+ font-weight: var(--_weight);
58
+ line-height: var(--_line-height);
59
+ color: var(--_color);
60
+ }
61
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "icon",
3
+ "element": "svg",
4
+ "modifiers": {
5
+ "size": {
6
+ "values": ["xs", "sm", "md", "lg", "xl"]
7
+ },
8
+ "stroke": {
9
+ "values": ["stroke-thin", "stroke-thick"]
10
+ },
11
+ "filled": {
12
+ "type": "boolean"
13
+ },
14
+ "spin": {
15
+ "type": "boolean"
16
+ }
17
+ },
18
+ "cssVars": [
19
+ {
20
+ "name": "--ui-icon-size",
21
+ "default": "1em"
22
+ },
23
+ {
24
+ "name": "--ui-icon-stroke",
25
+ "default": "2"
26
+ },
27
+ {
28
+ "name": "--ui-icon-size-xs",
29
+ "default": "calc(#{t.$unit} * 2"
30
+ },
31
+ {
32
+ "name": "--ui-icon-size-sm",
33
+ "default": "calc(#{t.$unit} * 3"
34
+ },
35
+ {
36
+ "name": "--ui-icon-size-md",
37
+ "default": "calc(#{t.$unit} * 4"
38
+ },
39
+ {
40
+ "name": "--ui-icon-size-lg",
41
+ "default": "calc(#{t.$unit} * 5"
42
+ },
43
+ {
44
+ "name": "--ui-icon-size-xl",
45
+ "default": "calc(#{t.$unit} * 6"
46
+ },
47
+ {
48
+ "name": "--ui-icon-stroke-thin",
49
+ "default": "1"
50
+ },
51
+ {
52
+ "name": "--ui-icon-stroke-thick",
53
+ "default": "2.5"
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "id": "icon",
3
+ "type": "component",
4
+ "title": "Icon",
5
+ "description": "CSS classes for sizing and styling SVG icons. Works with any stroke-based icon set like Lucide, Heroicons, or Feather.",
6
+ "api": "./icon.api.json",
7
+ "sections": [
8
+ {
9
+ "title": "Basic Usage",
10
+ "description": "Add the `ui-icon` class to any SVG. Icons inherit color from their parent via `currentColor`.",
11
+ "api": "./icon.api.json",
12
+ "examples": [
13
+ {
14
+ "html": "<svg class=\"ui-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 5v14M5 12h14\"/></svg>"
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "title": "With Lucide Icons",
20
+ "description": "Recommended icon set. Copy SVG from lucide.dev and add the ui-icon class.",
21
+ "api": "./icon.api.json",
22
+ "examples": [
23
+ {
24
+ "html": "<div class=\"ui-cluster ui-cluster--gap-2\"><svg class=\"ui-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><polyline points=\"9 22 9 12 15 12 15 22\"/></svg><svg class=\"ui-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/></svg><svg class=\"ui-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/></svg><svg class=\"ui-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/></svg></div>"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "title": "Sizes",
30
+ "data": {
31
+ "sizes": [
32
+ { "mod": "xs", "label": "2u" },
33
+ { "mod": "sm", "label": "3u" },
34
+ { "mod": "md", "label": "4u" },
35
+ { "mod": "lg", "label": "5u" },
36
+ { "mod": "xl", "label": "6u" }
37
+ ]
38
+ },
39
+ "examples": [
40
+ {
41
+ "html": "<div class=\"ui-cluster ui-cluster--gap-2\" style=\"align-items: center\">{% for s in sizes %}<div class=\"ui-stack ui-stack--gap-half\" style=\"align-items: center\"><svg class=\"ui-icon ui-icon--{{ s.mod }}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/></svg><small>{{ s.label }}</small></div>{% endfor %}</div>"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "title": "Stroke Width",
47
+ "description": "Adjust stroke thickness for visual weight.",
48
+ "api": "./icon.api.json",
49
+ "examples": [
50
+ {
51
+ "items": [
52
+ {
53
+ "tag": "svg",
54
+ "class": "ui-icon ui-icon--lg ui-icon--stroke-thin",
55
+ "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
56
+ "innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
57
+ },
58
+ {
59
+ "tag": "svg",
60
+ "class": "ui-icon ui-icon--lg",
61
+ "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
62
+ "innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
63
+ },
64
+ {
65
+ "tag": "svg",
66
+ "class": "ui-icon ui-icon--lg ui-icon--stroke-thick",
67
+ "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
68
+ "innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
69
+ }
70
+ ],
71
+ "layout": "cluster"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "title": "Filled Icons",
77
+ "description": "For solid icons, use the `--filled` modifier.",
78
+ "api": "./icon.api.json",
79
+ "examples": [
80
+ {
81
+ "items": [
82
+ {
83
+ "tag": "svg",
84
+ "class": "ui-icon ui-icon--lg",
85
+ "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
86
+ "innerHTML": "<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\"/>"
87
+ },
88
+ {
89
+ "tag": "svg",
90
+ "class": "ui-icon ui-icon--lg ui-icon--filled",
91
+ "attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
92
+ "innerHTML": "<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\"/>"
93
+ }
94
+ ],
95
+ "layout": "cluster"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "title": "Spin Animation",
101
+ "description": "Use `--spin` for loading indicators.",
102
+ "api": "./icon.api.json",
103
+ "examples": [
104
+ {
105
+ "html": "<svg class=\"ui-icon ui-icon--lg ui-icon--spin\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M21 12a9 9 0 1 1-6.219-8.56\"/></svg>"
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ "title": "Color Inheritance",
111
+ "description": "Icons inherit color from parent text color.",
112
+ "api": "./icon.api.json",
113
+ "examples": [
114
+ {
115
+ "html": "<div class=\"ui-cluster ui-cluster--gap-2\"><span style=\"color: var(--ui-color-primary)\"><svg class=\"ui-icon ui-icon--lg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/></svg></span><span style=\"color: var(--ui-color-success)\"><svg class=\"ui-icon ui-icon--lg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/></svg></span><span style=\"color: var(--ui-color-danger)\"><svg class=\"ui-icon ui-icon--lg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/></svg></span></div>"
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "customization": [
121
+ {
122
+ "token": "--ui-icon-size",
123
+ "default": "1em",
124
+ "description": "Default size (inherits from font)"
125
+ },
126
+ {
127
+ "token": "--ui-icon-size-xs",
128
+ "default": "calc(var(--unit) * 2)",
129
+ "description": "Extra small size (16px)"
130
+ },
131
+ {
132
+ "token": "--ui-icon-size-sm",
133
+ "default": "calc(var(--unit) * 3)",
134
+ "description": "Small size (24px)"
135
+ },
136
+ {
137
+ "token": "--ui-icon-size-md",
138
+ "default": "calc(var(--unit) * 4)",
139
+ "description": "Medium size (32px)"
140
+ },
141
+ {
142
+ "token": "--ui-icon-size-lg",
143
+ "default": "calc(var(--unit) * 5)",
144
+ "description": "Large size (40px)"
145
+ },
146
+ {
147
+ "token": "--ui-icon-size-xl",
148
+ "default": "calc(var(--unit) * 6)",
149
+ "description": "Extra large size (48px)"
150
+ },
151
+ { "token": "--ui-icon-stroke", "default": "2", "description": "Default stroke width" },
152
+ { "token": "--ui-icon-stroke-thin", "default": "1", "description": "Thin stroke width" },
153
+ { "token": "--ui-icon-stroke-thick", "default": "2.5", "description": "Thick stroke width" }
154
+ ]
155
+ }
@@ -0,0 +1,14 @@
1
+ import { resolve } from 'node:path';
2
+ import { expect, test } from '@playwright/test';
3
+ import { saveForLostPixel, setupVisualTestFromDocs, validateGridRhythm } from '../../testing';
4
+
5
+ const DOCS_PATH = resolve(__dirname, 'icon.docs.json');
6
+
7
+ test.describe('icon visual regression', () => {
8
+ test('all variations', async ({ page }) => {
9
+ await setupVisualTestFromDocs(page, DOCS_PATH);
10
+ await validateGridRhythm(page, 'icon');
11
+ await saveForLostPixel(page, 'icon');
12
+ await expect(page.locator('body')).toHaveScreenshot('icon.visual.png');
13
+ });
14
+ });
@@ -0,0 +1,79 @@
1
+ @use '../../00-config/tokens/variables' as t;
2
+
3
+ // @component icon
4
+ // @element svg
5
+
6
+ @layer components.tokens {
7
+ .icon {
8
+ --_size: var(--ui-icon-size, 1em);
9
+ --_stroke: var(--ui-icon-stroke, 2);
10
+ }
11
+
12
+ // @modifier size
13
+ .icon--xs {
14
+ --_size: var(--ui-icon-size-xs, calc(#{t.$unit} * 2));
15
+ }
16
+
17
+ .icon--sm {
18
+ --_size: var(--ui-icon-size-sm, calc(#{t.$unit} * 3));
19
+ }
20
+
21
+ .icon--md {
22
+ --_size: var(--ui-icon-size-md, calc(#{t.$unit} * 4));
23
+ }
24
+
25
+ .icon--lg {
26
+ --_size: var(--ui-icon-size-lg, calc(#{t.$unit} * 5));
27
+ }
28
+
29
+ .icon--xl {
30
+ --_size: var(--ui-icon-size-xl, calc(#{t.$unit} * 6));
31
+ }
32
+
33
+ // @modifier stroke
34
+ .icon--stroke-thin {
35
+ --_stroke: var(--ui-icon-stroke-thin, 1);
36
+ }
37
+
38
+ .icon--stroke-thick {
39
+ --_stroke: var(--ui-icon-stroke-thick, 2.5);
40
+ }
41
+
42
+ // @modifier boolean filled
43
+ // @modifier boolean spin
44
+ }
45
+
46
+ @layer components.styles {
47
+ .icon {
48
+ display: inline-block;
49
+ flex-shrink: 0;
50
+
51
+ block-size: var(--_size);
52
+ inline-size: var(--_size);
53
+
54
+ vertical-align: middle;
55
+ color: currentcolor;
56
+ fill: none;
57
+ stroke: currentcolor;
58
+ stroke-width: var(--_stroke);
59
+ stroke-linecap: round;
60
+ stroke-linejoin: round;
61
+
62
+ // For filled icons
63
+ &--filled {
64
+ fill: currentcolor;
65
+ stroke: none;
66
+ }
67
+
68
+ // Spin animation for loading states
69
+ &--spin {
70
+ animation: icon-spin 1s linear infinite;
71
+ }
72
+ }
73
+
74
+ @keyframes icon-spin {
75
+ to {
76
+ transform: rotate(360deg);
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,41 @@
1
+ @forward './accordion/index';
2
+ @forward './alert/index';
3
+ @forward './avatar/index';
4
+ @forward './badge/index';
5
+ @forward './breadcrumb/index';
6
+ @forward './button/index';
7
+ @forward './button-group/index';
8
+ @forward './card/index';
9
+ @forward './checkbox/index';
10
+ @forward './code/index';
11
+ @forward './data-list/index';
12
+ @forward './dialog/index';
13
+ @forward './disclosure/index';
14
+ @forward './divider/index';
15
+ @forward './drawer/index';
16
+ @forward './field/index';
17
+ @forward './form-error/index';
18
+ @forward './form-helper/index';
19
+ @forward './heading/index';
20
+ @forward './icon/index';
21
+ @forward './input/index';
22
+ @forward './label/index';
23
+ @forward './link/index';
24
+ @forward './menu/index';
25
+ @forward './modal/index';
26
+ @forward './overlay/index';
27
+ @forward './pagination/index';
28
+ @forward './popover/index';
29
+ @forward './progress/index';
30
+ @forward './radio/index';
31
+ @forward './select/index';
32
+ @forward './skeleton/index';
33
+ @forward './spinner/index';
34
+ @forward './status/index';
35
+ @forward './table/index';
36
+ @forward './tabs/index';
37
+ @forward './tag/index';
38
+ @forward './textarea/index';
39
+ @forward './toast/index';
40
+ @forward './toggle/index';
41
+ @forward './tooltip/index';
@@ -0,0 +1,154 @@
1
+ @use '../../00-config/tokens/variables' as t;
2
+
3
+ // @component input
4
+ // @element input
5
+
6
+ @layer components.tokens {
7
+ .input {
8
+ --_height: var(--ui-input-height, var(--ui-row-2, #{t.$row-2}));
9
+ --_padding-x: var(--ui-input-padding-x, var(--ui-space-1, #{t.$space-1}));
10
+ --_font-size: var(--ui-input-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
11
+ --_radius: var(--ui-input-radius, var(--ui-radius-md, #{t.$radius-md}));
12
+ --_bg: var(--ui-input-bg, var(--ui-color-bg, #{t.$color-bg}));
13
+ --_border-color: var(--ui-input-border-color, var(--ui-color-border-strong, #{t.$color-border-strong}));
14
+ --_border-color-focus: var(--ui-input-border-color-focus, var(--ui-color-primary, #{t.$color-primary}));
15
+ --_text: var(--ui-input-text, var(--ui-color-text, #{t.$color-text}));
16
+ --_placeholder: var(--ui-input-placeholder, var(--ui-color-text-muted, #{t.$color-text-muted}));
17
+ }
18
+
19
+ // @modifier size
20
+ .input--sm {
21
+ --_height: var(--ui-input-height-sm, calc(#{t.$row} * 1.5));
22
+ --_font-size: var(--ui-input-font-size-sm, var(--ui-font-size-xs, #{t.$font-size-xs}));
23
+ }
24
+
25
+ .input--lg {
26
+ --_height: var(--ui-input-height-lg, calc(#{t.$row} * 2.5));
27
+ --_padding-x: var(--ui-input-padding-x-lg, var(--ui-space-2, #{t.$space-2}));
28
+ --_font-size: var(--ui-input-font-size-lg, var(--ui-font-size-md, #{t.$font-size-md}));
29
+ }
30
+
31
+ // @modifier variant
32
+ .input--filled {
33
+ --_bg: var(--ui-input-filled-bg, var(--ui-color-bg-muted, #{t.$color-bg-muted}));
34
+ --_border-color: transparent;
35
+ }
36
+
37
+ .input--ghost {
38
+ --_bg: transparent;
39
+ --_border-color: transparent;
40
+ }
41
+
42
+ // @modifier state
43
+ .input--error {
44
+ --_border-color: var(--ui-input-error-border, var(--ui-color-danger, #{t.$color-danger}));
45
+ --_border-color-focus: var(--ui-input-error-border, var(--ui-color-danger, #{t.$color-danger}));
46
+ }
47
+
48
+ .input--success {
49
+ --_border-color: var(--ui-input-success-border, var(--ui-color-success, #{t.$color-success}));
50
+ --_border-color-focus: var(--ui-input-success-border, var(--ui-color-success, #{t.$color-success}));
51
+ }
52
+ }
53
+
54
+ @layer components.styles {
55
+ .input {
56
+ display: inline-flex;
57
+ align-items: center;
58
+
59
+ block-size: var(--_height);
60
+ padding-inline: var(--_padding-x);
61
+
62
+ font-family: inherit;
63
+ font-size: var(--_font-size);
64
+ line-height: 1;
65
+ color: var(--_text);
66
+
67
+ background: var(--_bg);
68
+ border: var(--ui-border-width-sm, #{t.$border-width-sm}) solid var(--_border-color);
69
+ border-radius: var(--_radius);
70
+
71
+ transition:
72
+ border-color var(--ui-duration-fast, 150ms) var(--ui-ease-default, ease),
73
+ box-shadow var(--ui-duration-fast, 150ms) var(--ui-ease-default, ease);
74
+
75
+ &::placeholder {
76
+ color: var(--_placeholder);
77
+ }
78
+
79
+ &:hover:not(:disabled, :focus) {
80
+ border-color: var(--ui-color-border-strong, #{t.$color-border-strong});
81
+ }
82
+
83
+ &:focus,
84
+ &--focus {
85
+ border-color: var(--_border-color-focus);
86
+ outline: none;
87
+ box-shadow: 0 0 0 var(--ui-border-width-md, #{t.$border-width-md}) var(--ui-color-focus, #{t.$color-focus});
88
+ }
89
+
90
+ &:disabled,
91
+ &--disabled {
92
+ opacity: 0.5;
93
+ cursor: not-allowed;
94
+ }
95
+
96
+ &:read-only {
97
+ background: var(--ui-color-bg-subtle, #{t.$color-bg-subtle});
98
+ }
99
+
100
+ // Full width
101
+ &--block {
102
+ inline-size: 100%;
103
+ }
104
+ }
105
+
106
+ // Input wrapper for prefix/suffix
107
+ .input-group {
108
+ display: inline-flex;
109
+ align-items: stretch;
110
+ position: relative;
111
+
112
+ .input {
113
+ flex: 1;
114
+ }
115
+
116
+ // With prefix
117
+ &--has-prefix .input {
118
+ padding-inline-start: calc(var(--_height) + var(--ui-space-half, #{t.$space-0}));
119
+ }
120
+
121
+ // With suffix
122
+ &--has-suffix .input {
123
+ padding-inline-end: calc(var(--_height) + var(--ui-space-half, #{t.$space-0}));
124
+ }
125
+ }
126
+
127
+ .input-group__addon {
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ position: absolute;
132
+ inset-block: 0;
133
+
134
+ inline-size: var(--_height, #{t.$row-2});
135
+
136
+ color: var(--ui-color-text-muted, #{t.$color-text-muted});
137
+
138
+ pointer-events: none;
139
+
140
+ &--start {
141
+ inset-inline-start: 0;
142
+ }
143
+
144
+ &--end {
145
+ inset-inline-end: 0;
146
+ }
147
+
148
+ // Interactive addon (buttons)
149
+ &--interactive {
150
+ cursor: pointer;
151
+ pointer-events: auto;
152
+ }
153
+ }
154
+ }