barbican-reset 3.44.0 → 3.45.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.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <br-card class="confirm-done">
3
- <br-done-icon />
3
+ <br-done-icon class="margin-left-right-auto" />
4
4
  <br-card-title class="title">Done</br-card-title>
5
5
  <br-card-text v-if="$slots.default" class="margin-top-1">
6
6
  <slot />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <br-card class="confirm-email">
3
- <br-email-icon />
3
+ <br-email-icon class="margin-left-right-auto" />
4
4
  <br-card-title v-if="$slots.title" class="title">
5
5
  <slot name="title" />
6
6
  </br-card-title>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "3.44.0",
3
+ "version": "3.45.0",
4
4
  "description": "Shared design system for Barbican projects, providing SCSS utilities, animations, icons, Vue components, and JS helpers for consistent styling and behaviour.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -47,6 +47,7 @@
47
47
  .br-form-select-link:hover {
48
48
  background-color: var(--background-color-form-select-link-focus);
49
49
  outline-offset: var(--outline-inset-lg);
50
+ outline-width: var(--border-width-sm);
50
51
  outline-color: inherit;
51
52
  outline-style: dashed;
52
53
  }
@@ -32,4 +32,9 @@ $iterations: (
32
32
  margin-right: #{$value}rem;
33
33
  margin-left: #{$value}rem;
34
34
  }
35
+ }
36
+
37
+ .margin-left-right-auto {
38
+ margin-right: auto;
39
+ margin-left: auto;
35
40
  }
@@ -103,12 +103,6 @@
103
103
  @mixin br-form-radio {
104
104
  display: inline-flex;
105
105
 
106
- /// @TODO: block variant
107
-
108
- // &:not(:last-child) {
109
- // margin-bottom: var(--margin-sm);
110
- // }
111
-
112
106
  .br-form-label {
113
107
  @include br-form-radio--label;
114
108
  }
@@ -12,7 +12,6 @@
12
12
  color: var(--color-card-membership);
13
13
  border-radius: 0.75rem;
14
14
  border-style: solid;
15
- margin-top: 1rem;
16
15
  width: 100%;
17
16
  }
18
17
 
@@ -27,12 +27,13 @@
27
27
  background-color: var(--color-black-5-lighten);
28
28
  border-color: var(--color-black-25-lighten);
29
29
  border-radius: var(--border-radius-md);
30
+ border-width: var(--border-width-sm);
30
31
  color: var(--color-black-60-lighten);
31
32
  padding: var(--padding-lg);
32
- border-width: var(--border-width-sm);
33
33
  font-family: inherit;
34
34
  border-style: solid;
35
35
  font-size: inherit;
36
+ min-width: 0;
36
37
 
37
38
  &:not(:disabled) {
38
39
  @include input-focus {
@@ -4,6 +4,7 @@ let stringFormats = {
4
4
  date: {
5
5
  sm: 'yyyy-LL-dd',
6
6
  md: 'ccc d LLL',
7
+ md_inc_year: 'ccc d LLL yyyy',
7
8
  },
8
9
  time: {
9
10
  sm: 'ha',
@@ -58,6 +59,12 @@ let formatSmReverseDate = (value, separator) => DateTime.fromISO(value).toFormat
58
59
  */
59
60
  let formatMdDate = (value) => DateTime.fromISO(value).toFormat(stringFormats.date.md)
60
61
 
62
+ /**
63
+ * @param {string} value - ISO date string
64
+ * @returns {string} e.g. "Tue 24 Mar 2026"
65
+ */
66
+ let formatMdIncYearDate = (value) => DateTime.fromISO(value).toFormat(stringFormats.date.md_inc_year)
67
+
61
68
  /**
62
69
  * @param {any} n - Day of month
63
70
  * @returns {string} e.g. "1st", "2nd", "3rd", "4th"
@@ -138,6 +145,7 @@ let formatDate = {
138
145
  }
139
146
  },
140
147
  md: (value) => formatMdDate(value),
148
+ md_inc_year: (value) => formatMdIncYearDate(value),
141
149
  lg: (value) => formatLgDate(value),
142
150
  }
143
151
 
@@ -1,32 +0,0 @@
1
- @use "../mixins/breakpoints" as *;
2
-
3
- $colors: (
4
- "member": var(--color-brand-membership),
5
- "member-plus": var(--color-donor-member-plus),
6
- "patron": var(--color-donor-patron),
7
- "premier-patron": var(--color-donor-patron),
8
- "principal-patron": var(--color-donor-principal-patron),
9
- "directors-circle": var(--color-donor-principal-patron),
10
- "young-barbican": var(--color-brand-young-barbican),
11
- );
12
-
13
- $gradients: (
14
- "member-plus": linear-gradient(var(--gradient-angle-membership), var(--gradient-member-plus)),
15
- "patron": linear-gradient(var(--gradient-angle-membership), var(--gradient-patron)),
16
- "premier-patron": linear-gradient(var(--gradient-angle-membership), var(--gradient-premier-patron)),
17
- "principal-patron": linear-gradient(var(--gradient-angle-membership), var(--gradient-principal-patron)),
18
- "directors-circle": linear-gradient(var(--gradient-angle-membership), var(--gradient-directors-circle)),
19
- "young-barbican": linear-gradient(var(--gradient-angle-membership), var(--gradient-young-barbican)),
20
- );
21
-
22
- @each $name, $value in $colors {
23
- .br-card.membership-new.#{$name} {
24
- background-color: #{$value};
25
- }
26
- }
27
-
28
- @each $name, $value in $gradients {
29
- .br-card.membership-new.#{$name} {
30
- background-image: #{$value};
31
- }
32
- }