@graupl/graupl 1.0.0-beta.1 → 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 (382) hide show
  1. package/dist/css/base/button.css +1 -1
  2. package/dist/css/base/button.css.map +1 -1
  3. package/dist/css/base/form.css +1 -1
  4. package/dist/css/base/form.css.map +1 -1
  5. package/dist/css/base/link.css +1 -1
  6. package/dist/css/base/link.css.map +1 -1
  7. package/dist/css/base/table.css +1 -1
  8. package/dist/css/base/table.css.map +1 -1
  9. package/dist/css/base.css +1 -1
  10. package/dist/css/base.css.map +1 -1
  11. package/dist/css/component/accordion.css +4 -1
  12. package/dist/css/component/accordion.css.map +1 -1
  13. package/dist/css/component/alert.css +1 -1
  14. package/dist/css/component/alert.css.map +1 -1
  15. package/dist/css/component/card.css +1 -1
  16. package/dist/css/component/card.css.map +1 -1
  17. package/dist/css/component/carousel.css +1 -1
  18. package/dist/css/component/carousel.css.map +1 -1
  19. package/dist/css/component/input-group.css +1 -1
  20. package/dist/css/component/input-group.css.map +1 -1
  21. package/dist/css/component/list.css +2 -0
  22. package/dist/css/component/list.css.map +1 -0
  23. package/dist/css/component/menu.css +1 -1
  24. package/dist/css/component/menu.css.map +1 -1
  25. package/dist/css/component/navigation.css +1 -1
  26. package/dist/css/component/navigation.css.map +1 -1
  27. package/dist/css/component.css +4 -1
  28. package/dist/css/component.css.map +1 -1
  29. package/dist/css/graupl.css +4 -1
  30. package/dist/css/graupl.css.map +1 -1
  31. package/dist/css/init.css.map +1 -1
  32. package/dist/css/layout/columns.css +1 -1
  33. package/dist/css/layout/columns.css.map +1 -1
  34. package/dist/css/layout/container.css +1 -1
  35. package/dist/css/layout/container.css.map +1 -1
  36. package/dist/css/layout/flex-columns.css +1 -1
  37. package/dist/css/layout/flex-columns.css.map +1 -1
  38. package/dist/css/layout.css +4 -1
  39. package/dist/css/layout.css.map +1 -1
  40. package/dist/css/normalize.css +1 -1
  41. package/dist/css/normalize.css.map +1 -1
  42. package/dist/css/state/focus.css +1 -1
  43. package/dist/css/state/focus.css.map +1 -1
  44. package/dist/css/state.css +1 -1
  45. package/dist/css/state.css.map +1 -1
  46. package/dist/css/theme/color.css +1 -1
  47. package/dist/css/theme/color.css.map +1 -1
  48. package/dist/css/theme/typography.css +1 -1
  49. package/dist/css/theme/typography.css.map +1 -1
  50. package/dist/css/theme.css +1 -1
  51. package/dist/css/theme.css.map +1 -1
  52. package/dist/css/utilities/alignment.css +1 -1
  53. package/dist/css/utilities/alignment.css.map +1 -1
  54. package/dist/css/utilities/background.css +2 -0
  55. package/dist/css/utilities/background.css.map +1 -0
  56. package/dist/css/utilities/border.css +2 -0
  57. package/dist/css/utilities/border.css.map +1 -0
  58. package/dist/css/utilities/color.css +1 -1
  59. package/dist/css/utilities/color.css.map +1 -1
  60. package/dist/css/utilities/container.css +2 -0
  61. package/dist/css/utilities/container.css.map +1 -0
  62. package/dist/css/utilities/display.css +1 -1
  63. package/dist/css/utilities/display.css.map +1 -1
  64. package/dist/css/utilities/flex.css +1 -1
  65. package/dist/css/utilities/flex.css.map +1 -1
  66. package/dist/css/utilities/gradient.css +2 -0
  67. package/dist/css/utilities/gradient.css.map +1 -0
  68. package/dist/css/utilities/height.css +1 -1
  69. package/dist/css/utilities/height.css.map +1 -1
  70. package/dist/css/utilities/inset.css +1 -1
  71. package/dist/css/utilities/inset.css.map +1 -1
  72. package/dist/css/utilities/justification.css +1 -1
  73. package/dist/css/utilities/justification.css.map +1 -1
  74. package/dist/css/utilities/list.css +1 -1
  75. package/dist/css/utilities/list.css.map +1 -1
  76. package/dist/css/utilities/order.css +1 -1
  77. package/dist/css/utilities/order.css.map +1 -1
  78. package/dist/css/utilities/position.css +2 -0
  79. package/dist/css/utilities/position.css.map +1 -0
  80. package/dist/css/utilities/ratio.css +1 -1
  81. package/dist/css/utilities/ratio.css.map +1 -1
  82. package/dist/css/utilities/spacing.css +1 -1
  83. package/dist/css/utilities/spacing.css.map +1 -1
  84. package/dist/css/utilities/typography.css +1 -1
  85. package/dist/css/utilities/typography.css.map +1 -1
  86. package/dist/css/utilities/visibility.css +1 -1
  87. package/dist/css/utilities/visibility.css.map +1 -1
  88. package/dist/css/utilities/visually-hidden.css +2 -0
  89. package/dist/css/utilities/visually-hidden.css.map +1 -0
  90. package/dist/css/utilities/width.css +1 -1
  91. package/dist/css/utilities/width.css.map +1 -1
  92. package/dist/css/utilities/z-index.css +2 -0
  93. package/dist/css/utilities/z-index.css.map +1 -0
  94. package/dist/css/utilities.css +1 -1
  95. package/dist/css/utilities.css.map +1 -1
  96. package/dist/js/accordion.js +5 -0
  97. package/dist/js/accordion.js.map +1 -0
  98. package/dist/js/alert.js +5 -0
  99. package/dist/js/alert.js.map +1 -0
  100. package/dist/js/carousel.js +5 -0
  101. package/dist/js/carousel.js.map +1 -0
  102. package/dist/js/component/accordion.cjs.js +4 -2
  103. package/dist/js/component/accordion.cjs.js.map +1 -0
  104. package/dist/js/component/accordion.es.js +5 -0
  105. package/dist/js/component/accordion.es.js.map +1 -0
  106. package/dist/js/component/accordion.iife.js +4 -2
  107. package/dist/js/component/accordion.iife.js.map +1 -0
  108. package/dist/js/component/alert.cjs.js +4 -2
  109. package/dist/js/component/alert.cjs.js.map +1 -0
  110. package/dist/js/component/alert.es.js +5 -0
  111. package/dist/js/component/alert.es.js.map +1 -0
  112. package/dist/js/component/alert.iife.js +4 -2
  113. package/dist/js/component/alert.iife.js.map +1 -0
  114. package/dist/js/component/carousel.cjs.js +4 -2
  115. package/dist/js/component/carousel.cjs.js.map +1 -0
  116. package/dist/js/component/carousel.es.js +5 -0
  117. package/dist/js/component/carousel.es.js.map +1 -0
  118. package/dist/js/component/carousel.iife.js +4 -2
  119. package/dist/js/component/carousel.iife.js.map +1 -0
  120. package/dist/js/generator/accordion.cjs.js +5 -0
  121. package/dist/js/generator/accordion.cjs.js.map +1 -0
  122. package/dist/js/generator/accordion.es.js +5 -0
  123. package/dist/js/generator/accordion.es.js.map +1 -0
  124. package/dist/js/generator/accordion.iife.js +5 -0
  125. package/dist/js/generator/accordion.iife.js.map +1 -0
  126. package/dist/js/generator/carousel.cjs.js +5 -0
  127. package/dist/js/generator/carousel.cjs.js.map +1 -0
  128. package/dist/js/generator/carousel.es.js +5 -0
  129. package/dist/js/generator/carousel.es.js.map +1 -0
  130. package/dist/js/generator/carousel.iife.js +5 -0
  131. package/dist/js/generator/carousel.iife.js.map +1 -0
  132. package/dist/js/generator/navigation.cjs.js +3 -0
  133. package/dist/js/generator/navigation.cjs.js.map +1 -0
  134. package/dist/js/generator/navigation.es.js +3 -0
  135. package/dist/js/generator/navigation.es.js.map +1 -0
  136. package/dist/js/generator/navigation.iife.js +3 -0
  137. package/dist/js/generator/navigation.iife.js.map +1 -0
  138. package/dist/js/graupl.js +9 -0
  139. package/dist/js/graupl.js.map +1 -0
  140. package/dist/js/navigation.js +3 -0
  141. package/dist/js/navigation.js.map +1 -0
  142. package/package.json +43 -37
  143. package/scss/base/button.scss +1 -1
  144. package/scss/base/form.scss +1 -1
  145. package/scss/base/link.scss +1 -1
  146. package/scss/base/table.scss +1 -1
  147. package/scss/base.scss +1 -1
  148. package/scss/component/accordion.scss +1 -1
  149. package/scss/component/alert.scss +1 -1
  150. package/scss/component/card.scss +1 -1
  151. package/scss/component/carousel.scss +1 -1
  152. package/scss/component/input-group.scss +1 -1
  153. package/scss/component/list.scss +3 -0
  154. package/scss/component/menu.scss +1 -1
  155. package/scss/component/navigation.scss +1 -1
  156. package/scss/component.scss +1 -1
  157. package/scss/graupl.scss +1 -1
  158. package/scss/init.scss +1 -1
  159. package/scss/layout/columns.scss +1 -1
  160. package/scss/layout/container.scss +1 -1
  161. package/scss/layout/flex-columns.scss +1 -1
  162. package/scss/layout.scss +1 -1
  163. package/scss/normalize.scss +1 -1
  164. package/scss/state/focus.scss +1 -1
  165. package/scss/state.scss +1 -1
  166. package/scss/theme/color.scss +1 -1
  167. package/scss/theme/typography.scss +1 -1
  168. package/scss/theme.scss +1 -1
  169. package/scss/utilities/alignment.scss +1 -1
  170. package/scss/utilities/background.scss +3 -0
  171. package/scss/utilities/border.scss +3 -0
  172. package/scss/utilities/color.scss +1 -1
  173. package/scss/utilities/container.scss +3 -0
  174. package/scss/utilities/display.scss +1 -1
  175. package/scss/utilities/flex.scss +1 -1
  176. package/scss/utilities/gradient.scss +3 -0
  177. package/scss/utilities/height.scss +1 -1
  178. package/scss/utilities/inset.scss +1 -1
  179. package/scss/utilities/justification.scss +1 -1
  180. package/scss/utilities/list.scss +1 -1
  181. package/scss/utilities/order.scss +1 -1
  182. package/scss/utilities/position.scss +3 -0
  183. package/scss/utilities/ratio.scss +1 -1
  184. package/scss/utilities/spacing.scss +1 -1
  185. package/scss/utilities/typography.scss +1 -1
  186. package/scss/utilities/visibility.scss +1 -1
  187. package/scss/utilities/visually-hidden.scss +3 -0
  188. package/scss/utilities/width.scss +1 -1
  189. package/scss/utilities/z-index.scss +3 -0
  190. package/scss/utilities.scss +1 -1
  191. package/.browserslistrc +0 -3
  192. package/.czrc +0 -3
  193. package/.editorconfig +0 -13
  194. package/.github/CODE_OF_CONDUCT.md +0 -73
  195. package/.github/COMMIT_CONVENTION.md +0 -17
  196. package/.github/CONTRIBUTING.md +0 -86
  197. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  198. package/.github/ISSUE_TEMPLATE/documentation.md +0 -20
  199. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  200. package/.github/SECURITY.md +0 -26
  201. package/.github/dependabot.yml +0 -17
  202. package/.github/pull_request_template.md +0 -5
  203. package/.github/workflows/codeql-analysis.yml +0 -71
  204. package/.github/workflows/docs.yml +0 -59
  205. package/.github/workflows/test.yml +0 -27
  206. package/.husky/commit-msg +0 -3
  207. package/.husky/pre-commit +0 -4
  208. package/.prettierignore +0 -12
  209. package/.stylelintignore +0 -9
  210. package/.versionrc.cjs +0 -61
  211. package/CHANGELOG.md +0 -364
  212. package/build.js +0 -7
  213. package/commitlint.config.js +0 -5
  214. package/dist/css/utilities/postion.css +0 -2
  215. package/dist/css/utilities/postion.css.map +0 -1
  216. package/dist/js/component/accordion.esm.js +0 -1289
  217. package/dist/js/component/alert.esm.js +0 -529
  218. package/dist/js/component/carousel.esm.js +0 -1110
  219. package/dist/js/graupl.cjs.js +0 -5
  220. package/dist/js/graupl.esm.js +0 -1462
  221. package/dist/js/graupl.iife.js +0 -5
  222. package/docs/.vitepress/config.js +0 -78
  223. package/docs/.vitepress/theme/custom.scss +0 -35
  224. package/docs/.vitepress/theme/index.js +0 -4
  225. package/docs/compiling-graupl.md +0 -56
  226. package/docs/components/alert.md +0 -130
  227. package/docs/components/button.md +0 -84
  228. package/docs/components/card.md +0 -369
  229. package/docs/components/index.md +0 -1
  230. package/docs/components/inputgroup.md +0 -159
  231. package/docs/components/menu.md +0 -326
  232. package/docs/components/navigation.md +0 -158
  233. package/docs/content.md +0 -237
  234. package/docs/defaults.md +0 -121
  235. package/docs/forms.md +0 -79
  236. package/docs/functions.md +0 -9
  237. package/docs/getting-started.md +0 -1
  238. package/docs/index.md +0 -1
  239. package/docs/introduction.md +0 -25
  240. package/docs/layout.md +0 -200
  241. package/docs/mixins.md +0 -47
  242. package/docs/state.md +0 -67
  243. package/docs/theme.md +0 -258
  244. package/docs/utilities.md +0 -357
  245. package/eslint.config.js +0 -74
  246. package/index.html +0 -851
  247. package/index.js +0 -12
  248. package/lint-staged.config.js +0 -6
  249. package/postcss.config.cjs +0 -12
  250. package/prettier.config.js +0 -16
  251. package/scss/utilities/postion.scss +0 -3
  252. package/src/js/accordion/Accordion.js +0 -1163
  253. package/src/js/accordion/AccordionItem.js +0 -496
  254. package/src/js/accordion/index.js +0 -10
  255. package/src/js/alert/Alert.js +0 -581
  256. package/src/js/alert/index.js +0 -11
  257. package/src/js/carousel/Carousel.js +0 -1427
  258. package/src/js/carousel/index.js +0 -10
  259. package/src/js/domHelpers.js +0 -37
  260. package/src/js/eventHandlers.js +0 -39
  261. package/src/js/navigation/index.js +0 -36
  262. package/src/js/storage.js +0 -106
  263. package/src/js/validate.js +0 -225
  264. package/src/scss/_defaults.scss +0 -136
  265. package/src/scss/_index.scss +0 -15
  266. package/src/scss/_init.scss +0 -3
  267. package/src/scss/_normalize.scss +0 -197
  268. package/src/scss/_variables.scss +0 -53
  269. package/src/scss/base/_index.scss +0 -6
  270. package/src/scss/base/button/_defaults.scss +0 -60
  271. package/src/scss/base/button/_index.scss +0 -107
  272. package/src/scss/base/button/_mixins.scss +0 -166
  273. package/src/scss/base/button/_variables.scss +0 -176
  274. package/src/scss/base/form/_defaults.scss +0 -17
  275. package/src/scss/base/form/_index.scss +0 -93
  276. package/src/scss/base/form/_variables.scss +0 -153
  277. package/src/scss/base/link/_defaults.scss +0 -50
  278. package/src/scss/base/link/_index.scss +0 -134
  279. package/src/scss/base/link/_variables.scss +0 -262
  280. package/src/scss/base/table/_defaults.scss +0 -53
  281. package/src/scss/base/table/_index.scss +0 -121
  282. package/src/scss/base/table/_variables.scss +0 -135
  283. package/src/scss/component/_index.scss +0 -9
  284. package/src/scss/component/accordion/_defaults.scss +0 -40
  285. package/src/scss/component/accordion/_index.scss +0 -180
  286. package/src/scss/component/accordion/_variables.scss +0 -316
  287. package/src/scss/component/alert/_defaults.scss +0 -49
  288. package/src/scss/component/alert/_index.scss +0 -118
  289. package/src/scss/component/alert/_variables.scss +0 -170
  290. package/src/scss/component/card/_defaults.scss +0 -32
  291. package/src/scss/component/card/_index.scss +0 -178
  292. package/src/scss/component/card/_variables.scss +0 -186
  293. package/src/scss/component/carousel/_defaults.scss +0 -43
  294. package/src/scss/component/carousel/_index.scss +0 -188
  295. package/src/scss/component/carousel/_variables.scss +0 -104
  296. package/src/scss/component/input-group/_defaults.scss +0 -30
  297. package/src/scss/component/input-group/_index.scss +0 -47
  298. package/src/scss/component/input-group/_variables.scss +0 -66
  299. package/src/scss/component/menu/_defaults.scss +0 -66
  300. package/src/scss/component/menu/_index.scss +0 -305
  301. package/src/scss/component/menu/_variables.scss +0 -500
  302. package/src/scss/component/navigation/_defaults.scss +0 -29
  303. package/src/scss/component/navigation/_index.scss +0 -189
  304. package/src/scss/component/navigation/_variables.scss +0 -237
  305. package/src/scss/functions/_important.scss +0 -13
  306. package/src/scss/functions/_screen.scss +0 -30
  307. package/src/scss/functions/_theme.scss +0 -39
  308. package/src/scss/layout/_index.scss +0 -5
  309. package/src/scss/layout/columns/_defaults.scss +0 -19
  310. package/src/scss/layout/columns/_index.scss +0 -58
  311. package/src/scss/layout/columns/_variables.scss +0 -51
  312. package/src/scss/layout/container/_defaults.scss +0 -17
  313. package/src/scss/layout/container/_index.scss +0 -41
  314. package/src/scss/layout/container/_variables.scss +0 -50
  315. package/src/scss/layout/flex-columns/_defaults.scss +0 -18
  316. package/src/scss/layout/flex-columns/_index.scss +0 -80
  317. package/src/scss/layout/flex-columns/_variables.scss +0 -26
  318. package/src/scss/mixins/_animation.scss +0 -15
  319. package/src/scss/mixins/_layer.scss +0 -12
  320. package/src/scss/mixins/_screen.scss +0 -56
  321. package/src/scss/mixins/_utility.scss +0 -30
  322. package/src/scss/mixins/_visually-hidden.scss +0 -20
  323. package/src/scss/state/_index.scss +0 -3
  324. package/src/scss/state/focus/_defaults.scss +0 -10
  325. package/src/scss/state/focus/_index.scss +0 -13
  326. package/src/scss/state/focus/_mixins.scss +0 -15
  327. package/src/scss/state/focus/_variables.scss +0 -44
  328. package/src/scss/theme/_index.scss +0 -4
  329. package/src/scss/theme/color/_defaults.scss +0 -143
  330. package/src/scss/theme/color/_index.scss +0 -42
  331. package/src/scss/theme/color/_variables.scss +0 -129
  332. package/src/scss/theme/typography/_defaults.scss +0 -54
  333. package/src/scss/theme/typography/_index.scss +0 -111
  334. package/src/scss/theme/typography/_variables.scss +0 -231
  335. package/src/scss/utilities/_index.scss +0 -17
  336. package/src/scss/utilities/alignment/_defaults.scss +0 -62
  337. package/src/scss/utilities/alignment/_index.scss +0 -75
  338. package/src/scss/utilities/alignment/_variables.scss +0 -6
  339. package/src/scss/utilities/color/_defaults.scss +0 -35
  340. package/src/scss/utilities/color/_index.scss +0 -91
  341. package/src/scss/utilities/color/_variables.scss +0 -6
  342. package/src/scss/utilities/display/_defaults.scss +0 -32
  343. package/src/scss/utilities/display/_index.scss +0 -61
  344. package/src/scss/utilities/display/_variables.scss +0 -6
  345. package/src/scss/utilities/flex/_defaults.scss +0 -63
  346. package/src/scss/utilities/flex/_index.scss +0 -71
  347. package/src/scss/utilities/flex/_variables.scss +0 -6
  348. package/src/scss/utilities/height/_defaults.scss +0 -41
  349. package/src/scss/utilities/height/_index.scss +0 -98
  350. package/src/scss/utilities/height/_variables.scss +0 -6
  351. package/src/scss/utilities/inset/_defaults.scss +0 -41
  352. package/src/scss/utilities/inset/_index.scss +0 -37
  353. package/src/scss/utilities/inset/_variables.scss +0 -6
  354. package/src/scss/utilities/justification/_defaults.scss +0 -59
  355. package/src/scss/utilities/justification/_index.scss +0 -75
  356. package/src/scss/utilities/justification/_variables.scss +0 -6
  357. package/src/scss/utilities/list/_defaults.scss +0 -39
  358. package/src/scss/utilities/list/_index.scss +0 -56
  359. package/src/scss/utilities/list/_variables.scss +0 -6
  360. package/src/scss/utilities/order/_defaults.scss +0 -22
  361. package/src/scss/utilities/order/_index.scss +0 -63
  362. package/src/scss/utilities/order/_variables.scss +0 -6
  363. package/src/scss/utilities/position/_defaults.scss +0 -26
  364. package/src/scss/utilities/position/_index.scss +0 -37
  365. package/src/scss/utilities/position/_variables.scss +0 -6
  366. package/src/scss/utilities/ratio/_defaults.scss +0 -28
  367. package/src/scss/utilities/ratio/_index.scss +0 -52
  368. package/src/scss/utilities/ratio/_variables.scss +0 -9
  369. package/src/scss/utilities/spacing/_defaults.scss +0 -49
  370. package/src/scss/utilities/spacing/_index.scss +0 -169
  371. package/src/scss/utilities/spacing/_variables.scss +0 -6
  372. package/src/scss/utilities/typography/_defaults.scss +0 -30
  373. package/src/scss/utilities/typography/_index.scss +0 -224
  374. package/src/scss/utilities/typography/_variables.scss +0 -6
  375. package/src/scss/utilities/visibility/_defaults.scss +0 -25
  376. package/src/scss/utilities/visibility/_index.scss +0 -36
  377. package/src/scss/utilities/visibility/_variables.scss +0 -6
  378. package/src/scss/utilities/width/_defaults.scss +0 -41
  379. package/src/scss/utilities/width/_index.scss +0 -98
  380. package/src/scss/utilities/width/_variables.scss +0 -6
  381. package/stylelint.config.js +0 -21
  382. package/vite.config.js +0 -57
