@iamproperty/components 3.4.7 → 3.6.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 (234) hide show
  1. package/assets/bootstrap/LICENSE +22 -0
  2. package/assets/bootstrap/README.md +246 -0
  3. package/assets/bootstrap/js/src/alert.js +87 -0
  4. package/assets/bootstrap/js/src/base-component.js +85 -0
  5. package/assets/bootstrap/js/src/button.js +72 -0
  6. package/assets/bootstrap/js/src/carousel.js +475 -0
  7. package/assets/bootstrap/js/src/collapse.js +302 -0
  8. package/assets/bootstrap/js/src/dom/data.js +55 -0
  9. package/assets/bootstrap/js/src/dom/event-handler.js +320 -0
  10. package/assets/bootstrap/js/src/dom/manipulator.js +71 -0
  11. package/assets/bootstrap/js/src/dom/selector-engine.js +83 -0
  12. package/assets/bootstrap/js/src/dropdown.js +454 -0
  13. package/assets/bootstrap/js/src/modal.js +377 -0
  14. package/assets/bootstrap/js/src/offcanvas.js +283 -0
  15. package/assets/bootstrap/js/src/popover.js +97 -0
  16. package/assets/bootstrap/js/src/scrollspy.js +294 -0
  17. package/assets/bootstrap/js/src/tab.js +305 -0
  18. package/assets/bootstrap/js/src/toast.js +225 -0
  19. package/assets/bootstrap/js/src/tooltip.js +633 -0
  20. package/assets/bootstrap/js/src/util/backdrop.js +149 -0
  21. package/assets/bootstrap/js/src/util/component-functions.js +34 -0
  22. package/assets/bootstrap/js/src/util/config.js +66 -0
  23. package/assets/bootstrap/js/src/util/focustrap.js +115 -0
  24. package/assets/bootstrap/js/src/util/index.js +336 -0
  25. package/assets/bootstrap/js/src/util/sanitizer.js +118 -0
  26. package/assets/bootstrap/js/src/util/scrollbar.js +114 -0
  27. package/assets/bootstrap/js/src/util/swipe.js +146 -0
  28. package/assets/bootstrap/js/src/util/template-factory.js +160 -0
  29. package/assets/bootstrap/package.json +181 -0
  30. package/assets/bootstrap/scss/_accordion.scss +149 -0
  31. package/assets/bootstrap/scss/_alert.scss +71 -0
  32. package/assets/bootstrap/scss/_badge.scss +38 -0
  33. package/assets/bootstrap/scss/_breadcrumb.scss +40 -0
  34. package/assets/bootstrap/scss/_button-group.scss +142 -0
  35. package/assets/bootstrap/scss/_buttons.scss +207 -0
  36. package/assets/bootstrap/scss/_card.scss +234 -0
  37. package/assets/bootstrap/scss/_carousel.scss +226 -0
  38. package/assets/bootstrap/scss/_close.scss +40 -0
  39. package/assets/bootstrap/scss/_containers.scss +41 -0
  40. package/assets/bootstrap/scss/_dropdown.scss +249 -0
  41. package/assets/bootstrap/scss/_forms.scss +9 -0
  42. package/assets/bootstrap/scss/_functions.scss +302 -0
  43. package/assets/bootstrap/scss/_grid.scss +33 -0
  44. package/assets/bootstrap/scss/_helpers.scss +10 -0
  45. package/assets/bootstrap/scss/_images.scss +42 -0
  46. package/assets/bootstrap/scss/_list-group.scss +192 -0
  47. package/assets/bootstrap/scss/_maps.scss +54 -0
  48. package/assets/bootstrap/scss/_mixins.scss +43 -0
  49. package/assets/bootstrap/scss/_modal.scss +237 -0
  50. package/assets/bootstrap/scss/_nav.scss +172 -0
  51. package/assets/bootstrap/scss/_navbar.scss +278 -0
  52. package/assets/bootstrap/scss/_offcanvas.scss +144 -0
  53. package/assets/bootstrap/scss/_pagination.scss +109 -0
  54. package/assets/bootstrap/scss/_placeholders.scss +51 -0
  55. package/assets/bootstrap/scss/_popover.scss +196 -0
  56. package/assets/bootstrap/scss/_progress.scss +59 -0
  57. package/assets/bootstrap/scss/_reboot.scss +610 -0
  58. package/assets/bootstrap/scss/_root.scss +73 -0
  59. package/assets/bootstrap/scss/_spinners.scss +85 -0
  60. package/assets/bootstrap/scss/_tables.scss +164 -0
  61. package/assets/bootstrap/scss/_toasts.scss +73 -0
  62. package/assets/bootstrap/scss/_tooltip.scss +120 -0
  63. package/assets/bootstrap/scss/_transitions.scss +27 -0
  64. package/assets/bootstrap/scss/_type.scss +106 -0
  65. package/assets/bootstrap/scss/_utilities.scss +647 -0
  66. package/assets/bootstrap/scss/_variables.scss +1634 -0
  67. package/assets/bootstrap/scss/bootstrap-grid.scss +64 -0
  68. package/assets/bootstrap/scss/bootstrap-reboot.scss +9 -0
  69. package/assets/bootstrap/scss/bootstrap-utilities.scss +18 -0
  70. package/assets/bootstrap/scss/bootstrap.scss +51 -0
  71. package/assets/bootstrap/scss/forms/_floating-labels.scss +75 -0
  72. package/assets/bootstrap/scss/forms/_form-check.scss +175 -0
  73. package/assets/bootstrap/scss/forms/_form-control.scss +194 -0
  74. package/assets/bootstrap/scss/forms/_form-range.scss +91 -0
  75. package/assets/bootstrap/scss/forms/_form-select.scss +71 -0
  76. package/assets/bootstrap/scss/forms/_form-text.scss +11 -0
  77. package/assets/bootstrap/scss/forms/_input-group.scss +132 -0
  78. package/assets/bootstrap/scss/forms/_labels.scss +36 -0
  79. package/assets/bootstrap/scss/forms/_validation.scss +12 -0
  80. package/assets/bootstrap/scss/helpers/_clearfix.scss +3 -0
  81. package/assets/bootstrap/scss/helpers/_color-bg.scss +10 -0
  82. package/assets/bootstrap/scss/helpers/_colored-links.scss +12 -0
  83. package/assets/bootstrap/scss/helpers/_position.scss +36 -0
  84. package/assets/bootstrap/scss/helpers/_ratio.scss +26 -0
  85. package/assets/bootstrap/scss/helpers/_stacks.scss +15 -0
  86. package/assets/bootstrap/scss/helpers/_stretched-link.scss +15 -0
  87. package/assets/bootstrap/scss/helpers/_text-truncation.scss +7 -0
  88. package/assets/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
  89. package/assets/bootstrap/scss/helpers/_vr.scss +8 -0
  90. package/assets/bootstrap/scss/mixins/_alert.scss +15 -0
  91. package/assets/bootstrap/scss/mixins/_backdrop.scss +14 -0
  92. package/assets/bootstrap/scss/mixins/_banner.scss +9 -0
  93. package/assets/bootstrap/scss/mixins/_border-radius.scss +78 -0
  94. package/assets/bootstrap/scss/mixins/_box-shadow.scss +18 -0
  95. package/assets/bootstrap/scss/mixins/_breakpoints.scss +127 -0
  96. package/assets/bootstrap/scss/mixins/_buttons.scss +70 -0
  97. package/assets/bootstrap/scss/mixins/_caret.scss +64 -0
  98. package/assets/bootstrap/scss/mixins/_clearfix.scss +9 -0
  99. package/assets/bootstrap/scss/mixins/_color-scheme.scss +7 -0
  100. package/assets/bootstrap/scss/mixins/_container.scss +11 -0
  101. package/assets/bootstrap/scss/mixins/_deprecate.scss +10 -0
  102. package/assets/bootstrap/scss/mixins/_forms.scss +152 -0
  103. package/assets/bootstrap/scss/mixins/_gradients.scss +47 -0
  104. package/assets/bootstrap/scss/mixins/_grid.scss +151 -0
  105. package/assets/bootstrap/scss/mixins/_image.scss +16 -0
  106. package/assets/bootstrap/scss/mixins/_list-group.scss +24 -0
  107. package/assets/bootstrap/scss/mixins/_lists.scss +7 -0
  108. package/assets/bootstrap/scss/mixins/_pagination.scss +10 -0
  109. package/assets/bootstrap/scss/mixins/_reset-text.scss +17 -0
  110. package/assets/bootstrap/scss/mixins/_resize.scss +6 -0
  111. package/assets/bootstrap/scss/mixins/_table-variants.scss +24 -0
  112. package/assets/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  113. package/assets/bootstrap/scss/mixins/_transition.scss +26 -0
  114. package/assets/bootstrap/scss/mixins/_utilities.scss +97 -0
  115. package/assets/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
  116. package/assets/bootstrap/scss/utilities/_api.scss +47 -0
  117. package/assets/bootstrap/scss/vendor/_rfs.scss +354 -0
  118. package/assets/css/components/accordion.css +1 -1
  119. package/assets/css/components/accordion.css.map +1 -1
  120. package/assets/css/components/admin-panel.css +1 -0
  121. package/assets/css/components/admin-panel.css.map +1 -0
  122. package/assets/css/components/alert.css +1 -1
  123. package/assets/css/components/alert.css.map +1 -1
  124. package/assets/css/components/applied-filters.css +1 -1
  125. package/assets/css/components/applied-filters.css.map +1 -1
  126. package/assets/css/components/card.css +1 -1
  127. package/assets/css/components/card.css.map +1 -1
  128. package/assets/css/components/carousel.css +1 -1
  129. package/assets/css/components/carousel.css.map +1 -1
  130. package/assets/css/components/charts.css +1 -1
  131. package/assets/css/components/charts.css.map +1 -1
  132. package/assets/css/components/container.css.map +1 -1
  133. package/assets/css/components/dialog.css +1 -1
  134. package/assets/css/components/dialog.css.map +1 -1
  135. package/assets/css/components/forms.css +1 -1
  136. package/assets/css/components/forms.css.map +1 -1
  137. package/assets/css/components/header.css +1 -1
  138. package/assets/css/components/header.css.map +1 -1
  139. package/assets/css/components/lists.css +1 -1
  140. package/assets/css/components/lists.css.map +1 -1
  141. package/assets/css/components/nav.css +1 -1
  142. package/assets/css/components/nav.css.map +1 -1
  143. package/assets/css/components/pagination.css +1 -1
  144. package/assets/css/components/pagination.css.map +1 -1
  145. package/assets/css/components/property-searchbar.css +1 -1
  146. package/assets/css/components/property-searchbar.css.map +1 -1
  147. package/assets/css/components/stepper.css +1 -1
  148. package/assets/css/components/stepper.css.map +1 -1
  149. package/assets/css/components/table.css +1 -1
  150. package/assets/css/components/table.css.map +1 -1
  151. package/assets/css/components/tabs.css +1 -1
  152. package/assets/css/components/tabs.css.map +1 -1
  153. package/assets/css/components/tooltips.css +1 -1
  154. package/assets/css/components/tooltips.css.map +1 -1
  155. package/assets/css/core.min.css +1 -1
  156. package/assets/css/core.min.css.map +1 -1
  157. package/assets/css/style.min.css +1 -1
  158. package/assets/css/style.min.css.map +1 -1
  159. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  160. package/assets/js/components/card/card.component.js +1 -1
  161. package/assets/js/components/card/card.component.min.js +5 -5
  162. package/assets/js/components/card/card.component.min.js.map +1 -1
  163. package/assets/js/components/filterlist/filterlist.component.js +13 -9
  164. package/assets/js/components/filterlist/filterlist.component.min.js +14 -5
  165. package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
  166. package/assets/js/components/header/header.component.min.js +5 -5
  167. package/assets/js/components/table/table.component.js +16 -1
  168. package/assets/js/components/table/table.component.min.js +21 -11
  169. package/assets/js/components/table/table.component.min.js.map +1 -1
  170. package/assets/js/components/tabs/tabs.component.js +6 -2
  171. package/assets/js/components/tabs/tabs.component.min.js +6 -4
  172. package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
  173. package/assets/js/dynamic.min.js +2 -2
  174. package/assets/js/dynamic.min.js.map +1 -1
  175. package/assets/js/modules/applied-filters.js +6 -2
  176. package/assets/js/modules/helpers.js +36 -6
  177. package/assets/js/modules/table.js +27 -16
  178. package/assets/js/modules/tabs.js +4 -2
  179. package/assets/js/scripts.bundle.js +42 -20
  180. package/assets/js/scripts.bundle.js.map +1 -1
  181. package/assets/js/scripts.bundle.min.js +2 -2
  182. package/assets/js/scripts.bundle.min.js.map +1 -1
  183. package/assets/js/tests/table.spec.js +3 -2
  184. package/assets/sass/_corefiles.scss +18 -15
  185. package/assets/sass/_forms.scss +7 -7
  186. package/assets/sass/_functions/functions.scss +3 -4
  187. package/assets/sass/_functions/mixins.scss +10 -28
  188. package/assets/sass/_functions/utilities.scss +83 -9
  189. package/assets/sass/_functions/variables.scss +110 -57
  190. package/assets/sass/_tests/colours.spec.scss +8 -22
  191. package/assets/sass/_tests/func.spec.scss +1 -1
  192. package/assets/sass/components/accordion.scss +13 -0
  193. package/assets/sass/components/admin-panel.scss +174 -0
  194. package/assets/sass/components/alert.scss +22 -0
  195. package/assets/sass/components/applied-filters.scss +4 -0
  196. package/assets/sass/components/card.scss +12 -8
  197. package/assets/sass/components/carousel.scss +72 -0
  198. package/assets/sass/components/charts.scss +37 -1
  199. package/assets/sass/components/container.scss +1 -1
  200. package/assets/sass/components/dialog.scss +29 -15
  201. package/assets/sass/components/forms.scss +2 -2
  202. package/assets/sass/components/lists.scss +14 -0
  203. package/assets/sass/components/nav.scss +1 -1
  204. package/assets/sass/components/pagination.scss +5 -1
  205. package/assets/sass/components/stepper.scss +3 -3
  206. package/assets/sass/components/table.scss +163 -44
  207. package/assets/sass/components/tabs.scss +54 -85
  208. package/assets/sass/components/tooltips.scss +1 -1
  209. package/assets/sass/foundations/buttons.scss +381 -0
  210. package/assets/sass/foundations/links.scss +75 -75
  211. package/assets/sass/foundations/media.scss +1 -1
  212. package/assets/sass/foundations/reboot.scss +8 -9
  213. package/assets/sass/foundations/root.scss +44 -70
  214. package/assets/sass/foundations/type.scss +5 -1
  215. package/assets/sass/helpers/max-height.scss +3 -0
  216. package/assets/ts/components/card/card.component.ts +1 -1
  217. package/assets/ts/components/filterlist/filterlist.component.ts +13 -11
  218. package/assets/ts/components/table/table.component.ts +17 -1
  219. package/assets/ts/components/tabs/tabs.component.ts +7 -2
  220. package/assets/ts/modules/applied-filters.ts +9 -3
  221. package/assets/ts/modules/helpers.ts +57 -8
  222. package/assets/ts/modules/table.ts +38 -18
  223. package/assets/ts/modules/tabs.ts +7 -2
  224. package/assets/ts/tests/table.spec.ts +3 -3
  225. package/dist/components.es.js +195 -160
  226. package/dist/components.umd.js +37 -15
  227. package/dist/style.css +1 -1
  228. package/package.json +2 -1
  229. package/assets/css/components/buttons.css +0 -1
  230. package/assets/css/components/buttons.css.map +0 -1
  231. package/assets/css/components/panel.css +0 -1
  232. package/assets/css/components/panel.css.map +0 -1
  233. package/assets/sass/components/buttons.scss +0 -252
  234. package/assets/sass/components/panel.scss +0 -161
