@synergy-design-system/mcp 1.35.0 → 1.36.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.
- package/CHANGELOG.md +10 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-card/component.angular.ts +14 -0
- package/metadata/packages/components/components/syn-card/component.custom.styles.ts +5 -0
- package/metadata/packages/components/components/syn-card/component.ts +4 -0
- package/metadata/packages/components/components/syn-card/component.vue +6 -0
- package/metadata/packages/components/static/CHANGELOG.md +10 -0
- package/metadata/static/components/syn-card/docs.md +41 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.36.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1128](https://github.com/synergy-design-system/synergy-design-system/pull/1128) [`7de2441`](https://github.com/synergy-design-system/synergy-design-system/commit/7de244110cf55bb3788e26f65704194bfc861412) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-09
|
|
8
|
+
|
|
9
|
+
feat: ✨ Add a new `shadow` propertry to `<syn-card>` (#1107)
|
|
10
|
+
|
|
11
|
+
Using `<syn-card shadow></syn-card>` will draw the card with a shadow. This can be used when the card has to stand out visually, for example in dashboards.
|
|
12
|
+
|
|
3
13
|
## 1.35.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/metadata/checksum.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
0faf5c48a9a48492eff9c2d0f5607fa0
|
|
@@ -52,6 +52,20 @@ export class SynCardComponent {
|
|
|
52
52
|
this._ngZone = ngZone;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Draws the card with a shadow.
|
|
57
|
+
* Can be used when the card has to stand out visually, for example in dashboards.
|
|
58
|
+
*/
|
|
59
|
+
@Input()
|
|
60
|
+
set shadow(v: '' | SynCard['shadow']) {
|
|
61
|
+
this._ngZone.runOutsideAngular(
|
|
62
|
+
() => (this.nativeElement.shadow = v === '' || v),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
get shadow(): SynCard['shadow'] {
|
|
66
|
+
return this.nativeElement.shadow;
|
|
67
|
+
}
|
|
68
|
+
|
|
55
69
|
/**
|
|
56
70
|
* Draws the card with sharp edges.
|
|
57
71
|
* Can be used e.g.
|
|
@@ -43,6 +43,9 @@ export default class SynCard extends SynergyElement {
|
|
|
43
43
|
|
|
44
44
|
private readonly hasSlotController = new HasSlotController(this, 'footer', 'header', 'image');
|
|
45
45
|
|
|
46
|
+
/** Draws the card with a shadow. Can be used when the card has to stand out visually, for example in dashboards. */
|
|
47
|
+
@property({ type: Boolean, reflect: true }) shadow = false;
|
|
48
|
+
|
|
46
49
|
/** Draws the card with sharp edges. Can be used e.g. when nesting multiple syn-cards to create hierarchy. */
|
|
47
50
|
@property({ type: Boolean, reflect: true }) sharp = false;
|
|
48
51
|
|
|
@@ -52,6 +55,7 @@ export default class SynCard extends SynergyElement {
|
|
|
52
55
|
part="base"
|
|
53
56
|
class=${classMap({
|
|
54
57
|
card: true,
|
|
58
|
+
'card--shadow': this.shadow,
|
|
55
59
|
'card--sharp': this.sharp,
|
|
56
60
|
'card--has-footer': this.hasSlotController.test('footer'),
|
|
57
61
|
'card--has-image': this.hasSlotController.test('image'),
|
|
@@ -41,6 +41,12 @@ defineExpose({
|
|
|
41
41
|
|
|
42
42
|
// Map attributes
|
|
43
43
|
const props = defineProps<{
|
|
44
|
+
/**
|
|
45
|
+
* Draws the card with a shadow.
|
|
46
|
+
* Can be used when the card has to stand out visually, for example in dashboards.
|
|
47
|
+
*/
|
|
48
|
+
shadow?: SynCard['shadow'];
|
|
49
|
+
|
|
44
50
|
/**
|
|
45
51
|
* Draws the card with sharp edges.
|
|
46
52
|
* Can be used e.g.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.72.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1128](https://github.com/synergy-design-system/synergy-design-system/pull/1128) [`7de2441`](https://github.com/synergy-design-system/synergy-design-system/commit/7de244110cf55bb3788e26f65704194bfc861412) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2025-12-09
|
|
8
|
+
|
|
9
|
+
feat: ✨ Add a new `shadow` propertry to `<syn-card>` (#1107)
|
|
10
|
+
|
|
11
|
+
Using `<syn-card shadow></syn-card>` will draw the card with a shadow. This can be used when the card has to stand out visually, for example in dashboards.
|
|
12
|
+
|
|
3
13
|
## 2.71.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -271,3 +271,44 @@ Use the sharp variant attribute for the Card to Use a different style.
|
|
|
271
271
|
}
|
|
272
272
|
</style>
|
|
273
273
|
```
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Card With Shadow
|
|
278
|
+
|
|
279
|
+
Use the shadow attribute to add a shadow.
|
|
280
|
+
|
|
281
|
+
```html
|
|
282
|
+
<div class="shadow-card-wrapper">
|
|
283
|
+
<syn-card shadow="">
|
|
284
|
+
<img
|
|
285
|
+
slot="image"
|
|
286
|
+
src="https://synergy-design-system.github.io/card-example.jpg"
|
|
287
|
+
alt="Multiple persons having lunch in SICK Academy"
|
|
288
|
+
/>
|
|
289
|
+
These are some happy employees, but not just any employees. These are SICK
|
|
290
|
+
employees.
|
|
291
|
+
</syn-card>
|
|
292
|
+
<syn-card shadow="" sharp="">
|
|
293
|
+
<img
|
|
294
|
+
slot="image"
|
|
295
|
+
src="https://synergy-design-system.github.io/card-example.jpg"
|
|
296
|
+
alt="Multiple persons having lunch in SICK Academy"
|
|
297
|
+
/>
|
|
298
|
+
These are some happy employees, but not just any employees. These are SICK
|
|
299
|
+
employees.
|
|
300
|
+
</syn-card>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<style>
|
|
304
|
+
.shadow-card-wrapper {
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: row;
|
|
307
|
+
gap: var(--syn-spacing-large);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.shadow-card-wrapper syn-card {
|
|
311
|
+
max-width: 400px;
|
|
312
|
+
}
|
|
313
|
+
</style>
|
|
314
|
+
```
|
package/package.json
CHANGED
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"serve-handler": "^6.1.6",
|
|
29
29
|
"ts-jest": "^29.4.0",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"@synergy-design-system/components": "2.
|
|
31
|
+
"@synergy-design-system/components": "2.72.0",
|
|
32
32
|
"@synergy-design-system/docs": "0.1.0",
|
|
33
|
-
"@synergy-design-system/
|
|
33
|
+
"@synergy-design-system/fonts": "1.0.0",
|
|
34
34
|
"@synergy-design-system/styles": "1.9.0",
|
|
35
|
-
"@synergy-design-system/
|
|
36
|
-
"@synergy-design-system/
|
|
35
|
+
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
36
|
+
"@synergy-design-system/tokens": "^2.45.0"
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"directory": "packages/mcp"
|
|
68
68
|
},
|
|
69
69
|
"type": "module",
|
|
70
|
-
"version": "1.
|
|
70
|
+
"version": "1.36.0",
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
|
|
73
73
|
"build:all": "pnpm run build && pnpm run build:storybook",
|