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

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 (480) 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/alert.cjs.js +5 -0
  32. package/dist/js/generator/alert.cjs.js.map +1 -0
  33. package/dist/js/generator/alert.es.js +5 -0
  34. package/dist/js/generator/alert.es.js.map +1 -0
  35. package/dist/js/generator/alert.iife.js +5 -0
  36. package/dist/js/generator/alert.iife.js.map +1 -0
  37. package/dist/js/generator/carousel.cjs.js +5 -0
  38. package/dist/js/generator/carousel.cjs.js.map +1 -0
  39. package/dist/js/generator/carousel.es.js +5 -0
  40. package/dist/js/generator/carousel.es.js.map +1 -0
  41. package/dist/js/generator/carousel.iife.js +5 -0
  42. package/dist/js/generator/carousel.iife.js.map +1 -0
  43. package/dist/js/generator/navigation.cjs.js +3 -0
  44. package/dist/js/generator/navigation.cjs.js.map +1 -0
  45. package/dist/js/generator/navigation.es.js +3 -0
  46. package/dist/js/generator/navigation.es.js.map +1 -0
  47. package/dist/js/generator/navigation.iife.js +3 -0
  48. package/dist/js/generator/navigation.iife.js.map +1 -0
  49. package/dist/js/graupl.js +9 -0
  50. package/dist/js/graupl.js.map +1 -0
  51. package/dist/js/navigation.js +3 -0
  52. package/dist/js/navigation.js.map +1 -0
  53. package/package.json +24 -14
  54. package/.browserslistrc +0 -3
  55. package/.czrc +0 -3
  56. package/.devcontainer/devcontainer.json +0 -221
  57. package/.editorconfig +0 -13
  58. package/.env +0 -3
  59. package/.github/CODE_OF_CONDUCT.md +0 -73
  60. package/.github/COMMIT_CONVENTION.md +0 -17
  61. package/.github/CONTRIBUTING.md +0 -86
  62. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  63. package/.github/ISSUE_TEMPLATE/documentation.md +0 -20
  64. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  65. package/.github/SECURITY.md +0 -26
  66. package/.github/dependabot.yml +0 -17
  67. package/.github/pull_request_template.md +0 -5
  68. package/.github/workflows/codeql-analysis.yml +0 -71
  69. package/.github/workflows/docs.yml +0 -66
  70. package/.github/workflows/prerelease.yml +0 -125
  71. package/.github/workflows/release.yml +0 -111
  72. package/.github/workflows/test.yml +0 -78
  73. package/.husky/commit-msg +0 -3
  74. package/.husky/pre-commit +0 -4
  75. package/.prettierignore +0 -12
  76. package/.stylelintignore +0 -9
  77. package/.versionrc.cjs +0 -73
  78. package/.vscode/settings.json +0 -10
  79. package/CHANGELOG.md +0 -559
  80. package/build.js +0 -9
  81. package/combine-at-rules.cjs +0 -61
  82. package/commitlint.config.js +0 -5
  83. package/container/.env +0 -26
  84. package/container/build/app.dockerfile +0 -41
  85. package/container/docker-compose.yml +0 -27
  86. package/dist/js/graupl.cjs.js +0 -7
  87. package/dist/js/graupl.esm.js +0 -2561
  88. package/dist/js/graupl.iife.js +0 -7
  89. package/docs/.vitepress/config.js +0 -108
  90. package/docs/.vitepress/theme/custom.scss +0 -35
  91. package/docs/.vitepress/theme/index.js +0 -4
  92. package/docs/compiling-graupl.md +0 -57
  93. package/docs/components/alert.md +0 -130
  94. package/docs/components/button.md +0 -84
  95. package/docs/components/card.md +0 -369
  96. package/docs/components/index.md +0 -1
  97. package/docs/components/inputgroup.md +0 -159
  98. package/docs/components/menu.md +0 -326
  99. package/docs/components/navigation.md +0 -158
  100. package/docs/content.md +0 -237
  101. package/docs/defaults.md +0 -121
  102. package/docs/forms.md +0 -79
  103. package/docs/functions.md +0 -9
  104. package/docs/getting-started.md +0 -1
  105. package/docs/index.md +0 -1
  106. package/docs/introduction.md +0 -25
  107. package/docs/layout.md +0 -200
  108. package/docs/mixins.md +0 -47
  109. package/docs/state.md +0 -67
  110. package/docs/theme.md +0 -258
  111. package/docs/utilities/alignment.md +0 -411
  112. package/docs/utilities/background.md +0 -192
  113. package/docs/utilities/border.md +0 -268
  114. package/docs/utilities/color.md +0 -348
  115. package/docs/utilities/container.md +0 -3
  116. package/docs/utilities/display.md +0 -3
  117. package/docs/utilities/flex.md +0 -3
  118. package/docs/utilities/gradient.md +0 -3
  119. package/docs/utilities/height.md +0 -3
  120. package/docs/utilities/inset.md +0 -3
  121. package/docs/utilities/justification.md +0 -3
  122. package/docs/utilities/list.md +0 -3
  123. package/docs/utilities/order.md +0 -3
  124. package/docs/utilities/position.md +0 -3
  125. package/docs/utilities/ratio.md +0 -3
  126. package/docs/utilities/responsive-classes.md +0 -3
  127. package/docs/utilities/spacing.md +0 -3
  128. package/docs/utilities/typography.md +0 -3
  129. package/docs/utilities/visibility.md +0 -3
  130. package/docs/utilities/visually-hidden.md +0 -3
  131. package/docs/utilities/width.md +0 -3
  132. package/docs/utilities/z-index.md +0 -3
  133. package/docs/utilities.md +0 -357
  134. package/eslint.config.js +0 -74
  135. package/favicon.ico +0 -0
  136. package/index.html +0 -1214
  137. package/index.js +0 -12
  138. package/lint-staged.config.js +0 -6
  139. package/logo.svg +0 -296
  140. package/packages/core/build.js +0 -9
  141. package/packages/core/dist/css/base/button.css +0 -2
  142. package/packages/core/dist/css/base/button.css.map +0 -1
  143. package/packages/core/dist/css/base/form.css +0 -2
  144. package/packages/core/dist/css/base/form.css.map +0 -1
  145. package/packages/core/dist/css/base/link.css +0 -2
  146. package/packages/core/dist/css/base/link.css.map +0 -1
  147. package/packages/core/dist/css/base/table.css +0 -2
  148. package/packages/core/dist/css/base/table.css.map +0 -1
  149. package/packages/core/dist/css/base.css +0 -2
  150. package/packages/core/dist/css/base.css.map +0 -1
  151. package/packages/core/dist/css/component/accordion.css +0 -5
  152. package/packages/core/dist/css/component/accordion.css.map +0 -1
  153. package/packages/core/dist/css/component/alert.css +0 -2
  154. package/packages/core/dist/css/component/alert.css.map +0 -1
  155. package/packages/core/dist/css/component/card.css +0 -2
  156. package/packages/core/dist/css/component/card.css.map +0 -1
  157. package/packages/core/dist/css/component/carousel.css +0 -2
  158. package/packages/core/dist/css/component/carousel.css.map +0 -1
  159. package/packages/core/dist/css/component/input-group.css +0 -2
  160. package/packages/core/dist/css/component/input-group.css.map +0 -1
  161. package/packages/core/dist/css/component/list.css +0 -2
  162. package/packages/core/dist/css/component/list.css.map +0 -1
  163. package/packages/core/dist/css/component/menu.css +0 -2
  164. package/packages/core/dist/css/component/menu.css.map +0 -1
  165. package/packages/core/dist/css/component/navigation.css +0 -2
  166. package/packages/core/dist/css/component/navigation.css.map +0 -1
  167. package/packages/core/dist/css/component.css +0 -5
  168. package/packages/core/dist/css/component.css.map +0 -1
  169. package/packages/core/dist/css/graupl.css +0 -5
  170. package/packages/core/dist/css/graupl.css.map +0 -1
  171. package/packages/core/dist/css/init.css +0 -2
  172. package/packages/core/dist/css/init.css.map +0 -1
  173. package/packages/core/dist/css/layout/columns.css +0 -2
  174. package/packages/core/dist/css/layout/columns.css.map +0 -1
  175. package/packages/core/dist/css/layout/container.css +0 -2
  176. package/packages/core/dist/css/layout/container.css.map +0 -1
  177. package/packages/core/dist/css/layout/flex-columns.css +0 -2
  178. package/packages/core/dist/css/layout/flex-columns.css.map +0 -1
  179. package/packages/core/dist/css/layout.css +0 -5
  180. package/packages/core/dist/css/layout.css.map +0 -1
  181. package/packages/core/dist/css/normalize.css +0 -2
  182. package/packages/core/dist/css/normalize.css.map +0 -1
  183. package/packages/core/dist/css/state/focus.css +0 -2
  184. package/packages/core/dist/css/state/focus.css.map +0 -1
  185. package/packages/core/dist/css/state.css +0 -2
  186. package/packages/core/dist/css/state.css.map +0 -1
  187. package/packages/core/dist/css/theme/color.css +0 -2
  188. package/packages/core/dist/css/theme/color.css.map +0 -1
  189. package/packages/core/dist/css/theme/typography.css +0 -2
  190. package/packages/core/dist/css/theme/typography.css.map +0 -1
  191. package/packages/core/dist/css/theme.css +0 -2
  192. package/packages/core/dist/css/theme.css.map +0 -1
  193. package/packages/core/dist/css/utilities/alignment.css +0 -2
  194. package/packages/core/dist/css/utilities/alignment.css.map +0 -1
  195. package/packages/core/dist/css/utilities/background.css +0 -2
  196. package/packages/core/dist/css/utilities/background.css.map +0 -1
  197. package/packages/core/dist/css/utilities/border.css +0 -2
  198. package/packages/core/dist/css/utilities/border.css.map +0 -1
  199. package/packages/core/dist/css/utilities/color.css +0 -2
  200. package/packages/core/dist/css/utilities/color.css.map +0 -1
  201. package/packages/core/dist/css/utilities/container.css +0 -2
  202. package/packages/core/dist/css/utilities/container.css.map +0 -1
  203. package/packages/core/dist/css/utilities/display.css +0 -2
  204. package/packages/core/dist/css/utilities/display.css.map +0 -1
  205. package/packages/core/dist/css/utilities/flex.css +0 -2
  206. package/packages/core/dist/css/utilities/flex.css.map +0 -1
  207. package/packages/core/dist/css/utilities/gradient.css +0 -2
  208. package/packages/core/dist/css/utilities/gradient.css.map +0 -1
  209. package/packages/core/dist/css/utilities/height.css +0 -2
  210. package/packages/core/dist/css/utilities/height.css.map +0 -1
  211. package/packages/core/dist/css/utilities/inset.css +0 -2
  212. package/packages/core/dist/css/utilities/inset.css.map +0 -1
  213. package/packages/core/dist/css/utilities/justification.css +0 -2
  214. package/packages/core/dist/css/utilities/justification.css.map +0 -1
  215. package/packages/core/dist/css/utilities/list.css +0 -2
  216. package/packages/core/dist/css/utilities/list.css.map +0 -1
  217. package/packages/core/dist/css/utilities/order.css +0 -2
  218. package/packages/core/dist/css/utilities/order.css.map +0 -1
  219. package/packages/core/dist/css/utilities/position.css +0 -2
  220. package/packages/core/dist/css/utilities/position.css.map +0 -1
  221. package/packages/core/dist/css/utilities/ratio.css +0 -2
  222. package/packages/core/dist/css/utilities/ratio.css.map +0 -1
  223. package/packages/core/dist/css/utilities/spacing.css +0 -2
  224. package/packages/core/dist/css/utilities/spacing.css.map +0 -1
  225. package/packages/core/dist/css/utilities/typography.css +0 -2
  226. package/packages/core/dist/css/utilities/typography.css.map +0 -1
  227. package/packages/core/dist/css/utilities/visibility.css +0 -2
  228. package/packages/core/dist/css/utilities/visibility.css.map +0 -1
  229. package/packages/core/dist/css/utilities/visually-hidden.css +0 -2
  230. package/packages/core/dist/css/utilities/visually-hidden.css.map +0 -1
  231. package/packages/core/dist/css/utilities/width.css +0 -2
  232. package/packages/core/dist/css/utilities/width.css.map +0 -1
  233. package/packages/core/dist/css/utilities/z-index.css +0 -2
  234. package/packages/core/dist/css/utilities/z-index.css.map +0 -1
  235. package/packages/core/dist/css/utilities.css +0 -2
  236. package/packages/core/dist/css/utilities.css.map +0 -1
  237. package/packages/core/package.json +0 -58
  238. package/packages/core/scss/base/button.scss +0 -3
  239. package/packages/core/scss/base/form.scss +0 -3
  240. package/packages/core/scss/base/link.scss +0 -3
  241. package/packages/core/scss/base/table.scss +0 -3
  242. package/packages/core/scss/base.scss +0 -3
  243. package/packages/core/scss/component/accordion.scss +0 -3
  244. package/packages/core/scss/component/alert.scss +0 -3
  245. package/packages/core/scss/component/card.scss +0 -3
  246. package/packages/core/scss/component/carousel.scss +0 -3
  247. package/packages/core/scss/component/input-group.scss +0 -3
  248. package/packages/core/scss/component/list.scss +0 -3
  249. package/packages/core/scss/component/menu.scss +0 -3
  250. package/packages/core/scss/component/navigation.scss +0 -3
  251. package/packages/core/scss/component.scss +0 -3
  252. package/packages/core/scss/graupl.scss +0 -3
  253. package/packages/core/scss/init.scss +0 -3
  254. package/packages/core/scss/layout/columns.scss +0 -3
  255. package/packages/core/scss/layout/container.scss +0 -3
  256. package/packages/core/scss/layout/flex-columns.scss +0 -3
  257. package/packages/core/scss/layout.scss +0 -3
  258. package/packages/core/scss/normalize.scss +0 -3
  259. package/packages/core/scss/state/focus.scss +0 -3
  260. package/packages/core/scss/state.scss +0 -3
  261. package/packages/core/scss/theme/color.scss +0 -3
  262. package/packages/core/scss/theme/typography.scss +0 -3
  263. package/packages/core/scss/theme.scss +0 -3
  264. package/packages/core/scss/utilities/alignment.scss +0 -3
  265. package/packages/core/scss/utilities/background.scss +0 -3
  266. package/packages/core/scss/utilities/border.scss +0 -3
  267. package/packages/core/scss/utilities/color.scss +0 -3
  268. package/packages/core/scss/utilities/container.scss +0 -3
  269. package/packages/core/scss/utilities/display.scss +0 -3
  270. package/packages/core/scss/utilities/flex.scss +0 -3
  271. package/packages/core/scss/utilities/gradient.scss +0 -3
  272. package/packages/core/scss/utilities/height.scss +0 -3
  273. package/packages/core/scss/utilities/inset.scss +0 -3
  274. package/packages/core/scss/utilities/justification.scss +0 -3
  275. package/packages/core/scss/utilities/list.scss +0 -3
  276. package/packages/core/scss/utilities/order.scss +0 -3
  277. package/packages/core/scss/utilities/position.scss +0 -3
  278. package/packages/core/scss/utilities/ratio.scss +0 -3
  279. package/packages/core/scss/utilities/spacing.scss +0 -3
  280. package/packages/core/scss/utilities/typography.scss +0 -3
  281. package/packages/core/scss/utilities/visibility.scss +0 -3
  282. package/packages/core/scss/utilities/visually-hidden.scss +0 -3
  283. package/packages/core/scss/utilities/width.scss +0 -3
  284. package/packages/core/scss/utilities/z-index.scss +0 -3
  285. package/packages/core/scss/utilities.scss +0 -3
  286. package/packages/core/src/js/accordion/Accordion.js +0 -1163
  287. package/packages/core/src/js/accordion/AccordionItem.js +0 -496
  288. package/packages/core/src/js/accordion/index.js +0 -10
  289. package/packages/core/src/js/alert/Alert.js +0 -581
  290. package/packages/core/src/js/alert/index.js +0 -11
  291. package/packages/core/src/js/carousel/Carousel.js +0 -1427
  292. package/packages/core/src/js/carousel/index.js +0 -10
  293. package/packages/core/src/js/domHelpers.js +0 -37
  294. package/packages/core/src/js/eventHandlers.js +0 -39
  295. package/packages/core/src/js/navigation/index.js +0 -36
  296. package/packages/core/src/js/storage.js +0 -106
  297. package/packages/core/src/js/validate.js +0 -225
  298. package/packages/core/src/scss/_defaults.scss +0 -184
  299. package/packages/core/src/scss/_index.scss +0 -15
  300. package/packages/core/src/scss/_init.scss +0 -6
  301. package/packages/core/src/scss/_normalize.scss +0 -197
  302. package/packages/core/src/scss/_variables.scss +0 -95
  303. package/packages/core/src/scss/base/_index.scss +0 -6
  304. package/packages/core/src/scss/base/button/_defaults.scss +0 -49
  305. package/packages/core/src/scss/base/button/_index.scss +0 -206
  306. package/packages/core/src/scss/base/button/_mixins.scss +0 -104
  307. package/packages/core/src/scss/base/button/_variables.scss +0 -252
  308. package/packages/core/src/scss/base/form/_defaults.scss +0 -24
  309. package/packages/core/src/scss/base/form/_index.scss +0 -227
  310. package/packages/core/src/scss/base/form/_variables.scss +0 -245
  311. package/packages/core/src/scss/base/link/_defaults.scss +0 -35
  312. package/packages/core/src/scss/base/link/_index.scss +0 -245
  313. package/packages/core/src/scss/base/link/_variables.scss +0 -370
  314. package/packages/core/src/scss/base/table/_defaults.scss +0 -68
  315. package/packages/core/src/scss/base/table/_index.scss +0 -314
  316. package/packages/core/src/scss/base/table/_variables.scss +0 -309
  317. package/packages/core/src/scss/component/_index.scss +0 -10
  318. package/packages/core/src/scss/component/accordion/_defaults.scss +0 -40
  319. package/packages/core/src/scss/component/accordion/_index.scss +0 -198
  320. package/packages/core/src/scss/component/accordion/_variables.scss +0 -356
  321. package/packages/core/src/scss/component/alert/_defaults.scss +0 -49
  322. package/packages/core/src/scss/component/alert/_index.scss +0 -119
  323. package/packages/core/src/scss/component/alert/_variables.scss +0 -200
  324. package/packages/core/src/scss/component/card/_defaults.scss +0 -32
  325. package/packages/core/src/scss/component/card/_index.scss +0 -212
  326. package/packages/core/src/scss/component/card/_variables.scss +0 -216
  327. package/packages/core/src/scss/component/carousel/_defaults.scss +0 -43
  328. package/packages/core/src/scss/component/carousel/_index.scss +0 -192
  329. package/packages/core/src/scss/component/carousel/_variables.scss +0 -104
  330. package/packages/core/src/scss/component/input-group/_defaults.scss +0 -30
  331. package/packages/core/src/scss/component/input-group/_index.scss +0 -47
  332. package/packages/core/src/scss/component/input-group/_variables.scss +0 -66
  333. package/packages/core/src/scss/component/list/_defaults.scss +0 -15
  334. package/packages/core/src/scss/component/list/_index.scss +0 -52
  335. package/packages/core/src/scss/component/list/_variables.scss +0 -236
  336. package/packages/core/src/scss/component/menu/_defaults.scss +0 -57
  337. package/packages/core/src/scss/component/menu/_index.scss +0 -308
  338. package/packages/core/src/scss/component/menu/_variables.scss +0 -642
  339. package/packages/core/src/scss/component/navigation/_defaults.scss +0 -23
  340. package/packages/core/src/scss/component/navigation/_index.scss +0 -190
  341. package/packages/core/src/scss/component/navigation/_variables.scss +0 -290
  342. package/packages/core/src/scss/functions/_container.scss +0 -38
  343. package/packages/core/src/scss/functions/_important.scss +0 -36
  344. package/packages/core/src/scss/functions/_screen.scss +0 -38
  345. package/packages/core/src/scss/functions/_theme.scss +0 -39
  346. package/packages/core/src/scss/functions/_utility.scss +0 -28
  347. package/packages/core/src/scss/layout/_index.scss +0 -5
  348. package/packages/core/src/scss/layout/columns/_defaults.scss +0 -24
  349. package/packages/core/src/scss/layout/columns/_index.scss +0 -137
  350. package/packages/core/src/scss/layout/columns/_variables.scss +0 -55
  351. package/packages/core/src/scss/layout/container/_defaults.scss +0 -35
  352. package/packages/core/src/scss/layout/container/_index.scss +0 -628
  353. package/packages/core/src/scss/layout/container/_variables.scss +0 -114
  354. package/packages/core/src/scss/layout/flex-columns/_defaults.scss +0 -28
  355. package/packages/core/src/scss/layout/flex-columns/_index.scss +0 -184
  356. package/packages/core/src/scss/layout/flex-columns/_variables.scss +0 -30
  357. package/packages/core/src/scss/mixins/_animation.scss +0 -15
  358. package/packages/core/src/scss/mixins/_container.scss +0 -80
  359. package/packages/core/src/scss/mixins/_layer.scss +0 -16
  360. package/packages/core/src/scss/mixins/_screen.scss +0 -77
  361. package/packages/core/src/scss/mixins/_state.scss +0 -18
  362. package/packages/core/src/scss/mixins/_theme.scss +0 -15
  363. package/packages/core/src/scss/mixins/_utility.scss +0 -185
  364. package/packages/core/src/scss/mixins/_visually-hidden.scss +0 -30
  365. package/packages/core/src/scss/state/_index.scss +0 -3
  366. package/packages/core/src/scss/state/focus/_defaults.scss +0 -9
  367. package/packages/core/src/scss/state/focus/_index.scss +0 -42
  368. package/packages/core/src/scss/state/focus/_mixins.scss +0 -13
  369. package/packages/core/src/scss/state/focus/_variables.scss +0 -50
  370. package/packages/core/src/scss/theme/_index.scss +0 -4
  371. package/packages/core/src/scss/theme/color/_defaults.scss +0 -143
  372. package/packages/core/src/scss/theme/color/_index.scss +0 -42
  373. package/packages/core/src/scss/theme/color/_variables.scss +0 -133
  374. package/packages/core/src/scss/theme/typography/_defaults.scss +0 -54
  375. package/packages/core/src/scss/theme/typography/_index.scss +0 -120
  376. package/packages/core/src/scss/theme/typography/_variables.scss +0 -248
  377. package/packages/core/src/scss/utilities/_index.scss +0 -23
  378. package/packages/core/src/scss/utilities/_template/_defaults.scss +0 -41
  379. package/packages/core/src/scss/utilities/_template/_index.scss +0 -171
  380. package/packages/core/src/scss/utilities/_template/_variables.scss +0 -6
  381. package/packages/core/src/scss/utilities/alignment/_defaults.scss +0 -76
  382. package/packages/core/src/scss/utilities/alignment/_index.scss +0 -336
  383. package/packages/core/src/scss/utilities/alignment/_variables.scss +0 -6
  384. package/packages/core/src/scss/utilities/background/_defaults.scss +0 -122
  385. package/packages/core/src/scss/utilities/background/_index.scss +0 -634
  386. package/packages/core/src/scss/utilities/background/_variables.scss +0 -6
  387. package/packages/core/src/scss/utilities/border/_defaults.scss +0 -73
  388. package/packages/core/src/scss/utilities/border/_index.scss +0 -558
  389. package/packages/core/src/scss/utilities/border/_variables.scss +0 -6
  390. package/packages/core/src/scss/utilities/color/_defaults.scss +0 -49
  391. package/packages/core/src/scss/utilities/color/_index.scss +0 -469
  392. package/packages/core/src/scss/utilities/color/_variables.scss +0 -6
  393. package/packages/core/src/scss/utilities/container/_defaults.scss +0 -40
  394. package/packages/core/src/scss/utilities/container/_index.scss +0 -174
  395. package/packages/core/src/scss/utilities/container/_variables.scss +0 -6
  396. package/packages/core/src/scss/utilities/display/_defaults.scss +0 -47
  397. package/packages/core/src/scss/utilities/display/_index.scss +0 -184
  398. package/packages/core/src/scss/utilities/display/_variables.scss +0 -6
  399. package/packages/core/src/scss/utilities/flex/_defaults.scss +0 -99
  400. package/packages/core/src/scss/utilities/flex/_index.scss +0 -486
  401. package/packages/core/src/scss/utilities/flex/_variables.scss +0 -6
  402. package/packages/core/src/scss/utilities/gradient/_defaults.scss +0 -70
  403. package/packages/core/src/scss/utilities/gradient/_index.scss +0 -696
  404. package/packages/core/src/scss/utilities/gradient/_variables.scss +0 -29
  405. package/packages/core/src/scss/utilities/height/_defaults.scss +0 -54
  406. package/packages/core/src/scss/utilities/height/_index.scss +0 -525
  407. package/packages/core/src/scss/utilities/height/_variables.scss +0 -6
  408. package/packages/core/src/scss/utilities/inset/_defaults.scss +0 -55
  409. package/packages/core/src/scss/utilities/inset/_index.scss +0 -258
  410. package/packages/core/src/scss/utilities/inset/_variables.scss +0 -6
  411. package/packages/core/src/scss/utilities/justification/_defaults.scss +0 -73
  412. package/packages/core/src/scss/utilities/justification/_index.scss +0 -333
  413. package/packages/core/src/scss/utilities/justification/_variables.scss +0 -6
  414. package/packages/core/src/scss/utilities/list/_defaults.scss +0 -53
  415. package/packages/core/src/scss/utilities/list/_index.scss +0 -253
  416. package/packages/core/src/scss/utilities/list/_variables.scss +0 -6
  417. package/packages/core/src/scss/utilities/order/_defaults.scss +0 -36
  418. package/packages/core/src/scss/utilities/order/_index.scss +0 -246
  419. package/packages/core/src/scss/utilities/order/_variables.scss +0 -6
  420. package/packages/core/src/scss/utilities/position/_defaults.scss +0 -41
  421. package/packages/core/src/scss/utilities/position/_index.scss +0 -178
  422. package/packages/core/src/scss/utilities/position/_variables.scss +0 -6
  423. package/packages/core/src/scss/utilities/ratio/_defaults.scss +0 -42
  424. package/packages/core/src/scss/utilities/ratio/_index.scss +0 -188
  425. package/packages/core/src/scss/utilities/ratio/_variables.scss +0 -9
  426. package/packages/core/src/scss/utilities/spacing/_defaults.scss +0 -64
  427. package/packages/core/src/scss/utilities/spacing/_index.scss +0 -970
  428. package/packages/core/src/scss/utilities/spacing/_variables.scss +0 -6
  429. package/packages/core/src/scss/utilities/typography/_defaults.scss +0 -58
  430. package/packages/core/src/scss/utilities/typography/_index.scss +0 -1089
  431. package/packages/core/src/scss/utilities/typography/_variables.scss +0 -6
  432. package/packages/core/src/scss/utilities/visibility/_defaults.scss +0 -39
  433. package/packages/core/src/scss/utilities/visibility/_index.scss +0 -173
  434. package/packages/core/src/scss/utilities/visibility/_variables.scss +0 -6
  435. package/packages/core/src/scss/utilities/visually-hidden/_defaults.scss +0 -29
  436. package/packages/core/src/scss/utilities/visually-hidden/_index.scss +0 -189
  437. package/packages/core/src/scss/utilities/visually-hidden/_variables.scss +0 -6
  438. package/packages/core/src/scss/utilities/width/_defaults.scss +0 -54
  439. package/packages/core/src/scss/utilities/width/_index.scss +0 -525
  440. package/packages/core/src/scss/utilities/width/_variables.scss +0 -6
  441. package/packages/core/src/scss/utilities/z-index/_defaults.scss +0 -40
  442. package/packages/core/src/scss/utilities/z-index/_index.scss +0 -173
  443. package/packages/core/src/scss/utilities/z-index/_variables.scss +0 -6
  444. package/packages/core/vite.config.js +0 -28
  445. package/packages/icons/dist/css/base/button.css +0 -2
  446. package/packages/icons/dist/css/base/button.css.map +0 -1
  447. package/packages/icons/dist/css/base/link.css +0 -2
  448. package/packages/icons/dist/css/base/link.css.map +0 -1
  449. package/packages/icons/dist/css/base.css +0 -2
  450. package/packages/icons/dist/css/base.css.map +0 -1
  451. package/packages/icons/dist/css/component/icon.css +0 -2
  452. package/packages/icons/dist/css/component/icon.css.map +0 -1
  453. package/packages/icons/dist/css/component.css +0 -2
  454. package/packages/icons/dist/css/component.css.map +0 -1
  455. package/packages/icons/dist/css/icon.css +0 -2
  456. package/packages/icons/dist/css/icon.css.map +0 -1
  457. package/packages/icons/package.json +0 -48
  458. package/packages/icons/scss/base/button.scss +0 -3
  459. package/packages/icons/scss/base/link.scss +0 -3
  460. package/packages/icons/scss/base.scss +0 -3
  461. package/packages/icons/scss/component/icon.scss +0 -3
  462. package/packages/icons/scss/component.scss +0 -3
  463. package/packages/icons/scss/icon.scss +0 -3
  464. package/packages/icons/src/scss/_index.scss +0 -4
  465. package/packages/icons/src/scss/base/_index.scss +0 -4
  466. package/packages/icons/src/scss/base/button/_defaults.scss +0 -7
  467. package/packages/icons/src/scss/base/button/_index.scss +0 -58
  468. package/packages/icons/src/scss/base/button/_variables.scss +0 -7
  469. package/packages/icons/src/scss/base/link/_defaults.scss +0 -7
  470. package/packages/icons/src/scss/base/link/_index.scss +0 -58
  471. package/packages/icons/src/scss/base/link/_variables.scss +0 -7
  472. package/packages/icons/src/scss/component/_index.scss +0 -3
  473. package/packages/icons/src/scss/component/icon/_defaults.scss +0 -30
  474. package/packages/icons/src/scss/component/icon/_index.scss +0 -60
  475. package/packages/icons/src/scss/component/icon/_mixins.scss +0 -62
  476. package/packages/icons/src/scss/component/icon/_variables.scss +0 -24
  477. package/postcss.config.cjs +0 -11
  478. package/prettier.config.js +0 -16
  479. package/stylelint.config.js +0 -22
  480. package/vite.config.js +0 -28