@@ -1,35 +0,0 @@
1
- // @graupl/graupl color utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- // Background utility properties.
12
- $background-class-prefix: "bg-" !default;
13
- $base-background-properties: (
14
- inherit: inherit,
15
- current: currentcolor,
16
- transparent: transparent,
17
- );
18
- $custom-background-properties: () !default;
19
- $background-properties: map.merge(
20
- $base-background-properties,
21
- $custom-background-properties
22
- );
23
-
24
- // Text utility properties.
25
- $text-class-prefix: "text-" !default;
26
- $base-text-properties: (
27
- inherit: inherit,
28
- current: currentcolor,
29
- transparent: transparent,
30
- );
31
- $custom-text-properties: () !default;
32
- $text-properties: map.merge($base-text-properties, $custom-text-properties);
33
-
34
- // Responsive utility flag.
35
- $responsive: false !default;
@@ -1,91 +0,0 @@
1
- // @graupl/graupl color utilities styles.
2
- //
3
- // Responsive class must be within their own loop to prevent specificity issues.
4
- // This keeps responsive specificity tied to screen size before property order.
5
-
6
- @use "../../defaults" as root-defaults;
7
- @use "../../mixins/layer" as *;
8
- @use "../../mixins/utility";
9
- @use "../../theme/color/variables" as color;
10
- @use "defaults";
11
- @use "sass:map";
12
- @use "variables" as *;
13
-
14
- @include layer(utilities) {
15
- // For each theme colour, create a utility class for background and color.
16
- @each $color, $map in map.get(color.$themes, active) {
17
- @each $shade, $value in $map {
18
- $name: #{$color}-#{$shade};
19
-
20
- @include utility.create(
21
- ".#{defaults.$background-class-prefix}#{$name}",
22
- background,
23
- $value
24
- );
25
- @include utility.create(
26
- ".#{defaults.$text-class-prefix}#{$name}",
27
- color,
28
- $value
29
- );
30
- }
31
- }
32
-
33
- // For each background property, create a utility class.
34
- @each $name, $value in defaults.$background-properties {
35
- $selector: ".#{defaults.$background-class-prefix}#{$name}";
36
-
37
- @include utility.create($selector, background, $value);
38
- }
39
-
40
- // For each text property, create a utility class.
41
- @each $name, $value in defaults.$text-properties {
42
- $selector: ".#{defaults.$text-class-prefix}#{$name}";
43
-
44
- @include utility.create($selector, color, $value);
45
- }
46
-
47
- // Create responsive utilities.
48
- @if defaults.$responsive and root-defaults.$responsive-utilities {
49
- @each $screen-size in map.keys(root-defaults.$screen-sizes) {
50
- // For each theme colour, create a utility class for background and color.
51
- @each $color, $map in map.get(color.$themes, active) {
52
- @each $shade, $value in $map {
53
- $name: #{$color}-#{$shade};
54
-
55
- @include utility.create(
56
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$background-class-prefix}#{$name}",
57
- background,
58
- $value,
59
- $screen-size
60
- );
61
- @include utility.create(
62
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$text-class-prefix}#{$name}",
63
- color,
64
- $value,
65
- $screen-size
66
- );
67
- }
68
- }
69
-
70
- // For each background property, create a utility class.
71
- @each $name, $value in defaults.$background-properties {
72
- @include utility.create(
73
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$background-class-prefix}#{$name}",
74
- background,
75
- $value,
76
- $screen-size
77
- );
78
- }
79
-
80
- // For each text property, create a utility class.
81
- @each $name, $value in defaults.$text-properties {
82
- @include utility.create(
83
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$text-class-prefix}#{$name}",
84
- color,
85
- $value,
86
- $screen-size
87
- );
88
- }
89
- }
90
- }
91
- }
@@ -1,6 +0,0 @@
1
- // @graupl/graupl color utilities 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";
@@ -1,32 +0,0 @@
1
- // @graupl/graupl display utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- $display-class-prefix: "display-" !default;
12
- $base-display-properties: (
13
- block: block,
14
- inline-block: inline-block,
15
- inline: inline,
16
- flex: flex,
17
- inline-flex: inline-flex,
18
- grid: grid,
19
- inline-grid: inline-grid,
20
- flow-root: flow-root,
21
- none: none,
22
- contents: contents,
23
- list-item: list-item,
24
- );
25
- $custom-display-properties: () !default;
26
- $display-properties: map.merge(
27
- $base-display-properties,
28
- $custom-display-properties
29
- );
30
- $visually-hidden-class: "visually-hidden" !default;
31
- $visually-hidden-focusable-class: "visually-hidden-focusable" !default;
32
- $responsive: true !default;
@@ -1,61 +0,0 @@
1
- // @graupl/graupl display utilities styles.
2
- //
3
- // Responsive class must be within their own loop to prevent specificity issues.
4
- // This keeps responsive specificity tied to screen size before property order.
5
-
6
- @use "../../defaults" as root-defaults;
7
- @use "../../mixins/layer" as *;
8
- @use "../../mixins/screen";
9
- @use "../../mixins/utility";
10
- @use "../../mixins/visually-hidden";
11
- @use "defaults";
12
- @use "sass:map";
13
- @use "variables" as *;
14
-
15
- @include layer(utilities) {
16
- // For each display property, create a utility class.
17
- @each $name, $property in defaults.$display-properties {
18
- @include utility.create(
19
- ".#{defaults.$display-class-prefix}#{$name}",
20
- display,
21
- $property
22
- );
23
- }
24
-
25
- // Visually hidden utility classes.
26
- #{defaults.$visually-hidden-class} {
27
- @include visually-hidden.apply;
28
- }
29
-
30
- #{defaults.$visually-hidden-focusable-class} {
31
- @include visually-hidden.focusable;
32
- }
33
-
34
- // Create responsive utilities for visually hidden classes.
35
- @if defaults.$responsive and root-defaults.$responsive-utilities {
36
- @each $screen-size in map.keys(root-defaults.$screen-sizes) {
37
- // For each display property, create a utility class.
38
- @each $name, $property in defaults.$display-properties {
39
- @include utility.create(
40
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$display-class-prefix}#{$name}",
41
- display,
42
- $property,
43
- $screen-size
44
- );
45
- }
46
-
47
- // Visually hidden utility classes.
48
- .#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$visually-hidden-class} {
49
- @include screen.up($screen-size) {
50
- @include visually-hidden.apply;
51
- }
52
- }
53
-
54
- .#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$visually-hidden-focusable-class} {
55
- @include screen.up($screen-size) {
56
- @include visually-hidden.focusable;
57
- }
58
- }
59
- }
60
- }
61
- }
@@ -1,6 +0,0 @@
1
- // @graupl/graupl display utilities 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";
@@ -1,63 +0,0 @@
1
- // @graupl/graupl flex utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- // Flex direction properties.
12
- $flex-direction-class-prefix: "flex-" !default;
13
- $base-flex-direction-properties: (
14
- row: row,
15
- row-reverse: row-reverse,
16
- col: column,
17
- col-reverse: column-reverse,
18
- );
19
- $custom-flex-direction-properties: () !default;
20
- $flex-direction-properties: map.merge(
21
- $base-flex-direction-properties,
22
- $custom-flex-direction-properties
23
- );
24
-
25
- // Flex wrap properties.
26
- $flex-wrap-class-prefix: "flex-" !default;
27
- $base-flex-wrap-properties: (
28
- wrap: wrap,
29
- wrap-reverse: wrap-reverse,
30
- nowrap: nowrap,
31
- );
32
- $custom-flex-wrap-properties: () !default;
33
- $flex-wrap-properties: map.merge(
34
- $base-flex-wrap-properties,
35
- $custom-flex-wrap-properties
36
- );
37
-
38
- // Flex grow properties.
39
- $flex-grow-class-prefix: "flex-" !default;
40
- $base-flex-grow-properties: (
41
- grow: 1,
42
- no-grow: 0,
43
- );
44
- $custom-flex-grow-properties: () !default;
45
- $flex-grow-properties: map.merge(
46
- $base-flex-grow-properties,
47
- $custom-flex-grow-properties
48
- );
49
-
50
- // Flex shrink properties.
51
- $flex-shrink-class-prefix: "flex-" !default;
52
- $base-flex-shrink-properties: (
53
- shrink: 1,
54
- no-shrink: 0,
55
- );
56
- $custom-flex-shrink-properties: () !default;
57
- $flex-shrink-properties: map.merge(
58
- $base-flex-shrink-properties,
59
- $custom-flex-shrink-properties
60
- );
61
-
62
- // Responsive utility flag.
63
- $responsive: false !default;
@@ -1,71 +0,0 @@
1
- // @graupl/graupl flex utilities styles.
2
- //
3
- // Responsive class must be within their own loop to prevent specificity issues.
4
- // This keeps responsive specificity tied to screen size before property order.
5
-
6
- @use "../../defaults" as root-defaults;
7
- @use "../../functions/important";
8
- @use "../../mixins/layer" as *;
9
- @use "../../mixins/utility";
10
- @use "defaults";
11
- @use "sass:map";
12
- @use "variables" as *;
13
-
14
- @include layer(utilities) {
15
- // For each flex direction property, create a utility class.
16
- @each $name, $property in defaults.$flex-direction-properties {
17
- @include utility.create(
18
- ".#{defaults.$flex-direction-class-prefix}#{$name}",
19
- flex-direction,
20
- $property
21
- );
22
- @include utility.create(
23
- ".#{defaults.$flex-wrap-class-prefix}#{$name}",
24
- flex-wrap,
25
- $property
26
- );
27
- @include utility.create(
28
- ".#{defaults.$flex-grow-class-prefix}#{$name}",
29
- flex-grow,
30
- $property
31
- );
32
- @include utility.create(
33
- ".#{defaults.$flex-shrink-class-prefix}#{$name}",
34
- flex-shrink,
35
- $property
36
- );
37
- }
38
-
39
- // Create responsive utilities.
40
- @if defaults.$responsive and root-defaults.$responsive-utilities {
41
- @each $screen-size in map.keys(root-defaults.$screen-sizes) {
42
- // For each flex direction property, create a utility class.
43
- @each $name, $property in defaults.$flex-direction-properties {
44
- @include utility.create(
45
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$flex-direction-class-prefix}#{$name}",
46
- flex-direction,
47
- $property,
48
- $screen-size
49
- );
50
- @include utility.create(
51
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$flex-wrap-class-prefix}#{$name}",
52
- flex-wrap,
53
- $property,
54
- $screen-size
55
- );
56
- @include utility.create(
57
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$flex-grow-class-prefix}#{$name}",
58
- flex-grow,
59
- $property,
60
- $screen-size
61
- );
62
- @include utility.create(
63
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$flex-shrink-class-prefix}#{$name}",
64
- flex-shrink,
65
- $property,
66
- $screen-size
67
- );
68
- }
69
- }
70
- }
71
- }
@@ -1,6 +0,0 @@
1
- // @graupl/graupl flex utilities 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";
@@ -1,41 +0,0 @@
1
- // @graupl/graupl height utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- // Height properties.
12
- $height-class-prefix: "h-" !default;
13
- $max-height-class-prefix: "max-h-" !default;
14
- $min-height-class-prefix: "min-h-" !default;
15
-
16
- // Height values.
17
- $base-height-values: (
18
- auto: auto,
19
- fit-content: fit-content,
20
- max-content: max-content,
21
- min-content: min-content,
22
- stretch: stretch,
23
- 0: 0,
24
- full: 100%,
25
- quarter: 25%,
26
- half: 50%,
27
- three-quarters: 75%,
28
- third: calc(100% / 3),
29
- two-thirds: calc(100% / 1.5),
30
- half-screen: 50vh,
31
- third-screen: calc(100vh / 3),
32
- two-thirds-screen: calc(100vh / 1.5),
33
- quarter-screen: 25vh,
34
- three-quarters-screen: 75vh,
35
- full-screen: 100vh,
36
- );
37
- $custom-height-values: () !default;
38
- $height-values: map.merge($base-height-values, $custom-height-values);
39
-
40
- // Responsive utility flag.
41
- $responsive: false !default;
@@ -1,98 +0,0 @@
1
- // @graupl/graupl height utilities styles.
2
- //
3
- // Responsive class must be within their own loop to prevent specificity issues.
4
- // This keeps responsive specificity tied to screen size before property order.
5
-
6
- @use "../../defaults" as root-defaults;
7
- @use "../../mixins/layer" as *;
8
- @use "../../mixins/utility";
9
- @use "../../variables" as root-variables;
10
- @use "defaults";
11
- @use "sass:map";
12
- @use "variables" as *;
13
-
14
- @include layer(utilities) {
15
- // For each height property, create a utility class.
16
- @each $height, $value in defaults.$height-values {
17
- @include utility.create(
18
- ".#{defaults.$height-class-prefix}#{$height}",
19
- height,
20
- $value
21
- );
22
- @include utility.create(
23
- ".#{defaults.$max-height-class-prefix}#{$height}",
24
- max-height,
25
- $value
26
- );
27
- @include utility.create(
28
- ".#{defaults.$min-height-class-prefix}#{$height}",
29
- min-height,
30
- $value
31
- );
32
- }
33
-
34
- @each $spacer, $value in root-variables.$spacers {
35
- @include utility.create(
36
- ".#{defaults.$height-class-prefix}#{$spacer}",
37
- height,
38
- $value
39
- );
40
- @include utility.create(
41
- ".#{defaults.$max-height-class-prefix}#{$spacer}",
42
- max-height,
43
- $value
44
- );
45
- @include utility.create(
46
- ".#{defaults.$min-height-class-prefix}#{$spacer}",
47
- min-height,
48
- $value
49
- );
50
- }
51
-
52
- // Create responsive utilities.
53
- @if defaults.$responsive and root-defaults.$responsive-utilities {
54
- @each $screen-size in map.keys(root-defaults.$screen-sizes) {
55
- @each $height, $value in defaults.$height-values {
56
- @include utility.create(
57
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$height-class-prefix}#{$height}",
58
- height,
59
- $value,
60
- $screen-size
61
- );
62
- @include utility.create(
63
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$max-height-class-prefix}#{$height}",
64
- max-height,
65
- $value,
66
- $screen-size
67
- );
68
- @include utility.create(
69
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$min-height-class-prefix}#{$height}",
70
- min-height,
71
- $value,
72
- $screen-size
73
- );
74
- }
75
-
76
- @each $spacer, $value in root-variables.$spacers {
77
- @include utility.create(
78
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$height-class-prefix}#{$spacer}",
79
- height,
80
- $value,
81
- $screen-size
82
- );
83
- @include utility.create(
84
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$max-height-class-prefix}#{$spacer}",
85
- max-height,
86
- $value,
87
- $screen-size
88
- );
89
- @include utility.create(
90
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{defaults.$min-height-class-prefix}#{$spacer}",
91
- min-height,
92
- $value,
93
- $screen-size
94
- );
95
- }
96
- }
97
- }
98
- }
@@ -1,6 +0,0 @@
1
- // @graupl/graupl height utilities 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";
@@ -1,41 +0,0 @@
1
- // @graupl/graupl inset utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- // Inset properties.
12
- $base-inset-properties: (
13
- inset: inset,
14
- inset-x: left right,
15
- inset-y: top bottom,
16
- inset-start: inset-inline-start,
17
- inset-end: inset-inline-end,
18
- top: top,
19
- right: right,
20
- bottom: bottom,
21
- left: left,
22
- );
23
- $custom-inset-properties: () !default;
24
- $inset-properties: map.merge($base-inset-properties, $custom-inset-properties);
25
-
26
- // Inset values.
27
- $base-inset-values: (
28
- 0: 0,
29
- auto: auto,
30
- full: 100%,
31
- quarter: 25%,
32
- half: 50%,
33
- three-quarters: 75%,
34
- third: calc(100% / 3),
35
- two-thirds: calc(100% / 1.5),
36
- );
37
- $custom-inset-values: () !default;
38
- $inset-values: map.merge($base-inset-values, $custom-inset-values);
39
-
40
- // Responsive utility flag.
41
- $responsive: false !default;
@@ -1,37 +0,0 @@
1
- // @graupl/graupl inset utilities styles.
2
- //
3
- // Responsive class must be within their own loop to prevent specificity issues.
4
- // This keeps responsive specificity tied to screen size before property order.
5
-
6
- @use "../../defaults" as root-defaults;
7
- @use "../../functions/important";
8
- @use "../../mixins/layer" as *;
9
- @use "../../mixins/utility";
10
- @use "defaults";
11
- @use "sass:map";
12
- @use "variables" as *;
13
-
14
- @include layer(utilities) {
15
- // For each inset property, create a utility class.
16
- @each $type, $property in defaults.$inset-properties {
17
- @each $name, $value in defaults.$inset-values {
18
- @include utility.create(".#{$type}-#{$name}", $property, $value);
19
- }
20
- }
21
-
22
- @if defaults.$responsive and root-defaults.$responsive-utilities {
23
- @each $screen-size in map.keys(root-defaults.$screen-sizes) {
24
- // For each inset property, create a utility class.
25
- @each $type, $property in defaults.$inset-properties {
26
- @each $name, $value in defaults.$inset-values {
27
- @include utility.create(
28
- ".#{$screen-size}#{root-defaults.$responsive-separator}#{$type}-#{$name}",
29
- $property,
30
- $value,
31
- $screen-size
32
- );
33
- }
34
- }
35
- }
36
- }
37
- }
@@ -1,6 +0,0 @@
1
- // @graupl/graupl inset utilities 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";
@@ -1,59 +0,0 @@
1
- // @graupl/graupl justification utilities default values.
2
- //
3
- // Generally, these should not be used directly when styling components 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 "sass:map";
10
-
11
- // Justify content properties.
12
- $justify-content-class-prefix: "justify-content-" !default;
13
- $base-justify-content-properties: (
14
- normal: normal,
15
- start: flex-start,
16
- end: flex-end,
17
- center: center,
18
- between: space-between,
19
- around: space-around,
20
- evenly: space-evenly,
21
- stretch: stretch,
22
- );
23
- $custom-justify-content-properties: () !default;
24
- $justify-content-properties: map.merge(
25
- $base-justify-content-properties,
26
- $custom-justify-content-properties
27
- );
28
-
29
- // Justify items properties.
30
- $justify-items-class-prefix: "justify-items-" !default;
31
- $base-justify-items-properties: (
32
- start: start,
33
- end: end,
34
- center: center,
35
- stretch: stretch,
36
- );
37
- $custom-justify-items-properties: () !default;
38
- $justify-items-properties: map.merge(
39
- $base-justify-items-properties,
40
- $custom-justify-items-properties
41
- );
42
-
43
- // Justify self properties.
44
- $justify-self-class-prefix: "justify-self-" !default;
45
- $base-justify-self-properties: (
46
- auto: auto,
47
- start: start,
48
- end: end,
49
- center: center,
50
- stretch: stretch,
51
- );
52
- $custom-justify-self-properties: () !default;
53
- $justify-self-properties: map.merge(
54
- $base-justify-self-properties,
55
- $custom-justify-self-properties
56
- );
57
-
58
- // Responsive utility flag.
59
- $responsive: false !default;