@amsterdam/design-system-css 0.14.1 → 0.15.0

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 (187) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +2 -0
  3. package/dist/accordion/accordion.css +1 -1
  4. package/dist/accordion/accordion.css.map +1 -1
  5. package/dist/action-group/action-group.css +1 -1
  6. package/dist/action-group/action-group.css.map +1 -1
  7. package/dist/alert/alert.css +1 -1
  8. package/dist/alert/alert.css.map +1 -1
  9. package/dist/aspect-ratio/aspect-ratio.css +1 -1
  10. package/dist/aspect-ratio/aspect-ratio.css.map +1 -1
  11. package/dist/avatar/avatar.css +1 -1
  12. package/dist/avatar/avatar.css.map +1 -1
  13. package/dist/badge/badge.css +1 -1
  14. package/dist/badge/badge.css.map +1 -1
  15. package/dist/blockquote/blockquote.css +1 -1
  16. package/dist/blockquote/blockquote.css.map +1 -1
  17. package/dist/breadcrumb/breadcrumb.css +1 -1
  18. package/dist/breadcrumb/breadcrumb.css.map +1 -1
  19. package/dist/breakout/breakout.css +1 -1
  20. package/dist/breakout/breakout.css.map +1 -1
  21. package/dist/button/button.css +1 -1
  22. package/dist/button/button.css.map +1 -1
  23. package/dist/card/card.css +1 -1
  24. package/dist/card/card.css.map +1 -1
  25. package/dist/character-count/character-count.css +1 -1
  26. package/dist/character-count/character-count.css.map +1 -1
  27. package/dist/checkbox/checkbox.css +1 -1
  28. package/dist/checkbox/checkbox.css.map +1 -1
  29. package/dist/column/column.css +1 -1
  30. package/dist/column/column.css.map +1 -1
  31. package/dist/date-input/date-input.css +1 -1
  32. package/dist/date-input/date-input.css.map +1 -1
  33. package/dist/description-list/description-list.css +1 -1
  34. package/dist/description-list/description-list.css.map +1 -1
  35. package/dist/dialog/dialog.css +1 -1
  36. package/dist/dialog/dialog.css.map +1 -1
  37. package/dist/error-message/error-message.css +1 -1
  38. package/dist/error-message/error-message.css.map +1 -1
  39. package/dist/field-set/field-set.css +1 -1
  40. package/dist/field-set/field-set.css.map +1 -1
  41. package/dist/figure/figure.css +1 -1
  42. package/dist/figure/figure.css.map +1 -1
  43. package/dist/file-input/file-input.css +1 -1
  44. package/dist/file-input/file-input.css.map +1 -1
  45. package/dist/file-list/file-list.css +1 -1
  46. package/dist/file-list/file-list.css.map +1 -1
  47. package/dist/footer/footer.css +1 -1
  48. package/dist/footer/footer.css.map +1 -1
  49. package/dist/gap/gap.css +1 -1
  50. package/dist/gap/gap.css.map +1 -1
  51. package/dist/grid/grid.css +1 -1
  52. package/dist/grid/grid.css.map +1 -1
  53. package/dist/header/header.css +1 -1
  54. package/dist/header/header.css.map +1 -1
  55. package/dist/heading/heading.css +1 -1
  56. package/dist/heading/heading.css.map +1 -1
  57. package/dist/icon/icon.css +1 -1
  58. package/dist/icon/icon.css.map +1 -1
  59. package/dist/icon-button/icon-button.css +1 -1
  60. package/dist/icon-button/icon-button.css.map +1 -1
  61. package/dist/image-slider/image-slider.css +1 -1
  62. package/dist/image-slider/image-slider.css.map +1 -1
  63. package/dist/index.css +1 -1
  64. package/dist/index.css.map +1 -1
  65. package/dist/invalid-form-alert/invalid-form-alert.css +1 -0
  66. package/dist/invalid-form-alert/invalid-form-alert.css.map +1 -0
  67. package/dist/label/label.css +1 -1
  68. package/dist/label/label.css.map +1 -1
  69. package/dist/link/link.css +1 -1
  70. package/dist/link/link.css.map +1 -1
  71. package/dist/link-list/link-list.css +1 -1
  72. package/dist/link-list/link-list.css.map +1 -1
  73. package/dist/margin/margin.css +1 -1
  74. package/dist/margin/margin.css.map +1 -1
  75. package/dist/ordered-list/ordered-list.css +1 -1
  76. package/dist/ordered-list/ordered-list.css.map +1 -1
  77. package/dist/page-heading/page-heading.css +1 -1
  78. package/dist/page-heading/page-heading.css.map +1 -1
  79. package/dist/page-menu/page-menu.css +1 -1
  80. package/dist/page-menu/page-menu.css.map +1 -1
  81. package/dist/pagination/pagination.css +1 -1
  82. package/dist/pagination/pagination.css.map +1 -1
  83. package/dist/paragraph/paragraph.css +1 -1
  84. package/dist/paragraph/paragraph.css.map +1 -1
  85. package/dist/password-input/password-input.css +1 -1
  86. package/dist/password-input/password-input.css.map +1 -1
  87. package/dist/radio/radio.css +1 -1
  88. package/dist/radio/radio.css.map +1 -1
  89. package/dist/row/row.css +1 -1
  90. package/dist/row/row.css.map +1 -1
  91. package/dist/search-field/search-field.css +1 -1
  92. package/dist/search-field/search-field.css.map +1 -1
  93. package/dist/select/select.css +1 -1
  94. package/dist/select/select.css.map +1 -1
  95. package/dist/spotlight/spotlight.css +1 -1
  96. package/dist/spotlight/spotlight.css.map +1 -1
  97. package/dist/switch/switch.css +1 -1
  98. package/dist/switch/switch.css.map +1 -1
  99. package/dist/table-of-contents/table-of-contents.css +1 -1
  100. package/dist/table-of-contents/table-of-contents.css.map +1 -1
  101. package/dist/tabs/tabs.css +1 -1
  102. package/dist/tabs/tabs.css.map +1 -1
  103. package/dist/text-area/text-area.css +1 -1
  104. package/dist/text-area/text-area.css.map +1 -1
  105. package/dist/text-input/text-input.css +1 -1
  106. package/dist/text-input/text-input.css.map +1 -1
  107. package/dist/time-input/time-input.css +1 -1
  108. package/dist/time-input/time-input.css.map +1 -1
  109. package/dist/top-task-link/top-task-link.css +1 -1
  110. package/dist/top-task-link/top-task-link.css.map +1 -1
  111. package/dist/unordered-list/unordered-list.css +1 -1
  112. package/dist/unordered-list/unordered-list.css.map +1 -1
  113. package/package.json +4 -4
  114. package/src/common/hyphenation.scss +3 -3
  115. package/src/components/accordion/accordion.scss +5 -6
  116. package/src/components/action-group/README.md +1 -1
  117. package/src/components/action-group/action-group.scss +1 -1
  118. package/src/components/alert/README.md +13 -15
  119. package/src/components/alert/alert.scss +29 -14
  120. package/src/components/aspect-ratio/README.md +8 -8
  121. package/src/components/aspect-ratio/aspect-ratio.scss +6 -3
  122. package/src/components/avatar/README.md +5 -4
  123. package/src/components/avatar/avatar.scss +8 -46
  124. package/src/components/badge/README.md +7 -6
  125. package/src/components/badge/badge.scss +13 -40
  126. package/src/components/blockquote/blockquote.scss +1 -1
  127. package/src/components/breadcrumb/breadcrumb.scss +2 -0
  128. package/src/components/breakout/breakout.scss +4 -4
  129. package/src/components/button/README.md +1 -1
  130. package/src/components/button/button.scss +4 -1
  131. package/src/components/card/card.scss +19 -22
  132. package/src/components/character-count/character-count.scss +2 -0
  133. package/src/components/checkbox/checkbox.scss +6 -7
  134. package/src/components/column/column.scss +9 -8
  135. package/src/components/date-input/date-input.scss +3 -4
  136. package/src/components/description-list/description-list.scss +12 -10
  137. package/src/components/dialog/dialog.scss +17 -5
  138. package/src/components/error-message/error-message.scss +2 -0
  139. package/src/components/field-set/field-set.scss +1 -1
  140. package/src/components/figure/figure.scss +3 -1
  141. package/src/components/file-input/file-input.scss +2 -2
  142. package/src/components/file-list/file-list.scss +2 -1
  143. package/src/components/footer/README.md +3 -2
  144. package/src/components/footer/footer.scss +41 -2
  145. package/src/components/gap/README.md +13 -9
  146. package/src/components/gap/gap.scss +8 -12
  147. package/src/components/grid/_mixins.scss +14 -12
  148. package/src/components/header/README.md +1 -0
  149. package/src/components/header/header.scss +30 -18
  150. package/src/components/heading/README.md +7 -7
  151. package/src/components/heading/heading.scss +19 -19
  152. package/src/components/icon/README.md +5 -5
  153. package/src/components/icon/icon.scss +42 -29
  154. package/src/components/icon-button/icon-button.scss +16 -15
  155. package/src/components/image-slider/image-slider.scss +11 -3
  156. package/src/components/index.scss +1 -1
  157. package/src/components/{form-error-list → invalid-form-alert}/README.md +9 -9
  158. package/src/components/{form-error-list/form-error-list.scss → invalid-form-alert/invalid-form-alert.scss} +4 -4
  159. package/src/components/link/README.md +1 -2
  160. package/src/components/link/link.scss +9 -20
  161. package/src/components/link-list/link-list.scss +7 -8
  162. package/src/components/margin/README.md +16 -10
  163. package/src/components/margin/margin.scss +6 -8
  164. package/src/components/ordered-list/ordered-list.scss +3 -1
  165. package/src/components/page-heading/page-heading.scss +1 -1
  166. package/src/components/page-menu/page-menu.scss +0 -2
  167. package/src/components/pagination/pagination.scss +23 -34
  168. package/src/components/paragraph/paragraph.scss +3 -1
  169. package/src/components/password-input/password-input.scss +2 -3
  170. package/src/components/radio/radio.scss +4 -5
  171. package/src/components/row/row.scss +9 -9
  172. package/src/components/screen/README.md +6 -6
  173. package/src/components/search-field/search-field.scss +2 -3
  174. package/src/components/select/select.scss +2 -2
  175. package/src/components/spotlight/README.md +5 -2
  176. package/src/components/spotlight/spotlight.scss +6 -10
  177. package/src/components/switch/switch.scss +2 -2
  178. package/src/components/table-of-contents/table-of-contents.scss +2 -0
  179. package/src/components/tabs/tabs.scss +6 -3
  180. package/src/components/text-area/text-area.scss +1 -2
  181. package/src/components/text-input/text-input.scss +2 -3
  182. package/src/components/time-input/time-input.scss +3 -4
  183. package/src/components/top-task-link/top-task-link.scss +3 -3
  184. package/src/components/unordered-list/unordered-list.scss +3 -1
  185. package/dist/form-error-list/form-error-list.css +0 -1
  186. package/dist/form-error-list/form-error-list.css.map +0 -1
  187. package/src/common/size.scss +0 -14
