@designsystem-se/af 35.3.1 → 35.4.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 (42) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-chart-line.js +1 -1
  3. package/components/digi-code-block.js +1 -1
  4. package/components/digi-code-example.js +1 -1
  5. package/components/digi-info-card.js +1 -1
  6. package/components/digi-link-button.js +3 -1
  7. package/components/p-472bc7d3.js +129 -0
  8. package/custom-elements.json +6 -2
  9. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  10. package/dist/cjs/digi-bar-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/digi-chart-line.cjs.entry.js +1 -1
  12. package/dist/cjs/digi-code-block_3.cjs.entry.js +1 -1
  13. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  14. package/dist/cjs/digi-link-button.cjs.entry.js +2 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/_chart/bar-chart/bar-chart.css +13 -19
  17. package/dist/collection/components/_chart/chart-line/chart-line.css +19 -23
  18. package/dist/collection/components/_code/code-block/code-block.css +2 -2
  19. package/dist/collection/components/_info-card/info-card/info-card.js +5 -5
  20. package/dist/collection/components/_link/link-button/link-button.js +24 -1
  21. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  22. package/dist/digi-arbetsformedlingen/p-07fd5ccf.entry.js +1 -0
  23. package/dist/digi-arbetsformedlingen/p-5aae7437.entry.js +1 -0
  24. package/dist/digi-arbetsformedlingen/{p-c04b06a2.entry.js → p-5ac3d7a9.entry.js} +1 -1
  25. package/dist/digi-arbetsformedlingen/{p-f1a6524e.entry.js → p-83b3f053.entry.js} +1 -1
  26. package/dist/digi-arbetsformedlingen/{p-0c271457.entry.js → p-cb8e7e0a.entry.js} +1 -1
  27. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  28. package/dist/esm/digi-bar-chart.entry.js +1 -1
  29. package/dist/esm/digi-chart-line.entry.js +1 -1
  30. package/dist/esm/digi-code-block_3.entry.js +1 -1
  31. package/dist/esm/digi-info-card.entry.js +1 -1
  32. package/dist/esm/digi-link-button.entry.js +2 -1
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/types/components/_info-card/info-card/info-card.d.ts +4 -4
  35. package/dist/types/components/_link/link-button/link-button.d.ts +5 -0
  36. package/dist/types/components.d.ts +18 -8
  37. package/hydrate/index.js +7 -5
  38. package/hydrate/index.mjs +7 -5
  39. package/package.json +1 -1
  40. package/components/p-2bc16106.js +0 -129
  41. package/dist/digi-arbetsformedlingen/p-bd6e0b22.entry.js +0 -1
  42. package/dist/digi-arbetsformedlingen/p-d8b9b535.entry.js +0 -1
@@ -3,20 +3,21 @@
3
3
  :host .digi-bar-chart {
4
4
  font-family: var(--digi--global--typography--font-family--default);
5
5
  }
6
- :host .chartTitle {
7
- --digi--typography--h2--margin: 0.5rem;
8
- --digi--typography--h3--margin: 0.5rem;
9
- --digi--typography--h4--margin: 0.5rem;
10
- --digi--typography--h5--margin: 0.5rem;
11
- --digi--typography--h6--margin: 0.5rem;
6
+ :host .topWrapper,
7
+ :host .chartTitle .digi-typography {
12
8
  display: flex;
13
- justify-content: flex-start;
14
9
  flex-direction: column;
15
- align-items: left;
16
- text-align: left;
17
- padding-bottom: 1rem;
18
- margin-right: 0.5rem;
19
- flex-grow: 2;
10
+ gap: 0.75rem;
11
+ }
12
+ :host .topWrapper {
13
+ margin-bottom: 0.75rem;
14
+ }
15
+ :host .chartTitle {
16
+ --MARGIN--HEADING-2: 0;
17
+ --MARGIN--HEADING-3: 0;
18
+ --MARGIN--HEADING-4: 0;
19
+ --MARGIN--HEADING-5: 0;
20
+ --MARGIN--HEADING-6: 0;
20
21
  }
21
22
  :host .buttonWrapper {
22
23
  --digi--button--padding--medium: 4px 4px 0.8125rem 0;
@@ -79,11 +80,4 @@
79
80
  background-repeat: no-repeat;
80
81
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
81
82
  background-attachment: local, local, scroll, scroll;
82
- }
83
- :host .topWrapper {
84
- display: flex;
85
- flex-direction: row;
86
- align-items: flex-end;
87
- justify-content: space-between;
88
- flex-wrap: wrap;
89
83
  }
@@ -13,28 +13,32 @@
13
13
  min-height: fit-content;
14
14
  }
