@graupl/graupl 1.0.0-alpha.13 → 1.0.0-alpha.14

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 (143) hide show
  1. package/.github/workflows/codeql-analysis.yml +3 -3
  2. package/.husky/commit-msg +0 -1
  3. package/.husky/pre-commit +0 -1
  4. package/CHANGELOG.md +31 -0
  5. package/dist/base/button.css +1 -1
  6. package/dist/base/button.css.map +1 -1
  7. package/dist/base/form.css.map +1 -1
  8. package/dist/base/link.css.map +1 -1
  9. package/dist/base/table.css.map +1 -1
  10. package/dist/base.css +1 -1
  11. package/dist/base.css.map +1 -1
  12. package/dist/component/alert.css +2 -0
  13. package/dist/component/alert.css.map +1 -0
  14. package/dist/component/card.css +1 -1
  15. package/dist/component/card.css.map +1 -1
  16. package/dist/component/carousel.css +2 -0
  17. package/dist/component/carousel.css.map +1 -0
  18. package/dist/component/input-group.css.map +1 -1
  19. package/dist/component/menu.css +1 -1
  20. package/dist/component/menu.css.map +1 -1
  21. package/dist/component/navigation.css.map +1 -1
  22. package/dist/component.css +1 -1
  23. package/dist/component.css.map +1 -1
  24. package/dist/graupl.css +1 -1
  25. package/dist/graupl.css.map +1 -1
  26. package/dist/layout/columns.css.map +1 -1
  27. package/dist/layout/container.css.map +1 -1
  28. package/dist/layout/flex-columns.css.map +1 -1
  29. package/dist/layout.css +1 -1
  30. package/dist/layout.css.map +1 -1
  31. package/dist/normalize.css.map +1 -1
  32. package/dist/state/focus.css.map +1 -1
  33. package/dist/state.css.map +1 -1
  34. package/dist/theme/color.css.map +1 -1
  35. package/dist/theme/typography.css.map +1 -1
  36. package/dist/theme.css.map +1 -1
  37. package/dist/utilities/alignment.css.map +1 -1
  38. package/dist/utilities/color.css.map +1 -1
  39. package/dist/utilities/display.css +1 -1
  40. package/dist/utilities/display.css.map +1 -1
  41. package/dist/utilities/flex.css.map +1 -1
  42. package/dist/utilities/height.css +2 -0
  43. package/dist/utilities/height.css.map +1 -0
  44. package/dist/utilities/inset.css.map +1 -1
  45. package/dist/utilities/justification.css.map +1 -1
  46. package/dist/utilities/list.css.map +1 -1
  47. package/dist/utilities/order.css.map +1 -1
  48. package/dist/utilities/postion.css.map +1 -1
  49. package/dist/utilities/spacing.css.map +1 -1
  50. package/dist/utilities/typography.css.map +1 -1
  51. package/dist/utilities/visibility.css.map +1 -1
  52. package/dist/utilities/width.css +2 -0
  53. package/dist/utilities/width.css.map +1 -0
  54. package/dist/utilities.css +1 -1
  55. package/dist/utilities.css.map +1 -1
  56. package/docs/.vitepress/config.js +39 -12
  57. package/docs/components/alert.md +130 -0
  58. package/docs/components/button.md +84 -0
  59. package/docs/components/card.md +369 -0
  60. package/docs/components/index.md +1 -0
  61. package/docs/components/inputgroup.md +159 -0
  62. package/docs/components/menu.md +326 -0
  63. package/docs/components/navigation.md +158 -0
  64. package/docs/content.md +237 -0
  65. package/docs/defaults.md +121 -0
  66. package/docs/forms.md +79 -0
  67. package/docs/functions.md +9 -0
  68. package/docs/getting-started.md +1 -0
  69. package/docs/index.md +1 -7
  70. package/docs/introduction.md +22 -2
  71. package/docs/layout.md +200 -0
  72. package/docs/mixins.md +47 -0
  73. package/docs/state.md +67 -0
  74. package/docs/theme.md +258 -0
  75. package/docs/utilities.md +357 -0
  76. package/index.html +178 -37
  77. package/package.json +5 -6
  78. package/scss/component/alert.scss +3 -0
  79. package/scss/component/carousel.scss +3 -0
  80. package/scss/utilities/height.scss +3 -0
  81. package/scss/utilities/width.scss +3 -0
  82. package/src/js/alert/Alert.js +511 -0
  83. package/src/js/alert/index.js +21 -0
  84. package/src/js/carousel/Carousel.js +1376 -0
  85. package/src/js/carousel/index.js +20 -0
  86. package/src/js/domHelpers.js +37 -0
  87. package/src/js/eventHandlers.js +32 -0
  88. package/src/js/validate.js +225 -0
  89. package/src/scss/base/_index.scss +1 -1
  90. package/src/scss/base/button/_defaults.scss +7 -0
  91. package/src/scss/base/button/_index.scss +46 -149
  92. package/src/scss/base/button/_mixins.scss +164 -0
  93. package/src/scss/base/form/_index.scss +1 -1
  94. package/src/scss/base/link/_index.scss +1 -1
  95. package/src/scss/base/table/_index.scss +1 -1
  96. package/src/scss/component/_index.scss +3 -1
  97. package/src/scss/component/alert/_defaults.scss +49 -0
  98. package/src/scss/component/alert/_index.scss +118 -0
  99. package/src/scss/component/alert/_variables.scss +170 -0
  100. package/src/scss/component/card/_defaults.scss +3 -0
  101. package/src/scss/component/card/_index.scss +43 -9
  102. package/src/scss/component/carousel/_defaults.scss +43 -0
  103. package/src/scss/component/carousel/_index.scss +182 -0
  104. package/src/scss/component/carousel/_variables.scss +104 -0
  105. package/src/scss/component/input-group/_index.scss +1 -1
  106. package/src/scss/component/menu/_defaults.scss +2 -1
  107. package/src/scss/component/menu/_index.scss +2 -1
  108. package/src/scss/component/menu/_variables.scss +4 -0
  109. package/src/scss/component/navigation/_index.scss +1 -1
  110. package/src/scss/layout/_index.scss +1 -1
  111. package/src/scss/layout/columns/_index.scss +1 -1
  112. package/src/scss/layout/container/_index.scss +1 -1
  113. package/src/scss/layout/flex-columns/_index.scss +1 -1
  114. package/src/scss/mixins/_layer.scss +2 -4
  115. package/src/scss/mixins/_visually-hidden.scss +20 -0
  116. package/src/scss/state/_index.scss +1 -1
  117. package/src/scss/state/focus/_index.scss +1 -1
  118. package/src/scss/theme/_index.scss +1 -1
  119. package/src/scss/theme/color/_index.scss +1 -1
  120. package/src/scss/theme/typography/_index.scss +1 -1
  121. package/src/scss/utilities/_index.scss +3 -1
  122. package/src/scss/utilities/alignment/_index.scss +1 -1
  123. package/src/scss/utilities/color/_index.scss +1 -1
  124. package/src/scss/utilities/display/_defaults.scss +2 -0
  125. package/src/scss/utilities/display/_index.scss +11 -1
  126. package/src/scss/utilities/flex/_index.scss +1 -1
  127. package/src/scss/utilities/height/_defaults.scss +38 -0
  128. package/src/scss/utilities/height/_index.scss +23 -0
  129. package/src/scss/utilities/height/_variables.scss +6 -0
  130. package/src/scss/utilities/inset/_index.scss +1 -1
  131. package/src/scss/utilities/justification/_index.scss +1 -1
  132. package/src/scss/utilities/list/_index.scss +1 -1
  133. package/src/scss/utilities/order/_index.scss +1 -1
  134. package/src/scss/utilities/position/_index.scss +1 -1
  135. package/src/scss/utilities/ratio/_defaults.scss +1 -0
  136. package/src/scss/utilities/ratio/_index.scss +9 -1
  137. package/src/scss/utilities/spacing/_index.scss +1 -1
  138. package/src/scss/utilities/typography/_index.scss +1 -1
  139. package/src/scss/utilities/visibility/_index.scss +1 -1
  140. package/src/scss/utilities/width/_defaults.scss +38 -0
  141. package/src/scss/utilities/width/_index.scss +23 -0
  142. package/src/scss/utilities/width/_variables.scss +6 -0
  143. package/stylelint.config.js +1 -0
