@aarhus-university/au-designsystem-delphinus 1.0.0 → 1.0.2

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 (37) hide show
  1. package/CHANGELOG.md +28 -2
  2. package/app.js +3 -0
  3. package/package.json +2 -2
  4. package/public/demo/demo-component.css +38 -0
  5. package/public/projects/bachelor-applications/style.css +9 -14
  6. package/public/projects/brightspace/style.css +801 -5225
  7. package/public/projects/course-catalogue/style.css +3 -11
  8. package/public/projects/medarbejdere/style.css +3 -11
  9. package/public/projects/mitstudie/style.css +3 -11
  10. package/public/projects/queue-it/style.css +2 -9
  11. package/public/projects/typo3/js/app.js +1 -1
  12. package/public/projects/typo3/style.css +3 -11
  13. package/public/style.css +3 -11
  14. package/source/js/components/affiliate-expand.ts +23 -26
  15. package/source/js/production/typo3.ts +2 -3
  16. package/source/markup/changelog.pug +5 -1
  17. package/source/markup/code/bem-class-naming.pug +1 -1
  18. package/source/markup/code/borders.pug +81 -0
  19. package/source/markup/code/content-container.pug +3 -0
  20. package/source/markup/code/index.pug +26 -7
  21. package/source/markup/code/max-line-width.pug +54 -0
  22. package/source/markup/code/none-touch.pug +48 -0
  23. package/source/markup/code/processing-animation.pug +115 -0
  24. package/source/markup/code/screenreader-only.pug +91 -0
  25. package/source/markup/code/shadows.pug +72 -0
  26. package/source/markup/partials/mixins-demo/_code-documentation.pug +5 -2
  27. package/source/markup/partials/mixins-demo/_nav-code.pug +6 -6
  28. package/source/markup/partials/page-templates/_layout.pug +1 -1
  29. package/source/projects/brightspace/{widgets/au-widget-course-setup.pug → au-widget-course-setup.pug} +1 -1
  30. package/source/projects/brightspace/index.pug +2 -6
  31. package/source/projects/queue-it/index.pug +3 -3
  32. package/source/style/_mixins/_processing-animation.scss +2 -2
  33. package/source/style/base/_buttons.scss +1 -4
  34. package/source/style/base/_forms.scss +1 -5
  35. package/source/style/module/_processing-state.scss +1 -2
  36. package/source/style/module-demo/demo-component.scss +3 -0
  37. package/source/projects/au-webshop/au-webshop-bolierplate.scss +0 -73
package/CHANGELOG.md CHANGED
@@ -1,11 +1,37 @@
1
+ ## 1.0.2 (July 27, 2023)
2
+
3
+ ### Core Delphinus Updates
4
+ * Adds compilation of missing css file for the [BEM documentation page](https://delphinus.au.dk/code/bem-class-naming).
5
+
6
+ ### Delphinus Projects Updates
7
+ None
8
+
9
+
10
+ ## 1.0.1 (July 21, 2023)
11
+
12
+ ### Core Delphinus Updates
13
+ * Fixes 404-handling on new setup.
14
+ * Rewrites [`processing-animation`](https://delphinus.au.dk/code/processing-animation) mixin to take a color name as input.
15
+
16
+ ### Delphinus Projects Updates
17
+ #### Brightspace
18
+ * Fixes issue with css file for this project being compiled from the bachelor-applications project.
19
+ * Fixes routning issue with widget demo page.
20
+
21
+ #### Bachelor applications
22
+ * Fixes isses with css file not being compiled for this project.
23
+
24
+
1
25
  ## 1.0.0 (July 20, 2023)
2
26
  **Big release!** At least for those of us building Delphinus. With this release, we have transitioned away from using Grunt as our build tool. From now on Sass and TypeScript files are compiled using Node, and Pug files render on the fly using an Express server. This results in dramatically improved build speed and development experience.
3
27
 
4
- Two things to note:
28
+ ### Two things to note:
5
29
  * If you have cloned the Delpinus repo, please delete your local copy and clone from new and run `npm install`.
6
30
  * If you are sourceing the compiled css files from the CDN, please note that the URLs have a slight change, as compiled css files are now in the `public` dir, not in the previous `build` dir.
7
31
 
8
- Hopefulley, this update will make us able to build and develop Delphinus at warp speed ;)
32
+ Hopefully, this update will make us able to build and develop Delphinus at warp speed ;)
33
+
34
+ **IMPORTANT** Do not use compiled css files from this version for Brightspace and Bachelor applications projects, as these are not correct. Use version 1.0.1 instead.
9
35
 
