@graupl/graupl 1.0.0-beta.10 → 1.0.0-beta.11

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 (474) hide show
  1. package/dist/js/accordion.js +5 -0
  2. package/dist/js/accordion.js.map +1 -0
  3. package/dist/js/alert.js +5 -0
  4. package/dist/js/alert.js.map +1 -0
  5. package/dist/js/carousel.js +5 -0
  6. package/dist/js/carousel.js.map +1 -0
  7. package/dist/js/component/accordion.cjs.js +5 -0
  8. package/dist/js/component/accordion.cjs.js.map +1 -0
  9. package/dist/js/component/accordion.es.js +5 -0
  10. package/dist/js/component/accordion.es.js.map +1 -0
  11. package/dist/js/component/accordion.iife.js +5 -0
  12. package/dist/js/component/accordion.iife.js.map +1 -0
  13. package/dist/js/component/alert.cjs.js +5 -0
  14. package/dist/js/component/alert.cjs.js.map +1 -0
  15. package/dist/js/component/alert.es.js +5 -0
  16. package/dist/js/component/alert.es.js.map +1 -0
  17. package/dist/js/component/alert.iife.js +5 -0
  18. package/dist/js/component/alert.iife.js.map +1 -0
  19. package/dist/js/component/carousel.cjs.js +5 -0
  20. package/dist/js/component/carousel.cjs.js.map +1 -0
  21. package/dist/js/component/carousel.es.js +5 -0
  22. package/dist/js/component/carousel.es.js.map +1 -0
  23. package/dist/js/component/carousel.iife.js +5 -0
  24. package/dist/js/component/carousel.iife.js.map +1 -0
  25. package/dist/js/generator/accordion.cjs.js +5 -0
  26. package/dist/js/generator/accordion.cjs.js.map +1 -0
  27. package/dist/js/generator/accordion.es.js +5 -0
  28. package/dist/js/generator/accordion.es.js.map +1 -0
  29. package/dist/js/generator/accordion.iife.js +5 -0
  30. package/dist/js/generator/accordion.iife.js.map +1 -0
  31. package/dist/js/generator/carousel.cjs.js +5 -0
  32. package/dist/js/generator/carousel.cjs.js.map +1 -0
  33. package/dist/js/generator/carousel.es.js +5 -0
  34. package/dist/js/generator/carousel.es.js.map +1 -0
  35. package/dist/js/generator/carousel.iife.js +5 -0
  36. package/dist/js/generator/carousel.iife.js.map +1 -0
  37. package/dist/js/generator/navigation.cjs.js +3 -0
  38. package/dist/js/generator/navigation.cjs.js.map +1 -0
  39. package/dist/js/generator/navigation.es.js +3 -0
  40. package/dist/js/generator/navigation.es.js.map +1 -0
  41. package/dist/js/generator/navigation.iife.js +3 -0
  42. package/dist/js/generator/navigation.iife.js.map +1 -0
  43. package/dist/js/graupl.js +9 -0
  44. package/dist/js/graupl.js.map +1 -0
  45. package/dist/js/navigation.js +3 -0
  46. package/dist/js/navigation.js.map +1 -0
  47. package/package.json +24 -14
  48. package/.browserslistrc +0 -3
  49. package/.czrc +0 -3
  50. package/.devcontainer/devcontainer.json +0 -221
  51. package/.editorconfig +0 -13
  52. package/.env +0 -3
  53. package/.github/CODE_OF_CONDUCT.md +0 -73
  54. package/.github/COMMIT_CONVENTION.md +0 -17
  55. package/.github/CONTRIBUTING.md +0 -86
  56. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  57. package/.github/ISSUE_TEMPLATE/documentation.md +0 -20
  58. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  59. package/.github/SECURITY.md +0 -26
  60. package/.github/dependabot.yml +0 -17
  61. package/.github/pull_request_template.md +0 -5
  62. package/.github/workflows/codeql-analysis.yml +0 -71
  63. package/.github/workflows/docs.yml +0 -66
  64. package/.github/workflows/prerelease.yml +0 -125
  65. package/.github/workflows/release.yml +0 -111
  66. package/.github/workflows/test.yml +0 -78
  67. package/.husky/commit-msg +0 -3
  68. package/.husky/pre-commit +0 -4
  69. package/.prettierignore +0 -12
  70. package/.stylelintignore +0 -9
  71. package/.versionrc.cjs +0 -73
  72. package/.vscode/settings.json +0 -10
  73. package/CHANGELOG.md +0 -559
  74. package/build.js +0 -9
  75. package/combine-at-rules.cjs +0 -61
  76. package/commitlint.config.js +0 -5
  77. package/container/.env +0 -26
  78. package/container/build/app.dockerfile +0 -41
  79. package/container/docker-compose.yml +0 -27
  80. package/dist/js/graupl.cjs.js +0 -7
  81. package/dist/js/graupl.esm.js +0 -2561
  82. package/dist/js/graupl.iife.js +0 -7
  83. package/docs/.vitepress/config.js +0 -108
  84. package/docs/.vitepress/theme/custom.scss +0 -35
  85. package/docs/.vitepress/theme/index.js +0 -4
  86. package/docs/compiling-graupl.md +0 -57
  87. package/docs/components/alert.md +0 -130
  88. package/docs/components/button.md +0 -84
  89. package/docs/components/card.md +0 -369
  90. package/docs/components/index.md +0 -1
  91. package/docs/components/inputgroup.md +0 -159
  92. package/docs/components/menu.md +0 -326
  93. package/docs/components/navigation.md +0 -158
  94. package/docs/content.md +0 -237
  95. package/docs/defaults.md +0 -121
  96. package/docs/forms.md +0 -79
  97. package/docs/functions.md +0 -9
  98. package/docs/getting-started.md +0 -1
  99. package/docs/index.md +0 -1
  100. package/docs/introduction.md +0 -25
  101. package/docs/layout.md +0 -200
  102. package/docs/mixins.md +0 -47
  103. package/docs/state.md +0 -67
  104. package/docs/theme.md +0 -258
  105. package/docs/utilities/alignment.md +0 -411
  106. package/docs/utilities/background.md +0 -192
  107. package/docs/utilities/border.md +0 -268
  108. package/docs/utilities/color.md +0 -348
  109. package/docs/utilities/container.md +0 -3
  110. package/docs/utilities/display.md +0 -3
  111. package/docs/utilities/flex.md +0 -3
  112. package/docs/utilities/gradient.md +0 -3
  113. package/docs/utilities/height.md +0 -3
  114. package/docs/utilities/inset.md +0 -3
  115. package/docs/utilities/justification.md +0 -3
  116. package/docs/utilities/list.md +0 -3
  117. package/docs/utilities/order.md +0 -3
  118. package/docs/utilities/position.md +0 -3
  119. package/docs/utilities/ratio.md +0 -3
  120. package/docs/utilities/responsive-classes.md +0 -3
  121. package/docs/utilities/spacing.md +0 -3
  122. package/docs/utilities/typography.md +0 -3
  123. package/docs/utilities/visibility.md +0 -3
  124. package/docs/utilities/visually-hidden.md +0 -3
  125. package/docs/utilities/width.md +0 -3
  126. package/docs/utilities/z-index.md +0 -3
  127. package/docs/utilities.md +0 -357
  128. package/eslint.config.js +0 -74
  129. package/favicon.ico +0 -0
  130. package/index.html +0 -1214
  131. package/index.js +0 -12
  132. package/lint-staged.config.js +0 -6
  133. package/logo.svg +0 -296
  134. package/packages/core/build.js +0 -9
  135. package/packages/core/dist/css/base/button.css +0 -2
  136. package/packages/core/dist/css/base/button.css.map +0 -1
  137. package/packages/core/dist/css/base/form.css +0 -2
  138. package/packages/core/dist/css/base/form.css.map +0 -1
  139. package/packages/core/dist/css/base/link.css +0 -2
  140. package/packages/core/dist/css/base/link.css.map +0 -1
  141. package/packages/core/dist/css/base/table.css +0 -2
  142. package/packages/core/dist/css/base/table.css.map +0 -1
  143. package/packages/core/dist/css/base.css +0 -2
  144. package/packages/core/dist/css/base.css.map +0 -1
  145. package/packages/core/dist/css/component/accordion.css +0 -5
  146. package/packages/core/dist/css/component/accordion.css.map +0 -1
  147. package/packages/core/dist/css/component/alert.css +0 -2
  148. package/packages/core/dist/css/component/alert.css.map +0 -1
  149. package/packages/core/dist/css/component/card.css +0 -2
  150. package/packages/core/dist/css/component/card.css.map +0 -1
  151. package/packages/core/dist/css/component/carousel.css +0 -2
  152. package/packages/core/dist/css/component/carousel.css.map +0 -1
  153. package/packages/core/dist/css/component/input-group.css +0 -2
  154. package/packages/core/dist/css/component/input-group.css.map +0 -1
  155. package/packages/core/dist/css/component/list.css +0 -2
  156. package/packages/core/dist/css/component/list.css.map +0 -1
  157. package/packages/core/dist/css/component/menu.css +0 -2
  158. package/packages/core/dist/css/component/menu.css.map +0 -1
  159. package/packages/core/dist/css/component/navigation.css +0 -2
  160. package/packages/core/dist/css/component/navigation.css.map +0 -1
  161. package/packages/core/dist/css/component.css +0 -5
  162. package/packages/core/dist/css/component.css.map +0 -1
  163. package/packages/core/dist/css/graupl.css +0 -5
  164. package/packages/core/dist/css/graupl.css.map +0 -1
  165. package/packages/core/dist/css/init.css +0 -2
  166. package/packages/core/dist/css/init.css.map +0 -1
  167. package/packages/core/dist/css/layout/columns.css +0 -2
  168. package/packages/core/dist/css/layout/columns.css.map +0 -1
  169. package/packages/core/dist/css/layout/container.css +0 -2
  170. package/packages/core/dist/css/layout/container.css.map +0 -1
  171. package/packages/core/dist/css/layout/flex-columns.css +0 -2
  172. package/packages/core/dist/css/layout/flex-columns.css.map +0 -1
  173. package/packages/core/dist/css/layout.css +0 -5
  174. package/packages/core/dist/css/layout.css.map +0 -1
  175. package/packages/core/dist/css/normalize.css +0 -2
  176. package/packages/core/dist/css/normalize.css.map +0 -1
  177. package/packages/core/dist/css/state/focus.css +0 -2
  178. package/packages/core/dist/css/state/focus.css.map +0 -1
  179. package/packages/core/dist/css/state.css +0 -2
  180. package/packages/core/dist/css/state.css.map +0 -1
  181. package/packages/core/dist/css/theme/color.css +0 -2
  182. package/packages/core/dist/css/theme/color.css.map +0 -1
  183. package/packages/core/dist/css/theme/typography.css +0 -2
  184. package/packages/core/dist/css/theme/typography.css.map +0 -1
  185. package/packages/core/dist/css/theme.css +0 -2
  186. package/packages/core/dist/css/theme.css.map +0 -1
  187. package/packages/core/dist/css/utilities/alignment.css +0 -2
  188. package/packages/core/dist/css/utilities/alignment.css.map +0 -1
  189. package/packages/core/dist/css/utilities/background.css +0 -2
  190. package/packages/core/dist/css/utilities/background.css.map +0 -1
  191. package/packages/core/dist/css/utilities/border.css +0 -2
  192. package/packages/core/dist/css/utilities/border.css.map +0 -1
  193. package/packages/core/dist/css/utilities/color.css +0 -2
  194. package/packages/core/dist/css/utilities/color.css.map +0 -1
  195. package/packages/core/dist/css/utilities/container.css +0 -2
  196. package/packages/core/dist/css/utilities/container.css.map +0 -1
  197. package/packages/core/dist/css/utilities/display.css +0 -2
  198. package/packages/core/dist/css/utilities/display.css.map +0 -1
  199. package/packages/core/dist/css/utilities/flex.css +0 -2
  200. package/packages/core/dist/css/utilities/flex.css.map +0 -1
  201. package/packages/core/dist/css/utilities/gradient.css +0 -2
  202. package/packages/core/dist/css/utilities/gradient.css.map +0 -1
  203. package/packages/core/dist/css/utilities/height.css +0 -2
  204. package/packages/core/dist/css/utilities/height.css.map +0 -1
  205. package/packages/core/dist/css/utilities/inset.css +0 -2
  206. package/packages/core/dist/css/utilities/inset.css.map +0 -1
  207. package/packages/core/dist/css/utilities/justification.css +0 -2
  208. package/packages/core/dist/css/utilities/justification.css.map +0 -1
  209. package/packages/core/dist/css/utilities/list.css +0 -2
  210. package/packages/core/dist/css/utilities/list.css.map +0 -1
  211. package/packages/core/dist/css/utilities/order.css +0 -2
  212. package/packages/core/dist/css/utilities/order.css.map +0 -1
  213. package/packages/core/dist/css/utilities/position.css +0 -2
  214. package/packages/core/dist/css/utilities/position.css.map +0 -1
  215. package/packages/core/dist/css/utilities/ratio.css +0 -2
  216. package/packages/core/dist/css/utilities/ratio.css.map +0 -1
  217. package/packages/core/dist/css/utilities/spacing.css +0 -2
  218. package/packages/core/dist/css/utilities/spacing.css.map +0 -1
  219. package/packages/core/dist/css/utilities/typography.css +0 -2
  220. package/packages/core/dist/css/utilities/typography.css.map +0 -1
  221. package/packages/core/dist/css/utilities/visibility.css +0 -2
  222. package/packages/core/dist/css/utilities/visibility.css.map +0 -1
  223. package/packages/core/dist/css/utilities/visually-hidden.css +0 -2
  224. package/packages/core/dist/css/utilities/visually-hidden.css.map +0 -1
  225. package/packages/core/dist/css/utilities/width.css +0 -2
  226. package/packages/core/dist/css/utilities/width.css.map +0 -1
  227. package/packages/core/dist/css/utilities/z-index.css +0 -2
  228. package/packages/core/dist/css/utilities/z-index.css.map +0 -1
  229. package/packages/core/dist/css/utilities.css +0 -2
  230. package/packages/core/dist/css/utilities.css.map +0 -1
  231. package/packages/core/package.json +0 -58
  232. package/packages/core/scss/base/button.scss +0 -3
  233. package/packages/core/scss/base/form.scss +0 -3
  234. package/packages/core/scss/base/link.scss +0 -3
  235. package/packages/core/scss/base/table.scss +0 -3
  236. package/packages/core/scss/base.scss +0 -3
  237. package/packages/core/scss/component/accordion.scss +0 -3
  238. package/packages/core/scss/component/alert.scss +0 -3
  239. package/packages/core/scss/component/card.scss +0 -3
  240. package/packages/core/scss/component/carousel.scss +0 -3
  241. package/packages/core/scss/component/input-group.scss +0 -3
  242. package/packages/core/scss/component/list.scss +0 -3
  243. package/packages/core/scss/component/menu.scss +0 -3
  244. package/packages/core/scss/component/navigation.scss +0 -3
  245. package/packages/core/scss/component.scss +0 -3
  246. package/packages/core/scss/graupl.scss +0 -3
  247. package/packages/core/scss/init.scss +0 -3
  248. package/packages/core/scss/layout/columns.scss +0 -3
  249. package/packages/core/scss/layout/container.scss +0 -3
  250. package/packages/core/scss/layout/flex-columns.scss +0 -3
  251. package/packages/core/scss/layout.scss +0 -3
  252. package/packages/core/scss/normalize.scss +0 -3
  253. package/packages/core/scss/state/focus.scss +0 -3
  254. package/packages/core/scss/state.scss +0 -3
  255. package/packages/core/scss/theme/color.scss +0 -3
  256. package/packages/core/scss/theme/typography.scss +0 -3
  257. package/packages/core/scss/theme.scss +0 -3
  258. package/packages/core/scss/utilities/alignment.scss +0 -3
  259. package/packages/core/scss/utilities/background.scss +0 -3
  260. package/packages/core/scss/utilities/border.scss +0 -3
  261. package/packages/core/scss/utilities/color.scss +0 -3
  262. package/packages/core/scss/utilities/container.scss +0 -3
  263. package/packages/core/scss/utilities/display.scss +0 -3
  264. package/packages/core/scss/utilities/flex.scss +0 -3
  265. package/packages/core/scss/utilities/gradient.scss +0 -3
  266. package/packages/core/scss/utilities/height.scss +0 -3
  267. package/packages/core/scss/utilities/inset.scss +0 -3
  268. package/packages/core/scss/utilities/justification.scss +0 -3
  269. package/packages/core/scss/utilities/list.scss +0 -3
  270. package/packages/core/scss/utilities/order.scss +0 -3
  271. package/packages/core/scss/utilities/position.scss +0 -3
  272. package/packages/core/scss/utilities/ratio.scss +0 -3
  273. package/packages/core/scss/utilities/spacing.scss +0 -3
  274. package/packages/core/scss/utilities/typography.scss +0 -3
  275. package/packages/core/scss/utilities/visibility.scss +0 -3
  276. package/packages/core/scss/utilities/visually-hidden.scss +0 -3
  277. package/packages/core/scss/utilities/width.scss +0 -3
  278. package/packages/core/scss/utilities/z-index.scss +0 -3
  279. package/packages/core/scss/utilities.scss +0 -3
  280. package/packages/core/src/js/accordion/Accordion.js +0 -1163
  281. package/packages/core/src/js/accordion/AccordionItem.js +0 -496
  282. package/packages/core/src/js/accordion/index.js +0 -10
  283. package/packages/core/src/js/alert/Alert.js +0 -581
  284. package/packages/core/src/js/alert/index.js +0 -11
  285. package/packages/core/src/js/carousel/Carousel.js +0 -1427
  286. package/packages/core/src/js/carousel/index.js +0 -10
  287. package/packages/core/src/js/domHelpers.js +0 -37
  288. package/packages/core/src/js/eventHandlers.js +0 -39
  289. package/packages/core/src/js/navigation/index.js +0 -36
  290. package/packages/core/src/js/storage.js +0 -106
  291. package/packages/core/src/js/validate.js +0 -225
  292. package/packages/core/src/scss/_defaults.scss +0 -184
  293. package/packages/core/src/scss/_index.scss +0 -15
  294. package/packages/core/src/scss/_init.scss +0 -6
  295. package/packages/core/src/scss/_normalize.scss +0 -197
  296. package/packages/core/src/scss/_variables.scss +0 -95
  297. package/packages/core/src/scss/base/_index.scss +0 -6
  298. package/packages/core/src/scss/base/button/_defaults.scss +0 -49
  299. package/packages/core/src/scss/base/button/_index.scss +0 -206
  300. package/packages/core/src/scss/base/button/_mixins.scss +0 -104
  301. package/packages/core/src/scss/base/button/_variables.scss +0 -252
  302. package/packages/core/src/scss/base/form/_defaults.scss +0 -24
  303. package/packages/core/src/scss/base/form/_index.scss +0 -227
  304. package/packages/core/src/scss/base/form/_variables.scss +0 -245
  305. package/packages/core/src/scss/base/link/_defaults.scss +0 -35
  306. package/packages/core/src/scss/base/link/_index.scss +0 -245
  307. package/packages/core/src/scss/base/link/_variables.scss +0 -370
  308. package/packages/core/src/scss/base/table/_defaults.scss +0 -68
  309. package/packages/core/src/scss/base/table/_index.scss +0 -314
  310. package/packages/core/src/scss/base/table/_variables.scss +0 -309
  311. package/packages/core/src/scss/component/_index.scss +0 -10
  312. package/packages/core/src/scss/component/accordion/_defaults.scss +0 -40
  313. package/packages/core/src/scss/component/accordion/_index.scss +0 -198
  314. package/packages/core/src/scss/component/accordion/_variables.scss +0 -356
  315. package/packages/core/src/scss/component/alert/_defaults.scss +0 -49
  316. package/packages/core/src/scss/component/alert/_index.scss +0 -119
  317. package/packages/core/src/scss/component/alert/_variables.scss +0 -200
  318. package/packages/core/src/scss/component/card/_defaults.scss +0 -32
  319. package/packages/core/src/scss/component/card/_index.scss +0 -212
  320. package/packages/core/src/scss/component/card/_variables.scss +0 -216
  321. package/packages/core/src/scss/component/carousel/_defaults.scss +0 -43
  322. package/packages/core/src/scss/component/carousel/_index.scss +0 -192
  323. package/packages/core/src/scss/component/carousel/_variables.scss +0 -104
  324. package/packages/core/src/scss/component/input-group/_defaults.scss +0 -30
  325. package/packages/core/src/scss/component/input-group/_index.scss +0 -47
  326. package/packages/core/src/scss/component/input-group/_variables.scss +0 -66
  327. package/packages/core/src/scss/component/list/_defaults.scss +0 -15
  328. package/packages/core/src/scss/component/list/_index.scss +0 -52
  329. package/packages/core/src/scss/component/list/_variables.scss +0 -236
  330. package/packages/core/src/scss/component/menu/_defaults.scss +0 -57
  331. package/packages/core/src/scss/component/menu/_index.scss +0 -308
  332. package/packages/core/src/scss/component/menu/_variables.scss +0 -642
  333. package/packages/core/src/scss/component/navigation/_defaults.scss +0 -23
  334. package/packages/core/src/scss/component/navigation/_index.scss +0 -190
  335. package/packages/core/src/scss/component/navigation/_variables.scss +0 -290
  336. package/packages/core/src/scss/functions/_container.scss +0 -38
  337. package/packages/core/src/scss/functions/_important.scss +0 -36
  338. package/packages/core/src/scss/functions/_screen.scss +0 -38
  339. package/packages/core/src/scss/functions/_theme.scss +0 -39
  340. package/packages/core/src/scss/functions/_utility.scss +0 -28
  341. package/packages/core/src/scss/layout/_index.scss +0 -5
  342. package/packages/core/src/scss/layout/columns/_defaults.scss +0 -24
  343. package/packages/core/src/scss/layout/columns/_index.scss +0 -137
  344. package/packages/core/src/scss/layout/columns/_variables.scss +0 -55
  345. package/packages/core/src/scss/layout/container/_defaults.scss +0 -35
  346. package/packages/core/src/scss/layout/container/_index.scss +0 -628
  347. package/packages/core/src/scss/layout/container/_variables.scss +0 -114
  348. package/packages/core/src/scss/layout/flex-columns/_defaults.scss +0 -28
  349. package/packages/core/src/scss/layout/flex-columns/_index.scss +0 -184
  350. package/packages/core/src/scss/layout/flex-columns/_variables.scss +0 -30
  351. package/packages/core/src/scss/mixins/_animation.scss +0 -15
  352. package/packages/core/src/scss/mixins/_container.scss +0 -80
  353. package/packages/core/src/scss/mixins/_layer.scss +0 -16
  354. package/packages/core/src/scss/mixins/_screen.scss +0 -77
  355. package/packages/core/src/scss/mixins/_state.scss +0 -18
  356. package/packages/core/src/scss/mixins/_theme.scss +0 -15
  357. package/packages/core/src/scss/mixins/_utility.scss +0 -185
  358. package/packages/core/src/scss/mixins/_visually-hidden.scss +0 -30
  359. package/packages/core/src/scss/state/_index.scss +0 -3
  360. package/packages/core/src/scss/state/focus/_defaults.scss +0 -9
  361. package/packages/core/src/scss/state/focus/_index.scss +0 -42
  362. package/packages/core/src/scss/state/focus/_mixins.scss +0 -13
  363. package/packages/core/src/scss/state/focus/_variables.scss +0 -50
  364. package/packages/core/src/scss/theme/_index.scss +0 -4
  365. package/packages/core/src/scss/theme/color/_defaults.scss +0 -143
  366. package/packages/core/src/scss/theme/color/_index.scss +0 -42
  367. package/packages/core/src/scss/theme/color/_variables.scss +0 -133
  368. package/packages/core/src/scss/theme/typography/_defaults.scss +0 -54
  369. package/packages/core/src/scss/theme/typography/_index.scss +0 -120
  370. package/packages/core/src/scss/theme/typography/_variables.scss +0 -248
  371. package/packages/core/src/scss/utilities/_index.scss +0 -23
  372. package/packages/core/src/scss/utilities/_template/_defaults.scss +0 -41
  373. package/packages/core/src/scss/utilities/_template/_index.scss +0 -171
  374. package/packages/core/src/scss/utilities/_template/_variables.scss +0 -6
  375. package/packages/core/src/scss/utilities/alignment/_defaults.scss +0 -76
  376. package/packages/core/src/scss/utilities/alignment/_index.scss +0 -336
  377. package/packages/core/src/scss/utilities/alignment/_variables.scss +0 -6
  378. package/packages/core/src/scss/utilities/background/_defaults.scss +0 -122
  379. package/packages/core/src/scss/utilities/background/_index.scss +0 -634
  380. package/packages/core/src/scss/utilities/background/_variables.scss +0 -6
  381. package/packages/core/src/scss/utilities/border/_defaults.scss +0 -73
  382. package/packages/core/src/scss/utilities/border/_index.scss +0 -558
  383. package/packages/core/src/scss/utilities/border/_variables.scss +0 -6
  384. package/packages/core/src/scss/utilities/color/_defaults.scss +0 -49
  385. package/packages/core/src/scss/utilities/color/_index.scss +0 -469
  386. package/packages/core/src/scss/utilities/color/_variables.scss +0 -6
  387. package/packages/core/src/scss/utilities/container/_defaults.scss +0 -40
  388. package/packages/core/src/scss/utilities/container/_index.scss +0 -174
  389. package/packages/core/src/scss/utilities/container/_variables.scss +0 -6
  390. package/packages/core/src/scss/utilities/display/_defaults.scss +0 -47
  391. package/packages/core/src/scss/utilities/display/_index.scss +0 -184
  392. package/packages/core/src/scss/utilities/display/_variables.scss +0 -6
  393. package/packages/core/src/scss/utilities/flex/_defaults.scss +0 -99
  394. package/packages/core/src/scss/utilities/flex/_index.scss +0 -486
  395. package/packages/core/src/scss/utilities/flex/_variables.scss +0 -6
  396. package/packages/core/src/scss/utilities/gradient/_defaults.scss +0 -70
  397. package/packages/core/src/scss/utilities/gradient/_index.scss +0 -696
  398. package/packages/core/src/scss/utilities/gradient/_variables.scss +0 -29
  399. package/packages/core/src/scss/utilities/height/_defaults.scss +0 -54
  400. package/packages/core/src/scss/utilities/height/_index.scss +0 -525
  401. package/packages/core/src/scss/utilities/height/_variables.scss +0 -6
  402. package/packages/core/src/scss/utilities/inset/_defaults.scss +0 -55
  403. package/packages/core/src/scss/utilities/inset/_index.scss +0 -258
  404. package/packages/core/src/scss/utilities/inset/_variables.scss +0 -6
  405. package/packages/core/src/scss/utilities/justification/_defaults.scss +0 -73
  406. package/packages/core/src/scss/utilities/justification/_index.scss +0 -333
  407. package/packages/core/src/scss/utilities/justification/_variables.scss +0 -6
  408. package/packages/core/src/scss/utilities/list/_defaults.scss +0 -53
  409. package/packages/core/src/scss/utilities/list/_index.scss +0 -253
  410. package/packages/core/src/scss/utilities/list/_variables.scss +0 -6
  411. package/packages/core/src/scss/utilities/order/_defaults.scss +0 -36
  412. package/packages/core/src/scss/utilities/order/_index.scss +0 -246
  413. package/packages/core/src/scss/utilities/order/_variables.scss +0 -6
  414. package/packages/core/src/scss/utilities/position/_defaults.scss +0 -41
  415. package/packages/core/src/scss/utilities/position/_index.scss +0 -178
  416. package/packages/core/src/scss/utilities/position/_variables.scss +0 -6
  417. package/packages/core/src/scss/utilities/ratio/_defaults.scss +0 -42
  418. package/packages/core/src/scss/utilities/ratio/_index.scss +0 -188
  419. package/packages/core/src/scss/utilities/ratio/_variables.scss +0 -9
  420. package/packages/core/src/scss/utilities/spacing/_defaults.scss +0 -64
  421. package/packages/core/src/scss/utilities/spacing/_index.scss +0 -970
  422. package/packages/core/src/scss/utilities/spacing/_variables.scss +0 -6
  423. package/packages/core/src/scss/utilities/typography/_defaults.scss +0 -58
  424. package/packages/core/src/scss/utilities/typography/_index.scss +0 -1089
  425. package/packages/core/src/scss/utilities/typography/_variables.scss +0 -6
  426. package/packages/core/src/scss/utilities/visibility/_defaults.scss +0 -39
  427. package/packages/core/src/scss/utilities/visibility/_index.scss +0 -173
  428. package/packages/core/src/scss/utilities/visibility/_variables.scss +0 -6
  429. package/packages/core/src/scss/utilities/visually-hidden/_defaults.scss +0 -29
  430. package/packages/core/src/scss/utilities/visually-hidden/_index.scss +0 -189
  431. package/packages/core/src/scss/utilities/visually-hidden/_variables.scss +0 -6
  432. package/packages/core/src/scss/utilities/width/_defaults.scss +0 -54
  433. package/packages/core/src/scss/utilities/width/_index.scss +0 -525
  434. package/packages/core/src/scss/utilities/width/_variables.scss +0 -6
  435. package/packages/core/src/scss/utilities/z-index/_defaults.scss +0 -40
  436. package/packages/core/src/scss/utilities/z-index/_index.scss +0 -173
  437. package/packages/core/src/scss/utilities/z-index/_variables.scss +0 -6
  438. package/packages/core/vite.config.js +0 -28
  439. package/packages/icons/dist/css/base/button.css +0 -2
  440. package/packages/icons/dist/css/base/button.css.map +0 -1
  441. package/packages/icons/dist/css/base/link.css +0 -2
  442. package/packages/icons/dist/css/base/link.css.map +0 -1
  443. package/packages/icons/dist/css/base.css +0 -2
  444. package/packages/icons/dist/css/base.css.map +0 -1
  445. package/packages/icons/dist/css/component/icon.css +0 -2
  446. package/packages/icons/dist/css/component/icon.css.map +0 -1
  447. package/packages/icons/dist/css/component.css +0 -2
  448. package/packages/icons/dist/css/component.css.map +0 -1
  449. package/packages/icons/dist/css/icon.css +0 -2
  450. package/packages/icons/dist/css/icon.css.map +0 -1
  451. package/packages/icons/package.json +0 -48
  452. package/packages/icons/scss/base/button.scss +0 -3
  453. package/packages/icons/scss/base/link.scss +0 -3
  454. package/packages/icons/scss/base.scss +0 -3
  455. package/packages/icons/scss/component/icon.scss +0 -3
  456. package/packages/icons/scss/component.scss +0 -3
  457. package/packages/icons/scss/icon.scss +0 -3
  458. package/packages/icons/src/scss/_index.scss +0 -4
  459. package/packages/icons/src/scss/base/_index.scss +0 -4
  460. package/packages/icons/src/scss/base/button/_defaults.scss +0 -7
  461. package/packages/icons/src/scss/base/button/_index.scss +0 -58
  462. package/packages/icons/src/scss/base/button/_variables.scss +0 -7
  463. package/packages/icons/src/scss/base/link/_defaults.scss +0 -7
  464. package/packages/icons/src/scss/base/link/_index.scss +0 -58
  465. package/packages/icons/src/scss/base/link/_variables.scss +0 -7
  466. package/packages/icons/src/scss/component/_index.scss +0 -3
  467. package/packages/icons/src/scss/component/icon/_defaults.scss +0 -30
  468. package/packages/icons/src/scss/component/icon/_index.scss +0 -60
  469. package/packages/icons/src/scss/component/icon/_mixins.scss +0 -62
  470. package/packages/icons/src/scss/component/icon/_variables.scss +0 -24
  471. package/postcss.config.cjs +0 -11
  472. package/prettier.config.js +0 -16
  473. package/stylelint.config.js +0 -22
  474. package/vite.config.js +0 -28