package/index.html CHANGED
@@ -14,8 +14,8 @@
14
14
  <p>Graupl is a modular CSS framework with the goal of making it easy to theme a site.</p>
15
15
  <p>This source code can be found in <a href="https://github.com/Graupl/graupl">GitHub</a>.</p>
16
16
  <p>Graupl supports light and dark modes out-of-the-box.</p>
17
- <button id="dark-mode-toggle" class="button mt-5">Toggle dark mode</button>
18
- <div class="py-10 full-width container">
17
+ <button id="dark-mode-toggle" class="button mt-5 w-half">Toggle dark mode</button>
18
+ <div class="full-width container min-h-full-screen align-content-center">
19
19
  <h2>Buttons</h2>
20
20
  <p>There are 4 colours of buttons supported by default, with plans to have a "graupl-theme" plugin that adds more.
21
21
  </p>
@@ -34,7 +34,7 @@
34
34
  <a class="button" href="#" disabled>Anchor Button</a>
35
35
  </div>
36
36
  </div>
37
- <div class="py-10 full-width container">
37
+ <div class="full-width container min-h-full-screen align-content-center">
38
38
  <h2>Form elements</h2>
39
39
  <p>Graupl provides default styling for all form elements.</p>
40
40
  <form class="full-width rg-4">
