@abgov/react-components 4.0.0-alpha.106 → 4.0.0-alpha.108

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,4 +1,4 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useEffect } from 'react';
3
3
  import { parseISO, format } from 'date-fns';
4
4
 
@@ -1024,6 +1024,476 @@ if (typeof HTMLElement === 'function') {
1024
1024
 
1025
1025
  };
1026
1026
  }
1027
+
1028
+ function calculateMargin(mt, mr, mb, ml) {
1029
+ return [mt && `margin-top:var(--goa-space-${mt});`, mr && `margin-right:var(--goa-space-${mr});`, mb && `margin-bottom:var(--goa-space-${mb});`, ml && `margin-left:var(--goa-space-${ml});`].join(" ");
1030
+ }
1031
+
1032
+ function injectCss(el, rootSelector, css, media) {
1033
+ const style = document.createElement("style");
1034
+
1035
+ const _css = Object.entries(css).map(entry => `${entry[0]}: ${entry[1]};`).join(" ");
1036
+
1037
+ if (media) {
1038
+ style.innerHTML = `@media (${media}) { ${rootSelector} {${_css}} }`;
1039
+ } else {
1040
+ style.innerHTML = `${rootSelector} {${_css}}`;
1041
+ }
1042
+
1043
+ el.appendChild(style);
1044
+ }
1045
+
1046
+ function toBoolean(value) {
1047
+ if (value === "false") {
1048
+ return false;
1049
+ }
1050
+
1051
+ if (value === "") {
1052
+ return true;
1053
+ }
1054
+
1055
+ return !!value;
1056
+ }
1057
+
1058
+ function fromBoolean(value) {
1059
+ return value ? "true" : "false";
1060
+ }
1061
+
1062
+ function validateRequired(componentName, props) {
1063
+ Object.entries(props).forEach(prop => {
1064
+ if (!prop[1]) {
1065
+ console.warn(`${componentName}: ${prop[0]} is required`);
1066
+ }
1067
+ });
1068
+ }
1069
+
1070
+ function typeValidator(message, values, required = false) {
1071
+ const validator = value => {
1072
+ if (!required && !value) {
1073
+ return;
1074
+ }
1075
+
1076
+ if (!values.includes(value)) {
1077
+ console.error(`[${value}] is an invalid ${message.toLowerCase()}`);
1078
+ }
1079
+ };
1080
+
1081
+ return [values, validator];
1082
+ }
1083
+ /* libs/web-components/src/components/accordion/Accordion.svelte generated by Svelte v3.51.0 */
1084
+
1085
+
1086
+ function create_fragment$H(ctx) {
1087
+ let div3;
1088
+ let details;
1089
+ let summary;
1090
+ let goa_icon;
1091
+ let goa_icon_fillcolor_value;
1092
+ let t0;
1093
+ let div1;
1094
+ let span0;
1095
+ let t1;
1096
+ let span0_class_value;
1097
+ let span0_data_testid_value;
1098
+ let t2;
1099
+ let span1;
1100
+ let t3;
1101
+ let t4;
1102
+ let div0;
1103
+ let summary_class_value;
1104
+ let t5;
1105
+ let div2;
1106
+ let div3_style_value;
1107
+ let mounted;
1108
+ let dispose;
1109
+ return {
1110
+ c() {
1111
+ div3 = element("div");
1112
+ details = element("details");
1113
+ summary = element("summary");
1114
+ goa_icon = element("goa-icon");
1115
+ t0 = space();
1116
+ div1 = element("div");
1117
+ span0 = element("span");
1118
+ t1 = text(
1119
+ /*heading*/
1120
+ ctx[0]);
1121
+ t2 = space();
1122
+ span1 = element("span");
1123
+ t3 = text(
1124
+ /*secondarytext*/
1125
+ ctx[1]);
1126
+ t4 = space();
1127
+ div0 = element("div");
1128
+ div0.innerHTML = `<slot name="headingcontent"></slot>`;
1129
+ t5 = space();
1130
+ div2 = element("div");
1131
+ div2.innerHTML = `<slot></slot>`;
1132
+ this.c = noop;
1133
+ set_custom_element_data(goa_icon, "type", "chevron-forward");
1134
+ set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value =
1135
+ /*_hovering*/
1136
+ ctx[8] ? "var(--goa-color-interactive-hover)" : "var(--goa-color-interactive-default)");
1137
+ attr(span0, "class", span0_class_value = "heading heading-" +
1138
+ /*headingsize*/
1139
+ ctx[2]);
1140
+ attr(span0, "data-testid", span0_data_testid_value = `${
1141
+ /*testid*/
1142
+ ctx[3]}-heading`);
1143
+ attr(span1, "class", "secondary-text");
1144
+ attr(div0, "class", "heading-content");
1145
+ attr(div1, "class", "title");
1146
+ attr(summary, "class", summary_class_value = `container-${
1147
+ /*headingsize*/
1148
+ ctx[2]}`);
1149
+ attr(div2, "class", "content");
1150
+ details.open =
1151
+ /*isOpen*/
1152
+ ctx[9];
1153
+ attr(div3, "style", div3_style_value = calculateMargin(
1154
+ /*mt*/
1155
+ ctx[4],
1156
+ /*mr*/
1157
+ ctx[5],
1158
+ /*mb*/
1159
+ ctx[6],
1160
+ /*ml*/
1161
+ ctx[7]));
1162
+ attr(div3, "class", `
1163
+ goa-accordion
1164
+ `);
1165
+ attr(div3, "data-testid",
1166
+ /*testid*/
1167
+ ctx[3]);
1168
+ },
1169
+
1170
+ m(target, anchor) {
1171
+ insert(target, div3, anchor);
1172
+ append(div3, details);
1173
+ append(details, summary);
1174
+ append(summary, goa_icon);
1175
+ append(summary, t0);
1176
+ append(summary, div1);
1177
+ append(div1, span0);
1178
+ append(span0, t1);
1179
+ append(div1, t2);
1180
+ append(div1, span1);
1181
+ append(span1, t3);
1182
+ append(div1, t4);
1183
+ append(div1, div0);
1184
+ append(details, t5);
1185
+ append(details, div2);
1186
+
1187
+ if (!mounted) {
1188
+ dispose = [listen(summary, "mouseover",
1189
+ /*mouseover_handler*/
1190
+ ctx[11]), listen(summary, "mouseout",
1191
+ /*mouseout_handler*/
1192
+ ctx[12]), listen(summary, "focus",
1193
+ /*focus_handler*/
1194
+ ctx[13]), listen(summary, "blur",
1195
+ /*blur_handler*/
1196
+ ctx[14])];
1197
+ mounted = true;
1198
+ }
1199
+ },
1200
+
1201
+ p(ctx, [dirty]) {
1202
+ if (dirty &
1203
+ /*_hovering*/
1204
+ 256 && goa_icon_fillcolor_value !== (goa_icon_fillcolor_value =
1205
+ /*_hovering*/
1206
+ ctx[8] ? "var(--goa-color-interactive-hover)" : "var(--goa-color-interactive-default)")) {
1207
+ set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value);
1208
+ }
1209
+
1210
+ if (dirty &
1211
+ /*heading*/
1212
+ 1) set_data(t1,
1213
+ /*heading*/
1214
+ ctx[0]);
1215
+
1216
+ if (dirty &
1217
+ /*headingsize*/
1218
+ 4 && span0_class_value !== (span0_class_value = "heading heading-" +
1219
+ /*headingsize*/
1220
+ ctx[2])) {
1221
+ attr(span0, "class", span0_class_value);
1222
+ }
1223
+
1224
+ if (dirty &
1225
+ /*testid*/
1226
+ 8 && span0_data_testid_value !== (span0_data_testid_value = `${
1227
+ /*testid*/
1228
+ ctx[3]}-heading`)) {
1229
+ attr(span0, "data-testid", span0_data_testid_value);
1230
+ }
1231
+
1232
+ if (dirty &
1233
+ /*secondarytext*/
1234
+ 2) set_data(t3,
1235
+ /*secondarytext*/
1236
+ ctx[1]);
1237
+
1238
+ if (dirty &
1239
+ /*headingsize*/
1240
+ 4 && summary_class_value !== (summary_class_value = `container-${
1241
+ /*headingsize*/
1242
+ ctx[2]}`)) {
1243
+ attr(summary, "class", summary_class_value);
1244
+ }
1245
+
1246
+ if (dirty &
1247
+ /*isOpen*/
1248
+ 512) {
1249
+ details.open =
1250
+ /*isOpen*/
1251
+ ctx[9];
1252
+ }
1253
+
1254
+ if (dirty &
1255
+ /*mt, mr, mb, ml*/
1256
+ 240 && div3_style_value !== (div3_style_value = calculateMargin(
1257
+ /*mt*/
1258
+ ctx[4],
1259
+ /*mr*/
1260
+ ctx[5],
1261
+ /*mb*/
1262
+ ctx[6],
1263
+ /*ml*/
1264
+ ctx[7]))) {
1265
+ attr(div3, "style", div3_style_value);
1266
+ }
1267
+
1268
+ if (dirty &
1269
+ /*testid*/
1270
+ 8) {
1271
+ attr(div3, "data-testid",
1272
+ /*testid*/
1273
+ ctx[3]);
1274
+ }
1275
+ },
1276
+
1277
+ i: noop,
1278
+ o: noop,
1279
+
1280
+ d(detaching) {
1281
+ if (detaching) detach(div3);
1282
+ mounted = false;
1283
+ run_all(dispose);
1284
+ }
1285
+
1286
+ };
1287
+ }
1288
+
1289
+ function instance$B($$self, $$props, $$invalidate) {
1290
+ let isOpen;
1291
+ const [HeadingSizes, validateHeadingSize] = typeValidator("Accordion heading size", ["small", "medium"]);
1292
+ let {
1293
+ open = "false"
1294
+ } = $$props;
1295
+ let {
1296
+ heading = ""
1297
+ } = $$props;
1298
+ let {
1299
+ secondarytext = ""
1300
+ } = $$props;
1301
+ let {
1302
+ headingsize = "small"
1303
+ } = $$props;
1304
+ let {
1305
+ testid = ""
1306
+ } = $$props;
1307
+ let {
1308
+ mt = null
1309
+ } = $$props;
1310
+ let {
1311
+ mr = null
1312
+ } = $$props;
1313
+ let {
1314
+ mb = "xs"
1315
+ } = $$props;
1316
+ let {
1317
+ ml = null
1318
+ } = $$props;
1319
+ let _hovering = false;
1320
+ onMount(() => {
1321
+ validateRequired("GoAAccordion", {
1322
+ heading
1323
+ });
1324
+ validateHeadingSize(headingsize);
1325
+ });
1326
+
1327
+ const mouseover_handler = () => $$invalidate(8, _hovering = true);
1328
+
1329
+ const mouseout_handler = () => $$invalidate(8, _hovering = false);
1330
+
1331
+ const focus_handler = () => $$invalidate(8, _hovering = false);
1332
+
1333
+ const blur_handler = () => $$invalidate(8, _hovering = false);
1334
+
1335
+ $$self.$$set = $$props => {
1336
+ if ('open' in $$props) $$invalidate(10, open = $$props.open);
1337
+ if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
1338
+ if ('secondarytext' in $$props) $$invalidate(1, secondarytext = $$props.secondarytext);
1339
+ if ('headingsize' in $$props) $$invalidate(2, headingsize = $$props.headingsize);
1340
+ if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
1341
+ if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
1342
+ if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
1343
+ if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
1344
+ if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
1345
+ };
1346
+
1347
+ $$self.$$.update = () => {
1348
+ if ($$self.$$.dirty &
1349
+ /*open*/
1350
+ 1024) {
1351
+ $$invalidate(9, isOpen = toBoolean(open));
1352
+ }
1353
+ };
1354
+
1355
+ return [heading, secondarytext, headingsize, testid, mt, mr, mb, ml, _hovering, isOpen, open, mouseover_handler, mouseout_handler, focus_handler, blur_handler];
1356
+ }
1357
+
1358
+ class Accordion extends SvelteElement {
1359
+ constructor(options) {
1360
+ super();
1361
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4)}.goa-accordion,.goa-accordion *{box-sizing:border-box}summary{min-height:3.5rem;border-width:var(--goa-border-width-s);border-style:solid;border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);color:var(--goa-color-text-default);;;padding:0.875rem 1rem 0 0;cursor:pointer;list-style:none;display:flex;align-items:flex-start;position:relative}summary.container-medium{min-height:4rem}summary::marker,summary::-webkit-details-marker{display:none}summary .title{display:flex;align-items:center;flex:1}.title span{padding-bottom:var(--goa-space-3xs, 0)}summary .heading{font:var(--goa-typography-heading-s);padding-right:1rem}summary .secondary-text{font:var(--goa-typography-body-s);line-height:1.5rem;padding-right:1rem}summary .heading-content{flex:1
1362
+ }.content{border-bottom:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-left:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-right:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);padding:1.5rem;padding-left:3.5rem;padding-right:2rem}summary goa-icon{padding:0.125rem 1rem}summary.container-medium goa-icon{padding:0.375rem 1rem}details[open] goa-icon{transform:rotate(90deg)}details[open] summary{border-bottom-left-radius:var(--goa-border-radius-none);border-bottom-right-radius:var(--goa-border-radius-none)}summary:hover{background-color:var(--goa-color-greyscale-200)}summary:focus,summary:active{background-color:var(--goa-color-greyscale-100);outline:none}summary:active::before,summary:focus::before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:var(--goa-border-width-l) solid var(--goa-color-interactive-focus);border-radius:4px}summary .heading.heading-medium{line-height:2rem;font:var(--goa-typography-heading-m)}@media(max-width: 640px){summary{align-items:flex-start}summary .title{flex-direction:column;align-items:flex-start}}</style>`;
1363
+ init(this, {
1364
+ target: this.shadowRoot,
1365
+ props: attribute_to_object(this.attributes),
1366
+ customElement: true
1367
+ }, instance$B, create_fragment$H, safe_not_equal, {
1368
+ open: 10,
1369
+ heading: 0,
1370
+ secondarytext: 1,
1371
+ headingsize: 2,
1372
+ testid: 3,
1373
+ mt: 4,
1374
+ mr: 5,
1375
+ mb: 6,
1376
+ ml: 7
1377
+ }, null);
1378
+
1379
+ if (options) {
1380
+ if (options.target) {
1381
+ insert(options.target, this, options.anchor);
1382
+ }
1383
+
1384
+ if (options.props) {
1385
+ this.$set(options.props);
1386
+ flush();
1387
+ }
1388
+ }
1389
+ }
1390
+
1391
+ static get observedAttributes() {
1392
+ return ["open", "heading", "secondarytext", "headingsize", "testid", "mt", "mr", "mb", "ml"];
1393
+ }
1394
+
1395
+ get open() {
1396
+ return this.$$.ctx[10];
1397
+ }
1398
+
1399
+ set open(open) {
1400
+ this.$$set({
1401
+ open
1402
+ });
1403
+ flush();
1404
+ }
1405
+
1406
+ get heading() {
1407
+ return this.$$.ctx[0];
1408
+ }
1409
+
1410
+ set heading(heading) {
1411
+ this.$$set({
1412
+ heading
1413
+ });
1414
+ flush();
1415
+ }
1416
+
1417
+ get secondarytext() {
1418
+ return this.$$.ctx[1];
1419
+ }
1420
+
1421
+ set secondarytext(secondarytext) {
1422
+ this.$$set({
1423
+ secondarytext
1424
+ });
1425
+ flush();
1426
+ }
1427
+
1428
+ get headingsize() {
1429
+ return this.$$.ctx[2];
1430
+ }
1431
+
1432
+ set headingsize(headingsize) {
1433
+ this.$$set({
1434
+ headingsize
1435
+ });
1436
+ flush();
1437
+ }
1438
+
1439
+ get testid() {
1440
+ return this.$$.ctx[3];
1441
+ }
1442
+
1443
+ set testid(testid) {
1444
+ this.$$set({
1445
+ testid
1446
+ });
1447
+ flush();
1448
+ }
1449
+
1450
+ get mt() {
1451
+ return this.$$.ctx[4];
1452
+ }
1453
+
1454
+ set mt(mt) {
1455
+ this.$$set({
1456
+ mt
1457
+ });
1458
+ flush();
1459
+ }
1460
+
1461
+ get mr() {
1462
+ return this.$$.ctx[5];
1463
+ }
1464
+
1465
+ set mr(mr) {
1466
+ this.$$set({
1467
+ mr
1468
+ });
1469
+ flush();
1470
+ }
1471
+
1472
+ get mb() {
1473
+ return this.$$.ctx[6];
1474
+ }
1475
+
1476
+ set mb(mb) {
1477
+ this.$$set({
1478
+ mb
1479
+ });
1480
+ flush();
1481
+ }
1482
+
1483
+ get ml() {
1484
+ return this.$$.ctx[7];
1485
+ }
1486
+
1487
+ set ml(ml) {
1488
+ this.$$set({
1489
+ ml
1490
+ });
1491
+ flush();
1492
+ }
1493
+
1494
+ }
1495
+
1496
+ customElements.define("goa-accordion", Accordion);
1027
1497
  /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
1028
1498
 
1029
1499
  function create_else_block$4(ctx) {
@@ -1336,65 +1806,8 @@ class AppHeader extends SvelteElement {
1336
1806
  }
1337
1807
 
1338
1808
  customElements.define("goa-app-header", AppHeader);
1339
-
1340
- function calculateMargin(mt, mr, mb, ml) {
1341
- return [mt && `margin-top:var(--goa-space-${mt});`, mr && `margin-right:var(--goa-space-${mr});`, mb && `margin-bottom:var(--goa-space-${mb});`, ml && `margin-left:var(--goa-space-${ml});`].join(" ");
1342
- }
1343
-
1344
- function injectCss(el, rootSelector, css, media) {
1345
- const style = document.createElement("style");
1346
-
1347
- const _css = Object.entries(css).map(entry => `${entry[0]}: ${entry[1]};`).join(" ");
1348
-
1349
- if (media) {
1350
- style.innerHTML = `@media (${media}) { ${rootSelector} {${_css}} }`;
1351
- } else {
1352
- style.innerHTML = `${rootSelector} {${_css}}`;
1353
- }
1354
-
1355
- el.appendChild(style);
1356
- }
1357
-
1358
- function toBoolean(value) {
1359
- if (value === "false") {
1360
- return false;
1361
- }
1362
-
1363
- if (value === "") {
1364
- return true;
1365
- }
1366
-
1367
- return !!value;
1368
- }
1369
-
1370
- function fromBoolean(value) {
1371
- return value ? "true" : "false";
1372
- }
1373
-
1374
- function validateRequired(componentName, props) {
1375
- Object.entries(props).forEach(prop => {
1376
- if (!prop[1]) {
1377
- console.warn(`${componentName}: ${prop[0]} is required`);
1378
- }
1379
- });
1380
- }
1381
-
1382
- function typeValidator(message, values, required = false) {
1383
- const validator = value => {
1384
- if (!required && !value) {
1385
- return;
1386
- }
1387
-
1388
- if (!values.includes(value)) {
1389
- console.error(`[${value}] is an invalid ${message.toLowerCase()}`);
1390
- }
1391
- };
1392
-
1393
- return [values, validator];
1394
- }
1395
1809
  /* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
1396
1810
 
1397
-
1398
1811
  function create_else_block$3(ctx) {
1399
1812
  let div;
1400
1813
  return {
@@ -7738,8 +8151,6 @@ function create_if_block$a(ctx) {
7738
8151
  }
7739
8152
 
7740
8153
  function create_fragment$n(ctx) {
7741
- var _ctx$;
7742
-
7743
8154
  let div5;
7744
8155
  let div4;
7745
8156
  let div0;
@@ -7755,11 +8166,11 @@ function create_fragment$n(ctx) {
7755
8166
  let div5_style_value;
7756
8167
  let if_block =
7757
8168
  /*navLinks*/
7758
- ((_ctx$ = ctx[2]) === null || _ctx$ === void 0 ? void 0 : _ctx$.length) && create_if_block$a();
8169
+ ctx[2] &&
8170
+ /*navLinks*/
8171
+ ctx[2].length > 0 && create_if_block$a();
7759
8172
  return {
7760
8173
  c() {
7761
- var _ctx$2, _ctx$3;
7762
-
7763
8174
  div5 = element("div");
7764
8175
  div4 = element("div");
7765
8176
  div0 = element("div");
@@ -7788,11 +8199,15 @@ function create_fragment$n(ctx) {
7788
8199
  attr(div2, "class", "abgov");
7789
8200
  toggle_class(div2, "with-meta-links",
7790
8201
  /*metaLinks*/
7791
- (_ctx$2 = ctx[3]) === null || _ctx$2 === void 0 ? void 0 : _ctx$2.length);
8202
+ ctx[3] &&
8203
+ /*metaLinks*/
8204
+ ctx[3].length > 0);
7792
8205
  attr(div3, "class", "meta-section");
7793
8206
  toggle_class(div3, "with-meta-links",
7794
8207
  /*metaLinks*/
7795
- (_ctx$3 = ctx[3]) === null || _ctx$3 === void 0 ? void 0 : _ctx$3.length);
8208
+ ctx[3] &&
8209
+ /*metaLinks*/
8210
+ ctx[3].length > 0);
7796
8211
  attr(div4, "class", "content");
7797
8212
  attr(div5, "class", "app-footer");
7798
8213
  attr(div5, "style", div5_style_value = `--max-content-width: ${
@@ -7820,11 +8235,11 @@ function create_fragment$n(ctx) {
7820
8235
  },
7821
8236
 
7822
8237
  p(ctx, [dirty]) {
7823
- var _ctx$4;
7824
-
7825
8238
  if (
7826
8239
  /*navLinks*/
7827
- (_ctx$4 = ctx[2]) !== null && _ctx$4 !== void 0 && _ctx$4.length) {
8240
+ ctx[2] &&
8241
+ /*navLinks*/
8242
+ ctx[2].length > 0) {
7828
8243
  if (if_block) ;else {
7829
8244
  if_block = create_if_block$a();
7830
8245
  if_block.c();
@@ -7838,21 +8253,21 @@ function create_fragment$n(ctx) {
7838
8253
  if (dirty &
7839
8254
  /*metaLinks*/
7840
8255
  8) {
7841
- var _ctx$5;
7842
-
7843
8256
  toggle_class(div2, "with-meta-links",
7844
8257
  /*metaLinks*/
7845
- (_ctx$5 = ctx[3]) === null || _ctx$5 === void 0 ? void 0 : _ctx$5.length);
8258
+ ctx[3] &&
8259
+ /*metaLinks*/
8260
+ ctx[3].length > 0);
7846
8261
  }
7847
8262
 
7848
8263
  if (dirty &
7849
8264
  /*metaLinks*/
7850
8265
  8) {
7851
- var _ctx$6;
7852
-
7853
8266
  toggle_class(div3, "with-meta-links",
7854
8267
  /*metaLinks*/
7855
- (_ctx$6 = ctx[3]) === null || _ctx$6 === void 0 ? void 0 : _ctx$6.length);
8268
+ ctx[3] &&
8269
+ /*metaLinks*/
8270
+ ctx[3].length > 0);
7856
8271
  }
7857
8272
 
7858
8273
  if (dirty &
@@ -11110,7 +11525,7 @@ function instance$d($$self, $$props, $$invalidate) {
11110
11525
  class Input extends SvelteElement {
11111
11526
  constructor(options) {
11112
11527
  super();
11113
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box;line-height:normal}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%;background-color:var(--color-white)}.goa-input:hover{border-color:var(--goa-color-interactive-hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);padding:var(--goa-space-xs);line-height:calc(40px - calc(var(--goa-space-xs) * 2));background-color:transparent;width:100%;flex:1 1 auto;font-family:var(--goa-font-family-sans)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix,.leading-content ::slotted(div),.trailing-content ::slotted(div){background-color:var(--goa-color-greyscale-100);padding:0 0.75rem;display:flex;align-items:center}.leading-content ::slotted(div),.trailing-content ::slotted(div){padding:0.5rem 0.75rem}.prefix,.leading-content ::slotted(div){border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m);border-right:1px solid var(--goa-color-greyscale-700)}.suffix,.trailing-content ::slotted(div){border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);border-left:1px solid var(--goa-color-greyscale-700)}.goa-input--disabled .prefix,.goa-input--disabled .leading-content ::slotted(div){border-right:1px solid var(--goa-color-greyscale-200)}.goa-input--disabled .suffix,.goa-input--disabled .trailing-content ::slotted(div){border-left:1px solid var(--goa-color-greyscale-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
11528
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box;line-height:normal}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%;background-color:var(--goa-color-greyscale-white)}.goa-input:hover{border-color:var(--goa-color-interactive-hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);padding:var(--goa-space-xs);line-height:calc(40px - calc(var(--goa-space-xs) * 2));background-color:transparent;width:100%;flex:1 1 auto;font-family:var(--goa-font-family-sans)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix,.leading-content ::slotted(div),.trailing-content ::slotted(div){background-color:var(--goa-color-greyscale-100);padding:0 0.75rem;display:flex;align-items:center}.leading-content ::slotted(div),.trailing-content ::slotted(div){padding:0.5rem 0.75rem}.prefix,.leading-content ::slotted(div){border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m);border-right:1px solid var(--goa-color-greyscale-700)}.suffix,.trailing-content ::slotted(div){border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);border-left:1px solid var(--goa-color-greyscale-700)}.goa-input--disabled .prefix,.goa-input--disabled .leading-content ::slotted(div){border-right:1px solid var(--goa-color-greyscale-200)}.goa-input--disabled .suffix,.goa-input--disabled .trailing-content ::slotted(div){border-left:1px solid var(--goa-color-greyscale-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
11114
11529
  center center no-repeat}</style>`;
11115
11530
  init(this, {
11116
11531
  target: this.shadowRoot,
@@ -16739,6 +17154,38 @@ class Pagination extends SvelteElement {
16739
17154
 
16740
17155
  customElements.define("goa-pagination", Pagination);
16741
17156
 
17157
+ const GoAAccordion = ({
17158
+ open,
17159
+ heading,
17160
+ headingSize,
17161
+ secondaryText,
17162
+ headingContent,
17163
+ testid,
17164
+ children,
17165
+ mt,
17166
+ mr,
17167
+ mb,
17168
+ ml
17169
+ }) => {
17170
+ return jsxs("goa-accordion", Object.assign({
17171
+ open: open,
17172
+ headingSize: headingSize,
17173
+ heading: heading,
17174
+ secondaryText: secondaryText,
17175
+ "data-testid": testid,
17176
+ mt: mt,
17177
+ mr: mr,
17178
+ mb: mb,
17179
+ ml: ml
17180
+ }, {
17181
+ children: [children, headingContent && jsx("div", Object.assign({
17182
+ slot: "headingcontent"
17183
+ }, {
17184
+ children: headingContent
17185
+ }), void 0)]
17186
+ }), void 0);
17187
+ };
17188
+
16742
17189
  const GoAAppHeader = ({
16743
17190
  heading,
16744
17191
  url,
@@ -18013,4 +18460,4 @@ function GoATwoColumnLayout(props) {
18013
18460
  }), void 0);
18014
18461
  }
18015
18462
 
18016
- export { GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoABlock, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADivider, GoADropdown, GoADropdownItem, GoADropdownOption, GoAEmergencyBadge, GoAFormItem, GoAGrid, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAImportantBadge, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAOneColumnLayout, GoAPageBlock, GoAPagination, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpacer, GoASpinner, GoASuccessBadge, GoATable, GoATextArea, GoATwoColumnLayout };
18463
+ export { GoAAccordion, GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoABlock, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADivider, GoADropdown, GoADropdownItem, GoADropdownOption, GoAEmergencyBadge, GoAFormItem, GoAGrid, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAImportantBadge, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAOneColumnLayout, GoAPageBlock, GoAPagination, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpacer, GoASpinner, GoASuccessBadge, GoATable, GoATextArea, GoATwoColumnLayout };