@@ -7,22 +7,18 @@
7
7
  background-color: var(--ams-spotlight-background-color);
8
8
  }
9
9
 
10
- .ams-spotlight--blue {
11
- background-color: var(--ams-spotlight-blue-background-color);
12
- }
13
-
14
- .ams-spotlight--dark-blue {
15
- background-color: var(--ams-spotlight-dark-blue-background-color);
16
- }
17
-
18
- .ams-spotlight--dark-green {
19
- background-color: var(--ams-spotlight-dark-green-background-color);
10
+ .ams-spotlight--azure {
11
+ background-color: var(--ams-spotlight-azure-background-color);
20
12
  }
21
13
 
22
14
  .ams-spotlight--green {
23
15
  background-color: var(--ams-spotlight-green-background-color);
24
16
  }
25
17
 
18
+ .ams-spotlight--lime {
19
+ background-color: var(--ams-spotlight-lime-background-color);
20
+ }
21
+
26
22
  .ams-spotlight--magenta {
27
23
  background-color: var(--ams-spotlight-magenta-background-color);
28
24
  }
@@ -20,7 +20,7 @@
20
20
  border: var(--ams-switch-track-border-width) solid transparent;
21
21
  border-radius: calc(var(--ams-switch-thumb-inline-size) * 2);
22
22
  box-sizing: border-box;
23
- cursor: pointer;
23
+ cursor: var(--ams-switch-cursor);
24
24
  display: inline-block;
25
25
  inline-size: var(--ams-switch-inline-size);
26
26
  outline-offset: var(--ams-switch-outline-offset);
@@ -49,7 +49,7 @@
49
49
 
50
50
  .ams-switch__input:disabled + .ams-switch__label {
51
51
  background-color: var(--ams-switch-disabled-background-color);
52
- cursor: not-allowed;
52
+ cursor: var(--ams-switch-disabled-cursor);
53
53
  }
54
54
 
55
55
  .ams-switch__input:checked + .ams-switch__label::before {
@@ -3,6 +3,7 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @use "../../common/hyphenation" as *;
6
7
  @use "../../common/text-rendering" as *;
7
8
 
8
9
  @mixin reset-ul {
@@ -27,6 +28,7 @@
27
28
  gap: var(--ams-table-of-contents-list-gap);
28
29
  list-style: none;
29
30
 
31
+ @include hyphenation;
30
32
  @include text-rendering;
31
33
  @include reset-ul;
32
34
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  @mixin reset-button {
9
9
  background-color: transparent;
10
- border: 0;
10
+ border: none;
11
11
  margin-block: 0; // [1]
12
12
  margin-inline: 0; // [1]
13
13
 
@@ -29,6 +29,7 @@
29
29
  color: var(--ams-tabs-button-color);
30
30
  cursor: var(--ams-tabs-button-cursor);
31
31
  display: grid;
32
+ flex-shrink: 0;
32
33
  font-family: var(--ams-tabs-button-font-family);
33
34
  font-size: var(--ams-tabs-button-font-size);
34
35
  font-weight: var(--ams-tabs-button-font-weight);
@@ -48,14 +49,16 @@
48
49
  }
49
50
  }
50
51
 
52
+ &:hover:not([disabled]) {
53
+ color: var(--ams-tabs-button-hover-color);
54
+ }
55
+
51
56
  &:hover:not([aria-selected="true"], [disabled]) {
52
57
  box-shadow: var(--ams-tabs-button-hover-box-shadow);
53
- color: var(--ams-tabs-button-hover-color);
54
58
  }
55
59
 
56
60
  &[aria-selected="true"] {
57
61
  box-shadow: var(--ams-tabs-button-selected-box-shadow);
58
- color: var(--ams-tabs-button-selected-color);
59
62
  font-weight: var(--ams-tabs-button-selected-font-weight);
60
63
 
61
64
  @media (forced-colors: active) {
@@ -8,7 +8,7 @@
8
8
  @mixin reset-textarea {
9
9
  -webkit-appearance: none; // Reset appearance for Safari < 15.4
10
10
  appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
11
- border: 0;
11
+ border: none;
12
12
  border-radius: 0; // Reset rounded borders on iOS devices
13
13
  margin-block: 0;
14
14
  }
@@ -55,7 +55,6 @@
55
55
  box-shadow: var(--ams-text-area-invalid-box-shadow);
56
56
 
57
57
  &:hover {
58
- // TODO: this should be the (currently non-existent) dark red hover color
59
58
  box-shadow: var(--ams-text-area-invalid-hover-box-shadow);
60
59
  }
61
60
  }
@@ -8,7 +8,7 @@
8
8
  @mixin reset-input {
9
9
  -webkit-appearance: none; // Reset appearance for Safari < 15.4
10
10
  appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
11
- border: 0;
11
+ border: none;
12
12
  border-radius: 0; // Reset rounded borders on iOS devices
13
13
  margin-block: 0;
14
14
  }
@@ -45,7 +45,7 @@
45
45
  background-color: var(--ams-text-input-disabled-background-color);
46
46
  box-shadow: var(--ams-text-input-disabled-box-shadow);
47
47
  color: var(--ams-text-input-disabled-color);
48
- cursor: not-allowed;
48
+ cursor: var(--ams-text-input-disabled-cursor);
49
49
  }
50
50
 
51
51
  .ams-text-input:invalid,
@@ -53,7 +53,6 @@
53
53
  box-shadow: var(--ams-text-input-invalid-box-shadow);
54
54
 
55
55
  &:hover {
56
- // TODO: this should be the (currently non-existent) dark red hover color
57
56
  box-shadow: var(--ams-text-input-invalid-hover-box-shadow);
58
57
  }
59
58
  }
@@ -8,7 +8,7 @@
8
8
  @mixin reset-input {
9
9
  -webkit-appearance: none; // Reset appearance for Safari < 15.4
10
10
  appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
11
- border: 0;
11
+ border: none;
12
12
  border-radius: 0; // Reset rounded borders on iOS devices
13
13
  inline-size: auto; // Reset inline size of 10em set by Android devices
14
14
  margin-block: 0;
@@ -48,7 +48,7 @@
48
48
  .ams-time-input::-webkit-calendar-picker-indicator {
49
49
  appearance: none;
50
50
  background-image: var(--ams-time-input-calender-picker-indicator-background-image);
51
- cursor: pointer;
51
+ cursor: var(--ams-time-input-calender-picker-indicator-cursor);
52
52
  }
53
53
 
54
54
  .ams-time-input:hover::-webkit-calendar-picker-indicator {
@@ -59,7 +59,7 @@
59
59
  background-color: var(--ams-time-input-disabled-background-color);
60
60
  box-shadow: var(--ams-time-input-disabled-box-shadow);
61
61
  color: var(--ams-time-input-disabled-color);
62
- cursor: not-allowed;
62
+ cursor: var(--ams-time-input-disabled-cursor);
63
63
  }
64
64
 
65
65
  .ams-time-input:disabled::-webkit-calendar-picker-indicator {
@@ -72,7 +72,6 @@
72
72
  box-shadow: var(--ams-time-input-invalid-box-shadow);
73
73
 
74
74
  &:hover {
75
- // TODO: this should be the (currently non-existent) dark red hover color
76
75
  box-shadow: var(--ams-time-input-invalid-hover-box-shadow);
77
76
  }
78
77
  }
@@ -13,6 +13,9 @@
13
13
  gap: var(--ams-top-task-link-gap);
14
14
  outline-offset: var(--ams-top-task-link-outline-offset);
15
15
  text-decoration: none;
16
+
17
+ @include hyphenation;
18
+ @include text-rendering;
16
19
  }
17
20
 
18
21
  .ams-top-task-link__label {
@@ -25,9 +28,6 @@
25
28
  text-decoration-line: var(--ams-top-task-link-label-text-decoration-line);
26
29
  text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness);
27
30
  text-underline-offset: var(--ams-top-task-link-label-text-underline-offset);
28
-
29
- @include hyphenation;
30
- @include text-rendering;
31
31
  }