@@ -131,10 +131,11 @@
131
131
  </div>
132
132
  </form>
133
133
  </div>
134
- <div class="py-10 full-width container">
134
+ <div class="full-width container min-h-full-screen align-content-center">
135
135
  <h2>Navigation</h2>
136
136
  <div class="py-7">
137
- <nav class="navigation" data-graupl-menu-type="DisclosureMenu" data-graupl-menu-options="{'optionalKeySupport': true}">
137
+ <nav class="navigation" data-graupl-menu-type="DisclosureMenu"
138
+ data-graupl-menu-options="{'optionalKeySupport': true}">
138
139
  <a class="navigation-branding" href="#">Graupl</a>
139
140
  <button class="navigation-toggle ml-auto mr-0" aria-label="Toggle navigation"></button>
140
141
  <ul class="menu">
@@ -154,7 +155,7 @@
154
155
  </nav>
155
156
  </div>
156
157
  </div>
157
- <div class="py-10 full-width container">
158
+ <div class="full-width container min-h-full-screen align-content-center">
158
159
  <h2>Tables</h2>
159
160
  <p>Graupl provides some default styling for tables as well as some other useful features to customize them.</p>
160
161
  <table class="bordered striped-rows hoverable">
@@ -324,18 +325,18 @@
324
325
  </caption>
325
326
  <thead class="primary">
326
327
  <tr>
327
- <th scrop="col">Column 1</th>
328
- <th scrop="col">Column 2</th>
329
- <th scrop="col">Column 3</th>
330
- <th scrop="col">Column 4</th>
331
- <th scrop="col">Column 5</th>
332
- <th scrop="col">Column 6</th>
333
- <th scrop="col">Column 7</th>
334
- <th scrop="col">Column 8</th>
335
- <th scrop="col">Column 9</th>
336
- <th scrop="col">Column 10</th>
337
- <th scrop="col">Column 11</th>
338
- <th scrop="col">Column 12</th>
328
+ <th scope="col">Column 1</th>
329
+ <th scope="col">Column 2</th>
330
+ <th scope="col">Column 3</th>
331
+ <th scope="col">Column 4</th>
332
+ <th scope="col">Column 5</th>
333
+ <th scope="col">Column 6</th>
334
+ <th scope="col">Column 7</th>
335
+ <th scope="col">Column 8</th>
336
+ <th scope="col">Column 9</th>
337
+ <th scope="col">Column 10</th>
338
+ <th scope="col">Column 11</th>
339
+ <th scope="col">Column 12</th>
339
340
  </tr>
340
341
  </thead>
341
342
  <tbody>
@@ -385,7 +386,7 @@
385
386
  </table>
386
387
  </div>
387
388
  </div>
388
- <div class="py-10 full-width container">
389
+ <div class="full-width container min-h-full-screen align-content-center">
389
390
  <h2>Columns</h2>
390
391
  <div class="columns count-6 py-5">
391
392
  <div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
@@ -402,7 +403,7 @@
402
403
  <div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
403
404
  </div>
404
405
  </div>
405
- <div class="py-10 full-width container">
406
+ <div class="full-width container min-h-full-screen align-content-center">
406
407
  <h2>Flex columns</h2>
407
408
  <div class="flex-columns py-5">
408
409
  <div class="col-6 col-md-8 col-xl-9 py-7 bg-primary-700 text-primary-100 px-5">
@@ -427,12 +428,16 @@
427
428
  <div class="col-4 py-7 bg-primary-700 text-primary-100 px-5"></div>
428
429
  </div>
429
430
  </div>
430
- <div class="py-10 full-width container">
431
+ <div class="full-width container min-h-full-screen align-content-center">
431
432
  <h2>Cards</h2>
