@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.js","names":["isValidInstance","contructor","elements","elementsType","TypeError","key","elementType","name","status","error","isValidType","type","values","valuesType","valueType","isQuerySelector","Error","document","querySelector","isValidClassList","Array","isArray","forEach","value","obj","isTag","tagName","HTMLElement","tag","toLowerCase","check","isValidType","initializeStorage","type","window","Graupl","getStorage","setStorage","data","clearStorage","pushToStorage","key","value","getFromStorage","removeFromStorage","wsRE","attrName","doc","document","attr","element","op","value","attrSelector","id","TypeError","test","RangeError","checkElement","itemToCheck","Element","getElements","selector","context","elements","Document","DocumentFragment","querySelectorAll","Array","prototype","slice","call","filterAndModify","apply","filter","selected","matches","updateAttribute","add","remove","result","trim","split","forEach","item","indexOf","push","attribute","join","once","find","storage","once","generate","options","context","document","navigationSelector","forEach","navigationElement","MenuConstructor","dataset","grauplMenuType","DisclosureMenu","window","undefined","console","warn","menuOptions","grauplMenuOptions","JSON","parse","replace","menuElement","querySelector","controllerElement","containerElement","menu","menuItemSelector","menuLinkSelector","submenuItemSelector","submenuToggleSelector","initializeStorage","pushToStorage","dom","id","generate","document","addEventListener"],"sources":["../../packages/core/src/js/validate.js","../../packages/core/src/js/storage.js","../../node_modules/@drupal/once/src/once.js","../../packages/core/src/js/navigation/generator.js","../../packages/core/src/js/navigation/index.js"],"sourcesContent":["/**\n * Check to see if the provided elements have a specific contructor.\n *\n * The values must be provided inside of an object\n * so the variable name can be retrieved in case of errors.\n *\n * This is essentially just a wrapper function around checking instanceof with\n * more descriptive error message to help debugging.\n *\n * Will return `{ status: true }` if the check is successful.\n *\n * @param {object} contructor - The constructor to check for.\n * @param {object} elements - The element(s) to check.\n * @return {Object<boolean, string>} - The result of the check.\n */\nexport function isValidInstance(contructor, elements) {\n try {\n if (typeof elements !== \"object\") {\n const elementsType = typeof elements;\n\n throw new TypeError(\n `Elements given to isValidInstance() must be inside of an object. \"${elementsType}\" given.`\n );\n }\n\n for (const key in elements) {\n if (!(elements[key] instanceof contructor)) {\n const elementType = typeof elements[key];\n throw new TypeError(\n `${key} must be an instance of ${contructor.name}. \"${elementType}\" given.`\n );\n }\n }\n\n return {\n status: true,\n error: null,\n };\n } catch (error) {\n return {\n status: false,\n error,\n };\n }\n}\n\n/**\n * Check to see if the provided values are of a specific type.\n *\n * The values must be provided inside of an object\n * so the variable name can be retrieved in case of errors.\n *\n * This is essentially just a wrapper function around checking typeof with\n * more descriptive error message to help debugging.\n *\n * Will return `{ status: true }` if the check is successful.\n *\n * @param {string} type - The type to check for.\n * @param {object} values - The value(s) to check.\n * @return {Object<boolean, string>} - The result of the check.\n */\nexport function isValidType(type, values) {\n try {\n if (typeof values !== \"object\") {\n const valuesType = typeof values;\n\n throw new TypeError(\n `Values given to isValidType() must be inside of an object. \"${valuesType}\" given.`\n );\n }\n\n for (const key in values) {\n const valueType = typeof values[key];\n\n if (valueType !== type) {\n throw new TypeError(`${key} must be a ${type}. \"${valueType}\" given.`);\n }\n }\n\n return {\n status: true,\n error: null,\n };\n } catch (error) {\n return {\n status: false,\n error,\n };\n }\n}\n\n/**\n * Checks to see if the provided values are valid query selectors.\n *\n * The values must be provided inside of an object\n * so the variable name can be retrieved in case of errors.\n *\n * Will return `{ status: true }` if the check is successful.\n *\n * @param {Object<string>} values - The value(s) to check.\n * @return {Object<boolean, string>} - The result of the check.\n */\nexport function isQuerySelector(values) {\n try {\n if (typeof values !== \"object\") {\n const type = typeof values;\n\n throw new TypeError(\n `Values given to isQuerySelector() must be inside of an object. \"${type}\" given.`\n );\n }\n\n for (const key in values) {\n try {\n if (values[key] === null) {\n throw new Error();\n }\n\n document.querySelector(values[key]);\n } catch {\n throw new TypeError(\n `${key} must be a valid query selector. \"${values[key]}\" given.`\n );\n }\n }\n\n return {\n status: true,\n error: null,\n };\n } catch (error) {\n return {\n status: false,\n error,\n };\n }\n}\n\n/**\n * Checks to see if the provided value is either a string or an array of strings.\n *\n * The values must be provided inside of an object\n * so the variable name can be retrieved in case of errors.\n *\n * Will return `{ status: true }` if the check is successful.\n *\n * @param {Object<string, string[]>} values - The value(s) to check.\n * @return {Object<boolean, string>} - The result of the check.\n */\nexport function isValidClassList(values) {\n try {\n if (typeof values !== \"object\" || Array.isArray(values)) {\n const type = typeof values;\n\n throw new TypeError(\n `Values given to isValidClassList() must be inside of an object. \"${type}\" given.`\n );\n }\n\n for (const key in values) {\n const type = typeof values[key];\n\n if (type !== \"string\") {\n if (Array.isArray(values[key])) {\n values[key].forEach((value) => {\n if (typeof value !== \"string\") {\n throw new TypeError(\n `${key} must be a string or an array of strings. An array containing non-strings given.`\n );\n }\n });\n } else {\n throw new TypeError(\n `${key} must be a string or an array of strings. \"${type}\" given.`\n );\n }\n } else {\n const obj = {};\n obj[key] = values[key];\n\n isQuerySelector(obj);\n }\n }\n\n return {\n status: true,\n error: null,\n };\n } catch (error) {\n return {\n status: false,\n error,\n };\n }\n}\n\n/**\n * Checks to see if the provided elements are using a specific tag.\n *\n * The elements must be provided inside of an object\n * so the variable name can be retrieved in case of errors.\n *\n * Will return `true` if the check is successful.\n *\n * @param {string} tagName - The name of the tag.\n * @param {Object<HTMLElement>} elements - The element(s) to check.\n * @return {boolean} - The result of the check.\n */\nexport function isTag(tagName, elements) {\n if (\n isValidType(\"string\", { tagName }).status &&\n isValidInstance(HTMLElement, elements).status\n ) {\n const tag = tagName.toLowerCase();\n let check = true;\n\n for (const key in elements) {\n if (elements[key].tagName.toLowerCase() !== tag) check = false;\n }\n\n return check;\n } else {\n return false;\n }\n}\n","/**\n * @file\n * Provides a system to get and store Graupl data in the browser.\n */\n\nimport { isValidType } from \"./validate.js\";\n\n/**\n * Initializes the storage system.\n *\n * @param {?string} [type = null] - The type of storage to initialize.\n */\nexport function initializeStorage(type = null) {\n window.Graupl = window.Graupl || {};\n\n if (isValidType(\"string\", { type })) {\n window.Graupl[type] = window.Graupl[type] || {};\n }\n}\n\n/**\n * Get the storage object.\n *\n * @param {?string} type - The type of storage to get.\n * @return {object} - The storage object.\n */\nexport function getStorage(type = null) {\n if (isValidType(\"string\", { type })) {\n return window.Graupl[type];\n }\n\n return window.Graupl;\n}\n\n/**\n * Set the storage object of a given type.\n *\n * @param {string} type - The type of storage to set.\n * @param {object} data - The data to set.\n */\nexport function setStorage(type, data = {}) {\n if (isValidType(\"string\", { type }) && isValidType(\"object\", { data })) {\n window.Graupl[type] = data;\n }\n}\n\n/**\n * Clear the storage object of a given type.\n *\n * @param {string} type - The type of storage to clear.\n */\nexport function clearStorage(type) {\n if (isValidType(\"string\", { type })) {\n window.Graupl[type] = {};\n }\n}\n\n/**\n * Push a value to the storage object.\n *\n * @param {string} type - The type of storage to push to.\n * @param {string} key - The key to use for the value.\n * @param {*} value - The value to store.\n */\nexport function pushToStorage(type, key, value) {\n if (isValidType(\"string\", { type, key })) {\n window.Graupl[type][key] = value;\n }\n}\n\n/**\n * Get a value from the storage object.\n *\n * @param {string }type - The type of storage to get from.\n * @param {string }key - The key to get the value from.\n * @return {*} - The value from the storage object.\n */\nexport function getFromStorage(type, key) {\n if (isValidType(\"string\", { type, key })) {\n return window.Graupl[type][key];\n }\n\n return null;\n}\n\n/**\n * Remove a value from the storage object.\n *\n * @param {string} type - The type of storage to remove from.\n * @param {string} key - The key to remove the value from.\n */\nexport function removeFromStorage(type, key) {\n if (isValidType(\"string\", { type, key })) {\n delete window.Graupl[type][key];\n }\n}\n\nexport default {\n initializeStorage,\n getStorage,\n setStorage,\n clearStorage,\n pushToStorage,\n getFromStorage,\n removeFromStorage,\n};\n","/**\n * Mark DOM elements as processed to prevent multiple initializations.\n *\n * @module @drupal/once\n *\n * @example <!-- Use as a module -->\n * <script type=\"module\">\n * import once from 'https://unpkg.com/@drupal/once/src/once.js';\n * const elements = once('my-once-id', 'div');\n * // Initialize elements.\n * elements.forEach(el => el.innerHTML = 'processed');\n * </script>\n *\n * @example <!-- Use as a regular script -->\n * <script src=\"https://unpkg.com/@drupal/once\"></script>\n * <script>\n * const elements = once('my-once-id', 'div');\n * // Initialize elements.\n * elements.forEach(el => el.innerHTML = 'processed');\n * </script>\n * @example <!-- Using a single element as input-->\n * <script src=\"https://unpkg.com/@drupal/once\"></script>\n * <script>\n * // once methods always return an array, to simplify the use with a single\n * // element use destructuring or the shift method.\n * const [myElement] = once('my-once-id', document.body);\n * const myElement = once('my-once-id', document.body).shift();\n * </script>\n */\n\n/**\n * Illegal spaces in ids.\n *\n * @private\n *\n * @type {RegExp}\n */\nconst wsRE = /[\\11\\12\\14\\15\\40]+/;\n\n/**\n * Name of the HTML attribute containing an element's once ids.\n *\n * @private\n *\n * @type {string}\n */\nconst attrName = 'data-once';\n\n/**\n * Shortcut to access the html element.\n *\n * @private\n *\n * @type {HTMLElement}\n */\nconst doc = document;\n\n/**\n * Helper to access element attributes.\n *\n * @private\n *\n * @param {Element} element\n * The Element to access the data-once attribute from.\n * @param {string} op\n * The action to take on the element.\n * @param {string} [value]\n * Optional value for setAttribute.\n *\n * @return {string|undefined|null|boolean}\n * Result of the attribute method.\n */\nfunction attr(element, op, value) {\n return element[`${op}Attribute`](attrName, value);\n}\n\n/**\n * Return the attribute selector.\n *\n * @private\n *\n * @param {string} id\n * The id passed by a call to a once() function.\n *\n * @return {string}\n * The full CSS attribute selector.\n *\n * @throws {TypeError|RangeError}\n */\nfunction attrSelector(id) {\n // Verify the validity of the once id.\n if (typeof id !== 'string') {\n throw new TypeError('once ID must be a string');\n }\n if (id === '' || wsRE.test(id)) {\n throw new RangeError('once ID must not be empty or contain spaces');\n }\n // The id is valid, return the full CSS selector.\n return `[${attrName}~=\"${id}\"]`;\n}\n\n/**\n * Verifies that an item is an instance of Element.\n *\n * This function is used during filtering to ensure only DOM elements are\n * processed. once() makes use of get/setAttribute, which are methods\n * inherited from the Element object, so only of Element can be used.\n *\n * @private\n *\n * @param {*} itemToCheck\n * The item to check.\n *\n * @return {boolean}\n * True if the item is an instance of Element\n *\n * @throws {TypeError}\n */\nfunction checkElement(itemToCheck) {\n if (!(itemToCheck instanceof Element)) {\n throw new TypeError('The element must be an instance of Element');\n }\n return true;\n}\n\n/**\n * Process arguments, query the DOM if necessary.\n *\n * @private\n *\n * @param {NodeList|Array.<Element>|Element|string} selector\n * A NodeList or array of elements.\n * @param {Document|DocumentFragment|Element} [context=document]\n * An element or document object to use as context for querySelectorAll.\n *\n * @return {Array.<Element>}\n * An array with the processed Id and the list of elements to process.\n */\nfunction getElements(selector, context = doc) {\n // Assume selector is an array-like value.\n let elements = selector;\n\n // If selector is null it is most likely because of a call to querySelector\n // that didn't return a result.\n if (selector === null) {\n elements = [];\n }\n // The selector is undefined, error out.\n else if (!selector) {\n throw new TypeError('Selector must not be empty');\n }\n // Context doesn't implement querySelectorAll, error out.\n else if (\n !(\n context instanceof Document ||\n context instanceof DocumentFragment ||\n context instanceof Element\n )\n ) {\n throw new TypeError(\n 'Context must be an object of type \"Document\", \"DocumentFragment\", or \"Element\".',\n );\n }\n // This is a selector, query the elements.\n else if (typeof selector === 'string') {\n elements = context.querySelectorAll(selector);\n }\n // This is a single element.\n else if (selector instanceof Element) {\n elements = [selector];\n }\n\n // Make sure an array is returned and not a NodeList or an Array-like object.\n return Array.prototype.slice.call(elements);\n}\n\n/**\n * A helper for applying DOM changes to a filtered set of elements.\n *\n * This makes it possible to filter items that are not instances of Element,\n * then modify their DOM attributes in a single array traversal.\n *\n * @private\n *\n * @param {string} selector\n * A CSS selector to check against to each element in the array.\n * @param {Array.<Element>} elements\n * A NodeList or array of elements passed by a call to a once() function.\n * @param {function} [apply]\n * An optional function to apply on all matched elements.\n *\n * @return {Array.<Element>}\n * The array of elements that match the CSS selector.\n */\nfunction filterAndModify(selector, elements, apply) {\n return elements.filter((element) => {\n const selected = checkElement(element) && element.matches(selector);\n if (selected && apply) {\n apply(element);\n }\n return selected;\n });\n}\n\n/**\n * Add or remove an item from a list of once values.\n *\n * This function removes duplicates while adding or removing a once id in a\n * single array traversal.\n *\n * @private\n *\n * @param {Element} element\n * A space separated string of once ids from a data-drupal-once attribute.\n * @param {string} [add]\n * The once id to add to the list of values.\n * @param {string} [remove]\n * The once id to remove from the list of values.\n *\n * @return {undefined}\n * Nothing to return this is a callback in a foreach.\n */\nfunction updateAttribute(element, { add, remove }) {\n const result = [];\n if (attr(element, 'has')) {\n attr(element, 'get')\n .trim()\n .split(wsRE)\n .forEach((item) => {\n if (result.indexOf(item) < 0 && item !== remove) {\n result.push(item);\n }\n });\n }\n if (add) {\n result.push(add);\n }\n const attribute = result.join(' ');\n attr(element, attribute === '' ? 'remove' : 'set', attribute);\n}\n\n/**\n * Ensures a JavaScript callback is only executed once on a set of elements.\n *\n * Filters a NodeList or array of elements, removing those already processed\n * by a callback with a given id.\n * This method adds a `data-once` attribute on DOM elements. The value of\n * this attribute identifies if a given callback has been executed on that\n * element.\n *\n * @global\n *\n * @example <caption>Basic usage</caption>\n * const elements = once('my-once-id', '[data-myelement]');\n * @example <caption>Input parameters accepted</caption>\n * // NodeList.\n * once('my-once-id', document.querySelectorAll('[data-myelement]'));\n * // Array or Array-like of Element.\n * once('my-once-id', jQuery('[data-myelement]'));\n * // A CSS selector without a context.\n * once('my-once-id', '[data-myelement]');\n * // A CSS selector with a context.\n * once('my-once-id', '[data-myelement]', document.head);\n * // Single Element.\n * once('my-once-id', document.querySelector('#some-id'));\n * @example <caption>Using a single element</caption>\n * // Once always returns an array, even when passing a single element. Some\n * // forms that can be used to keep code readable.\n * // Destructuring:\n * const [myElement] = once('my-once-id', document.body);\n * // By changing the resulting array, es5 compatible.\n * const myElement = once('my-once-id', document.body).shift();\n *\n * @param {string} id\n * The id of the once call.\n * @param {NodeList|Array.<Element>|Element|string} selector\n * A NodeList or array of elements.\n * @param {Document|DocumentFragment|Element} [context=document]\n * An element or document object to use as context for querySelectorAll.\n *\n * @return {Array.<Element>}\n * An array of elements that have not yet been processed by a once call\n * with a given id.\n */\nfunction once(id, selector, context) {\n return filterAndModify(\n `:not(${attrSelector(id)})`,\n getElements(selector, context),\n (element) => updateAttribute(element, { add: id }),\n );\n}\n\n/**\n * Removes a once id from an element's data-drupal-once attribute value.\n *\n * If a once id is removed from an element's data-drupal-once attribute value,\n * the JavaScript callback associated with that id can be executed on that\n * element again.\n *\n * @method once.remove\n *\n * @example <caption>Basic usage</caption>\n * const elements = once.remove('my-once-id', '[data-myelement]');\n * @example <caption>Input parameters accepted</caption>\n * // NodeList.\n * once.remove('my-once-id', document.querySelectorAll('[data-myelement]'));\n * // Array or Array-like of Element.\n * once.remove('my-once-id', jQuery('[data-myelement]'));\n * // A CSS selector without a context.\n * once.remove('my-once-id', '[data-myelement]');\n * // A CSS selector with a context.\n * once.remove('my-once-id', '[data-myelement]', document.head);\n * // Single Element.\n * once.remove('my-once-id', document.querySelector('#some-id'));\n *\n * @param {string} id\n * The id of a once call.\n * @param {NodeList|Array.<Element>|Element|string} selector\n * A NodeList or array of elements to remove the once id from.\n * @param {Document|Element} [context=document]\n * An element to use as context for querySelectorAll.\n *\n * @return {Array.<Element>}\n * A filtered array of elements that had been processed by the provided id,\n * and are now able to be processed again.\n */\nonce.remove = (id, selector, context) => {\n return filterAndModify(\n attrSelector(id),\n getElements(selector, context),\n (element) => updateAttribute(element, { remove: id }),\n );\n};\n\n/**\n * Finds elements that have been processed by a given once id.\n *\n * Behaves like {@link once} and {@link once.remove} without changing the DOM.\n * To select all DOM nodes processed by a given id, use {@link once.find}.\n *\n * @method once.filter\n *\n * @example <caption>Basic usage</caption>\n * const filteredElements = once.filter('my-once-id', '[data-myelement]');\n * @example <caption>Input parameters accepted</caption>\n * // NodeList.\n * once.filter('my-once-id', document.querySelectorAll('[data-myelement]'));\n * // Array or Array-like of Element.\n * once.filter('my-once-id', jQuery('[data-myelement]'));\n * // A CSS selector without a context.\n * once.filter('my-once-id', '[data-myelement]');\n * // A CSS selector with a context.\n * once.filter('my-once-id', '[data-myelement]', document.head);\n * // Single Element.\n * once.filter('my-once-id', document.querySelector('#some-id'));\n *\n * @param {string} id\n * The id of the once call.\n * @param {NodeList|Array.<Element>|Element|string} selector\n * A NodeList or array of elements to remove the once id from.\n * @param {Document|Element} [context=document]\n * An element to use as context for querySelectorAll.\n *\n * @return {Array.<Element>}\n * A filtered array of elements that have already been processed by the\n * provided once id.\n */\nonce.filter = (id, selector, context) =>\n filterAndModify(attrSelector(id), getElements(selector, context));\n\n/**\n * Finds elements that have been processed by a given once id.\n *\n * Query the 'context' element for elements that already have the\n * corresponding once id value.\n *\n * @method once.find\n *\n * @example <caption>Basic usage</caption>\n * const oncedElements = once.find('my-once-id');\n * @example <caption>Input parameters accepted</caption>\n * // Call without parameters, return all elements with a `data-once` attribute.\n * once.find();\n * // Call without a context.\n * once.find('my-once-id');\n * // Call with a context.\n * once.find('my-once-id', document.head);\n *\n * @param {string} [id]\n * The id of the once call.\n * @param {Document|DocumentFragment|Element} [context=document]\n * Scope of the search for matching elements.\n *\n * @return {Array.<Element>}\n * A filtered array of elements that have already been processed by the\n * provided once id.\n */\nonce.find = (id, context) =>\n getElements(!id ? `[${attrName}]` : attrSelector(id), context);\n\nexport default once;\n","import storage from \"../storage.js\";\nimport once from \"@drupal/once\";\n\nexport const generate = (\n options = {},\n context = document,\n navigationSelector = \".navigation\"\n) => {\n once(\"graupl-navigation-generator\", navigationSelector, context).forEach(\n (navigationElement) => {\n const MenuConstructor =\n navigationElement.dataset.grauplMenuType || DisclosureMenu;\n\n if (window[MenuConstructor] === undefined) {\n console.warn(\n `Graupl navigation requires accessible-menu's ${MenuConstructor}. Please make sure to include it on this page.`\n );\n\n return;\n }\n\n const menuOptions = navigationElement.dataset.grauplMenuOptions\n ? JSON.parse(\n navigationElement.dataset.grauplMenuOptions.replace(/'/g, '\"')\n ) || {}\n : {};\n const menuElement = navigationElement.querySelector(\".menu\");\n const controllerElement =\n navigationElement.querySelector(\".navigation-toggle\") || null;\n const containerElement = controllerElement ? navigationElement : null;\n const menu = new window[MenuConstructor]({\n menuElement,\n menuItemSelector: \".menu-item\",\n menuLinkSelector: \".menu-link\",\n submenuItemSelector: \".submenu-item\",\n submenuToggleSelector: \".submenu-toggle\",\n controllerElement,\n containerElement,\n ...options,\n ...menuOptions,\n });\n\n storage.initializeStorage(\"menus\");\n storage.pushToStorage(\"menus\", menu.dom.menu.id, menu);\n }\n );\n};\n\nexport default generate;\n","import generate from \"./generator.js\";\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n generate();\n});\n"],"x_google_ignoreList":[2],"mappings":"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"}
package/package.json CHANGED
@@ -1,33 +1,15 @@
1
1
  {
2
2
  "name": "@graupl/graupl",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "A modular and modern CSS framework.",
5
5
  "type": "module",
6
- "exports": {
7
- ".": {
8
- "sass": "./scss/graupl.scss",
9
- "import": "./dist/js/graupl.es.js",
10
- "require": "./dist/js/graupl.cjs.js"
11
- },
12
- "./*.scss": {
13
- "sass": "./scss/*.scss"
14
- },
15
- "./src/*.scss": {
16
- "sass": "./src/scss/*.scss"
17
- },
18
- "./accordion": {
19
- "import": "./dist/js/component/accordion.es.js",
20
- "require": "./dist/js/component/accordion.cjs.js"
21
- },
22
- "./alert": {
23
- "import": "./dist/js/component/alert.es.js",
24
- "require": "./dist/js/component/alert.cjs.js"
25
- },
26
- "./carousel": {
27
- "import": "./dist/js/component/carousel.es.js",
28
- "require": "./dist/carousel.cjs.js"
29
- }
30
- },
6
+ "files": [
7
+ "dist",
8
+ "scss"
9
+ ],
10
+ "workspaces": [
11
+ "packages/*"
12
+ ],
31
13
  "scripts": {
32
14
  "prepare": "husky",
33
15
  "commit": "git cz",
@@ -35,37 +17,57 @@
35
17
  "prettier": "prettier '**/*.{js,mjs,cjs,scss,sass}'",
36
18
  "stylelint": "stylelint '**/*.scss' --allow-empty-input",
37
19
  "lint": "npm run eslint -- --fix && npm run stylelint -- --fix && npm run prettier -- --write",
38
- "sass": "rm -rf dist/css/* && sass scss:dist/css",
39
- "postcss": "postcss 'dist/css/**/*.css' --replace",
20
+ "presass": "rm -rf dist/css/*",
21
+ "sass": "sass scss:dist/css --pkg-importer=node",
22
+ "sass:packages": "npm --workspaces run sass",
23
+ "postcss": "postcss 'dist/css/**/*.css' --replace --config ./postcss.config.cjs",
24
+ "postcss:packages": "npm --workspaces run postcss",
25
+ "css": "npm run sass && npm run postcss",
26
+ "css:packages": "npm --workspaces run css",
27
+ "prerolldown": "rm -rf dist/js/*",
28
+ "rolldown": "rolldown --config ./rolldown.config.js",
29
+ "rolldown:packages": "npm --workspaces run rolldown",
40
30
  "build": "npm-run-all build:*",
31
+ "build:packages": "npm --workspaces run build",
41
32
  "build:css": "npm run sass && npm run postcss",
42
- "build:js": "BUILD_TYPE=default vite build",
43
- "build:accordion": "BUILD_TYPE=Accordion vite build",
44
- "build:alert": "BUILD_TYPE=Alert vite build",
45
- "build:carousel": "BUILD_TYPE=Carousel vite build",
33
+ "build:js": "npm run rolldown",
46
34
  "postbuild": "npm run docs:build",
47
- "release": "git add dist/. && standard-version -a",
35
+ "release": "git add dist/. packages/*/dist/. && commit-and-tag-version -a",
48
36
  "prerelease": "npm run lint && npm run build",
37
+ "dev": "vite --config vite.config.js",
38
+ "preview": "vite preview --config vite.config.js",
49
39
  "docs:dev": "vitepress dev docs",
50
40
  "docs:build": "vitepress build docs",
51
41
  "docs:preview": "vitepress preview docs"
52
42
  },
53
43
  "repository": {
54
44
  "type": "git",
55
- "url": "git+ssh://git@github.com/Graupl/graupl.git"
45
+ "url": "git+https://github.com/Graupl/graupl.git"
56
46
  },
57
- "author": "",
58
- "license": "ISC",
47
+ "keywords": [
48
+ "graupl"
49
+ ],
50
+ "author": "Nick Milton",
51
+ "contributors": [
52
+ {
53
+ "name": "Coldfront Labs Inc.",
54
+ "url": "https://coldfrontlabs.ca"
55
+ }
56
+ ],
59
57
  "bugs": {
60
58
  "url": "https://github.com/Graupl/graupl/issues"
61
59
  },
60
+ "license": "ISC",
62
61
  "homepage": "https://github.com/Graupl/graupl#readme",
63
62
  "devDependencies": {
64
63
  "@commitlint/cli": "^19.2.1",
65
64
  "@commitlint/config-conventional": "^19.1.0",
65
+ "@drupal/once": "git+https://git.drupalcode.org/issue/once-3466026.git",
66
66
  "@eslint/js": "^9.0.0",
67
+ "@rollup/plugin-babel": "^6.0.4",
67
68
  "autoprefixer": "^10.4.19",
68
69
  "chokidar-cli": "^3.0.0",
70
+ "commit-and-tag-version": "^12.5.1",
69
71
  "commitizen": "^4.3.0",
70
72
  "cssnano": "^7.0.1",
71
73
  "cz-conventional-changelog": "^3.3.0",
@@ -81,8 +83,9 @@
81
83
  "postcss-cli": "^11.0.0",
82
84
  "postcss-discard-comments": "^7.0.0",
83
85
  "prettier": "^3.2.5",
86
+ "rolldown": "^1.0.0-beta.19",
87
+ "rollup-plugin-esbuild": "^6.2.1",
84
88
  "sass": "^1.69.5",
85
- "standard-version": "^9.5.0",
86
89
  "stylelint": "^16.3.1",
87
90
  "stylelint-config-property-sort-order-smacss": "^10.0.0",
88
91
  "stylelint-config-sass-guidelines": "^12.1.0",
@@ -90,5 +93,8 @@
90
93
  "stylelint-prettier": "^5.0.0",
91
94
  "vite": "^5.2.8",
92
95
  "vitepress": "^1.1.0"
96
+ },
97
+ "dependencies": {
98
+ "@graupl/core": "*"
93
99
  }
94
100
  }
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl button base.
2
2
 
3
- @forward "../../src/scss/base/button";
3
+ @forward "pkg:@graupl/core/src/scss/base/button";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl form base.
2
2
 
3
- @forward "../../src/scss/base/form";
3
+ @forward "pkg:@graupl/core/src/scss/base/form";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl link base.
2
2
 
3
- @forward "../../src/scss/base/link";
3
+ @forward "pkg:@graupl/core/src/scss/base/link";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl table base.
2
2
 
3
- @forward "../../src/scss/base/table";
3
+ @forward "pkg:@graupl/core/src/scss/base/table";
package/scss/base.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl base.
2
2
 
3
- @forward "../src/scss/base";
3
+ @forward "pkg:@graupl/core/src/scss/base";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl accordion component.
2
2
 
3
- @forward "../../src/scss/component/accordion";
3
+ @forward "pkg:@graupl/core/src/scss/component/accordion";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl alert component.
2
2
 
3
- @forward "../../src/scss/component/alert";
3
+ @forward "pkg:@graupl/core/src/scss/component/alert";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl card component.
2
2
 
3
- @forward "../../src/scss/component/card";
3
+ @forward "pkg:@graupl/core/src/scss/component/card";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl carousel component.
2
2
 
3
- @forward "../../src/scss/component/carousel";
3
+ @forward "pkg:@graupl/core/src/scss/component/carousel";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl input group component.
2
2
 
3
- @forward "../../src/scss/component/input-group";
3
+ @forward "pkg:@graupl/core/src/scss/component/input-group";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl list component.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/component/list";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl menu component.
2
2
 
3
- @forward "../../src/scss/component/menu";
3
+ @forward "pkg:@graupl/core/src/scss/component/menu";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl navigation component.
2
2
 
3
- @forward "../../src/scss/component/navigation";
3
+ @forward "pkg:@graupl/core/src/scss/component/navigation";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl components.
2
2
 
3
- @forward "../src/scss/component";
3
+ @forward "pkg:@graupl/core/src/scss/component";
package/scss/graupl.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl.
2
2
 
3
- @forward "../src/scss";
3
+ @forward "pkg:@graupl/core/src/scss";
package/scss/init.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl layer initialization.
2
2
 
3
- @forward "../src/scss/init";
3
+ @forward "pkg:@graupl/core/src/scss/init";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl columns layout.
2
2
 
3
- @forward "../../src/scss/layout/columns";
3
+ @forward "pkg:@graupl/core/src/scss/layout/columns";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl container layout.
2
2
 
3
- @forward "../../src/scss/layout/container";
3
+ @forward "pkg:@graupl/core/src/scss/layout/container";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl flex columns layout.
2
2
 
3
- @forward "../../src/scss/layout/flex-columns";
3
+ @forward "pkg:@graupl/core/src/scss/layout/flex-columns";
package/scss/layout.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl layout.
2
2
 
3
- @forward "../src/scss/";
3
+ @forward "pkg:@graupl/core/src/scss/";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl normalize.
2
2
 
3
- @forward "../src/scss/normalize";
3
+ @forward "pkg:@graupl/core/src/scss/normalize";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl focus state.
2
2
 
3
- @forward "../../src/scss/state/focus";
3
+ @forward "pkg:@graupl/core/src/scss/state/focus";
package/scss/state.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl state.
2
2
 
3
- @forward "../src/scss/state";
3
+ @forward "pkg:@graupl/core/src/scss/state";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl color theme.
2
2
 
3
- @forward "../../src/scss/theme/color";
3
+ @forward "pkg:@graupl/core/src/scss/theme/color";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl typography theme.
2
2
 
3
- @forward "../../src/scss/theme/typography";
3
+ @forward "pkg:@graupl/core/src/scss/theme/typography";
package/scss/theme.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl theme.
2
2
 
3
- @forward "../src/scss/theme";
3
+ @forward "pkg:@graupl/core/src/scss/theme";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl alignment utilities.
2
2
 
3
- @forward "../../src/scss/utilities/alignment";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/alignment";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl background utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/background";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl border utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/border";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl color utilities.
2
2
 
3
- @forward "../../src/scss/utilities/color";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/color";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl container utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/container";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl display utilities.
2
2
 
3
- @forward "../../src/scss/utilities/display";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/display";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl flex utilities.
2
2
 
3
- @forward "../../src/scss/utilities/flex";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/flex";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl gradient utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/gradient";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl height utilities.
2
2
 
3
- @forward "../../src/scss/utilities/height";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/height";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl inset utilities.
2
2
 
3
- @forward "../../src/scss/utilities/inset";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/inset";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl justification utilities.
2
2
 
3
- @forward "../../src/scss/utilities/justification";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/justification";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl list utilities.
2
2
 
3
- @forward "../../src/scss/utilities/list";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/list";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl order utilities.
2
2
 
3
- @forward "../../src/scss/utilities/order";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/order";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl position utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/position";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl ratio utilities.
2
2
 
3
- @forward "../../src/scss/utilities/ratio";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/ratio";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl spacing utilities.
2
2
 
3
- @forward "../../src/scss/utilities/spacing";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/spacing";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl typography utilities.
2
2
 
3
- @forward "../../src/scss/utilities/typography";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/typography";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl visibility utilities.
2
2
 
3
- @forward "../../src/scss/utilities/visibility";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/visibility";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl visually-hidden utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/visually-hidden";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl width utilities.
2
2
 
3
- @forward "../../src/scss/utilities/width";
3
+ @forward "pkg:@graupl/core/src/scss/utilities/width";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl z-index utilities.
2
+
3
+ @forward "pkg:@graupl/core/src/scss/utilities/z-index";
@@ -1,3 +1,3 @@
1
1
  // @graupl/graupl utilities.
2
2
 
3
- @forward "../src/scss/utilities";
3
+ @forward "pkg:@graupl/core/src/scss/utilities";
package/.browserslistrc DELETED
@@ -1,3 +0,0 @@
1
- last 2 versions
2
- > 0.25%
3
- not dead
package/.czrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "path": "cz-conventional-changelog"
3
- }
package/.editorconfig DELETED
@@ -1,13 +0,0 @@
1
- root = true
2
-
3
- # All files.
4
- [*]
5
- end_of_line = LF
6
- indent_style = space
7
- indent_size = 2
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,73 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
26
- * Trolling, insulting/derogatory comments, and personal or political attacks
27
- * Public or private harassment
28
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
29
- * Other conduct which could reasonably be considered inappropriate in a professional setting
30
-
31
- ## Our Responsibilities
32
-
33
- Project maintainers are responsible for clarifying the standards of acceptable
34
- behavior and are expected to take appropriate and fair corrective action in
35
- response to any instances of unacceptable behavior.
36
-
37
- Project maintainers have the right and responsibility to remove, edit, or
38
- reject comments, commits, code, wiki edits, issues, and other contributions
39
- that are not aligned to this Code of Conduct, or to ban temporarily or
40
- permanently any contributor for other behaviors that they deem inappropriate,
41
- threatening, offensive, or harmful.
42
-
43
- ## Scope
44
-
45
- This Code of Conduct applies both within project spaces and in public spaces
46
- when an individual is representing the project or its community. Examples of
47
- representing a project or community include using an official project e-mail
48
- address, posting via an official social media account, or acting as an appointed
49
- representative at an online or offline event. Representation of a project may be
50
- further defined and clarified by project maintainers.
51
-
52
- ## Enforcement
53
-
54
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
55
- reported by contacting the project team at nickdjm+graupl@gmail.com. All
56
- complaints will be reviewed and investigated and will result in a response that
57
- is deemed necessary and appropriate to the circumstances. The project team is
58
- obligated to maintain confidentiality with regard to the reporter of an incident.
59
- Further details of specific enforcement policies may be posted separately.
60
-
61
- Project maintainers who do not follow or enforce the Code of Conduct in good
62
- faith may face temporary or permanent repercussions as determined by other
63
- members of the project's leadership.
64
-
65
- ## Attribution
66
-
67
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
68
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
69
-
70
- [homepage]: https://www.contributor-covenant.org
71
-
72
- For answers to common questions about this code of conduct, see
73
- https://www.contributor-covenant.org/faq
@@ -1,17 +0,0 @@
1
- # Git Commit Convention
2
-
3
- This project uses the conventional commit standard, which means your commits should follow a basic template of:
4
-
5
- > \<type>[optional scope]: \<description>
6
- >
7
- > [optional body]
8
- >
9
- > [optional footer(s)]
10
-
11
- For more detailed information about available types, scopes, breaking changes, etc. please see the [official documentation](https://www.conventionalcommits.org/en/v1.0.0/).
12
-
13
- This project also provides a command to assist you in formatting commit messages using [commitizen](https://commitizen.github.io/cz-cli/):
14
-
15
- ```shell
16
- npm run commit
17
- ```