@@ -1,245 +0,0 @@
1
- // @graupl/core form base variables.
2
- //
3
- // These values are to be used to directly style bases and provide a
4
- // cleaner way to reference custom properties.
5
-
6
- @use "defaults";
7
- @use "../../variables" as root-variables;
8
- @use "../../defaults" as root-defaults;
9
- @use "../../theme/typography/variables" as typography;
10
- @use "../../theme/color/variables" as color;
11
- @use "../../functions/theme";
12
- @use "sass:map";
13
-
14
- $input-padding-x: var(
15
- --#{root-defaults.$prefix}input-padding-x,
16
- #{map.get(root-variables.$spacers, 5)}
17
- );
18
- $input-padding-y: var(
19
- --#{root-defaults.$prefix}input-padding-y,
20
- #{map.get(root-variables.$spacers, 3)}
21
- );
22
- $input-padding: var(
23
- --#{root-defaults.$prefix}input-padding,
24
- #{$input-padding-y} #{$input-padding-x}
25
- );
26
- $input-font-size: var(
27
- --#{root-defaults.$prefix}input-font-size,
28
- #{map.get(typography.$font-sizes, base)}
29
- );
30
- $label-font-size: var(
31
- --#{root-defaults.$prefix}label-font-size,
32
- #{$input-font-size}
33
- );
34
- $fieldset-direction: var(
35
- --#{root-defaults.$prefix}fieldset-direction,
36
- #{defaults.$fieldset-direction}
37
- );
38
- $fieldset-gap: var(
39
- --#{root-defaults.$prefix}fieldset-gap,
40
- map.get(root-variables.$spacers, 2)
41
- );
42
- $fieldset-padding-x: var(
43
- --#{root-defaults.$prefix}fieldset-padding-x,
44
- #{$input-padding-x}
45
- );
46
- $fieldset-padding-y: var(
47
- --#{root-defaults.$prefix}fieldset-padding-y,
48
- #{$input-padding-y}
49
- );
50
- $fieldset-padding: var(
51
- --#{root-defaults.$prefix}fieldset-padding,
52
- #{$fieldset-padding-y} #{$fieldset-padding-x}
53
- );
54
- $fieldset-font-size: var(
55
- --#{root-defaults.$prefix}fieldset-font-size,
56
- #{$input-font-size}
57
- );
58
-
59
- // Background properties.
60
- $input-background: var(
61
- --#{root-defaults.$prefix}input-background,
62
- #{color.$background}
63
- );
64
- $fieldset-background: var(
65
- --#{root-defaults.$prefix}fieldset-background,
66
- #{$input-background}
67
- );
68
-
69
- // Text properties.
70
- $input-color: var(--#{root-defaults.$prefix}input-color, #{color.$color});
71
- $input-placeholder-color: var(
72
- --#{root-defaults.$prefix}input-placeholder-color,
73
- #{theme.get(secondary, 600)}
74
- );
75
- $label-color: var(--#{root-defaults.$prefix}label-color, #{$input-color});
76
- $fieldset-color: var(--#{root-defaults.$prefix}fieldset-color, #{$input-color});
77
- $input-disabled-color: var(
78
- --#{root-defaults.$prefix}input-disabled-color,
79
- #{theme.get(secondary, 400)}
80
- );
81
- $input-placeholder-disabled-color: var(
82
- --#{root-defaults.$prefix}input-placeholder-disabled-color,
83
- #{$input-disabled-color}
84
- );
85
- $label-disabled-color: var(
86
- --#{root-defaults.$prefix}label-disabled-color,
87
- #{$input-disabled-color}
88
- );
89
- $fieldset-disabled-color: var(
90
- --#{root-defaults.$prefix}fieldset-disabled-color,
91
- #{$input-disabled-color}
92
- );
93
-
94
- // Border properties.
95
- $input-border-top-width: var(
96
- --#{root-defaults.$prefix}input-border-top-width,
97
- #{root-variables.$border-top-width}
98
- );
99
- $input-border-right-width: var(
100
- --#{root-defaults.$prefix}input-border-right-width,
101
- #{root-variables.$border-right-width}
102
- );
103
- $input-border-bottom-width: var(
104
- --#{root-defaults.$prefix}input-border-bottom-width,
105
- #{root-variables.$border-bottom-width}
106
- );
107
- $input-border-left-width: var(
108
- --#{root-defaults.$prefix}input-border-left-width,
109
- #{root-variables.$border-left-width}
110
- );
111
- $input-border-width: var(
112
- --#{root-defaults.$prefix}input-border-width,
113
- #{$input-border-top-width} #{$input-border-right-width}
114
- #{$input-border-bottom-width} #{$input-border-left-width}
115
- );
116
- $input-border-top-style: var(
117
- --#{root-defaults.$prefix}input-border-top-style,
118
- #{root-variables.$border-top-style}
119
- );
120
- $input-border-right-style: var(
121
- --#{root-defaults.$prefix}input-border-right-style,
122
- #{root-variables.$border-right-style}
123
- );
124
- $input-border-bottom-style: var(
125
- --#{root-defaults.$prefix}input-border-bottom-style,
126
- #{root-variables.$border-bottom-style}
127
- );
128
- $input-border-left-style: var(
129
- --#{root-defaults.$prefix}input-border-left-style,
130
- #{root-variables.$border-left-style}
131
- );
132
- $input-border-style: var(
133
- --#{root-defaults.$prefix}input-border-style,
134
- #{$input-border-top-style} #{$input-border-right-style}
135
- #{$input-border-bottom-style} #{$input-border-left-style}
136
- );
137
- $input-border-top-left-radius: var(
138
- --#{root-defaults.$prefix}input-border-top-left-radius,
139
- #{root-variables.$border-top-left-radius}
140
- );
141
- $input-border-top-right-radius: var(
142
- --#{root-defaults.$prefix}input-border-top-right-radius,
143
- #{root-variables.$border-top-right-radius}
144
- );
145
- $input-border-bottom-left-radius: var(
146
- --#{root-defaults.$prefix}input-border-bottom-left-radius,
147
- #{root-variables.$border-bottom-left-radius}
148
- );
149
- $input-border-bottom-right-radius: var(
150
- --#{root-defaults.$prefix}input-border-bottom-right-radius,
151
- #{root-variables.$border-bottom-right-radius}
152
- );
153
- $input-border-radius: var(
154
- --#{root-defaults.$prefix}input-border-radius,
155
- #{$input-border-top-left-radius} #{$input-border-top-right-radius}
156
- #{$input-border-bottom-right-radius} #{$input-border-bottom-left-radius}
157
- );
158
- $fieldset-border-top-width: var(
159
- --#{root-defaults.$prefix}fieldset-border-top-width,
160
- #{$input-border-top-width}
161
- );
162
- $fieldset-border-right-width: var(
163
- --#{root-defaults.$prefix}fieldset-border-right-width,
164
- #{$input-border-right-width}
165
- );
166
- $fieldset-border-bottom-width: var(
167
- --#{root-defaults.$prefix}fieldset-border-bottom-width,
168
- #{$input-border-bottom-width}
169
- );
170
- $fieldset-border-left-width: var(
171
- --#{root-defaults.$prefix}fieldset-border-left-width,
172
- #{$input-border-left-width}
173
- );
174
- $fieldset-border-width: var(
175
- --#{root-defaults.$prefix}fieldset-border-width,
176
- #{$fieldset-border-top-width} #{$fieldset-border-right-width}
177
- #{$fieldset-border-bottom-width} #{$fieldset-border-left-width}
178
- );
179
- $fieldset-border-top-style: var(
180
- --#{root-defaults.$prefix}fieldset-border-top-style,
181
- #{$input-border-top-style}
182
- );
183
- $fieldset-border-right-style: var(
184
- --#{root-defaults.$prefix}fieldset-border-right-style,
185
- #{$input-border-right-style}
186
- );
187
- $fieldset-border-bottom-style: var(
188
- --#{root-defaults.$prefix}fieldset-border-bottom-style,
189
- #{$input-border-bottom-style}
190
- );
191
- $fieldset-border-left-style: var(
192
- --#{root-defaults.$prefix}fieldset-border-left-style,
193
- #{$input-border-left-style}
194
- );
195
- $fieldset-border-style: var(
196
- --#{root-defaults.$prefix}fieldset-border-style,
197
- #{$fieldset-border-top-style} #{$fieldset-border-right-style}
198
- #{$fieldset-border-bottom-style} #{$fieldset-border-left-style}
199
- );
200
- $fieldset-border-top-left-radius: var(
201
- --#{root-defaults.$prefix}fieldset-border-top-left-radius,
202
- #{$input-border-top-left-radius}
203
- );
204
- $fieldset-border-top-right-radius: var(
205
- --#{root-defaults.$prefix}fieldset-border-top-right-radius,
206
- #{$input-border-top-right-radius}
207
- );
208
- $fieldset-border-bottom-left-radius: var(
209
- --#{root-defaults.$prefix}fieldset-border-bottom-left-radius,
210
- #{$input-border-bottom-left-radius}
211
- );
212
- $fieldset-border-bottom-right-radius: var(
213
- --#{root-defaults.$prefix}fieldset-border-bottom-right-radius,
214
- #{$input-border-bottom-right-radius}
215
- );
216
- $fieldset-border-radius: var(
217
- --#{root-defaults.$prefix}fieldset-border-radius,
218
- #{$fieldset-border-top-left-radius} #{$fieldset-border-top-right-radius}
219
- #{$fieldset-border-bottom-right-radius}
220
- #{$fieldset-border-bottom-left-radius}
221
- );
222
-
223
- // Border colour properties.
224
- $input-border-color: var(
225
- --#{root-defaults.$prefix}input-border-color,
226
- #{color.$border-color}
227
- );
228
- $input-disabled-border-color: var(
229
- --#{root-defaults.$prefix}input-disabled-border-color,
230
- #{theme.get(secondary, 200)}
231
- );
232
- $fieldset-border-color: var(
233
- --#{root-defaults.$prefix}fieldset-border-color,
234
- #{$input-border-color}
235
- );
236
- $fieldset-disabled-border-color: var(
237
- --#{root-defaults.$prefix}fieldset-disabled-border-color,
238
- #{$input-disabled-border-color}
239
- );
240
-
241
- // Accent color properties.
242
- $input-accent-color: var(
243
- --#{root-defaults.$prefix}input-accent-color,
244
- #{$input-color}
245
- );
@@ -1,35 +0,0 @@
1
- // @graupl/core link base default values.
2
- //
3
- // Generally, these should not be used directly when styling bases unless a static value is needed.
4
- // They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
5
- //
6
- // They should not be used to define direct property values (i.e. font-size, color, etc.).
7
- // Those should be defined as custom properties in the `_variables.scss` file.
8
-
9
- @use "../../defaults" as root-defaults;
10
-
11
- // Link selectors.
12
- $selector-base: root-defaults.$element-selector-base !default;
13
- $modifier-selector-base: root-defaults.$modifier-selector-base !default;
14
- $link-selector-base: $selector-base !default;
15
- $link-selector: "a" !default;
16
- $stretched-link-selector-base: $modifier-selector-base !default;
17
- $stretched-link-selector: "stretched" !default;
18
- $stretched-link-pseudo-selector: "before" !default;
19
-
20
- // Link properties.
21
- $link-initial-text-decoration: underline !default;
22
- $link-final-text-decoration: $link-initial-text-decoration !default;
23
- $link-disabled-text-decoration: $link-initial-text-decoration !default;
24
- $link-initial-text-decoration-style: solid !default;
25
- $link-final-text-decoration-style: $link-initial-text-decoration-style !default;
26
- $link-disabled-text-decoration-style: $link-initial-text-decoration-style !default;
27
- $link-initial-transform: none !default;
28
- $link-final-transform: $link-initial-transform !default;
29
- $link-disabled-transform: $link-initial-transform !default;
30
- $link-border-width: 0 !default;
31
- $link-min-width: auto;
32
- $link-min-height: auto;
33
-
34
- // Stretched link properties.
35
- $stretched-link-z-index: 5 !default;
@@ -1,245 +0,0 @@
1
- // @graupl/core link base styles.
2
- //
3
- // This module provides the base styles for the link component.
4
- //
5
- // The link component is a styled anchor element that provides a consistent look and feel for links.
6
- //
7
- // The following selectors are generated by default:
8
- // - `a`: The link component.
9
- // - `.stretched`: A component modifier that makes the link component stretch to fill nearest relative container.
10
- //
11
- // The following custom properties control the generated selectors:
12
- // - `--graupl-link-text-decoration`: The text decoration for the link component.
13
- // - `--graupl-link-visited-text-decoration`: The text decoration for a visited link component.
14
- // - `--graupl-link-focus-text-decoration`: The text decoration for a focused link component.
15
- // - `--graupl-link-hover-text-decoration`: The text decoration for a hovered link component.
16
- // - `--graupl-link-active-text-decoration`: The text decoration for an active link component.
17
- // - `--graupl-link-disabled-text-decoration`: The text decoration for a disabled link component.
18
- // - `--graupl-link-text-decoration-thickness`: The text decoration thickness for the link component.
19
- // - `--graupl-link-visited-text-decoration-thickness`: The text decoration thickness for a visited link component.
20
- // - `--graupl-link-focus-text-decoration-thickness`: The text decoration thickness for a focused link component.
21
- // - `--graupl-link-hover-text-decoration-thickness`: The text decoration thickness for a hovered link component.
22
- // - `--graupl-link-active-text-decoration-thickness`: The text decoration thickness for an active link component.
23
- // - `--graupl-link-disabled-text-decoration-thickness`: The text decoration thickness for a disabled link component.
24
- // - `--graupl-link-text-decoration-style`: The text decoration style for the link component.
25
- // - `--graupl-link-visited-text-decoration-style`: The text decoration style for a visited link component.
26
- // - `--graupl-link-focus-text-decoration-style`: The text decoration style for a focused link component.
27
- // - `--graupl-link-hover-text-decoration-style`: The text decoration style for a hovered link component.
28
- // - `--graupl-link-active-text-decoration-style`: The text decoration style for an active link component.
29
- // - `--graupl-link-disabled-text-decoration-style`: The text decoration style for a disabled link component.
30
- // - `--graupl-link-color`: The color for the link component.
31
- // - `--graupl-link-visited-color`: The color for a visited link component.
32
- // - `--graupl-link-focus-color`: The color for a focused link component.
33
- // - `--graupl-link-hover-color`: The color for a hovered link component.
34
- // - `--graupl-link-active-color`: The color for an active link component.
35
- // - `--graupl-link-disabled-color`: The color for a disabled link component.
36
- // - `--graupl-link-text-decoration-color`: The text decoration color for the link component.
37
- // - `--graupl-link-visited-text-decoration-color`: The text decoration color for a visited link component.
38
- // - `--graupl-link-focus-text-decoration-color`: The text decoration color for a focused link component.
39
- // - `--graupl-link-hover-text-decoration-color`: The text decoration color for a hovered link component.
40
- // - `--graupl-link-active-text-decoration-color`: The text decoration color for an active link component.
41
- // - `--graupl-link-disabled-text-decoration-color`: The text decoration color for a disabled link component.
42
- // - `--graupl-link-background`: The background color for the link component.
43
- // - `--graupl-link-visited-background`: The background color for a visited link component.
44
- // - `--graupl-link-focus-background`: The background color for a focused link component.
45
- // - `--graupl-link-hover-background`: The background color for a hovered link component.
46
- // - `--graupl-link-active-background`: The background color for an active link component.
47
- // - `--graupl-link-disabled-background`: The background color for a disabled link component.
48
- // - `--graupl-link-padding-x`: The horizontal padding for the link component.
49
- // - `--graupl-link-padding-y`: The vertical padding for the link component.
50
- // - `--graupl-link-padding`: The padding for the link component (combines x and y padding).
51
- // - `--graupl-link-transition`: The transition for the link component.
52
- // - `--graupl-link-transition-reduced-motion`: The transition for the link component when reduced motion is enabled.
53
- // - `--graupl-link-transform`: The transform for the link component.
54
- // - `--graupl-link-transform-visited`: The transform for a visited link component.
55
- // - `--graupl-link-transform-focus`: The transform for a focused link component.
56
- // - `--graupl-link-transform-hover`: The transform for a hovered link component.
57
- // - `--graupl-link-transform-active`: The transform for an active link component.
58
- // - `--graupl-link-transform-disabled`: The transform for a disabled link component.
59
- // - `--graupl-link-border-top-width`: The top border width for the link component.
60
- // - `--graupl-link-border-right-width`: The right border width for the link component.
61
- // - `--graupl-link-border-bottom-width`: The bottom border width for the link component.
62
- // - `--graupl-link-border-left-width`: The left border width for the link component.
63
- // - `--graupl-link-border-width`: The border width for the link component (combines top, right, bottom, and left widths).
64
- // - `--graupl-link-border-top-style`: The top border style for the link component.
65
- // - `--graupl-link-border-right-style`: The right border style for the link component.
66
- // - `--graupl-link-border-bottom-style`: The bottom border style for the link component.
67
- // - `--graupl-link-border-left-style`: The left border style for the link component.
68
- // - `--graupl-link-border-style`: The border style for the link component (combines top, right, bottom, and left styles).
69
- // - `--graupl-link-border-top-left-radius`: The top left border radius for the link component.
70
- // - `--graupl-link-border-top-right-radius`: The top right border radius for the link component.
71
- // - `--graupl-link-border-bottom-right-radius`: The bottom right border radius for the link component.
72
- // - `--graupl-link-border-bottom-left-radius`: The bottom left border radius for the link component.
73
- // - `--graupl-link-border-radius`: The border radius for the link component (combines top-left, top-right, bottom-right, and bottom-left radii).
74
- // - `--graupl-link-border-color`: The border color for the link component.
75
- // - `--graupl-link-visited-border-color`: The border color for a visited link component.
76
- // - `--graupl-link-focus-border-color`: The border color for a focused link component.
77
- // - `--graupl-link-hover-border-color`: The border color for a hovered link component.
78
- // - `--graupl-link-active-border-color`: The border color for an active link component.
79
- // - `--graupl-link-disabled-border-color`: The border color for a disabled link component.
80
- // - `--graupl-link-min-width`: The minimum width for the link component.
81
- // - `--graupl-link-min-height`: The minimum height for the link component.
82
- // - `--graupl-link-stretched-link-z-index`: The z-index for the stretched link component modifier.
83
- //
84
- // The following variables control the generated selectors:
85
- // - `$selector-base`: The selector base for the component.
86
- // - `$modifier-selector-base`: The selector base for component modifiers.
87
- // - `$link-selector-base`: The base selector for the link component.
88
- // - `$link-selector`: The selector for the link component.
89
- // - `$stretched-link-selector-base`: The base selector for the stretched link component modifier.
90
- // - `$stretched-link-selector`: The selector for the stretched link component modifier.
91
- // - `$stretched-link-pseudo-selector`: The pseudo selector for the stretched link component modifier.
92
- // - `$link-initial-text-decoration`: The initial text decoration for the link component.
93
- // - `$link-final-text-decoration`: The final text decoration for the link component.
94
- // - `$link-disabled-text-decoration`: The disabled text decoration for the link component.
95
- // - `$link-initial-text-decoration-style`: The initial text decoration style for the link component.
96
- // - `$link-final-text-decoration-style`: The final text decoration style for the link component.
97
- // - `$link-disabled-text-decoration-style`: The disabled text decoration style for the link component.
98
- // - `$link-initial-transform`: The initial transform for the link component.
99
- // - `$link-final-transform`: The final transform for the link component.
100
- // - `$link-disabled-transform`: The disabled transform for the link component.
101
- // - `$link-border-width`: The border width for the link component.
102
- // - `$link-min-width`: The minimum width for the link component.
103
- // - `$link-min-height`: The minimum height for the link component.
104
- // - `$stretched-link-z-index`: The z-index for the stretched link component modifier.
105
- //
106
- // @example
107
- // <a href="#">Link</a>
108
- //
109
- // @example
110
- // <a href="#" class="stretched">Stretched Link</a>
111
-
112
- @use "../../defaults" as root-defaults;
113
- @use "../../mixins/animation";
114
- @use "../../mixins/layer" as *;
115
- @use "defaults";
116
- @use "sass:map";
117
- @use "variables" as *;
118
-
119
- @include layer(base) {
120
- // a
121
- #{defaults.$link-selector-base}#{defaults.$link-selector} {
122
- min-width: $link-min-width;
123
- min-height: $link-min-height;
124
- padding: $link-padding;
125
- transform: $link-transform;
126
- transition: $link-transition;
127
- border-width: $link-border-width;
128
- border-style: $link-border-style;
129
- border-radius: $link-border-radius;
130
- text-decoration: $link-text-decoration;
131
- text-decoration-style: $link-text-decoration-style;
132
- text-decoration-thickness: $link-text-decoration-thickness;
133
-
134
- @each $state, $selectors in root-defaults.$state-selectors {
135
- @each $selector in $selectors {
136
- // e.g &:visited, &:focus-visible, &:hover, &:active, &:disabled
137
- &#{$selector} {
138
- transform: map.get($link-transform-states, $state);
139
- text-decoration: map.get($link-text-decoration-states, $state);
140
- text-decoration-style: map.get(
141
- $link-text-decoration-style-states,
142
- $state
143
- );
144
- text-decoration-thickness: map.get(
145
- $link-text-decoration-thickness-states,
146
- $state
147
- );
148
-
149
- // If the state is disabled, we want that to supersede all other states.
150
- @if $state == "disabled" {
151
- cursor: not-allowed;
152
-
153
- @each $sub-state, $sub-selectors in root-defaults.$state-selectors {
154
- @if $sub-state != $state {
155
- @each $sub-selector in $sub-selectors {
156
- // e.g &:visited, &:focus-visible, &:hover, &:active
157
- &#{$sub-selector} {
158
- transform: map.get($link-transform-states, $state);
159
- text-decoration: map.get(
160
- $link-text-decoration-states,
161
- $state
162
- );
163
- text-decoration-style: map.get(
164
- $link-text-decoration-style-states,
165
- $state
166
- );
167
- text-decoration-thickness: map.get(
168
- $link-text-decoration-thickness-states,
169
- $state
170
- );
171
- }
172
- }
173
- }
174
- }
175
- }
176
- }
177
- }
178
- }
179
-
180
- // &.stretched
181
- &#{defaults.$stretched-link-selector-base}#{defaults.$stretched-link-selector} {
182
- isolation: isolate;
183
-
184
- // &::after
185
- &::#{defaults.$stretched-link-pseudo-selector} {
186
- content: "";
187
- position: absolute;
188
- inset: 0;
189
- z-index: $stretched-link-z-index;
190
- }
191
- }
192
- }
193
-
194
- @include animation.off {
195
- // a
196
- #{defaults.$link-selector-base}#{defaults.$link-selector} {
197
- --#{root-defaults.$prefix}link-transition: #{$link-transition-reduced-motion};
198
- }
199
- }
200
- }
201
-
202
- @include layer(theme) {
203
- // a
204
- #{defaults.$link-selector-base}#{defaults.$link-selector} {
205
- border-color: $link-border-color;
206
- background: $link-background;
207
- color: $link-color;
208
- text-decoration-color: $link-text-decoration-color;
209
-
210
- @each $state, $selectors in root-defaults.$state-selectors {
211
- @each $selector in $selectors {
212
- // e.g &:visited, &:focus-visible, &:hover, &:active, &:disabled
213
- &#{$selector} {
214
- border-color: map.get($link-border-color-states, $state);
215
- background: map.get($link-background-states, $state);
216
- color: map.get($link-color-states, $state);
217
- text-decoration-color: map.get(
218
- $link-text-decoration-color-states,
219
- $state
220
- );
221
-
222
- // If the state is disabled, we want that to supersede all other states.
223
- @if $state == "disabled" {
224
- @each $sub-state, $sub-selectors in root-defaults.$state-selectors {
225
- @if $sub-state != $state {
226
- @each $sub-selector in $sub-selectors {
227
- // e.g &:visited, &:focus-visible, &:hover, &:active
228
- &#{$sub-selector} {
229
- border-color: map.get($link-border-color-states, $state);
230
- background: map.get($link-background-states, $state);
231
- color: map.get($link-color-states, $state);
232
- text-decoration-color: map.get(
233
- $link-text-decoration-color-states,
234
- $state
235
- );
236
- }
237
- }
238
- }
239
- }
240
- }
241
- }
242
- }
243
- }
244
- }
245
- }