433
+ <p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.top</span> class
434
+ will have the image placed on the top while cards using the <span
435
+ class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.bottom</span> class will have the image
436
+ placed on the bottom.</p>
432
437
  <div class="columns">
433
438
  <div class="card">
434
439
  <div class="card-image">
435
- <img src="https://unsplash.it/1000/400" alt="Card image">
440
+ <img src="https://picsum.photos/1000/400?random=1" alt="Card image">
436
441
  </div>
437
442
  <div class="card-content">
438
443
  <div class="card-header">
@@ -448,7 +453,7 @@
448
453
  </div>
449
454
  <div class="card">
450
455
  <div class="card-image">
451
- <img src="https://unsplash.it/1000/400" alt="Card image">
456
+ <img src="https://picsum.photos/1000/400?random=2" alt="Card image">
452
457
  </div>
453
458
  <div class="card-content">
454
459
  <div class="card-header">
@@ -464,7 +469,7 @@
464
469
  </div>
465
470
  <div class="card">
466
471
  <div class="card-image">
467
- <img src="https://unsplash.it/1000/400" alt="Card image">
472
+ <img src="https://picsum.photos/1000/400?random=3" alt="Card image">
468
473
  </div>
469
474
  <div class="card-content">
470
475
  <div class="card-header">
@@ -478,9 +483,9 @@
478
483
  </div>
479
484
  </div>
480
485
  </div>
481
- <div class="card">
486
+ <div class="card bottom">
482
487
  <div class="card-image">
483
- <img src="https://unsplash.it/1000/400" alt="Card image">
488
+ <img src="https://picsum.photos/1000/400?random=4" alt="Card image">
484
489
  </div>
485
490
  <div class="card-content">
486
491
  <div class="card-header">
@@ -494,9 +499,9 @@
494
499
  </div>
495
500
  </div>
496
501
  </div>
497
- <div class="card">
502
+ <div class="card bottom">
498
503
  <div class="card-image">
499
- <img src="https://unsplash.it/1000/400" alt="Card image">
504
+ <img src="https://picsum.photos/1000/400?random=5" alt="Card image">
500
505
  </div>
501
506
  <div class="card-content">
502
507
  <div class="card-header">
@@ -510,9 +515,9 @@
510
515
  </div>
511
516
  </div>
512
517
  </div>
513
- <div class="card">
518
+ <div class="card bottom">
514
519
  <div class="card-image">
515
- <img src="https://unsplash.it/1000/400" alt="Card image">
520
+ <img src="https://picsum.photos/1000/400?random=6" alt="Card image">
516
521
  </div>
517
522
  <div class="card-content">
518
523
  <div class="card-header">
@@ -528,12 +533,16 @@
528
533
  </div>
529
534
  </div>
530
535
  </div>
531
- <div class="py-10 full-width container">
536
+ <div class="full-width container min-h-full-screen align-content-center">
532
537
  <h2>Horizontal Cards</h2>
538
+ <p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.right</span> class
539
+ will have the image placed on the right while cards using the <span
540
+ class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.left</span> class will have the image
541
+ placed on the left.</p>
533
542
  <div class="columns count-2">
534
543
  <div class="card horizontal">
535
544
  <div class="card-image">
536
- <img src="https://unsplash.it/1000/400" alt="Card image">
545
+ <img src="https://picsum.photos/1000/400?random=1" alt="Card image">
537
546
  </div>
538
547
  <div class="card-content">
539
548
  <div class="card-header">
@@ -549,7 +558,7 @@
549
558
  </div>
550
559
  <div class="card horizontal right">
551
560
  <div class="card-image">
552
- <img src="https://unsplash.it/1000/400" alt="Card image">
561
+ <img src="https://picsum.photos/1000/400?random=2" alt="Card image">
553
562
  </div>
554
563
  <div class="card-content">
555
564
  <div class="card-header">
@@ -565,7 +574,7 @@
565
574
  </div>
566
575
  <div class="card horizontal">
567
576
  <div class="card-image">
568
- <img src="https://unsplash.it/1000/400" alt="Card image">
577
+ <img src="https://picsum.photos/1000/400?random=3" alt="Card image">
569
578
  </div>
570
579
  <div class="card-content">
571
580
  <div class="card-header">
@@ -581,7 +590,7 @@
581
590
  </div>
582
591
  <div class="card horizontal right">
583
592
  <div class="card-image">
