scb-wc-test 0.1.104 → 0.1.106

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 (89) hide show
  1. package/mvc/components/scb-accordion/scb-accordion.js +8 -2
  2. package/mvc/components/scb-avatar/scb-avatar.js +19 -10
  3. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -3
  4. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +13 -7
  5. package/mvc/components/scb-button/scb-button.js +34 -32
  6. package/mvc/components/scb-calendar-card/scb-calendar-card.js +13 -11
  7. package/mvc/components/scb-card/scb-card.js +44 -41
  8. package/mvc/components/scb-checkbox/scb-checkbox-group.js +15 -13
  9. package/mvc/components/scb-checkbox/scb-checkbox.js +6 -6
  10. package/mvc/components/scb-chip/scb-chip.js +27 -7
  11. package/mvc/components/scb-divider/scb-divider.js +41 -15
  12. package/mvc/components/scb-fact-card/scb-fact-card.js +37 -18
  13. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +71 -43
  14. package/mvc/components/scb-icon-button/scb-icon-button.js +15 -10
  15. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -4
  16. package/mvc/components/scb-list/scb-list.js +3 -3
  17. package/mvc/components/scb-notification-card/scb-notification-card.js +5 -5
  18. package/mvc/components/scb-pagination/scb-pagination.js +165 -107
  19. package/mvc/components/scb-radio-button/scb-radio-group.js +22 -11
  20. package/mvc/components/scb-search/scb-search.js +84 -32
  21. package/mvc/components/scb-segmented-button/scb-segmented-button.js +3 -2
  22. package/mvc/components/scb-select/scb-select-option.js +3 -3
  23. package/mvc/components/scb-select/scb-select.js +3 -3
  24. package/mvc/components/scb-status-pill/scb-status-pill.js +17 -13
  25. package/mvc/components/scb-stepper/scb-stepper.js +32 -29
  26. package/mvc/components/scb-switch/scb-switch.js +11 -8
  27. package/mvc/components/scb-tabs/scb-tabs.js +22 -19
  28. package/mvc/components/scb-textfield/scb-textfield.js +14 -10
  29. package/mvc/components/scb-toc/scb-toc.js +6 -3
  30. package/mvc/components/scb-viz/scb-viz.js +188 -178
  31. package/package.json +2 -2
  32. package/scb-accordion/scb-accordion.d.ts +13 -0
  33. package/scb-accordion/scb-accordion.js +53 -21
  34. package/scb-avatar/scb-avatar.d.ts +6 -0
  35. package/scb-avatar/scb-avatar.js +96 -61
  36. package/scb-breadcrumb/scb-breadcrumb-item.js +8 -9
  37. package/scb-breadcrumb/scb-breadcrumb.d.ts +6 -0
  38. package/scb-breadcrumb/scb-breadcrumb.js +61 -30
  39. package/scb-button/scb-button.d.ts +10 -0
  40. package/scb-button/scb-button.js +89 -65
  41. package/scb-calendar-card/scb-calendar-card.d.ts +5 -0
  42. package/scb-calendar-card/scb-calendar-card.js +79 -55
  43. package/scb-card/scb-card.d.ts +5 -0
  44. package/scb-card/scb-card.js +165 -140
  45. package/scb-checkbox/scb-checkbox-group.d.ts +3 -1
  46. package/scb-checkbox/scb-checkbox-group.js +59 -40
  47. package/scb-checkbox/scb-checkbox.d.ts +11 -0
  48. package/scb-checkbox/scb-checkbox.js +78 -56
  49. package/scb-chip/scb-chip.d.ts +24 -0
  50. package/scb-chip/scb-chip.js +137 -65
  51. package/scb-divider/scb-divider.d.ts +14 -0
  52. package/scb-divider/scb-divider.js +91 -43
  53. package/scb-fact-card/scb-fact-card.d.ts +10 -0
  54. package/scb-fact-card/scb-fact-card.js +135 -94
  55. package/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +10 -0
  56. package/scb-horizontal-scroller/scb-horizontal-scroller.js +179 -120
  57. package/scb-icon-button/scb-icon-button.d.ts +6 -1
  58. package/scb-icon-button/scb-icon-button.js +81 -59
  59. package/scb-keyfigure-card/scb-keyfigure-card.d.ts +10 -0
  60. package/scb-keyfigure-card/scb-keyfigure-card.js +76 -52
  61. package/scb-list/scb-list.d.ts +7 -1
  62. package/scb-list/scb-list.js +62 -40
  63. package/scb-notification-card/scb-notification-card.d.ts +5 -0
  64. package/scb-notification-card/scb-notification-card.js +56 -39
  65. package/scb-pagination/scb-pagination.d.ts +12 -1
  66. package/scb-pagination/scb-pagination.js +235 -147
  67. package/scb-radio-button/scb-radio-group.d.ts +14 -3
  68. package/scb-radio-button/scb-radio-group.js +120 -67
  69. package/scb-search/scb-search.d.ts +15 -2
  70. package/scb-search/scb-search.js +152 -69
  71. package/scb-segmented-button/scb-segmented-button.d.ts +41 -4
  72. package/scb-segmented-button/scb-segmented-button.js +145 -61
  73. package/scb-select/scb-select-option.js +3 -3
  74. package/scb-select/scb-select.js +26 -26
  75. package/scb-status-pill/scb-status-pill.d.ts +12 -1
  76. package/scb-status-pill/scb-status-pill.js +51 -27
  77. package/scb-stepper/scb-stepper.d.ts +11 -3
  78. package/scb-stepper/scb-stepper.js +134 -101
  79. package/scb-switch/scb-switch.d.ts +21 -2
  80. package/scb-switch/scb-switch.js +97 -45
  81. package/scb-tabs/scb-tabs.d.ts +8 -0
  82. package/scb-tabs/scb-tabs.js +74 -44
  83. package/scb-textfield/scb-textfield.d.ts +7 -0
  84. package/scb-textfield/scb-textfield.js +43 -16
  85. package/scb-toc/scb-toc.d.ts +10 -1
  86. package/scb-toc/scb-toc.js +49 -18
  87. package/scb-viz/scb-viz.d.ts +10 -3
  88. package/scb-viz/scb-viz.js +278 -236
  89. package/scb-wc-test.bundle.js +1177 -896