15
15
 
16
- .buttonWrapper {
17
- --digi--button--padding--medium: 0 0 0.75rem 0;
18
- }
19
-
20
16
  .chart {
21
17
  box-sizing: content-box;
22
18
  width: auto;
23
19
  }
24
20
 
25
- .chartTitle {
26
- --digi--typography--h2--margin: 0.5rem;
27
- --digi--typography--h3--margin: 0.5rem;
28
- --digi--typography--h4--margin: 0.5rem;
29
- --digi--typography--h5--margin: 0.5rem;
30
- --digi--typography--h6--margin: 0.5rem;
21
+ .topWrapper,
22
+ .chartTitle .digi-typography {
31
23
  display: flex;
32
- justify-content: flex-start;
33
24
  flex-direction: column;
34
- align-items: left;
35
- text-align: left;
36
- padding-bottom: 1rem;
37
- flex-grow: 2;
25
+ gap: 0.75rem;
26
+ }
27
+
28
+ .topWrapper {
29
+ margin-bottom: 0.75rem;
30
+ }
31
+
32
+ .chartTitle {
33
+ --MARGIN--HEADING-2: 0;
34
+ --MARGIN--HEADING-3: 0;
35
+ --MARGIN--HEADING-4: 0;
36
+ --MARGIN--HEADING-5: 0;
37
+ --MARGIN--HEADING-6: 0;
38
+ }
39
+
40
+ .buttonWrapper {
41
+ --digi--button--padding--medium: 0 0 0.75rem 0;
38
42
  }
39
43
 
40
44
  .close {
@@ -150,12 +154,4 @@
150
154
  overflow-y: auto;
151
155
  scrollbar-width: thin;
152
156
  scrollbar-color: rgb(245, 245, 245) transparent;
153
- }
154
-
155
- .topWrapper {
156
- display: flex;
157
- flex-direction: row;
158
- align-items: flex-end;
159
- justify-content: space-between;
160
- flex-wrap: wrap;
161
157
  }
@@ -30,7 +30,7 @@ digi-code-block .digi-code-block--light pre[class*=language-] {
30
30
  text-align: left;
31
31
  white-space: pre-wrap;
32
32
  word-spacing: normal;
33
- word-break: normal;
33
+ word-break: break-word;
34
34
  word-wrap: normal;
35
35
  line-height: 1.5;
36
36
  -moz-tab-size: 4;
@@ -174,7 +174,7 @@ digi-code-block .digi-code-block--dark pre[class*=language-] {
174
174
  text-align: left;
175
175
  white-space: pre-wrap;
176
176
  word-spacing: normal;
177
- word-break: normal;
177
+ word-break: break-word;
178
178
  word-wrap: normal;
179
179
  line-height: 1.5;
180
180
  -moz-tab-size: 4;
@@ -67,7 +67,7 @@ export class InfoCard {
67
67
  };
68
68
  }
69
69
  render() {
70
- return (h("div", { key: '599ab94c2cd57bf47b9aa9d4ef1d4872b765a4ee', class: Object.assign({ 'digi-info-card': true }, this.cssModifiers) }, h("div", { key: '8c03931edf08190044429cc784a78c795705c3ef', class: "digi-info-card__content" }, h("div", { key: 'e17ff930b2e0185e2f1fcbac57c1a7d7fea72e6d', class: "digi-info-card__icon" }, this.hasListIcon && (h("span", { key: '6229283bf582298ca6979f2815effd21281e9b29', class: "digi-info-card__icon" }, h("slot", { key: 'c474cc478505c1408d3a642da71d188e9e377748', name: "icon" })))), h(this.afHeadingLevel, { key: 'a24efa82b07245240cd8b2f309b600c29077f449', class: "digi-info-card__heading" }, this.afHeading), h("digi-typography", { key: '538428ecae3c6f2228bf7b431d62582927ea4c56' }, h("slot", { key: '6b6a2864991d9411da62185ab27e8d73c0163650' })), this.shouldRenderInternalLink && (h("digi-link-internal", { key: 'f4079d2efed0e0f0a38428049b1773260a184e2a', class: "digi-info-card__link", afHref: this.afLinkHref, onAfOnClick: (e) => this.clickLinkHandler(e), hideVisitedColor: this.hideVisitedColor }, this.afLinkText)))));
70
+ return (h("div", { key: 'b87aaf790c4736075233c8cf0d15e16e757e67f1', class: Object.assign({ 'digi-info-card': true }, this.cssModifiers) }, h("div", { key: '4f645a39d73a782d44ce58d6027805daa07ce6b6', class: "digi-info-card__content" }, h("div", { key: '3c0e7f91e3ac681c051eb24688c88fb28a1cf6bf', class: "digi-info-card__icon" }, this.hasListIcon && (h("span", { key: '53ddc991ebbd95b6a2076f491187a4c8de274b58', class: "digi-info-card__icon" }, h("slot", { key: '182ee887c37e7dea4a4ab98189ea08af15418944', name: "icon" })))), h(this.afHeadingLevel, { key: '8a2b1fbd4cf78cc706daf2fc74157587c16e43b8', class: "digi-info-card__heading" }, this.afHeading), h("digi-typography", { key: '6c0ccbf7115dd68e2f7e6e0b55daac41d9285c2d' }, h("slot", { key: '34f5f0b4526721271edd8095ae78e8812142ea10' })), this.shouldRenderInternalLink && (h("digi-link-internal", { key: 'c4f3442b1b6c22ecc6d0cd12f37af5f4707244b1', class: "digi-info-card__link", afHref: this.afLinkHref, onAfOnClick: (e) => this.clickLinkHandler(e), hideVisitedColor: this.hideVisitedColor }, this.afLinkText)))));
71
71
  }
72
72
  static get is() { return "digi-info-card"; }
73
73
  static get encapsulation() { return "scoped"; }
@@ -181,9 +181,9 @@ export class InfoCard {
181
181
  "docs": {
182
182
  "tags": [{
183
183
  "name": "en",
184
- "text": "Set info card variation. Can be 'Standar'."
184
+ "text": "Set info card size. Can be 'Standard'."
185
185
  }],
186
- "text": "S\u00E4tter storlek p\u00E5 kortet. Kan vara 'Standar'."
186
+ "text": "S\u00E4tter storlek p\u00E5 kortet. Kan vara 'Standard'."
187
187
  },
188
188
  "getter": false,
189
189
  "setter": false,
@@ -210,9 +210,9 @@ export class InfoCard {
210
210
  "docs": {
211
211
  "tags": [{
212
212
  "name": "en",
213
- "text": "Set info card variation. Can be 'Standard'."
213
+ "text": "Set border position. Can be 'top' or 'left'. This only applies if 'af-type' is 'related'."
214
214
  }],
215
- "text": "S\u00E4tter storlek p\u00E5 kortet. Kan vara 'Standard'."
215
+ "text": "S\u00E4tter position f\u00F6r kantlinjen. Kan vara 'top' eller 'left'. Detta har endast genomslag om 'af-type' \u00E4r 'related'."
216
216
  },
217
217
  "getter": false,
218
218
  "setter": false,
@@ -9,6 +9,7 @@ import { LinkButtonVariation } from "./link-button-variation.enum";
9
9
  export class LinkButton {
10
10
  constructor() {
11
11
  this.afHref = undefined;
12
+ this.afAriaLabel = undefined;
12
13
  this.afVariation = LinkButtonVariation.PRIMARY;
13
14
  this.afOverrideLink = false;
14
15
  this.afLinkContainer = false;
@@ -52,7 +53,7 @@ export class LinkButton {
52
53
  };
53
54
  }
54
55
  render() {
55
- return (h(Host, { key: '47bd90f3a28cd160127bed656601647eb961d593', class: Object.assign({ 'digi-link-button': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: 'e225399fc3dcb16132bb712eb1ab8e15346627f9', href: this.afHref, onClick: (e) => this.clickLinkHandler(e), ref: (el) => (this._link = el) }, h("span", { key: '1bf49b13c27a8efe57c6a5d8ddea2be1fbf9139e', class: "digi-link-button__text" }, h("slot", { key: '4853cc7ab7c86847e7e0a8e8398515224421e6bc' })), this.hasNotification && h("slot", { key: 'e449a5df64ce139a5d2a9ebf0f3b8fe1577e9b17', name: "notification" }), h("digi-icon-chevron-right", { key: '6a19dfb52f554f11656a5eee7d5ed09c3107558c', class: "digi-link-button__icon" }))), this.afLinkContainer && (h(Fragment, { key: '7552862a798a80d2aaf3c91518b3231a5ce31cd3' }, h("slot", { key: 'a8b01e225c599aae4d312c174e40d11c675a753e' }), this.hasNotification && h("slot", { key: '100a3bc36bf4e5c2bb2e5cb35893aa3303e938b5', name: "notification" })))));
56
+ return (h(Host, { key: '75f43380c8844ae0337b29691feed99b0acba6ed', class: Object.assign({ 'digi-link-button': true }, this.cssModifiers) }, !this.afLinkContainer && (h("a", { key: '384b103cdda3806ceebf6c3d0c3e2e35b1979fce', href: this.afHref, "aria-label": this.afAriaLabel, onClick: (e) => this.clickLinkHandler(e), ref: (el) => (this._link = el) }, h("span", { key: '55c1523b696faef38a4b4e00f2b9d64bd52cd2f1', class: "digi-link-button__text" }, h("slot", { key: 'e516eadc702eca45be24e04d5f9d0c436dd6ef9a' })), this.hasNotification && h("slot", { key: '0d4fc47c6a63ef621f0e5b06a5704f78a6988835', name: "notification" }), h("digi-icon-chevron-right", { key: 'b7c058a116d956771ef1f992a82cf2735c1230e4', class: "digi-link-button__icon" }))), this.afLinkContainer && (h(Fragment, { key: 'f8483003f9702cb3fe573079bedda82267e710fb' }, h("slot", { key: '04f83d58576061d3db853e4bb678ffd6177ba871' }), this.hasNotification && h("slot", { key: 'b4629a7a5e7c491c6c1dc9704aaab949370cc801', name: "notification" })))));
56
57
  }
57
58
  static get is() { return "digi-link-button"; }
58
59
  static get encapsulation() { return "scoped"; }
@@ -90,6 +91,28 @@ export class LinkButton {
90
91
  "attribute": "af-href",
91
92
  "reflect": false
92
93
  },
94
+ "afAriaLabel": {
95
+ "type": "string",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "string",
99
+ "resolved": "string",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [{
106
+ "name": "en",
107
+ "text": "Sets 'aria-label' attribute."
108
+ }],
109
+ "text": "S\u00E4tter attributet 'aria-label'."
110
+ },
111
+ "getter": false,
112
+ "setter": false,
113
+ "attribute": "af-aria-label",
114
+ "reflect": false
115
+ },
93
116
  "afVariation": {
94
117
  "type": "string",
95
118
  "mutable": false,