@@ -9,7 +9,7 @@ const basicTable = `<thead>
9
9
  <th>Heading 3</th>
10
10
  </tr>
11
11
  </thead>
12
- <tbody
12
+ <tbody>
13
13
  <tr>
14
14
  <td>Cell 1</td>
15
15
  <td>Low</td>
@@ -131,8 +131,9 @@ describe('populateDataQueries', () => {
131
131
  const table = document.createElement('table');
132
132
  table.innerHTML = basicTable;
133
133
  const form = document.createElement('form');
134
- form.innerHTML += `<div><span data-query="total"></span><span data-query="Heading 2 == Low"></span></div>`;
134
+ form.innerHTML += `<div><input name="heading" value="Low" data-filter="Heading 2" /><span data-query="total"></span><span data-query="Heading 2 == Low"></span></div>`;
135
135
  tableModule.addDataAttributes(table);
136
+ tableModule.filterTable(table, form, document.createElement('div'));
136
137
  tableModule.populateDataQueries(table, form);
137
138
  test('should populate elements with the data-query attribute with the result of the corresponding query', () => {
138
139
  expect(form.querySelector('[data-query="total"]').textContent).toEqual('4');
@@ -14,28 +14,31 @@
14
14
  @use "components/tooltips.scss";
15
15
  @use "components/container.scss";
16
16
  @use "components/table.scss";
17
+ @use "components/tabs.scss";
17
18
  @use "foundations/links.scss";
18
- @use "components/buttons";
19
- @use "components/panel.scss";
19
+ @use "foundations/buttons";
20
+ @use "components/admin-panel.scss";
20
21
  @use "components/dialog.scss";
21
22
 
22
23
  @use "components/pagination.scss";
23
24
 
24
25
  // Bootstrap elements
25
- @import "../../node_modules/bootstrap/scss/_transitions.scss";
26
- @import "../../node_modules/bootstrap/scss/_badge.scss";
26
+ @import "../bootstrap/scss/_transitions.scss";
27
+ @import "../bootstrap/scss/_badge.scss";
27
28
 
28
29
  // Helpers
29
- //@import "../../node_modules/bootstrap/scss/helpers";
30
- @import "../../node_modules/bootstrap/scss/helpers/clearfix";
31
- //@import "../../node_modules/bootstrap/scss/helpers/colored-links";
32
- @import "../../node_modules/bootstrap/scss/helpers/ratio";
33
- @import "../../node_modules/bootstrap/scss/helpers/position";
34
- @import "../../node_modules/bootstrap/scss/helpers/stacks";
35
- @import "../../node_modules/bootstrap/scss/helpers/visually-hidden";
36
- //@import "../../node_modules/bootstrap/scss/helpers/stretched-link";
37
- @import "../../node_modules/bootstrap/scss/helpers/text-truncation";
38
- //@import "../../node_modules/bootstrap/scss/helpers/vr";
30
+ //@import "../bootstrap/scss/helpers";
31
+ @import "../bootstrap/scss/helpers/clearfix";
32
+ //@import "../bootstrap/scss/helpers/colored-links";
33
+ @import "../bootstrap/scss/helpers/ratio";
34
+ @import "../bootstrap/scss/helpers/position";
35
+ @import "../bootstrap/scss/helpers/stacks";
36
+ @import "../bootstrap/scss/helpers/visually-hidden";
37
+ //@import "../bootstrap/scss/helpers/stretched-link";
38
+ @import "../bootstrap/scss/helpers/text-truncation";
39
+ //@import "../bootstrap/scss/helpers/vr";
40
+
41
+ @import "helpers/max-height.scss";
39
42
 
40
43
  // Utilities
41
- @import "../../node_modules/bootstrap/scss/utilities/_api.scss";
44
+ @import "../bootstrap/scss/utilities/_api.scss";
@@ -1,10 +1,10 @@
1
1
  @use "_func" as *;
2
2
 
3
- @import "../../node_modules/bootstrap/scss/forms/labels";
4
- @import "../../node_modules/bootstrap/scss/forms/form-control";
5
- @import "../../node_modules/bootstrap/scss/forms/form-select";
6
- @import "../../node_modules/bootstrap/scss/forms/form-check";
7
- @import "../../node_modules/bootstrap/scss/forms/form-range";
8
- @import "../../node_modules/bootstrap/scss/forms/input-group";
9
- @import "../../node_modules/bootstrap/scss/forms/validation";
3
+ @import "../bootstrap/scss/forms/_labels";
4
+ @import "../bootstrap/scss/forms/_form-control";
5
+ @import "../bootstrap/scss/forms/_form-select";
6
+ @import "../bootstrap/scss/forms/_form-check";
7
+ @import "../bootstrap/scss/forms/_form-range";
8
+ @import "../bootstrap/scss/forms/_input-group";
9
+ @import "../bootstrap/scss/forms/_validation";
10
10
  @import "components/forms.scss";
@@ -1,7 +1,7 @@
1
1
  @use "sass:math";
2
2
  @use "sass:map";
3
3
 
4
- @import "../../../node_modules/bootstrap/scss/_functions.scss";
4
+ @import "../../bootstrap/scss/_functions";
5
5
 
6
6
  @function spacing($int){
7
7
  @return map.get($spacers, $int);
@@ -86,9 +86,8 @@
86
86
  @return $colour;
87
87
  }
88
88
 
89
- @function tint($colour, $percent)
90
- {
91
- @return $colour;
89
+ @function tint($colour, $percentage) {
90
+ @return mix(white, $colour, $percentage);
92
91
  }
93
92
  @function shade($colour, $percent)
94
93
  {
@@ -1,4 +1,4 @@
1
- @import "../../../node_modules/bootstrap/scss/mixins";
1
+ @import "../../bootstrap/scss/_mixins";
2
2
 
3
3
  @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
4
4
 
@@ -134,20 +134,10 @@
134
134
 
135
135
  @mixin reset-colours($compatible:$compatible) {
136
136
 
137
- --colour-body: var(--colour-body-theme);
138
- --colour-heading: var(--colour-primary);
139
- --colour-link: var(--colour-link-theme);
140
- --colour-hover: var(--colour-hover-theme);
141
- --colour-active: var(--colour-active-theme);
142
- //--colour-underline: var(--colour-underline);
143
- --colour-border: var(--colour-border-theme);
144
- --colour-brand: var(--colour-primary);
145
-
146
- --btn-bg: var(--colour-warning);
147
- --btn-text: var(--colour-primary);
148
- --btn-hover-text: var(--colour-primary);
149
- --btn-tertiary-bg: var(--colour-primary);
150
- --btn-tertiary-hover-text: white;
137
+ @each $color, $value in $non-theme-colors {
138
+
139
+ --colour-#{$color}: #{$value};
140
+ }
151
141
 
152
142
  .text-primary {
153
143
  color: var(--colour-primary)!important;
@@ -156,16 +146,8 @@
156
146
 
157
147
  @mixin invert-colours($compatible:$compatible) {
158
148
 
159
- --colour-body: #{$colour-inverted};
160
- --colour-heading: #{$colour-inverted};
161
- --colour-link: #{$colour-inverted};
162
- --colour-hover: #{$colour-inverted};
163
- --colour-border: #{$colour-inverted};
164
- --colour-brand: #{$colour-inverted};
165
-
166
- --btn-bg: #{$colour-inverted};
167
- --btn-text: var(--colour-primary);
168
- --btn-hover-text: var(--colour-heading);
169
- --btn-tertiary-bg: #{$colour-inverted};
170
- --btn-tertiary-hover-text: var(--colour-primary);
171
- }
149
+ @each $color, $value in $dark-mode-functional-colors {
150
+
151
+ --colour-#{$color}: #{$value};
152
+ }
153
+ }
@@ -1,6 +1,6 @@
1
1
  @use "functions" as *;
2
2
 
3
- @import "../../../node_modules/bootstrap/scss/utilities";
3
+ @import "../../bootstrap/scss/_utilities";
4
4
 
5
5
  // #region Sizing
6
6
  /* Enhance the max width utility to include fit-content which can come in handy for flex-box based layouts. */
@@ -104,7 +104,6 @@ $utilities: map-merge(
104
104
  // #endregion
105
105
 
106
106
  // #region Gradient colours
107
-
108
107
  $utilities: map-merge(
109
108
  $utilities,
110
109
  (
@@ -116,9 +115,9 @@ $utilities: map-merge(
116
115
  ),
117
116
  values:
118
117
  (
119
- "secondary": linear-gradient(var(--gradient-direction), var(--colour-secondary) 0, transparent 100%),
120
- "primary": linear-gradient(var(--gradient-direction), var(--colour-primary) 0, transparent 100%),
121
- "info": linear-gradient(var(--gradient-direction), var(--colour-info) 0, transparent 100%)
118
+ "success": linear-gradient(var(--gradient-direction), var(--colour-success-theme) 0, transparent 100%),
119
+ "primary": linear-gradient(var(--gradient-direction), var(--colour-primary-theme) 0, transparent 100%),
120
+ "info": linear-gradient(var(--gradient-direction), var(--colour-info-theme) 0, transparent 100%)
122
121
  )
123
122
  ),
124
123
  "colour": (
@@ -141,20 +140,95 @@ $utilities: map-merge(
141
140
  );
142
141
  $utilities: map-merge(
143
142
  $utilities,
144
- (
143
+ (
145
144
  "gradient-direction": (
146
145
  css-var: true,
147
146
  class: gradient-direction,
148
147
  values:
149
148
  (
150
149
  "left": 90deg,
151
- "right": -90deg,
152
- "up": 360deg
150
+ "angle": 135deg
153
151
  )
154
152
  )
155
153
  )
156
154
  );
155
+ // #endregion
157
156
 
157
+ // #region Tint helper classes
158
+ $utilities: map-merge(
159
+ $utilities,
160
+ (
161
+ "bg-opacity": (
162
+ css-var: true,
163
+ class: bg-opacity,
164
+ values:
165
+ (
166
+ "10": 0.1,
167
+ "20": 0.2,
168
+ "30": 0.3,
169
+ "40": 0.4,
170
+ "50": 0.5,
171
+ "60": 0.6,
172
+ "70": 0.7,
173
+ "80": 0.8,
174
+ "90": 0.9,
175
+ "100": 1
176
+ )
177
+ )
178
+ )
179
+ );
180
+ $utilities: map-merge(
181
+ $utilities,
182
+ (
183
+ "text-opacity": (
184
+ css-var: true,
185
+ class: text-opacity,
186
+ values:
187
+ (
188
+ "10": 0.1,
189
+ "20": 0.2,
190
+ "30": 0.3,
191
+ "40": 0.4,
192
+ "50": 0.5,
193
+ "60": 0.6,
194
+ "70": 0.7,
195
+ "80": 0.8,
196
+ "90": 0.9,
197
+ "100": 1
198
+ )
199
+ )
200
+ )
201
+ );
202
+ // #endregion
158
203
 
204
+ // #region Max height classes
205
+ $utilities: map-merge(
206
+ $utilities,
207
+ (
208
+ "max-heights": (
209
+ property: max-height,
210
+ class: mh,
211
+ values: (
212
+ "sm": #{rem(200)},
213
+ "md": #{rem(400)},
214
+ "lg": #{rem(600)}
215
+ )
216
+ )
217
+ )
218
+ );
219
+ // #endregion
159
220
 
160
- // #endregion
221
+ // #region Max height classes
222
+ $utilities: map-merge(
223
+ $utilities,
224
+ (
225
+ "container": (
226
+ property: container-type,
227
+ class: ct,
228
+ values: (
229
+ "inline": inline-size
230
+ )
231
+ )
232
+ )
233
+ );
234
+ // #endregion
@@ -1,6 +1,6 @@
1
1
  @use "sass:map";
2
- @import "../../../node_modules/bootstrap/scss/_variables.scss";
3
- @import "../../../node_modules/bootstrap/scss/_maps.scss";
2
+ @import "../../bootstrap/scss/_variables.scss";
3
+ @import "../../bootstrap/scss/_maps.scss";
4
4
 
5
5
  // #region Grid Breakpoints, layouts
6
6
  $grid-breakpoints: (
@@ -82,8 +82,9 @@ $success: #b4e6a5;
82
82
  $info: #1ebee6;
83
83
  $warning: #ffa500;
84
84
  $danger: #dc3545;
85
- $light: #ffd2d2;
85
+ $light: #EEEEEE;
86
86
  $dark: #46003c;
87
+ $canvas: #FCFCFC;
87
88
 
88
89
 
89
90
  // Functional/state variables
@@ -104,53 +105,45 @@ $grays: ();
104
105
  $theme-colors: ();
105
106
  $theme-colors: map-merge((
106
107
  "primary": $primary,
107
- "secondary": $secondary,
108
- "success": $success,
108
+ "secondary": $secondary,
109
109
  "info": $info,
110
110
  "warning": $warning,
111
+ "success": $success,
111
112
  "danger": $danger,
112
- "light": $light,
113
113
  "dark": $dark,
114
- "admin": #f0f0f0
114
+ "light": $light,
115
+ "canvas": $canvas,
116
+ "white": #FCFCFC,
115
117
  ), $theme-colors);
116
118
 
117
-
118
- $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
119
-
120
-
121
- @each $color, $value in $theme-colors-rgb {
119
+ @each $color, $value in $theme-colors {
122
120
 
123
121
  $vars: map-merge((
124
- --colour-#{$color}: rgba($value,var(--alpha, 1))
122
+ --colour-#{$color}: $value,
123
+ --colour-#{$color}-theme: $value
125
124
  ), $vars);
126
125
  }
127
126
 
127
+
128
+
128
129
  // RGB Theme colours
129
130
  @function show-css-var($identifier) {
130
131
 
131
- @if $compatible == "true" {
132
- @return #{map-get($theme-colors, #{$identifier})};
133
- }
134
-
135
132
  @return var(--colour-#{$identifier});
136
133
  }
137
134
  @function show-css-var-text($identifier) {
138
135
 
139
- @if $compatible == "true" {
140
- @return #{map-get($theme-colors, #{$identifier})};
141
- }
142
-
143
136
  @return var(--colour-#{$identifier});
144
137
  }
145
138
 
146
139
  $utilities-colors: $theme-colors-rgb;
147
140
 
148
- $utilities-colors: map-merge(
141
+ $utilities-text: map-merge(
149
142
  $utilities-colors,
150
143
  (
151
- "black": to-rgb($black),
152
- "white": to-rgb($white),
153
- "body": to-rgb($body-color)
144
+ "black": $black,
145
+ "muted": $colour-muted,
146
+ "body": $body-color
154
147
  )
155
148
  );
156
149
 
@@ -162,38 +155,76 @@ $utilities-text-colors: map-loop($utilities-text, show-css-var-text, "$key");
162
155
  // Colours that we want setting but not used for Bootstraps mixins, i.e. .text-primary, .bg-muted
163
156
  $non-theme-colors: ();
164
157
  $non-theme-colors: map-merge((
165
- "black": #000000,
166
- "white": #ffffff,
167
158
  "muted": $colour-muted,
168
- "border": $colour-border,
169
- "border-light": #eeeeee,
170
- "link": $colour-link,
171
- "focus": $colour-focus,
172
- "hover": $colour-hover,
173
- "active": $colour-active,
174
- "selected": $colour-selected,
175
- "body": $colour-body,
176
- "inverted": $colour-inverted
159
+ "body": $body-color,
160
+ "border": $colour-border,
161
+ "link": var(--colour-primary-theme),
162
+ "brand": var(--colour-primary),
163
+ "underline": var(--colour-secondary),
164
+ "heading": var(--colour-primary),
165
+ "focus": var(--colour-primary-theme),
166
+ "hover": var(--colour-primary-theme),
167
+ "active": var(--colour-primary-theme),
168
+ "selected": var(--colour-info),
169
+ "inverted": $canvas,
170
+ "btn": var(--colour-primary-theme),
171
+ "btn-bg": var(--colour-warning),
172
+ "btn-border": var(--colour-warning),
173
+ "btn-bg-hover": transparent,
174
+ "btn-hover": var(--colour-primary-theme),
175
+ "btn-secondary": var(--colour-primary-theme),
176
+ "btn-secondary-border": var(--colour-primary-theme),
177
+ "btn-secondary-bg": transparent,
178
+ "btn-secondary-bg-hover": var(--colour-primary-theme),
179
+ "btn-secondary-hover": var(--colour-inverted),
180
+ "canvas-2": var(--colour-canvas)
177
181
  ), $non-theme-colors);
178
182
 
179
183
  @each $color, $value in $non-theme-colors {
180
184
 
181
185
  $vars: map-merge((
182
- --colour-#{$color}-theme: #{$value},
183
- --colour-#{$color}: #{'var(--colour-'+$color+'-theme)'}
186
+ --colour-#{$color}: #{$value}
184
187
  ), $vars);
185
188
  }
186
189
 
187
- $vars: map-merge((
188
- "--colour-white-theme": rgba(to-rgb(#ffffff),var(--alpha,1)),
189
- "--colour-black-theme": rgba(to-rgb(#000000),var(--alpha,1)),
190
- "--colour-body": rgba(to-rgb($colour-body),var(--alpha,1)),
191
- "--colour-white": rgba(to-rgb(#ffffff),var(--alpha,1)),
192
- "--colour-black": rgba(to-rgb(#000000),var(--alpha,1)),
193
- "--colour-admin-theme": #f0f0f0
194
- ), $vars);
195
190
 
196
- $gradient: linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);
191
+ $dark-mode-colors: (
192
+
193
+ "primary": #B3C1C5,
194
+ "warning": #ffb733,
195
+ "info": #35C5E9,
196
+ "success": #B4E6A5,
197
+ "danger": #E7727D,
198
+ "dark": #B599B1,
199
+ "light": $light,
200
+ );
201
+
202
+ $dark-mode-functional-colors: (
203
+
204
+ "canvas": #262626,
205
+ "canvas-2": #313131,
206
+ "body": #BFBFBF,
207
+ "heading": var(--colour-white),
208
+ "link": var(--colour-white),
209
+ "hover": var(--colour-white),
210
+ "active": var(--colour-white),
211
+ "border": var(--colour-white),
212
+ "brand": var(--colour-white),
213
+ "btn": #{$primary},
214
+ "btn-border": var(--colour-white),
215
+ "btn-bg": var(--colour-white),
216
+ "btn-hover": var(--colour-white),
217
+ "btn-secondary": var(--colour-white),
218
+ "btn-secondary-border": var(--colour-white),
219
+ "btn-secondary-bg": transparent,
220
+ "btn-secondary-bg-hover": var(--colour-white),
221
+ "btn-secondary-hover": var(--colour-primary-theme)
222
+ );
223
+
224
+
225
+ // Kill bootstrap colors
226
+ $colors: ();
227
+ $theme-colors-rgb: ();
197
228
 
198
229
  // #endregion
199
230
 
@@ -320,7 +351,7 @@ $btn-padding-x-md: $btn-padding-x;
320
351
 
321
352
  // #region Forms
322
353
  // label
323
- $form-label-font-size: $h5-font-size;
354
+ $form-label-font-size: rem(18);
324
355
  $form-label-font-weight: bold;
325
356
  $form-label-color: var(--colour-heading);
326
357
  $form-label-margin-bottom: 0.25rem;
@@ -411,7 +442,21 @@ $icon-arrow: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' wid
411
442
  $icon-close: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
412
443
  $icon-tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 0c-8.836 0-16 7.164-16 16s7.164 16 16 16 16-7.164 16-16-7.164-16-16-16zM13.52 23.383l-7.362-7.363 2.828-2.828 4.533 4.535 9.617-9.617 2.828 2.828-12.444 12.445z'/></svg>");
413
444
  $icon-question: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'><path d='M14 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-3c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5zM18 11c0-2.859-3-5-5.688-5-2.547 0-4.453 1.094-5.797 3.328-0.141 0.219-0.078 0.5 0.125 0.656l2.063 1.563c0.078 0.063 0.187 0.094 0.297 0.094 0.141 0 0.297-0.063 0.391-0.187 0.734-0.938 1.047-1.219 1.344-1.437 0.266-0.187 0.781-0.375 1.344-0.375 1 0 1.922 0.641 1.922 1.328 0 0.812-0.422 1.219-1.375 1.656-1.109 0.5-2.625 1.797-2.625 3.313v0.562c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5v0c0-0.359 0.453-1.125 1.188-1.547 1.188-0.672 2.812-1.578 2.812-3.953zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z'/></svg>");
414
- $icon-warning: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'><path d='M12 2c6.625 0 12 5.375 12 12s-5.375 12-12 12-12-5.375-12-12 5.375-12 12-12zM14 21.484v-2.969c0-0.281-0.219-0.516-0.484-0.516h-3c-0.281 0-0.516 0.234-0.516 0.516v2.969c0 0.281 0.234 0.516 0.516 0.516h3c0.266 0 0.484-0.234 0.484-0.516zM13.969 16.109l0.281-9.703c0-0.109-0.047-0.219-0.156-0.281-0.094-0.078-0.234-0.125-0.375-0.125h-3.437c-0.141 0-0.281 0.047-0.375 0.125-0.109 0.063-0.156 0.172-0.156 0.281l0.266 9.703c0 0.219 0.234 0.391 0.531 0.391h2.891c0.281 0 0.516-0.172 0.531-0.391z'></path></svg>");
445
+
446
+ $icon-warning: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z'/></svg>");
447
+
448
+ $icon-filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'><path d='M0,28.5a.5.5,0,0,0,.5.5H2.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1H7.45a2.5,2.5,0,0,0-4.9,0H.5A.5.5,0,0,0,0,28.5Zm3.5,0A1.5,1.5,0,1,1,5,30,1.5,1.5,0,0,1,3.5,28.5Zm6-5A1.5,1.5,0,1,1,11,25a1.5,1.5,0,0,1-1.5-1.5ZM11,21a2.5,2.5,0,0,0-2.45,2H.5a.5.5,0,0,0,0,1H8.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1H13.45A2.5,2.5,0,0,0,11,21ZM6,20a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,6,20Zm2.45-2a2.5,2.5,0,0,0-4.9,0H.5a.5.5,0,0,0,0,1H3.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1Z' transform='translate(0 -16)'/></svg>");
449
+
450
+ $icon-low: url("data:image/svg+xml,<svg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'><path d='M20 12.1429H2C1.42857 12.1429 1 11.5714 1 11C1 10.4286 1.42857 9.85715 2.14286 9.85715H20C20.5714 9.85715 21 10.4286 21 11C21 11.5714 20.5714 12.1429 20 12.1429Z' /></svg>");
451
+
452
+ $icon-medium: url("data:image/svg+xml,<svg viewBox='0 0 20 8' xmlns='http://www.w3.org/2000/svg'><path d='M19.0001 2.28572H1.14286C0.428573 2.28572 0 1.71429 0 1.14286C0 0.571431 0.428573 0 1.14286 0H19.0001C19.5715 0 20.0001 0.571431 20.0001 1.14286C20.0001 1.71429 19.5715 2.28572 19.0001 2.28572ZM20.0001 6.85716C20.0001 6.28573 19.5715 5.7143 18.8572 5.7143H1.14286C0.428573 5.7143 0 6.28573 0 6.85716C0 7.42859 0.428573 8.00002 1.14286 8.00002H19.0001C19.5715 8.00002 20.0001 7.42859 20.0001 6.85716Z'/></svg>");
453
+
454
+ $icon-high: url("data:image/svg+xml,<svg viewBox='0 0 20 22' xmlns='http://www.w3.org/2000/svg'><path d='M17.4648 11.7747L10 4.30985L2.53522 11.7747C1.97184 12.338 0.985918 12.338 0.422536 11.7747C-0.140845 11.2113 -0.140845 10.3662 0.422536 9.80282L8.87326 1.3521C9.43664 0.78872 10.2817 0.78872 10.8451 1.3521L19.4367 9.94367C20 10.5071 20 11.3521 19.4367 11.9155C19.0141 12.338 18.0282 12.338 17.4648 11.7747Z' /><path d='M17.4649 20.6479L10 13.0422L2.53524 20.5071C1.97186 21.0704 1.12679 21.0704 0.563405 20.5071C2.37375e-05 19.9437 2.37375e-05 19.0986 0.563405 18.5352L9.01413 10.0845C9.57751 9.52111 10.4226 9.52111 10.986 10.0845L19.5775 18.6761C20.1409 19.2394 20.1409 20.0845 19.5775 20.6479C19.0142 21.2113 18.0282 21.2113 17.4649 20.6479Z' /></svg>");
455
+
456
+
457
+ $icon-flag: url("data:image/svg+xml, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M15.578.242a1.287,1.287,0,0,0-1.3-.034,8.118,8.118,0,0,1-3.369.873A7.341,7.341,0,0,1,8.537.609,7.826,7.826,0,0,0,5.788.057,11.873,11.873,0,0,0,1,1.261V.548A.477.477,0,0,0,.5.076.477.477,0,0,0,0,.548v15a.5.5,0,0,0,1,0V12.269a11.324,11.324,0,0,1,4.65-1.217,11.982,11.982,0,0,1,3.1.5,12.171,12.171,0,0,0,3.1.5,9.326,9.326,0,0,0,3.472-.722,1,1,0,0,0,.637-.931L16,1.058A.943.943,0,0,0,15.578.242Zm-.587,10.149a8.588,8.588,0,0,1-3.134.653A11.219,11.219,0,0,1,9,10.579a12.948,12.948,0,0,0-3.35-.525,11.152,11.152,0,0,0-4.559,1.081L1,11.175V2.34l.875-.355a10.676,10.676,0,0,1,3.912-.928,7.465,7.465,0,0,1,2.444.476,8.261,8.261,0,0,0,2.678.519A9.943,9.943,0,0,0,15,1.048Z'/></svg>");
458
+
459
+
415
460
 
416
461
  $vars: map-merge((
417
462
  --icon-blank: #{escape-svg($icon-blank)},
@@ -420,7 +465,12 @@ $vars: map-merge((
420
465
  --icon-close: #{escape-svg($icon-close)},
421
466
  --icon-tick: #{escape-svg($icon-tick)},
422
467
  --icon-question: #{escape-svg($icon-question)},
423
- --icon-warning: #{escape-svg($icon-warning)}
468
+ --icon-warning: #{escape-svg($icon-warning)},
469
+ --icon-filter: #{escape-svg($icon-filter)},
470
+ --icon-high: #{escape-svg($icon-high)},
471
+ --icon-medium: #{escape-svg($icon-medium)},
472
+ --icon-low: #{escape-svg($icon-low)},
473
+ --icon-flag: #{escape-svg($icon-flag)}
424
474
  ), $vars);
425
475
  // #endregion
426
476
 
@@ -501,10 +551,13 @@ $td-mw-px: 120;
501
551
  $td-mw: #{rem($td-mw-px)};
502
552
  $table-padding-px: 32;
503
553
  $table-padding: #{rem($table-padding-px)};
504
- $table-mh-sm-px: 200;
505
- $table-mh-sm: #{rem($table-mh-sm-px)};
506
- $table-mh-md-px: 400;
507
- $table-mh-md: #{rem($table-mh-md-px)};
508
- $table-mh-lg-px: 600;
509
- $table-mh-lg: #{rem($table-mh-lg-px)};
510
- // #endregion
554
+ // #endregion
555
+
556
+ // #region UT vars
557
+ $ut-mh-sm-px: 200;
558
+ $ut-mh-sm: #{rem($ut-mh-sm-px)};
559
+ $ut-mh-md-px: 400;
560
+ $ut-mh-md: #{rem($ut-mh-md-px)};
561
+ $ut-mh-lg-px: 600;
562
+ $ut-mh-lg: #{rem($ut-mh-lg-px)};
563
+ // #endregion
@@ -3,28 +3,14 @@
3
3
 
4
4
  $test_colors: ();
5
5
  $test_colors: map-merge((
6
- "primary": rgba(0, 49, 60, var(--alpha, 1)),
7
- "secondary": rgba(180, 230, 165, var(--alpha, 1)),
8
- "success": rgba(180, 230, 165, var(--alpha, 1)),
9
- "info": rgba(30, 190, 230, var(--alpha, 1)),
10
- "warning": rgba(255, 165, 0, var(--alpha, 1)),
11
- "danger": rgba(220, 53, 69, var(--alpha, 1)),
12
- "light": rgba(255, 210, 210, var(--alpha, 1)),
13
- "dark": rgba(70, 0, 60, var(--alpha, 1)),
14
- "muted-theme": #9d9d9d,
15
- "muted": var(--colour-muted-theme),
16
- "border-theme": #D8D8D8,
17
- "border": var(--colour-border-theme),
18
- "link-theme": #00313c,
19
- "link": var(--colour-link-theme),
20
- "focus-theme": #000000,
21
- "focus": var(--colour-focus-theme),
22
- "hover-theme": #000000,
23
- "hover": var(--colour-hover-theme),
24
- "active-theme": #b4e6a5,
25
- "active": var(--colour-active-theme),
26
- "selected-theme": #1ebee6,
27
- "selected": var(--colour-selected-theme)
6
+ "primary":#00313c,
7
+ "secondary":#b4e6a5,
8
+ "success":#b4e6a5,
9
+ "info":#1ebee6,
10
+ "warning":#ffa500,
11
+ "danger":#dc3545,
12
+ "light":#EEEEEE,
13
+ "dark":#46003c
28
14
  ), $test_colors);
29
15
 
30
16
 
@@ -178,7 +178,7 @@
178
178
  color: tint(#ffffff, 50);
179
179
  }
180
180
  @include expect {
181
- color: #ffffff;
181
+ color: white;
182
182
  }
183
183
  }
184
184
  }
@@ -27,6 +27,9 @@
27
27
  @include transition($accordion-transition);
28
28
 
29
29
  --marker-bg: var(--colour-secondary);
30
+
31
+
32
+
30
33
  cursor: pointer;
31
34
  position: relative;
32
35
  max-width: 100%;
@@ -57,6 +60,8 @@
57
60
  overflow: hidden;
58
61
  background: var(--marker-bg);
59
62
  border-radius: 100%;
63
+
64
+
60
65
  }
61
66
 
62
67
  // Accordion icon
@@ -74,6 +79,14 @@
74
79
 
75
80
  @include transition($accordion-icon-transition);
76
81
  transform: rotate(90deg);
82
+
83
+
84
+ @media (forced-colors: active) {
85
+ content: "\25BA";
86
+ mask-image: none;
87
+ -webkit-mask-image: none;
88
+ }
89
+
77
90
  }
78
91
 
79
92
  &:hover,