@@ -1,18 +1,18 @@
1
- import { css as g, LitElement as h, html as a } from "lit";
2
- import { property as p, customElement as b } from "lit/decorators.js";
1
+ import { css as d, LitElement as h, html as a } from "lit";
2
+ import { property as c, customElement as b } from "lit/decorators.js";
3
3
  import "../scb-link/scb-link.js";
4
4
  import "../scb-button/scb-button.js";
5
5
  import "../scb-icon-button/scb-icon-button.js";
6
6
  import "@material/web/icon/icon.js";
7
7
  import "@material/web/focus/md-focus-ring.js";
8
- var u = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (d, e, s, i) => {
9
- for (var r = i > 1 ? void 0 : i ? v(e, s) : e, c = d.length - 1, n; c >= 0; c--)
10
- (n = d[c]) && (r = (i ? n(e, s, r) : n(r)) || r);
11
- return i && r && u(e, s, r), r;
8
+ var u = Object.defineProperty, m = Object.getOwnPropertyDescriptor, p = (n, e, r, i) => {
9
+ for (var l = i > 1 ? void 0 : i ? m(e, r) : e, g = n.length - 1, s; g >= 0; g--)
10
+ (s = n[g]) && (l = (i ? s(e, r, l) : s(l)) || l);
11
+ return i && l && u(e, r, l), l;
12
12
  };
13
13
  let o = class extends h {
14
14
  constructor() {
15
- super(...arguments), this.variant = "icon-text", this.page = 1, this.totalPages = 0, this.pagingHref = "/products?page=", this.paginationAriaLabel = "Paginering", this.currentAriaLabel = "Nuvarande sida, ", this.pagingNumberAriaLabel = "Gå till sida ", this.isNarrow = window.innerWidth <= 768, this._onResize = () => {
15
+ super(...arguments), this.variant = "icon-text", this.page = 1, this.totalPages = 0, this.pagingHref = "/products?page=", this.paginationAriaLabel = "Paginering", this.currentAriaLabel = "Nuvarande sida, ", this.pagingNumberAriaLabel = "Gå till sida ", this.isNarrow = window.innerWidth <= 768, this.spacing = "", this.spacingTop = "", this.spacingBottom = "", this._onResize = () => {
16
16
  this.isNarrow = window.innerWidth <= 768;
17
17
  };
18
18
  }
@@ -28,83 +28,163 @@ let o = class extends h {
28
28
  disconnectedCallback() {
29
29
  super.disconnectedCallback(), window.removeEventListener("resize", this._onResize);
30
30
  }
31
+ __resolveSpacingToken(n) {
32
+ const e = (n ?? "").trim();
33
+ return e ? /^(?:[0-9]|1[0-4])$/.test(e) ? `var(--spacing-${e})` : e : "";
34
+ }
35
+ __applySpacing() {
36
+ const n = this.__resolveSpacingToken(this.spacingTop || this.spacing), e = this.__resolveSpacingToken(this.spacingBottom || this.spacing);
37
+ n ? this.style.marginBlockStart = n : this.style.removeProperty("margin-block-start"), e ? this.style.marginBlockEnd = e : this.style.removeProperty("margin-block-end");
38
+ }
39
+ updated(n) {
40
+ super.updated(n), (n.has("spacing") || n.has("spacingTop") || n.has("spacingBottom")) && this.__applySpacing();
41
+ }
31
42
  render() {
32
43
  if (this.totalPages === 0) return null;
33
- const d = this.variant ? `${this.variant.toLowerCase()}` : "", e = [], { page: s, totalPages: i } = this, r = window.innerWidth <= 768, c = r ? 1 : 2, n = (t) => t === s ? a`
34
- <li>
35
- <span
36
- class="page-number active"
37
- aria-current="page"
38
- aria-label="${this.currentAriaLabel} ${t}"
39
- >${t}</span>
40
- </li>
41
- ` : a`
42
- <li>
43
- <scb-link
44
- class="page-number${t === s ? " active" : ""}"
44
+ const n = this.variant ? `${this.variant.toLowerCase()}` : "", e = [], { page: r, totalPages: i } = this, l = window.innerWidth <= 768, g = l ? 1 : 2, s = (t) => t === r ? a`
45
+ <li>
46
+ <span
47
+ class="page-number active"
48
+ aria-current="page"
49
+ aria-label="${this.currentAriaLabel} ${t}"
50
+ >${t}</span
51
+ >
52
+ </li>
53
+ ` : a`
54
+ <li>
55
+ <scb-link
56
+ class="page-number${t === r ? " active" : ""}"
45
57
  @click=${() => {
46
58
  this.page = t, this.dispatchEvent(new CustomEvent("page-change", { detail: { page: t } }));
47
59
  }}
48
- aria-current=${t === s ? "page" : void 0}
60
+ aria-current=${t === r ? "page" : void 0}
49
61
  aria-label="${this.pagingNumberAriaLabel} ${t}"
50
62
  href=${this.pagingHref}${t}
51
- ?disabled=${t === s}>${t}
52
- </scb-link>
53
- </li>
54
- `;
63
+ ?disabled=${t === r}
64
+ >${t}</scb-link
65
+ >
66
+ </li>
67
+ `;
55
68
  if (i <= 8)
56
69
  for (let t = 1; t <= i; t++)
57
- e.push(n(t));
58
- else if (e.push(n(1)), s <= 4 && !r) {
59
- for (let t = 2; t <= 5; t++) e.push(n(t));
60
- i > 6 ? (e.push(a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`), e.push(n(i))) : i === 6 && e.push(n(i));
61
- } else if (s <= 3 && r) {
62
- for (let t = 2; t <= 3; t++) e.push(n(t));
63
- i > 4 ? (e.push(a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`), e.push(n(i))) : i === 4 && e.push(n(i));
64
- } else if (s >= i - (c + 1)) {
65
- e.push(a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`);
66
- for (let t = i - c * 2; t <= i; t++)
67
- t > 1 && e.push(n(t));
70
+ e.push(s(t));
71
+ else if (e.push(s(1)), r <= 4 && !l) {
72
+ for (let t = 2; t <= 5; t++) e.push(s(t));
73
+ i > 6 ? (e.push(
74
+ a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
75
+ ), e.push(s(i))) : i === 6 && e.push(s(i));
76
+ } else if (r <= 3 && l) {
77
+ for (let t = 2; t <= 3; t++) e.push(s(t));
78
+ i > 4 ? (e.push(
79
+ a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
80
+ ), e.push(s(i))) : i === 4 && e.push(s(i));
81
+ } else if (r >= i - (g + 1)) {
82
+ e.push(
83
+ a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
84
+ );
85
+ for (let t = i - g * 2; t <= i; t++)
86
+ t > 1 && e.push(s(t));
68
87
  } else {
69
- e.push(a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`);
70
- for (let t = s - c; t <= s + c; t++)
71
- t > 1 && t < i && e.push(n(t));
72
- e.push(a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`), e.push(n(i));
88
+ e.push(
89
+ a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
90
+ );
91
+ for (let t = r - g; t <= r + g; t++)
92
+ t > 1 && t < i && e.push(s(t));
93
+ e.push(
94
+ a`<li><span class="ellipsis" aria-hidden="true">…</span></li>`
95
+ ), e.push(s(i));
73
96
  }
74
- return r ? a`
75
- <nav aria-label="${this.paginationAriaLabel}" class="pagination ${d}">
76
- <div class="pagination-row">
77
- <div class="prev">
78
- ${this.variant === "icon" ? a`<scb-icon-button icon="chevron_left" @click=${this._prevPage} ?disabled=${this.page === 1} aria-label="Föregående sida"></scb-icon-button>` : a`<scb-button variant="text" label="Föregående" icon="chevron_left" @click=${this._prevPage} ?disabled=${this.page === 1} aria-label="Föregående sida"></scb-button>`}
79
- </div>
80
- <ol>
81
- ${e}
82
- </ol>
83
- </div>
84
- <div class="next">
85
- ${this.variant === "icon" ? a`<scb-icon-button icon="chevron_right" @click=${this._nextPage} ?disabled=${this.page === this.totalPages} aria-label="Nästa sida"></scb-icon-button>` : a`<scb-button variant="text" label="Nästa" icon="chevron_right" iconPosition="right" @click=${this._nextPage} ?disabled=${this.page === this.totalPages} aria-label="Nästa sida" trailing-icon></scb-button>`}
97
+ return l ? a`
98
+ <nav aria-label="${this.paginationAriaLabel}" class="pagination ${n}">
99
+ <div class="pagination-row">
100
+ <div class="prev">
101
+ ${this.variant === "icon" ? a`<scb-icon-button
102
+ icon="chevron_left"
103
+ @click=${this._prevPage}
104
+ ?disabled=${this.page === 1}
105
+ aria-label="Föregående sida"
106
+ ></scb-icon-button>` : a`<scb-button
107
+ variant="text"
108
+ label="Föregående"
109
+ icon="chevron_left"
110
+ @click=${this._prevPage}
111
+ ?disabled=${this.page === 1}
112
+ aria-label="Föregående sida"
113
+ ></scb-button>`}
86
114
  </div>
115
+ <ol>
116
+ ${e}
117
+ </ol>
118
+ </div>
119
+ <div class="next">
120
+ ${this.variant === "icon" ? a`<scb-icon-button
121
+ icon="chevron_right"
122
+ @click=${this._nextPage}
123
+ ?disabled=${this.page === this.totalPages}
124
+ aria-label="Nästa sida"
125
+ ></scb-icon-button>` : a`<scb-button
126
+ variant="text"
127
+ label="Nästa"
128
+ icon="chevron_right"
129
+ iconPosition="right"
130
+ @click=${this._nextPage}
131
+ ?disabled=${this.page === this.totalPages}
132
+ aria-label="Nästa sida"
133
+ trailing-icon
134
+ ></scb-button>`}
135
+ </div>
87
136
  </nav>
88
137
  ` : a`
89
- <nav aria-label="${this.paginationAriaLabel}" class="pagination ${d}">
90
- <div class="pagination-row">
91
- <div class="prev">
92
- ${this.variant === "icon" ? a`<scb-icon-button icon="chevron_left" @click=${this._prevPage} ?disabled=${this.page === 1} aria-label="Föregående sida"></scb-icon-button>` : a`<scb-button variant="text" label="Föregående" icon="chevron_left" @click=${this._prevPage} ?disabled=${this.page === 1} aria-label="Föregående sida"></scb-button>`}
93
- </div>
94
- <ol>
95
- ${e}
96
- </ol>
97
- <div class="next">
98
- ${this.variant === "icon" ? a`<scb-icon-button icon="chevron_right" @click=${this._nextPage} ?disabled=${this.page === this.totalPages} aria-label="Nästa sida"></scb-icon-button>` : a`<scb-button variant="text" label="Nästa" icon="chevron_right" iconPosition="right" @click=${this._nextPage} ?disabled=${this.page === this.totalPages} aria-label="Nästa sida" trailing-icon></scb-button>`}
99
- </div>
100
- </div>
101
- </nav>
102
- `;
138
+ <nav aria-label="${this.paginationAriaLabel}" class="pagination ${n}">
139
+ <div class="pagination-row">
140
+ <div class="prev">
141
+ ${this.variant === "icon" ? a`<scb-icon-button
142
+ icon="chevron_left"
143
+ @click=${this._prevPage}
144
+ ?disabled=${this.page === 1}
145
+ aria-label="Föregående sida"
146
+ ></scb-icon-button>` : a`<scb-button
147
+ variant="text"
148
+ label="Föregående"
149
+ icon="chevron_left"
150
+ @click=${this._prevPage}
151
+ ?disabled=${this.page === 1}
152
+ aria-label="Föregående sida"
153
+ ></scb-button>`}
154
+ </div>
155
+ <ol>
156
+ ${e}
157
+ </ol>
158
+ <div class="next">
159
+ ${this.variant === "icon" ? a`<scb-icon-button
160
+ icon="chevron_right"
161
+ @click=${this._nextPage}
162
+ ?disabled=${this.page === this.totalPages}
163
+ aria-label="Nästa sida"
164
+ ></scb-icon-button>` : a`<scb-button
165
+ variant="text"
166
+ label="Nästa"
167
+ icon="chevron_right"
168
+ iconPosition="right"
169
+ @click=${this._nextPage}
170
+ ?disabled=${this.page === this.totalPages}
171
+ aria-label="Nästa sida"
172
+ trailing-icon
173
+ ></scb-button>`}
174
+ </div>
175
+ </div>
176
+ </nav>
177
+ `;
103
178
  }
104
179
  };
105
180
  o.styles = [
106
- g`
107
- :host .pagination {
181
+ d`
182
+ :host {
183
+ display: block;
184
+ width: 100%;
185
+ }
186
+
187
+ :host .pagination {
108
188
  --md-text-button-label-text-color: var(--md-sys-color-on-surface, #0F0865);
109
189
  --md-text-button-pressed-state-layer-color: var(--md-sys-color-on-surface, #0F0865);
110
190
  --md-text-button-focus-label-text-color: var(--md-sys-color-on-surface, #0F0865);
@@ -113,68 +193,68 @@ o.styles = [
113
193
  --md-text-button-label-text-weight: var(--weight-regular, 400);
114
194
  --md-text-button-label-text-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
115
195
  --md-text-button-label-text-size: var(--md-sys-typescale-body-medium-size, 16px);
116
- --md-text-button-icon-color : var(--md-sys-color-on-surface, #0F0865);
117
- --md-text-button-focus-icon-color : var(--md-sys-color-on-surface, #0F0865);
118
- --md-text-button-hover-icon-color : var(--md-sys-color-on-surface, #0F0865);
119
- --md-text-button-pressed-icon-color : var(--md-sys-color-on-surface, #0F0865);
196
+ --md-text-button-icon-color: var(--md-sys-color-on-surface, #0F0865);
197
+ --md-text-button-focus-icon-color: var(--md-sys-color-on-surface, #0F0865);
198
+ --md-text-button-hover-icon-color: var(--md-sys-color-on-surface, #0F0865);
199
+ --md-text-button-pressed-icon-color: var(--md-sys-color-on-surface, #0F0865);
120
200
  --scb-link-decoration: none;
121
201
  --scb-link-color: var(--md-sys-color-on-surface, #0F0865);
122
202
 
123
203
  scb-link.page-number a {
124
- cursor: pointer;
125
- text-decoration: none;
126
- display: inline-flex;
204
+ cursor: pointer;
205
+ text-decoration: none;
206
+ display: inline-flex;
127
207
  }
128
- }
208
+ }
129
209
 
130
- .pagination {
210
+ .pagination {
131
211
  width: 100%;
132
212
  display: flex;
133
213
  flex-direction: column;
134
214
  gap: 0;
135
- }
136
- .pagination-row {
215
+ }
216
+ .pagination-row {
137
217
  width: 100%;
138
218
  display: flex;
139
219
  flex-direction: row;
140
220
  align-items: center;
141
221
  gap: 4px;
142
- }
143
- .pagination-row .prev {
222
+ }
223
+ .pagination-row .prev {
144
224
  display: flex;
145
225
  justify-content: flex-start;
146
226
  width: auto;
147
- }
148
- .pagination-row ol {
227
+ }
228
+ .pagination-row ol {
149
229
  width: auto;
150
230
  display: flex;
151
231
  flex-direction: row;
152
- justify-content: flex-start;
232
+ justify-content: flex-start;
153
233
  gap: 4px;
154
234
  margin: 0;
155
235
  padding: 0;
156
236
  list-style: none;
157
- }
158
- .pagination-row ol li {
237
+ }
238
+ .pagination-row ol li {
159
239
  min-width: 40px;
160
240
  min-height: 40px;
161
241
  display: flex;
162
242
  align-items: center;
163
243
  justify-content: center;
164
- }
165
- .pagination-row .next {
244
+ }
245
+ .pagination-row .next {
166
246
  display: flex;
167
247
  justify-content: flex-start;
168
- align-items: center;
248
+ align-items: center;
169
249
  width: auto;
170
- margin-top: 0;
171
- }
172
- scb-link.page-number a {
250
+ margin-top: 0;
251
+ }
252
+ scb-link.page-number a {
173
253
  cursor: pointer;
174
254
  text-decoration: none;
175
255
  display: inline-flex;
176
- }
177
- .page-number.active {
256
+ }
257
+ .page-number.active {
178
258
  display: inline-flex;
179
259
  align-items: center;
180
260
  justify-content: center;
@@ -184,79 +264,87 @@ o.styles = [
184
264
  text-align: center;
185
265
  width: 40px;
186
266
  height: 40px;
187
- }
188
- .page-number.active {
267
+ }
268
+ .page-number.active {
189
269
  font-family: var(--brand-font, 'Inter', sans-serif);
190
- }
191
- .ellipsis {
270
+ }
271
+ .ellipsis {
192
272
  margin: 0 4px;
193
273
  color: #888;
194
274
  user-select: none;
195
275
  pointer-events: none;
196
- }
197
- scb-button[disabled] {
276
+ }
277
+ scb-button[disabled] {
198
278
  opacity: 0.5;
199
279
  pointer-events: none;
200
280
  }
201
281
 
202
- @media (max-width: 768px) {
203
-
204
- .pagination .prev {
205
- display: flex;
206
- justify-content: flex-start;
207
- }
208
- .pagination .next {
209
- width: 100%;
210
- margin-top: 8px;
211
- }
212
- }
282
+ @media (max-width: 768px) {
283
+ .pagination .prev {
284
+ display: flex;
285
+ justify-content: flex-start;
286
+ }
287
+ .pagination .next {
288
+ width: 100%;
289
+ margin-top: 8px;
290
+ }
291
+ }
213
292
 
214
- @media (max-width: 390px) {
215
- .pagination-row {
216
- flex-direction: column;
217
- gap: 0;
218
- }
219
- .pagination-row .prev {
220
- width: 100%;
221
- margin-bottom: 8px;
222
- align-items: center;
223
- }
224
- .pagination-row ol {
225
- width: 100%;
226
- align-items: center;
227
- }
228
- .pagination-row .next {
229
- width: 100%;
230
- margin-top: 8px;
231
- }
232
- }
233
- `
293
+ @media (max-width: 390px) {
294
+ .pagination-row {
295
+ flex-direction: column;
296
+ gap: 0;
297
+ }
298
+ .pagination-row .prev {
299
+ width: 100%;
300
+ margin-bottom: 8px;
301
+ align-items: center;
302
+ }
303
+ .pagination-row ol {
304
+ width: 100%;
305
+ align-items: center;
306
+ }
307
+ .pagination-row .next {
308
+ width: 100%;
309
+ margin-top: 8px;
310
+ }
311
+ }
312
+ `
234
313
  ];
235
- l([
236
- p({ type: String })
314
+ p([
315
+ c({ type: String })
237
316
  ], o.prototype, "variant", 2);
238
- l([
239
- p({ type: Number })
317
+ p([
318
+ c({ type: Number })
240
319
  ], o.prototype, "page", 2);
241
- l([
242
- p({ type: Number, attribute: "total-pages" })
320
+ p([
321
+ c({ type: Number, attribute: "total-pages" })
243
322
  ], o.prototype, "totalPages", 2);
244
- l([
245
- p({ type: String, attribute: "paging-href" })
323
+ p([
324
+ c({ type: String, attribute: "paging-href" })
246
325
  ], o.prototype, "pagingHref", 2);
247
- l([
248
- p({ type: String, attribute: "pagination-aria-label" })
326
+ p([
327
+ c({ type: String, attribute: "pagination-aria-label" })
249
328
  ], o.prototype, "paginationAriaLabel", 2);
250
- l([
251
- p({ type: String, attribute: "current-aria-label" })
329
+ p([
330
+ c({ type: String, attribute: "current-aria-label" })
252
331
  ], o.prototype, "currentAriaLabel", 2);
253
- l([
254
- p({ type: String, attribute: "paging-number-aria-label" })
332
+ p([
333
+ c({ type: String, attribute: "paging-number-aria-label" })
255
334
  ], o.prototype, "pagingNumberAriaLabel", 2);
256
- l([
257
- p({ type: Boolean })
335
+ p([
336
+ c({ type: Boolean })
258
337
  ], o.prototype, "isNarrow", 2);
259
- o = l([
338
+ p([
339
+ c({ type: String })
340
+ ], o.prototype, "spacing", 2);
341
+ p([
342
+ c({ type: String, attribute: "spacing-top" })
343
+ ], o.prototype, "spacingTop", 2);
344
+ p([
345
+ c({ type: String, attribute: "spacing-bottom" })
346
+ ], o.prototype, "spacingBottom", 2);
347
+ o = p([
260
348
  b("scb-pagination")
261
349
  ], o);
262
350
  export {
@@ -1,19 +1,30 @@
1
1
  import { LitElement } from 'lit';
2
2
  export declare class ScbRadioGroup extends LitElement {
3
3
  #private;
4
+ static formAssociated: boolean;
4
5
  name: string;
5
6
  orientation: 'vertical' | 'horizontal';
6
7
  disabled: boolean;
7
8
  ariaLabel: string | null;
8
- /** "item" (default) = radios äger spacing; "group" = gruppen äger spacing */
9
- spacing: 'item' | 'group';
10
- /** Håller gruppens aktuella värde, speglar value på den radio-knapp som är vald */
9
+ /** Avstånd mellan radioknappar i gruppen ägs av CSS-variabeln --scb-radio-gap. */
10
+ /** Styr vertikalt avstånd till omgivande innehåll (samma modell som scb-checkbox-group). */
11
+ spacing: string;
12
+ spacingTop: string;
13
+ spacingBottom: string;
14
+ /** Håller gruppens aktuella värde, speglar value på den radio-knapp som är vald. */
11
15
  value: string;
16
+ private _internals;
17
+ private _form;
18
+ private _formResetHandler;
19
+ private _initialValue;
20
+ constructor();
12
21
  static styles: import('lit').CSSResult;
13
22
  render(): import('lit-html').TemplateResult<1>;
14
23
  firstUpdated(): void;
15
24
  disconnectedCallback(): void;
16
25
  updated(changed: Map<string, unknown>): void;
26
+ formDisabledCallback(disabled: boolean): void;
27
+ private __syncFormValue;
17
28
  }
18
29
  declare global {
19
30
  interface HTMLElementTagNameMap {