@abgov/react-components 4.17.0-alpha.22 → 4.17.0-alpha.23
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/index.js +57 -17
- package/index.js.map +1 -1
- package/index.mjs +57 -17
- package/index.mjs.map +1 -1
- package/lib/app-header-menu/app-header-menu.d.ts +1 -0
- package/lib/calendar/calendar.d.ts +2 -1
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/details/details.d.ts +1 -0
- package/lib/file-upload-card/file-upload-card.d.ts +2 -1
- package/lib/file-upload-input/file-upload-input.d.ts +2 -1
- package/lib/footer-meta-section/footer-meta-section.d.ts +2 -1
- package/lib/side-menu/side-menu.d.ts +1 -0
- package/lib/side-menu-group/side-menu-group.d.ts +1 -0
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18355,7 +18355,7 @@ class bf extends se {
|
|
|
18355
18355
|
}
|
|
18356
18356
|
customElements.define("goa-tab", re(bf, { heading: {}, open: {} }, ["heading", "default"], [], true));
|
|
18357
18357
|
function pf(t) {
|
|
18358
|
-
de(t, "svelte-
|
|
18358
|
+
de(t, "svelte-1wrp53x", ".goatable.svelte-1wrp53x{width:0}table.svelte-1wrp53x{border-collapse:collapse}");
|
|
18359
18359
|
}
|
|
18360
18360
|
function _f(t) {
|
|
18361
18361
|
let e, n, l;
|
|
@@ -18372,7 +18372,7 @@ function _f(t) {
|
|
|
18372
18372
|
return {
|
|
18373
18373
|
c() {
|
|
18374
18374
|
e = z("table"), o && o.c(), f(e, "style", n = /*width*/
|
|
18375
|
-
t[0] && "width: 100%;"), f(e, "class", "svelte-
|
|
18375
|
+
t[0] && "width: 100%;"), f(e, "class", "svelte-1wrp53x");
|
|
18376
18376
|
},
|
|
18377
18377
|
m(r, s) {
|
|
18378
18378
|
P(r, e, s), o && o.m(e, null), l = true;
|
|
@@ -18474,7 +18474,8 @@ function yf(t) {
|
|
|
18474
18474
|
return n = c(t), l = a[n] = s[n](t), {
|
|
18475
18475
|
c() {
|
|
18476
18476
|
e = z("div"), l.c(), f(e, "class", i = ze(`goatable ${/*variant*/
|
|
18477
|
-
t[1]}`) + " svelte-
|
|
18477
|
+
t[1]}`) + " svelte-1wrp53x"), f(e, "style", o = `
|
|
18478
|
+
overflow-x: auto;
|
|
18478
18479
|
${`width: ${/*width*/
|
|
18479
18480
|
t[0] || "100%"};`}
|
|
18480
18481
|
${fe(
|
|
@@ -18503,8 +18504,9 @@ function yf(t) {
|
|
|
18503
18504
|
a[m] = null;
|
|
18504
18505
|
}), Pe(), l = a[n], l ? l.p(d, u) : (l = a[n] = s[n](d), l.c()), N(l, 1), l.m(e, null)), (!r || u & /*variant*/
|
|
18505
18506
|
2 && i !== (i = ze(`goatable ${/*variant*/
|
|
18506
|
-
d[1]}`) + " svelte-
|
|
18507
|
+
d[1]}`) + " svelte-1wrp53x")) && f(e, "class", i), (!r || u & /*width, mt, mr, mb, ml*/
|
|
18507
18508
|
61 && o !== (o = `
|
|
18509
|
+
overflow-x: auto;
|
|
18508
18510
|
${`width: ${/*width*/
|
|
18509
18511
|
d[0] || "100%"};`}
|
|
18510
18512
|
${fe(
|
|
@@ -18673,7 +18675,7 @@ class zf extends se {
|
|
|
18673
18675
|
this.$$set({ ml: e }), _();
|
|
18674
18676
|
}
|
|
18675
18677
|
}
|
|
18676
|
-
customElements.define("goa-table", re(zf, { width: {}, stickyheader: {}, variant: {}, mt: {}, mr: {}, mb: {}, ml: {} }, ["default"], [], true));
|
|
18678
|
+
customElements.define("goa-table", re(zf, { width: {}, stickyheader: {}, variant: { reflect: true }, mt: {}, mr: {}, mb: {}, ml: {} }, ["default"], [], true));
|
|
18677
18679
|
function Cf(t) {
|
|
18678
18680
|
de(t, "svelte-w89d7d", ":host{display:flex;align-items:flex-end}button.svelte-w89d7d.svelte-w89d7d{border:none;background:none;display:flex;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;width:100%;height:3.75rem;padding:0 1rem;justify-content:var(--header-text-align, flex-start);gap:0.25rem;align-items:center}button.svelte-w89d7d.svelte-w89d7d:hover{background-color:var(--goa-color-greyscale-100);cursor:pointer;color:var(--goa-color-interactive-hover)}button.svelte-w89d7d goa-icon.svelte-w89d7d{color:var(--goa-color-interactive-default)}button.svelte-w89d7d:hover goa-icon.svelte-w89d7d{color:var(--goa-color-interactive-hover)}button.svelte-w89d7d .direction--none goa-icon.svelte-w89d7d{color:var(--goa-color-greyscale-400)}button.svelte-w89d7d:hover .direction--none goa-icon.svelte-w89d7d{color:var(--goa-color-greyscale-400)}goa-icon.svelte-w89d7d.svelte-w89d7d{scale:0.8}.direction--none.svelte-w89d7d goa-icon.svelte-w89d7d{height:0.625rem}.direction--none.svelte-w89d7d.svelte-w89d7d{display:inline-flex;flex-direction:column;align-items:center}");
|
|
18679
18681
|
}
|
|
@@ -20311,6 +20313,7 @@ function GoAAppHeaderMenu(props) {
|
|
|
20311
20313
|
{
|
|
20312
20314
|
heading: props.heading,
|
|
20313
20315
|
leadingicon: props.leadingIcon,
|
|
20316
|
+
"data-testid": props.testId,
|
|
20314
20317
|
children: props.children
|
|
20315
20318
|
}
|
|
20316
20319
|
);
|
|
@@ -20537,6 +20540,7 @@ function GoACalendar({
|
|
|
20537
20540
|
value,
|
|
20538
20541
|
min,
|
|
20539
20542
|
max,
|
|
20543
|
+
testId,
|
|
20540
20544
|
mt: mt2,
|
|
20541
20545
|
mr: mr2,
|
|
20542
20546
|
mb,
|
|
@@ -20561,6 +20565,7 @@ function GoACalendar({
|
|
|
20561
20565
|
value: value == null ? void 0 : value.toISOString(),
|
|
20562
20566
|
min: min == null ? void 0 : min.toISOString(),
|
|
20563
20567
|
max: max == null ? void 0 : max.toISOString(),
|
|
20568
|
+
"data-testid": testId,
|
|
20564
20569
|
mt: mt2,
|
|
20565
20570
|
mr: mr2,
|
|
20566
20571
|
mb,
|
|
@@ -20757,6 +20762,7 @@ function GoADatePicker({
|
|
|
20757
20762
|
error,
|
|
20758
20763
|
min,
|
|
20759
20764
|
max,
|
|
20765
|
+
testId,
|
|
20760
20766
|
mt: mt2,
|
|
20761
20767
|
mr: mr2,
|
|
20762
20768
|
mb,
|
|
@@ -20782,6 +20788,7 @@ function GoADatePicker({
|
|
|
20782
20788
|
error,
|
|
20783
20789
|
min: min == null ? void 0 : min.toISOString(),
|
|
20784
20790
|
max: max == null ? void 0 : max.toISOString(),
|
|
20791
|
+
"data-testid": testId,
|
|
20785
20792
|
mt: mt2,
|
|
20786
20793
|
mr: mr2,
|
|
20787
20794
|
mb,
|
|
@@ -20795,6 +20802,7 @@ function GoADetails(props) {
|
|
|
20795
20802
|
{
|
|
20796
20803
|
heading: props.heading,
|
|
20797
20804
|
open: props.open,
|
|
20805
|
+
"data-testid": props.testId,
|
|
20798
20806
|
mt: props.mt,
|
|
20799
20807
|
mr: props.mr,
|
|
20800
20808
|
mb: props.mb,
|
|
@@ -20892,6 +20900,7 @@ function GoAFileUploadCard({
|
|
|
20892
20900
|
type,
|
|
20893
20901
|
progress,
|
|
20894
20902
|
error,
|
|
20903
|
+
testId,
|
|
20895
20904
|
onDelete,
|
|
20896
20905
|
onCancel
|
|
20897
20906
|
}) {
|
|
@@ -20917,7 +20926,8 @@ function GoAFileUploadCard({
|
|
|
20917
20926
|
size,
|
|
20918
20927
|
type,
|
|
20919
20928
|
progress,
|
|
20920
|
-
error
|
|
20929
|
+
error,
|
|
20930
|
+
"data-testid": testId
|
|
20921
20931
|
}
|
|
20922
20932
|
);
|
|
20923
20933
|
}
|
|
@@ -20925,6 +20935,7 @@ function GoAFileUploadInput({
|
|
|
20925
20935
|
variant,
|
|
20926
20936
|
accept,
|
|
20927
20937
|
maxFileSize,
|
|
20938
|
+
testId,
|
|
20928
20939
|
onSelectFile
|
|
20929
20940
|
}) {
|
|
20930
20941
|
const el2 = react.useRef(null);
|
|
@@ -20946,7 +20957,8 @@ function GoAFileUploadInput({
|
|
|
20946
20957
|
ref: el2,
|
|
20947
20958
|
variant,
|
|
20948
20959
|
accept,
|
|
20949
|
-
maxfilesize: maxFileSize
|
|
20960
|
+
maxfilesize: maxFileSize,
|
|
20961
|
+
"data-testid": testId
|
|
20950
20962
|
}
|
|
20951
20963
|
);
|
|
20952
20964
|
}
|
|
@@ -20957,8 +20969,15 @@ function GoAAppFooter({
|
|
|
20957
20969
|
}) {
|
|
20958
20970
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, "data-testid": testId, children });
|
|
20959
20971
|
}
|
|
20960
|
-
function GoAAppFooterMetaSection({ children }) {
|
|
20961
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20972
|
+
function GoAAppFooterMetaSection({ testId, children }) {
|
|
20973
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20974
|
+
"goa-app-footer-meta-section",
|
|
20975
|
+
{
|
|
20976
|
+
"data-testid": testId,
|
|
20977
|
+
slot: "meta",
|
|
20978
|
+
children
|
|
20979
|
+
}
|
|
20980
|
+
);
|
|
20962
20981
|
}
|
|
20963
20982
|
function GoAAppFooterNavSection({
|
|
20964
20983
|
heading,
|
|
@@ -23338,16 +23357,30 @@ function GoARadioGroup({
|
|
|
23338
23357
|
);
|
|
23339
23358
|
}
|
|
23340
23359
|
function GoASideMenuGroup(props) {
|
|
23341
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23360
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23361
|
+
"goa-side-menu-group",
|
|
23362
|
+
{
|
|
23363
|
+
heading: props.heading,
|
|
23364
|
+
"data-testid": props.testId,
|
|
23365
|
+
children: props.children
|
|
23366
|
+
}
|
|
23367
|
+
);
|
|
23342
23368
|
}
|
|
23343
23369
|
function GoASideMenuHeading(props) {
|
|
23344
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23370
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23371
|
+
"goa-side-menu-heading",
|
|
23372
|
+
{
|
|
23373
|
+
icon: props.icon,
|
|
23374
|
+
"data-testid": props.testId,
|
|
23375
|
+
children: [
|
|
23376
|
+
props.children,
|
|
23377
|
+
props.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: props.meta })
|
|
23378
|
+
]
|
|
23379
|
+
}
|
|
23380
|
+
);
|
|
23348
23381
|
}
|
|
23349
23382
|
function GoASideMenu(props) {
|
|
23350
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", { children: props.children });
|
|
23383
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", { "data-testid": props.testId, children: props.children });
|
|
23351
23384
|
}
|
|
23352
23385
|
const GoASkeleton = ({
|
|
23353
23386
|
maxWidth,
|
|
@@ -23442,8 +23475,15 @@ function GoATableSortHeader({
|
|
|
23442
23475
|
}) {
|
|
23443
23476
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { name, direction, children });
|
|
23444
23477
|
}
|
|
23445
|
-
function GoATabs({ initialTab, children }) {
|
|
23446
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23478
|
+
function GoATabs({ initialTab, children, testId }) {
|
|
23479
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23480
|
+
"goa-tabs",
|
|
23481
|
+
{
|
|
23482
|
+
initialtab: initialTab,
|
|
23483
|
+
"data-testid": testId,
|
|
23484
|
+
children
|
|
23485
|
+
}
|
|
23486
|
+
);
|
|
23447
23487
|
}
|
|
23448
23488
|
function GoATab({ heading, children }) {
|
|
23449
23489
|
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
|