584
- <img src="https://unsplash.it/1000/400" alt="Card image">
593
+ <img src="https://picsum.photos/1000/400?random=4" alt="Card image">
585
594
  </div>
586
595
  <div class="card-content">
587
596
  <div class="card-header">
@@ -597,7 +606,7 @@
597
606
  </div>
598
607
  <div class="card horizontal">
599
608
  <div class="card-image">
600
- <img src="https://unsplash.it/1000/400" alt="Card image">
609
+ <img src="https://picsum.photos/1000/400?random=5" alt="Card image">
601
610
  </div>
602
611
  <div class="card-content">
603
612
  <div class="card-header">
@@ -613,7 +622,7 @@
613
622
  </div>
614
623
  <div class="card horizontal right">
615
624
  <div class="card-image">
616
- <img src="https://unsplash.it/1000/400" alt="Card image">
625
+ <img src="https://picsum.photos/1000/400?random=6" alt="Card image">
617
626
  </div>
618
627
  <div class="card-content">
619
628
  <div class="card-header">
@@ -629,9 +638,141 @@
629
638
  </div>
630
639
  </div>
631
640
  </div>
641
+ <div class="full-width container min-h-full-screen align-content-center">
642
+ <h2>Inverse Cards</h2>
643
+ <p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.inverse</span>
644
+ class will have the image placed on the right if it is a horizontal card and on the bottom if it is a vertical
645
+ card.</p>
646
+ <p>This is mainly to provide a shortcut for horizontal cards that you'd like to use the <span
647
+ class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.bottom .right</span> classes on when the
648
+ card is forced to be vertical.</p>
649
+ <div class="columns count-2">
650
+ <div class="card horizontal inverse">
651
+ <div class="card-image">
652
+ <img src="https://picsum.photos/1000/400?random=1" alt="Card image">
653
+ </div>
654
+ <div class="card-content">
655
+ <div class="card-header">
656
+ <h3 class="card-title">Title</h3>
657
+ </div>
658
+ <div class="card-body">
659
+ <p>This is some text that describes the card.</p>
660
+ </div>
661
+ <div class="card-footer">
662
+ <a class="button primary stretched" href="#">Card Action</a>
663
+ </div>
664
+ </div>
665
+ </div>
666
+ <div class="card horizontal inverse">
667
+ <div class="card-image">
668
+ <img src="https://picsum.photos/1000/400?random=2" alt="Card image">
669
+ </div>
670
+ <div class="card-content">
671
+ <div class="card-header">
672
+ <h3 class="card-title">Title</h3>
673
+ </div>
674
+ <div class="card-body">
675
+ <p>This is some text that describes the card.</p>
676
+ </div>
677
+ <div class="card-footer">
678
+ <a class="button primary stretched" href="#">Card Action</a>
679
+ </div>
680
+ </div>
681
+ </div>
682
+ </div>
683
+ </div>
684
+ <div class="full-width container min-h-full-screen align-content-center">
685
+ <h2>Alerts</h2>
686
+ <div class="display-grid g-5">
687
+ <div class="alert">
688
+ <div class="alert-header">
689
+ <h3 class="alert-title">Alert</h3>
690
+ </div>
691
+ <div class="alert-body">
692
+ <p>This is some text that describes the alert.</p>
693
+ </div>
694
+ <div class="alert-footer">
695
+ <a href="#">Action</a>
696
+ </div>
697
+ <button class="alert-dismisser">x</button>
698
+ </div>
699
+ <div class="alert primary">
700
+ <div class="alert-header">
701
+ <h3 class="alert-title">Primary Alert</h3>
702
+ </div>
703
+ <div class="alert-body">
704
+ <p>This is some text that describes the alert.</p>
705
+ </div>
706
+ <div class="alert-footer">
707
+ <a href="#">Primary Action</a>
708
+ </div>
709
+ <button class="alert-dismisser primary">x</button>
710
+ </div>
711
+ <div class="alert secondary">
712
+ <div class="alert-header">
713
+ <h3 class="alert-title">Secondary Alert</h3>
714
+ </div>
715
+ <div class="alert-body">
716
+ <p>This is some text that describes the alert.</p>
717
+ </div>
718
+ <div class="alert-footer">
719
+ <a href="#">Secondary Action</a>
720
+ </div>
721
+ <button class="alert-dismisser secondary">x</button>
722
+ </div>
723
+ <div class="alert tertiary">
724
+ <div class="alert-header">
725
+ <h3 class="alert-title">Tertiary Alert</h3>
726
+ </div>
727
+ <div class="alert-body">
728
+ <p>This is some text that describes the alert.</p>
729
+ </div>
730
+ <div class="alert-footer">
731
+ <a href="#">Tertiary Action</a>
732
+ </div>
733
+ <button class="alert-dismisser tertiary">x</button>
734
+ </div>
735
+ </div>
736
+ </div>
737
+ <div class="full-width container min-h-full-screen align-content-center">
738
+ <h2>Carousels</h2>
739
+ <section class="carousel">
740
+ <div class="carousel-control-container">
741
+ <button class=" carousel-control autoplay"></button>
742
+ <button class="carousel-control previous"></button>
743
+ <button class="carousel-control next"></button>
744
+ </div>
745
+ <div class="carousel-tab-container">
746
+ <button class="carousel-tab" aria-label="Carousel item 1"></button>
747
+ <button class="carousel-tab" aria-label="Carousel item 2"></button>
748
+ <button class="carousel-tab" aria-label="Carousel item 3"></button>
749
+ <button class="carousel-tab" aria-label="Carousel item 4"></button>
750
+ <button class="carousel-tab" aria-label="Carousel item 5"></button>
751
+ </div>
752
+ <div class="carousel-item-container">
753
+ <div class="carousel-item">
754
+ <div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=1" alt="A placeholder carousel image" /></div>
755
+ </div>
756
+ <div class="carousel-item">
757
+ <div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=2" alt="A placeholder carousel image" /></div>
758
+ </div>
759
+ <div class="carousel-item">
760
+ <div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=3" alt="A placeholder carousel image" /></div>
761
+ </div>
762
+ <div class="carousel-item">
763
+ <div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=4" alt="A placeholder carousel image" /></div>
764
+ </div>
765
+ <div class="carousel-item">
766
+ <div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=5" alt="A placeholder carousel image" /></div>
767
+ </div>
768
+ </div>
769
+ </section>
770
+ </div>
632
771
  </main>