@@ -1,197 +0,0 @@
1
- // @graupl/core normalize.
2
- //
3
- // This file is manually forked from normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
4
- //
5
- // We wanted to scope normalize.css to a normalize layer along with some customizations, so we forked it here.
6
- //
7
- // @use cannot be used in this file because you cannot insert it into a layer.
8
- //
9
- // @import would technically work, but it is not recommended by Sass and will eventually be removed.
10
- // Using @import would cause headaches down the line, so a manual fork was the best option.
11
-
12
- @use "mixins/layer" as *;
13
-
14
- @include layer(normalize) {
15
- // Correct box sizing of all elements to ensure everything is consistent.
16
- *,
17
- *::before,
18
- *::after {
19
- box-sizing: border-box;
20
- }
21
-
22
- // Document.
23
-
24
- // 1. Correct the line height in all browsers.
25
- // 2. Prevent adjustments of font size after orientation changes in iOS.
26
- html {
27
- line-height: 1.15; // 1.
28
- text-size-adjust: 100%; // 2.
29
- }
30
-
31
- // Secions.
32
-
33
- // Remove the margin in all browsers.
34
- body {
35
- margin: 0;
36
- }
37
-
38
- // Grouping content.
39
-
40
- // Add the correct box sizing in Firefox.
41
- hr {
42
- box-sizing: content-box;
43
- height: 0;
44
- }
45
-
46
- // 1. Correct the inheritance and scaling of font size in all browsers.
47
- // 2. Correct the odd `em` font sizing in all browsers.
48
- pre {
49
- font-family: monospace; // 1.
50
- font-size: 1em; // 2.
51
- }
52
-
53
- // Text-level semantics.
54
-
55
- // 1. Remove the bottom border in Chrome 57-
56
- // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
57
- abbr[title] {
58
- border-bottom: 0; // 1.
59
- text-decoration: underline dotted; // 2.
60
- }
61
-
62
- // Add the correct font weight in Chrome, Edge, and Safari.
63
- b,
64
- strong {
65
- font-weight: bolder;
66
- }
67
-
68
- // 1. Correct the inheritance and scaling of font size in all browsers.
69
- // 2. Correct the odd `em` font sizing in all browsers.
70
- code,
71
- kbd,
72
- samp {
73
- font-family: monospace; // 1.
74
- font-size: 1em; // 2.
75
- }
76
-
77
- // Add the correct font size in all browsers.
78
- small {
79
- font-size: 80%;
80
- }
81
-
82
- // Prevent `sub` and `sup` elements from affecting the line height in all browsers.
83
- sub,
84
- sup {
85
- position: relative;
86
- font-size: 75%;
87
- line-height: 0;
88
- vertical-align: baseline;
89
- }
90
-
91
- sub {
92
- bottom: -0.25em;
93
- }
94
-
95
- sup {
96
- top: -0.5em;
97
- }
98
-
99
- // Forms.
100
-
101
- // 1. Change the font styles in all browsers.
102
- // 2. Remove the margin in Firefox and Safari.
103
- button,
104
- input,
105
- optgroup,
106
- select,
107
- textarea {
108
- margin: 0; // 2.
109
- font-family: inherit; // 1.
110
- font-size: 100%; // 1.
111
- line-height: 1.15; // 1.
112
- }
113
-
114
- // Remove the inheritance of text transform in Firefox.
115
- button,
116
- select {
117
- /* 1 */
118
- text-transform: none;
119
- }
120
-
121
- // Correct the inability to style clickable types in iOS and Safari.
122
- button,
123
- [type="button"],
124
- [type="reset"],
125
- [type="submit"] {
126
- appearance: button;
127
- }
128
-
129
- // Remove the inner border and padding in Firefox.
130
- button::-moz-focus-inner,
131
- [type="button"]::-moz-focus-inner,
132
- [type="reset"]::-moz-focus-inner,
133
- [type="submit"]::-moz-focus-inner {
134
- padding: 0;
135
- border-style: none;
136
- }
137
-
138
- // Restore the focus styles unset by the previous rule.
139
- button:-moz-focusring,
140
- [type="button"]:-moz-focusring,
141
- [type="reset"]:-moz-focusring,
142
- [type="submit"]:-moz-focusring {
143
- outline: 1px dotted ButtonText;
144
- }
145
-
146
- // Correct the padding in Firefox.
147
- fieldset {
148
- padding: 0.35em 0.75em 0.625em;
149
- }
150
-
151
- // Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
152
- legend {
153
- padding: 0;
154
- }
155
-
156
- // Add the correct vertical alignment in Chrome, Firefox, and Opera.
157
- progress {
158
- vertical-align: baseline;
159
- }
160
-
161
- // Correct the cursor style of increment and decrement buttons in Chrome.
162
- [type="number"]::-webkit-inner-spin-button,
163
- [type="number"]::-webkit-outer-spin-button {
164
- height: auto;
165
- }
166
-
167
- // 1. Correct the odd appearance in Chrome and Safari.
168
- // 2. Correct the outline style in Safari.
169
- [type="search"] {
170
- appearance: textfield; // 1.
171
- outline-offset: -2px; // 2.
172
- }
173
-
174
- // Remove the inner padding in Chrome and Safari on macOS.
175
- [type="search"]::-webkit-search-decoration {
176
- appearance: none;
177
- }
178
-
179
- // 1. Correct the inability to style clickable types in iOS and Safari.
180
- // 2. Change font properties to `inherit` in Safari.
181
- ::-webkit-file-upload-button {
182
- appearance: button; /* 1 */
183
- font: inherit; /* 2 */
184
- }
185
-
186
- // Interactive.
187
-
188
- // Add the correct display in Edge, IE 10+, and Firefox.
189
- details {
190
- display: block;
191
- }
192
-
193
- // Add the correct display in all browsers.
194
- summary {
195
- display: list-item;
196
- }
197
- }
@@ -1,95 +0,0 @@
1
- // @graupl/core variables.
2
- //
3
- // These values are to be used to directly style components and provide a
4
- // cleaner way to reference custom properties.
5
-
6
- @use "defaults";
7
- @use "sass:map";
8
-
9
- // Layout properties.
10
- $content-max-width: var(
11
- --#{defaults.$prefix}content-max-width,
12
- defaults.$content-max-width
13
- );
14
-
15
- // Spacing properties.
16
- $spacer: var(--#{defaults.$prefix}spacer, defaults.$spacer);
17
- $spacers: ();
18
-
19
- @each $key, $value in defaults.$spacer-multipliers {
20
- $space: var(
21
- --#{defaults.$prefix}spacer-#{$key},
22
- calc(#{$value} * #{$spacer})
23
- );
24
- $spacers: map.set($spacers, $key, $space);
25
- }
26
-
27
- // Border properties.
28
- $border-radius: var(
29
- --#{defaults.$prefix}border-radius,
30
- defaults.$border-radius
31
- );
32
- $border-top-left-radius: var(
33
- --#{defaults.$prefix}border-top-left-radius,
34
- #{$border-radius}
35
- );
36
- $border-top-right-radius: var(
37
- --#{defaults.$prefix}border-top-right-radius,
38
- #{$border-radius}
39
- );
40
- $border-bottom-right-radius: var(
41
- --#{defaults.$prefix}border-bottom-right-radius,
42
- #{$border-radius}
43
- );
44
- $border-bottom-left-radius: var(
45
- --#{defaults.$prefix}border-bottom-left-radius,
46
- #{$border-radius}
47
- );
48
- $border-width: var(--#{defaults.$prefix}border-width, defaults.$border-width);
49
- $border-top-width: var(--#{defaults.$prefix}border-top-width, #{$border-width});
50
- $border-right-width: var(
51
- --#{defaults.$prefix}border-right-width,
52
- #{$border-width}
53
- );
54
- $border-bottom-width: var(
55
- --#{defaults.$prefix}border-bottom-width,
56
- #{$border-width}
57
- );
58
- $border-left-width: var(
59
- --#{defaults.$prefix}border-left-width,
60
- #{$border-width}
61
- );
62
- $border-style: var(--#{defaults.$prefix}border-style, defaults.$border-style);
63
- $border-top-style: var(--#{defaults.$prefix}border-top-style, #{$border-style});
64
- $border-right-style: var(
65
- --#{defaults.$prefix}border-right-style,
66
- #{$border-style}
67
- );
68
- $border-bottom-style: var(
69
- --#{defaults.$prefix}border-bottom-style,
70
- #{$border-style}
71
- );
72
- $border-left-style: var(
73
- --#{defaults.$prefix}border-left-style,
74
- #{$border-style}
75
- );
76
-
77
- // Transition properties.
78
- $transition-durations: (
79
- fast: var(
80
- --#{defaults.$prefix}transition-duration-fast,
81
- map.get(defaults.$transition-durations, fast)
82
- ),
83
- default: var(
84
- --#{defaults.$prefix}transition-duration-default,
85
- map.get(defaults.$transition-durations, default)
86
- ),
87
- slow: var(
88
- --#{defaults.$prefix}transition-duration-slow,
89
- map.get(defaults.$transition-durations, slow)
90
- ),
91
- );
92
- $transition-timing-function: var(
93
- --#{defaults.$prefix}transition-timing-function,
94
- defaults.$transition-timing-function
95
- );
@@ -1,6 +0,0 @@
1
- // @graupl/core base styles.
2
-
3
- @forward "button";
4
- @forward "form";
5
- @forward "link";
6
- @forward "table";
@@ -1,49 +0,0 @@
1
- // @graupl/core button 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
- @use "sass:map";
11
-
12
- // Button selectors.
13
- $selector-base: root-defaults.$component-selector-base !default;
14
- $modifier-selector-base: root-defaults.$modifier-selector-base !default;
15
- $button-selector-base: $selector-base !default;
16
- $button-selector: "button" !default;
17
- $button-link-selector-base: $modifier-selector-base !default;
18
- $button-link-selector: "link" !default;
19
- $button-theme-selector-base: $modifier-selector-base !default;
20
- $button-theme-selector-prefix: "" !default;
21
-
22
- // Button properties.
23
- $button-initial-transform: none !default;
24
- $button-final-transform: scale(0.95) !default;
25
- $button-disabled-transform: $button-initial-transform !default;
26
-
27
- // Button state theme defaults.
28
- // This map is used to define the default colour shades for the
29
- // themed button bases.
30
- //
31
- // e.g.
32
- // Primary buttons will use primary--900 as the text colour, primary--100 as the background
33
- // and primary--900 as the border colour.
34
- //
35
- // Secondary/tertiary buttons will use the same shade for their respective colours.
36
- $base-button-state-theme-map: (
37
- color: 900,
38
- border-color: 700,
39
- hover-color: 100,
40
- hover-background: 700,
41
- hover-border-color: 700,
42
- disabled-color: 200,
43
- disabled-border-color: 200,
44
- );
45
- $custom-button-state-theme-map: () !default;
46
- $button-state-theme-map: map.merge(
47
- $base-button-state-theme-map,
48
- $custom-button-state-theme-map
49
- );
@@ -1,206 +0,0 @@
1
- // @graupl/core button base styles.
2
- //
3
- // This module provides the base styles for the button component.
4
- //
5
- // The button component is meant to be used on <button> or <a> elements, but can be applied to anything.
6
- //
7
- // The following selectors are generated by default:
8
- // - `.button`: The button component.
9
- // - `.primary`: A component modifier to use the primary colour for the button component.
10
- // - `.secondary`: A component modifier to use the secondary colour for the button component.
11
- // - `.tertiary`: A component modifier to use the tertiary colour for the button component.
12
- // - `.link`: A component modifier to make the button component look like a link component.
13
- //
14
- // The following custom properties control the generated selectors:
15
- // - `--graupl-button-min-width`: The minimum width of the button component.
16
- // - `--graupl-button-min-height`: The minimum height of the button component.
17
- // - `--graupl-button-padding-x`: The horizontal padding of the button component.
18
- // - `--graupl-button-padding-y`: The vertical padding of the button component.
19
- // - `--graupl-button-padding`: The padding of the button component (combines x and y padding).
20
- // - `--graupl-button-font-size`: The font size of the button component.
21
- // - `--graupl-button-transition`: The transition of the button component.
22
- // - `--graupl-button-transition-reduced-motion`: The transition of the button component when reduced motion is enabled.
23
- // - `--graupl-button-transform`: The transform of the button component.
24
- // - `--graupl-button-visited-transform`: The transform of a visited button component.
25
- // - `--graupl-button-focus-transform`: The transform of a focused button component.
26
- // - `--graupl-button-hover-transform`: The transform of a hovered button component.
27
- // - `--graupl-button-active-transform`: The transform of an active button component.
28
- // - `--graupl-button-disabled-transform`: The transform of a disabled button component.
29
- // - `--graupl-button-background`: The background colour of the button component.
30
- // - `--graupl-button-visited-background`: The background colour of a visited button component.
31
- // - `--graupl-button-focus-background`: The background colour of a focused button component.
32
- // - `--graupl-button-hover-background`: The background colour of a hovered button component.
33
- // - `--graupl-button-active-background`: The background colour of an active button component.
34
- // - `--graupl-button-disabled-background`: The background colour of a disabled button component.
35
- // - `--graupl-button-color`: The text colour of the button component.
36
- // - `--graupl-button-visited-color`: The text colour of a visited button component.
37
- // - `--graupl-button-focus-color`: The text colour of a focused button component.
38
- // - `--graupl-button-hover-color`: The text colour of a hovered button component.
39
- // - `--graupl-button-active-color`: The text colour of an active button component.
40
- // - `--graupl-button-disabled-color`: The text colour of a disabled button component.
41
- // - `--graupl-button-border-top-width`: The top border width of the button component.
42
- // - `--graupl-button-border-right-width`: The right border width of the button component.
43
- // - `--graupl-button-border-bottom-width`: The bottom border width of the button component.
44
- // - `--graupl-button-border-left-width`: The left border width of the button component.
45
- // - `--graupl-button-border-width`: The border width of the button component (combines top, right, bottom, and left widths).
46
- // - `--graupl-button-border-top-style`: The top border style of the button component.
47
- // - `--graupl-button-border-right-style`: The right border style of the button component.
48
- // - `--graupl-button-border-bottom-style`: The bottom border style of the button component.
49
- // - `--graupl-button-border-left-style`: The left border style of the button component.
50
- // - `--graupl-button-border-style`: The border style of the button component (combines top, right, bottom, and left styles).
51
- // - `--graupl-button-border-top-left-radius`: The top left border radius of the button component.
52
- // - `--graupl-button-border-top-right-radius`: The top right border radius of the button component.
53
- // - `--graupl-button-border-bottom-right-radius`: The bottom right border radius of the button component.
54
- // - `--graupl-button-border-bottom-left-radius`: The bottom left border radius of the button component.
55
- // - `--graupl-button-border-radius`: The border radius of the button component (combines top-left, top-right, bottom-right, and bottom-left radii).
56
- // - `--graupl-button-border-color`: The border colour of the button component.
57
- // - `--graupl-button-visited-border-color`: The border colour of a visited button component.
58
- // - `--graupl-button-focus-border-color`: The border colour of a focused button component.
59
- // - `--graupl-button-hover-border-color`: The border colour of a hovered button component.
60
- // - `--graupl-button-active-border-color`: The border colour of an active button component.
61
- // - `--graupl-button-disabled-border-color`: The border colour of a disabled button component.
62
- //
63
- // The following variables control the generated selectors:
64
- // - `$selector-base`: The selector base for the component.
65
- // - `$modifier-selector-base`: The selector base for component modifiers.
66
- // - `$button-selector-base`: The selector base for the button component.
67
- // - `$button-selector`: The button component selector.
68
- // - `$button-link-selector-base`: The selector base for the button link component modifier.
69
- // - `$button-link-selector`: The button link component modifier selector.
70
- // - `$button-theme-selector-base`: The selector base for the button theme component modifiers.
71
- // - `$button-theme-selector-prefix`: The button theme component modifier selector prefix.
72
- // - `$button-initial-transform`: The initial transform of the button.
73
- // - `$button-final-transform`: The final transform of the button.
74
- // - `$button-disabled-transform`: The disabled transform of the button.
75
- // - `$custom-button-state-theme-map`: A map of custom button state theme values.
76
- //
77
- // @example
78
- // <button class="button primary">Primary Button</button>
79
- //
80
- // @example
81
- // <a class="button secondary" href="#">Secondary Button</a>
82
- //
83
- // @example
84
- // <button class="button link">Link Button</button>
85
-
86
- @use "../../base/link/variables" as link;
87
- @use "../../defaults" as root-defaults;
88
- @use "../../mixins/layer" as *;
89
- @use "../link/defaults" as link-defaults;
90
- @use "defaults";
91
- @use "mixins" as *;
92
- @use "variables" as *;
93
-
94
- @include layer(base) {
95
- // .button
96
- #{defaults.$button-selector-base}#{defaults.$button-selector} {
97
- @include apply-base;
98
-
99
- // &.link
100
- &#{defaults.$button-link-selector-base}#{defaults.$button-link-selector} {
101
- --#{root-defaults.$prefix}button-padding: #{link.$link-padding};
102
- --#{root-defaults.$prefix}button-transition: #{link.$link-transition};
103
- --#{root-defaults.$prefix}button-transition-reduced-motion: #{link.$link-transition-reduced-motion};
104
- --#{root-defaults.$prefix}button-transform: #{link.$link-transform};
105
- --#{root-defaults.$prefix}button-visited-transform: #{link.$link-visited-transform};
106
- --#{root-defaults.$prefix}button-focus-transform: #{link.$link-transform};
107
- --#{root-defaults.$prefix}button-hover-transform: #{link.$link-hover-transform};
108
- --#{root-defaults.$prefix}button-active-transform: #{link.$link-active-transform};
109
- --#{root-defaults.$prefix}button-border-width: #{link.$link-border-width};
110
- --#{root-defaults.$prefix}button-border-style: #{link.$link-border-style};
111
- --#{root-defaults.$prefix}button-border-radius: #{link.$link-border-radius};
112
- --#{root-defaults.$prefix}button-min-width: #{link.$link-min-width};
113
- --#{root-defaults.$prefix}button-min-height: #{link.$link-min-height};
114
- --#{root-defaults.$prefix}button-font-size: inherit;
115
-
116
- text-decoration: link.$link-text-decoration;
117
- text-decoration-thickness: link.$link-text-decoration-thickness;
118
- text-decoration-style: link.$link-text-decoration-style;
119
- }
120
- }
121
-
122
- // a
123
- #{link-defaults.$link-selector-base}#{link-defaults.$link-selector} {
124
- // &.button:not(.link)
125
- &#{defaults.$button-selector-base}#{defaults.$button-selector}:not(
126
- #{defaults.$button-link-selector-base}#{defaults.$button-link-selector}
127
- ) {
128
- --#{root-defaults.$prefix}link-padding: #{$button-padding};
129
- --#{root-defaults.$prefix}link-transition: #{$button-transition};
130
- --#{root-defaults.$prefix}link-transition-reduced-motion: #{$button-transition-reduced-motion};
131
- --#{root-defaults.$prefix}link-transform: #{$button-transform};
132
- --#{root-defaults.$prefix}link-visited-transform: #{$button-visited-transform};
133
- --#{root-defaults.$prefix}link-focus-transform: #{$button-focus-transform};
134
- --#{root-defaults.$prefix}link-hover-transform: #{$button-hover-transform};
135
- --#{root-defaults.$prefix}link-active-transform: #{$button-active-transform};
136
- --#{root-defaults.$prefix}link-disabled-transform: #{$button-disabled-transform};
137
- --#{root-defaults.$prefix}link-border-width: #{$button-border-width};
138
- --#{root-defaults.$prefix}link-border-style: #{$button-border-style};
139
- --#{root-defaults.$prefix}link-border-radius: #{$button-border-radius};
140
- --#{root-defaults.$prefix}link-min-width: #{$button-min-width};
141
- --#{root-defaults.$prefix}link-min-height: #{$button-min-height};
142
- --#{root-defaults.$prefix}link-text-decoration: none;
143
- --#{root-defaults.$prefix}link-visited-text-decoration: none;
144
- --#{root-defaults.$prefix}link-focus-text-decoration: none;
145
- --#{root-defaults.$prefix}link-hover-text-decoration: none;
146
- --#{root-defaults.$prefix}link-active-text-decoration: none;
147
- --#{root-defaults.$prefix}link-disabled-text-decoration: none;
148
- }
149
- }
150
- }
151
-
152
- @include layer(theme) {
153
- // .button
154
- #{defaults.$button-selector-base}#{defaults.$button-selector} {
155
- @include apply-theme;
156
-
157
- // &.link
158
- &#{defaults.$button-link-selector-base}#{defaults.$button-link-selector} {
159
- --#{root-defaults.$prefix}button-color: #{link.$link-color};
160
- --#{root-defaults.$prefix}button-visited-color: #{link.$link-visited-color};
161
- --#{root-defaults.$prefix}button-focus-color: #{link.$link-focus-color};
162
- --#{root-defaults.$prefix}button-hover-color: #{link.$link-hover-color};
163
- --#{root-defaults.$prefix}button-active-color: #{link.$link-active-color};
164
- --#{root-defaults.$prefix}button-disabled-color: #{link.$link-disabled-color};
165
- --#{root-defaults.$prefix}button-background: #{link.$link-background};
166
- --#{root-defaults.$prefix}button-visited-background: #{link.$link-visited-background};
167
- --#{root-defaults.$prefix}button-focus-background: #{link.$link-focus-background};
168
- --#{root-defaults.$prefix}button-hover-background: #{link.$link-hover-background};
169
- --#{root-defaults.$prefix}button-active-background: #{link.$link-active-background};
170
- --#{root-defaults.$prefix}button-disabled-background: #{link.$link-disabled-background};
171
- --#{root-defaults.$prefix}button-border-color: #{link.$link-border-color};
172
- --#{root-defaults.$prefix}button-visited-border-color: #{link.$link-visited-border-color};
173
- --#{root-defaults.$prefix}button-focus-border-color: #{link.$link-focus-border-color};
174
- --#{root-defaults.$prefix}button-hover-border-color: #{link.$link-hover-border-color};
175
- --#{root-defaults.$prefix}button-active-border-color: #{link.$link-active-border-color};
176
- --#{root-defaults.$prefix}button-disabled-border-color: #{link.$link-disabled-border-color};
177
- }
178
- }
179
-
180
- // a
181
- #{link-defaults.$link-selector-base}#{link-defaults.$link-selector} {
182
- // &.button:not(.link)
183
- &#{defaults.$button-selector-base}#{defaults.$button-selector}:not(
184
- #{defaults.$button-link-selector-base}#{defaults.$button-link-selector}
185
- ) {
186
- --#{root-defaults.$prefix}link-color: #{$button-color};
187
- --#{root-defaults.$prefix}link-visited-color: #{$button-visited-color};
188
- --#{root-defaults.$prefix}link-focus-color: #{$button-focus-color};
189
- --#{root-defaults.$prefix}link-hover-color: #{$button-hover-color};
190
- --#{root-defaults.$prefix}link-active-color: #{$button-active-color};
191
- --#{root-defaults.$prefix}link-disabled-color: #{$button-disabled-color};
192
- --#{root-defaults.$prefix}link-background: #{$button-background};
193
- --#{root-defaults.$prefix}link-visited-background: #{$button-visited-background};
194
- --#{root-defaults.$prefix}link-focus-background: #{$button-focus-background};
195
- --#{root-defaults.$prefix}link-hover-background: #{$button-hover-background};
196
- --#{root-defaults.$prefix}link-active-background: #{$button-active-background};
197
- --#{root-defaults.$prefix}link-disabled-background: #{$button-disabled-background};
198
- --#{root-defaults.$prefix}link-border-color: #{$button-border-color};
199
- --#{root-defaults.$prefix}link-visited-border-color: #{$button-visited-border-color};
200
- --#{root-defaults.$prefix}link-focus-border-color: #{$button-focus-border-color};
201
- --#{root-defaults.$prefix}link-hover-border-color: #{$button-hover-border-color};
202
- --#{root-defaults.$prefix}link-active-border-color: #{$button-active-border-color};
203
- --#{root-defaults.$prefix}link-disabled-border-color: #{$button-disabled-border-color};
204
- }
205
- }
206
- }
@@ -1,104 +0,0 @@
1
- // @graupl/core button base styles.
2
-
3
- @use "defaults";
4
- @use "../../defaults" as root-defaults;
5
- @use "../../theme/color/variables" as color;
6
- @use "variables" as *;
7
- @use "../../mixins/layer" as *;
8
- @use "../../mixins/animation";
9
- @use "../../functions/theme";
10
- @use "sass:map";
11
-
12
- /// Mixin to apply base styles for buttons.
13
- @mixin apply-base() {
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- min-width: $button-min-width;
18
- min-height: $button-min-height;
19
- padding: $button-padding;
20
- transform: $button-transform;
21
- transition: $button-transition;
22
- border-width: $button-border-width;
23
- border-style: $button-border-style;
24
- border-radius: $button-border-radius;
25
- font-size: $button-font-size;
26
- cursor: pointer;
27
-
28
- @each $state, $selectors in root-defaults.$state-selectors {
29
- @each $selector in $selectors {
30
- // e.g &:visited, &:focus-visible, &:hover, &:active, &:disabled
31
- &#{$selector} {
32
- transform: map.get($button-transform-states, $state);
33
-
34
- // If the state is disabled, we want that to supersede all other states.
35
- @if $state == "disabled" {
36
- cursor: not-allowed;
37
-
38
- @each $sub-state, $sub-selectors in root-defaults.$state-selectors {
39
- @if $sub-state != $state {
40
- @each $sub-selector in $sub-selectors {
41
- // e.g &:visited, &:focus-visible, &:hover, &:active
42
- &#{$sub-selector} {
43
- transform: map.get($button-transform-states, $state);
44
- }
45
- }
46
- }
47
- }
48
- }
49
- }
50
- }
51
- }
52
-
53
- @include animation.off {
54
- --#{root-defaults.$prefix}button-transition: #{$button-transition-reduced-motion};
55
- }
56
- }
57
-
58
- /// Mixin to apply theme styles for buttons.
59
- @mixin apply-theme() {
60
- border-color: $button-border-color;
61
- background: $button-background;
62
- color: $button-color;
63
-
64
- @each $color, $map in map.get(color.$themes, active) {
65
- // e.g. &.primary, &.secondary, &.tertiary
66
- &#{defaults.$button-theme-selector-base}#{defaults.$button-theme-selector-prefix}#{$color} {
67
- @each $prop, $shade in defaults.$button-state-theme-map {
68
- --#{root-defaults.$prefix}button-#{$prop}: #{theme.get($color, $shade)};
69
- }
70
- }
71
- }
72
-
73
- @each $state, $selectors in root-defaults.$state-selectors {
74
- @each $selector in $selectors {
75
- // e.g &:visited, &:focus-visible, &:hover, &:active, &:disabled
76
- &#{$selector} {
77
- border-color: map.get($button-border-color-states, $state);
78
- background: map.get($button-background-states, $state);
79
- color: map.get($button-color-states, $state);
80
-
81
- // If the state is disabled, we want that to supersede all other states.
82
- @if $state == "disabled" {
83
- @each $sub-state, $sub-selectors in root-defaults.$state-selectors {
84
- @if $sub-state != $state {
85
- @each $sub-selector in $sub-selectors {
86
- // e.g &:visited, &:focus-visible, &:hover, &:active
87
- &#{$sub-selector} {
88
- border-color: map.get($button-border-color-states, $state);
89
- background: map.get($button-background-states, $state);
90
- color: map.get($button-color-states, $state);
91
- }
92
- }
93
- }
94
- }
95
- }
96
- }
97
- }
98
- }
99
- }
100
-
101
- @mixin apply() {
102
- @include apply-base;
103
- @include apply-theme;
104
- }