@softwareone/spi-sv5-library 1.7.5 → 1.7.7

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.
@@ -2,8 +2,13 @@
2
2
  interface FooterProps {
3
3
  homeUrl?: string;
4
4
  logoUrl?: string;
5
+ documentationUrl?: string;
5
6
  }
6
- let { homeUrl = '/', logoUrl = '/softwareone-logo-white.svg' }: FooterProps = $props();
7
+ let {
8
+ homeUrl = '/',
9
+ logoUrl = '/softwareone-logo-white.svg',
10
+ documentationUrl = 'https://softwareone-internal.atlassian.net/wiki/spaces/ATM/pages/17961910574/Services+Portal+BackOffice'
11
+ }: FooterProps = $props();
7
12
  </script>
8
13
 
9
14
  <footer class="footer-section">
@@ -16,8 +21,8 @@
16
21
  </li>
17
22
  <li>
18
23
  <a
19
- href="https://softwareone.atlassian.net/wiki/spaces/MA/pages/4642996240/GDAP+Manual"
20
- title="GDAP Manual"
24
+ href={documentationUrl}
25
+ title="Service Portal BackOffice"
21
26
  target="_blank"
22
27
  rel="noopener noreferrer">Documentation</a
23
28
  >
@@ -1,6 +1,7 @@
1
1
  interface FooterProps {
2
2
  homeUrl?: string;
3
3
  logoUrl?: string;
4
+ documentationUrl?: string;
4
5
  }
5
6
  declare const Footer: import("svelte").Component<FooterProps, {}, "">;
6
7
  type Footer = ReturnType<typeof Footer>;
@@ -95,8 +95,10 @@
95
95
 
96
96
  const getErrors = (
97
97
  errors: ValidationErrors<Record<string, unknown>>,
98
- tained: TaintedFields<Record<string, unknown>>
98
+ tained: TaintedFields<Record<string, unknown>> | undefined
99
99
  ) => {
100
+ if (!tained) return {} as FormError<Schema>;
101
+
100
102
  const errorEntries = Object.entries(errors)
101
103
  .filter(([field]) => Object.hasOwn(tained, field))
102
104
  .map(([field, error]) => [field, error && '_errors' in error ? error._errors : error]);
@@ -135,7 +137,7 @@
135
137
  ) {
136
138
  $errors = getErrors(
137
139
  $superFormErrors,
138
- untrack(() => $superFormTained!)
140
+ untrack(() => $superFormTained)
139
141
  );
140
142
  }
141
143
  });
@@ -81,7 +81,7 @@
81
81
  }
82
82
 
83
83
  h2 {
84
- font-weight: bold;
84
+ font-weight: 500;
85
85
  }
86
86
 
87
87
  .text-description {
@@ -34,8 +34,7 @@
34
34
  }
35
35
 
36
36
  .home-container {
37
- --black-1: #434952;
38
- --black-2: #273444;
37
+ --black: #000;
39
38
  --white: #fff;
40
39
  }
41
40
 
@@ -63,18 +62,31 @@
63
62
  gap: 16px;
64
63
  padding: 12px;
65
64
  border-radius: 16px;
66
- background: var(--black-1);
67
- transition: background 0.2s ease-in-out;
65
+ background: var(--white);
66
+ transition:
67
+ box-shadow 0.2s ease-in-out,
68
+ transform 0.2s ease-in-out;
69
+ box-shadow:
70
+ 0 1px 16px 0 rgba(107, 113, 128, 0.1),
71
+ 0 1px 3px 0 rgba(107, 113, 128, 0.2);
72
+
73
+ &:hover {
74
+ transform: translateY(-2px);
75
+ box-shadow:
76
+ 0 4px 20px 0 rgba(71, 42, 255, 0.2),
77
+ 0 2px 6px 0 rgba(107, 113, 128, 0.25);
78
+ }
68
79
 
69
80
  > img {
70
81
  width: 36px;
71
82
  height: 36px;
72
83
  margin: auto 0;
73
- filter: invert(100%);
84
+ filter: invert(27%) sepia(99%) saturate(4729%) hue-rotate(240deg) brightness(101%)
85
+ contrast(106%);
74
86
  }
75
87
 
76
88
  > div {
77
- color: var(--white);
89
+ color: var(--black);
78
90
 
79
91
  > h2 {
80
92
  padding-bottom: 8px;
@@ -89,8 +101,4 @@
89
101
  }
90
102
  }
91
103
  }
92
-
93
- .home-container > .home-item:hover {
94
- background: var(--black-2);
95
- }
96
104
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwareone/spi-sv5-library",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Svelte components",
5
5
  "keywords": [
6
6
  "svelte",