633
772
  <script src="https://cdn.jsdelivr.net/npm/accessible-menu/dist/disclosure-menu.iife.js"></script>
634
773
  <script src="src/js/navigation.js"></script>
774
+ <script type="module" src="src/js/alert/index.js"></script>
775
+ <script type="module" src="src/js/carousel/index.js"></script>
635
776
  <script>
636
777
  const preferredTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
637
778
  const setTheme = window.localStorage.getItem('theme') || preferredTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graupl/graupl",
3
- "version": "1.0.0-alpha.13",
3
+ "version": "1.0.0-alpha.14",
4
4
  "description": "A modular and modern CSS framework.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "scripts": {
18
- "prepare": "husky install",
18
+ "prepare": "husky",
19
19
  "commit": "git cz",
20
20
  "eslint": "eslint .",
21
21
  "prettier": "prettier '**/*.{js,mjs,cjs,scss,sass}'",
@@ -49,10 +49,9 @@
49
49
  "commitizen": "^4.3.0",
50
50
  "cssnano": "^7.0.1",
51
51
  "cz-conventional-changelog": "^3.3.0",
52
- "eslint": "^8.57.0",
52
+ "eslint": "^9.11.1",
53
53
  "eslint-config-prettier": "^9.1.0",
54
- "eslint-config-standard": "^17.1.0",
55
- "eslint-plugin-jsdoc": "^48.2.3",
54
+ "eslint-plugin-jsdoc": "^50.2.4",
56
55
  "globals": "^15.0.0",
57
56
  "husky": "^9.0.11",
58
57
  "lint-staged": "^15.2.2",
@@ -65,7 +64,7 @@
65
64
  "standard-version": "^9.5.0",
66
65
  "stylelint": "^16.3.1",
67
66
  "stylelint-config-property-sort-order-smacss": "^10.0.0",
68
- "stylelint-config-sass-guidelines": "^11.1.0",
67
+ "stylelint-config-sass-guidelines": "^12.1.0",
69
68
  "stylelint-config-standard-scss": "^13.1.0",
70
69
  "stylelint-prettier": "^5.0.0",
71
70
  "vite": "^5.2.8",
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl alert component.
2
+
3
+ @forward "../../src/scss/component/alert";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl carousel component.
2
+
3
+ @forward "../../src/scss/component/carousel";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl height utilities.
2
+
3
+ @forward "../../src/scss/utilities/height";
@@ -0,0 +1,3 @@
1
+ // @graupl/graupl width utilities.
2
+
3
+ @forward "../../src/scss/utilities/width";