32
32
 
33
33
  .ams-top-task-link:hover .ams-top-task-link__label {
@@ -3,6 +3,7 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @use "../../common/hyphenation" as *;
6
7
  @use "../../common/text-rendering" as *;
7
8
 
8
9
  @mixin reset-ul {
@@ -16,6 +17,7 @@
16
17
  display: grid;
17
18
  gap: var(--ams-unordered-list-gap);
18
19
 
20
+ @include hyphenation;
19
21
  @include text-rendering;
20
22
  @include reset-ul;
21
23
  }
@@ -34,7 +36,7 @@
34
36
  }
35
37
  }
36
38
 
37
- .ams-unordered-list--inverse-color:not(.ams-unordered-list--no-markers) {
39
+ .ams-unordered-list--inverse:not(.ams-unordered-list--no-markers) {
38
40
  color: var(--ams-unordered-list-inverse-color);
39
41
  }
40
42
 
@@ -1 +0,0 @@
1
- .ams-form-error-list{outline-offset:var(--ams-form-error-list-outline-offset)}@supports(contain: paint) and (not (-moz-appearance: none)){.ams-form-error-list{outline-offset:calc(var(--ams-form-error-list-outline-offset)*2)}@supports(font: -apple-system-body){.ams-form-error-list{outline-offset:var(--ams-form-error-list-outline-offset)}}}/*# sourceMappingURL=form-error-list.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/form-error-list/form-error-list.scss"],"names":[],"mappings":"AAAA,qBACE,yDAIA,4DALF,qBAMI,iEAGA,oCATJ,qBAUM","file":"form-error-list.css"}
@@ -1,14 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- /** The set of available widths for gaps and margins. */
7
- $ams-sizes: (
8
- "no": "none",
9
- "xs": "extra-small",
10
- "sm": "small",
11
- "md": "medium",
12
- "lg": "large",
13
- "xl": "extra-large",
14
- );