10
36
 
11
37
  ## 0.48.1 (July 18, 2023)
package/app.js CHANGED
@@ -25,8 +25,11 @@ app.use('/users', usersRouter);
25
25
  // catch 404 and forward to error handler
26
26
  app.use(function(req, res, next) {
27
27
  next(createError(404));
28
+ res.render('error');
29
+ res.render('404', { title: 'Express' });
28
30
  });
29
31
 
32
+
30
33
  // error handler
31
34
  app.use(function(err, req, res, next) {
32
35
  // set locals, only providing error in development
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@aarhus-university/au-designsystem-delphinus",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "concurrently \"npm run nodemon\" \"npm run sass\" \"npm run build\"",
7
7
  "nodemon": "nodemon ./bin/www",
8
- "sass": "sass --watch source/demo-style.scss:public/demo-style.css source/style.scss:public/style.css source/projects/typo3/style.scss:public/projects/typo3/style.css source/projects/medarbejdere/style.scss:public/projects/medarbejdere/style.css source/projects/mitstudie/style.scss:public/projects/mitstudie/style.css source/projects/bachelor-applications/style.scss:public/projects/brightspace/style.css source/projects/course-catalogue/style.scss:public/projects/course-catalogue/style.css source/projects/queue-it/style.scss:public/projects/queue-it/style.css source/figma-tokens/cssvars/figma-tokens.scss:public/figma-tokens/style.css source/atoms/misc/atoms-style.scss:public/atoms/atoms-style.css source/atoms/fonts/atom-fonts.scss:public/atoms/fonts/atom-fonts.css source/atoms/colors/atom-colors.scss:public/atoms/colors/atom-colors.css source/atoms/spacing/atom-spacing.scss:public/atoms/spacing/atom-spacing.css source/atoms/misc/atom-iframe.scss:source/atoms/misc/atom-iframe.css",
8
+ "sass": "sass --watch source/style.scss:public/style.css source/projects/bachelor-applications/style.scss:public/projects/bachelor-applications/style.css source/projects/brightspace/style.scss:public/projects/brightspace/style.css source/projects/course-catalogue/style.scss:public/projects/course-catalogue/style.css source/projects/medarbejdere/style.scss:public/projects/medarbejdere/style.css source/projects/mitstudie/style.scss:public/projects/mitstudie/style.css source/projects/queue-it/style.scss:public/projects/queue-it/style.css source/projects/typo3/style.scss:public/projects/typo3/style.css source/demo-style.scss:public/demo-style.css source/atoms/misc/atoms-style.scss:public/atoms/atoms-style.css source/atoms/misc/atom-iframe.scss:source/atoms/misc/atom-iframe.css source/atoms/fonts/atom-fonts.scss:public/atoms/fonts/atom-fonts.css source/atoms/colors/atom-colors.scss:public/atoms/colors/atom-colors.css source/atoms/spacing/atom-spacing.scss:public/atoms/spacing/atom-spacing.css source/style/module-demo/demo-component.scss:public/demo/demo-component.css source/figma-tokens/cssvars/figma-tokens.scss:public/figma-tokens/style.css",
9
9
  "build": "node ./esbuild.mjs"
10
10
  },
11
11
  "dependencies": {
@@ -0,0 +1,38 @@
1
+ .content-container > *:first-child:not(.row) {
2
+ margin-top: 0;
3
+ }
4
+ .content-container > *:last-child:not(.row) {
5
+ margin-bottom: 0;
6
+ }
7
+
8
+ .component {
9
+ padding: var(--spacing-m1);
10
+ background-color: var(--color-background-secondary);
11
+ color: var(--color-foreground);
12
+ }
13
+ .component > *:first-child:not(.row) {
14
+ margin-top: 0;
15
+ }
16
+ .component > *:last-child:not(.row) {
17
+ margin-bottom: 0;
18
+ }
19
+ .component--warning {
20
+ background-color: var(--color-utility-warning-background);
21
+ color: var(--color-utility-foreground);
22
+ }
23
+ .component__header {
24
+ margin-bottom: var(--spacing-m5);
25
+ font-size: var(--font-size-p1);
26
+ line-height: calc(1.1em + 0.3rem);
27
+ font-weight: 700;
28
+ }
29
+ .component__header--shout {
30
+ text-transform: uppercase;
31
+ }
32
+ .component__content {
33
+ font-size: var(--font-size-0);
34
+ line-height: calc(1.1em + 0.7rem);
35
+ font-weight: 400;
36
+ }
37
+
38
+ /*# sourceMappingURL=demo-component.css.map */
@@ -1549,7 +1549,7 @@ a.link--arrow--next::after {
1549
1549
  --processing-graphic: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C9.09867 0 10.1333 0.213333 11.104 0.639999C12.0853 1.056 12.9333 1.62667 13.648 2.352C14.3733 3.06667 14.944 3.91467 15.36 4.896C15.7867 5.86667 16 6.90133 16 8C16 9.10933 15.7867 10.1493 15.36 11.12C14.944 12.0907 14.3733 12.9387 13.648 13.664C12.9333 14.3893 12.0853 14.96 11.104 15.376C10.1333 15.792 9.09867 16 8 16V12C8.544 12 9.056 11.8987 9.536 11.696C10.0267 11.4827 10.4533 11.1947 10.816 10.832C11.1787 10.4693 11.4667 10.048 11.68 9.568C11.8933 9.07733 12 8.55467 12 8C12 7.456 11.8933 6.944 11.68 6.464C11.4667 5.97333 11.1787 5.54667 10.816 5.184C10.4533 4.82133 10.0267 4.53333 9.536 4.32C9.056 4.10667 8.544 4 8 4V0Z' fill='black'/%3E%3C/svg%3E%0A");
1550
1550
  -webkit-mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
1551
1551
  mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
1552
- --processing-color: color("foreground");
1552
+ --processing-color: var(--color-foreground);
1553
1553
  background-color: var(--processing-color);
1554
1554
  position: absolute;
1555
1555
  left: calc(50% - 0.5em);
@@ -1581,9 +1581,6 @@ a.link--arrow--next::after {
1581
1581
  background-color: var(--processing-color);
1582
1582
  }
1583
1583
  }
1584
- .form__field__file-upload--processing input[disabled] + .form__field__file-upload__button::after {
1585
- --processing-color: var(--color-foreground);
1586
- }
1587
1584
  .form__field__file-upload input:not([disabled]):hover + .form__field__file-upload__button {
1588
1585
  background-color: var(--color-interactive-hover);
1589
1586
  }
@@ -2684,7 +2681,7 @@ button {
2684
2681
  --processing-graphic: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C9.09867 0 10.1333 0.213333 11.104 0.639999C12.0853 1.056 12.9333 1.62667 13.648 2.352C14.3733 3.06667 14.944 3.91467 15.36 4.896C15.7867 5.86667 16 6.90133 16 8C16 9.10933 15.7867 10.1493 15.36 11.12C14.944 12.0907 14.3733 12.9387 13.648 13.664C12.9333 14.3893 12.0853 14.96 11.104 15.376C10.1333 15.792 9.09867 16 8 16V12C8.544 12 9.056 11.8987 9.536 11.696C10.0267 11.4827 10.4533 11.1947 10.816 10.832C11.1787 10.4693 11.4667 10.048 11.68 9.568C11.8933 9.07733 12 8.55467 12 8C12 7.456 11.8933 6.944 11.68 6.464C11.4667 5.97333 11.1787 5.54667 10.816 5.184C10.4533 4.82133 10.0267 4.53333 9.536 4.32C9.056 4.10667 8.544 4 8 4V0Z' fill='black'/%3E%3C/svg%3E%0A");
2685
2682
  -webkit-mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
2686
2683
  mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
2687
- --processing-color: color("foreground");
2684
+ --processing-color: var(--color-theme-foreground);
2688
2685
  background-color: var(--processing-color);
2689
2686
  position: absolute;
2690
2687
  left: calc(50% - 0.5em);
@@ -2716,10 +2713,6 @@ button {
2716
2713
  background-color: var(--processing-color);
2717
2714
  }
2718
2715
  }
2719
- .button--processing[disabled]::after,
2720
- .button--processing[aria-disabled=true] .submit-input-wrapper--processing::after {
2721
- --processing-color: var(--color-theme-foreground);
2722
- }
2723
2716
  .button--processing[disabled]:hover,
2724
2717
  .button--processing[aria-disabled=true] .submit-input-wrapper--processing:hover {
2725
2718
  color: transparent;
@@ -2789,6 +2782,9 @@ button {
2789
2782
  .button-container--vertical.button-container--centered {
2790
2783
  align-items: center;
2791
2784
  }
2785
+ .button-container--constrain-width {
2786
+ max-width: calc(var(--spacing-m1) + 35em);
2787
+ }
2792
2788
  .button-container--centered {
2793
2789
  justify-content: center;
2794
2790
  }
@@ -5950,7 +5946,7 @@ html[lang*=da] .page__footer__logo {
5950
5946
  box-shadow: 0 0.2rem 0.6rem 0 var(--color-utility-shadow);
5951
5947
  }
5952
5948
  .notification--warning .button:not(.button--text)[disabled].button--processing::after, .notification--attention .button:not(.button--text)[disabled].button--processing::after, .notification--confirm .button:not(.button--text)[disabled].button--processing::after {
5953
- background-color: var(--color-utility-foreground);
5949
+ --processing-color: var(--color-utility-foreground);
5954
5950
  }
5955
5951
 
5956
5952
  .progress-bar {
@@ -7200,7 +7196,7 @@ html[lang*=da] .page__footer__logo {
7200
7196
  box-shadow: 0 0.2rem 0.6rem 0 var(--color-utility-shadow);
7201
7197
  }
7202
7198
  .toast-notification--warning .button:not(.button--text)[disabled].button--processing::after, .toast-notification--attention .button:not(.button--text)[disabled].button--processing::after, .toast-notification--confirm .button:not(.button--text)[disabled].button--processing::after {
7203
- background-color: var(--color-utility-foreground);
7199
+ --processing-color: var(--color-utility-foreground);
7204
7200
  }
7205
7201
 
7206
7202
  .toolbar {
@@ -7836,7 +7832,7 @@ html[lang*=da] .page__footer__logo {
7836
7832
  --processing-graphic: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C9.09867 0 10.1333 0.213333 11.104 0.639999C12.0853 1.056 12.9333 1.62667 13.648 2.352C14.3733 3.06667 14.944 3.91467 15.36 4.896C15.7867 5.86667 16 6.90133 16 8C16 9.10933 15.7867 10.1493 15.36 11.12C14.944 12.0907 14.3733 12.9387 13.648 13.664C12.9333 14.3893 12.0853 14.96 11.104 15.376C10.1333 15.792 9.09867 16 8 16V12C8.544 12 9.056 11.8987 9.536 11.696C10.0267 11.4827 10.4533 11.1947 10.816 10.832C11.1787 10.4693 11.4667 10.048 11.68 9.568C11.8933 9.07733 12 8.55467 12 8C12 7.456 11.8933 6.944 11.68 6.464C11.4667 5.97333 11.1787 5.54667 10.816 5.184C10.4533 4.82133 10.0267 4.53333 9.536 4.32C9.056 4.10667 8.544 4 8 4V0Z' fill='black'/%3E%3C/svg%3E%0A");
7837
7833
  -webkit-mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
7838
7834
  mask: var(--processing-graphic) 0 0/auto 100% no-repeat;
7839
- --processing-color: color("foreground");
7835
+ --processing-color: var(--color-foreground-branding);
7840
7836
  background-color: var(--processing-color);
7841
7837
  position: absolute;
7842
7838
  left: calc(50% - 0.5em);
@@ -7869,7 +7865,6 @@ html[lang*=da] .page__footer__logo {
7869
7865
  }
7870
7866
  }
7871
7867
  .processing-state::after {
7872
- --processing-color: var(--color-foreground-branding);
7873
7868
  top: 0.5em;
7874
7869
  font-size: var(--font-size-p3);
7875
7870
  }
@@ -9098,7 +9093,7 @@ html[lang*=da] .student-place-offer--rejected .student-place-offer__artwork--bac
9098
9093
  box-shadow: 0 0.2rem 0.6rem 0 var(--color-utility-shadow);
9099
9094
  }
9100
9095
  .student-place-offer .button:not(.button--text)[disabled].button--processing::after {
9101
- background-color: var(--color-utility-foreground);
9096
+ --processing-color: var(--color-utility-foreground);
9102
9097
  }
9103
9098
  .student-place-offer .button:not(.button--text) {
9104
9099
  padding-left: var(--spacing-m2);