@abgov/react-components 4.0.0-alpha.65 → 4.0.0-alpha.67
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/lib/container/container.d.ts +1 -1
- package/package.json +1 -1
- package/react-components.esm.js +11 -14
- package/react-components.umd.js +11 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
declare type ContainerType = 'interactive' | 'non-interactive' | 'info' | 'error' | 'success' | '
|
|
2
|
+
declare type ContainerType = 'interactive' | 'non-interactive' | 'info' | 'error' | 'success' | 'important';
|
|
3
3
|
declare type Accent = 'thick' | 'thin' | 'filled';
|
|
4
4
|
declare type ContainerPadding = "relaxed" | "compact";
|
|
5
5
|
interface WCProps {
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -1162,7 +1162,7 @@ function create_fragment$F(ctx) {
|
|
|
1162
1162
|
ctx[2]);
|
|
1163
1163
|
attr(div2, "style", div2_style_value = `--max-content-width: ${
|
|
1164
1164
|
/*maxcontentwidth*/
|
|
1165
|
-
ctx[3] || "
|
|
1165
|
+
ctx[3] || "100%"}`);
|
|
1166
1166
|
},
|
|
1167
1167
|
|
|
1168
1168
|
m(target, anchor) {
|
|
@@ -1198,7 +1198,7 @@ function create_fragment$F(ctx) {
|
|
|
1198
1198
|
/*maxcontentwidth*/
|
|
1199
1199
|
8 && div2_style_value !== (div2_style_value = `--max-content-width: ${
|
|
1200
1200
|
/*maxcontentwidth*/
|
|
1201
|
-
ctx[3] || "
|
|
1201
|
+
ctx[3] || "100%"}`)) {
|
|
1202
1202
|
attr(div2, "style", div2_style_value);
|
|
1203
1203
|
}
|
|
1204
1204
|
},
|
|
@@ -6976,7 +6976,7 @@ function create_fragment$k(ctx) {
|
|
|
6976
6976
|
attr(div5, "class", "app-footer");
|
|
6977
6977
|
attr(div5, "style", div5_style_value = `--max-content-width: ${
|
|
6978
6978
|
/*maxcontentwidth*/
|
|
6979
|
-
ctx[0] || "
|
|
6979
|
+
ctx[0] || "100%"}`);
|
|
6980
6980
|
},
|
|
6981
6981
|
|
|
6982
6982
|
m(target, anchor) {
|
|
@@ -7038,7 +7038,7 @@ function create_fragment$k(ctx) {
|
|
|
7038
7038
|
/*maxcontentwidth*/
|
|
7039
7039
|
1 && div5_style_value !== (div5_style_value = `--max-content-width: ${
|
|
7040
7040
|
/*maxcontentwidth*/
|
|
7041
|
-
ctx[0] || "
|
|
7041
|
+
ctx[0] || "100%"}`)) {
|
|
7042
7042
|
attr(div5, "style", div5_style_value);
|
|
7043
7043
|
}
|
|
7044
7044
|
},
|
|
@@ -7090,7 +7090,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
7090
7090
|
class Footer extends SvelteElement {
|
|
7091
7091
|
constructor(options) {
|
|
7092
7092
|
super();
|
|
7093
|
-
this.shadowRoot.innerHTML = `<style>*{box-sizing:border-box}.app-footer{background-color:var(--color-gray-100);border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width),
|
|
7093
|
+
this.shadowRoot.innerHTML = `<style>*{box-sizing:border-box}.app-footer{background-color:var(--color-gray-100);border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width), 100%)}@media(min-width: 640px){.content{padding:2rem 1.5rem}}.meta-section{display:flex;flex-direction:column;padding:1rem 0}.meta-section.with-meta-links{gap:2rem;justify-content:space-between}.meta-links{display:none}.with-meta-links .meta-links{display:block}.nav-links{display:flex;flex-direction:column;gap:2rem}.abgov{display:flex;flex-direction:column;justify-content:space-between;width:100%}@media(min-width: 640px){.meta-section{flex-direction:row;gap:2rem}.nav-links{flex-direction:row}.abgov{align-items:center;flex-direction:row-reverse}}.abgov.with-meta-links{gap:1rem;flex-direction:column;width:unset}@media(min-width: 640px){.abgov.with-meta-links{align-items:flex-end}}.goa-copyright{white-space:nowrap}a{color:var(--goa-color-text-secondary)}</style>`;
|
|
7094
7094
|
init(this, {
|
|
7095
7095
|
target: this.shadowRoot,
|
|
7096
7096
|
props: attribute_to_object(this.attributes),
|
|
@@ -10225,7 +10225,7 @@ function create_if_block$5(ctx) {
|
|
|
10225
10225
|
}
|
|
10226
10226
|
|
|
10227
10227
|
};
|
|
10228
|
-
} // (
|
|
10228
|
+
} // (55:8) {#if heading}
|
|
10229
10229
|
|
|
10230
10230
|
|
|
10231
10231
|
function create_if_block_3(ctx) {
|
|
@@ -10259,7 +10259,7 @@ function create_if_block_3(ctx) {
|
|
|
10259
10259
|
}
|
|
10260
10260
|
|
|
10261
10261
|
};
|
|
10262
|
-
} // (
|
|
10262
|
+
} // (58:8) {#if isClosable}
|
|
10263
10263
|
|
|
10264
10264
|
|
|
10265
10265
|
function create_if_block_2$2(ctx) {
|
|
@@ -10297,7 +10297,7 @@ function create_if_block_2$2(ctx) {
|
|
|
10297
10297
|
}
|
|
10298
10298
|
|
|
10299
10299
|
};
|
|
10300
|
-
} // (
|
|
10300
|
+
} // (72:10) {:else}
|
|
10301
10301
|
|
|
10302
10302
|
|
|
10303
10303
|
function create_else_block$1(ctx) {
|
|
@@ -10318,7 +10318,7 @@ function create_else_block$1(ctx) {
|
|
|
10318
10318
|
}
|
|
10319
10319
|
|
|
10320
10320
|
};
|
|
10321
|
-
} // (
|
|
10321
|
+
} // (68:10) {#if isScrollable}
|
|
10322
10322
|
|
|
10323
10323
|
|
|
10324
10324
|
function create_if_block_1$3(ctx) {
|
|
@@ -10433,9 +10433,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
10433
10433
|
let {
|
|
10434
10434
|
width
|
|
10435
10435
|
} = $$props;
|
|
10436
|
-
onMount(() => {
|
|
10437
|
-
console.log("in the modal v2");
|
|
10438
|
-
});
|
|
10439
10436
|
|
|
10440
10437
|
function close(e) {
|
|
10441
10438
|
if (!isClosable) {
|
|
@@ -13629,7 +13626,7 @@ function create_fragment$3(ctx) {
|
|
|
13629
13626
|
attr(div, "style", div_style_value = `
|
|
13630
13627
|
--max-content-width: ${
|
|
13631
13628
|
/*maxcontentwidth*/
|
|
13632
|
-
ctx[1] || "
|
|
13629
|
+
ctx[1] || "100%"};
|
|
13633
13630
|
--nav-column-width: ${
|
|
13634
13631
|
/*navcolumnwidth*/
|
|
13635
13632
|
ctx[0] || "var(--layout-nav-column-width)"};
|
|
@@ -13651,7 +13648,7 @@ function create_fragment$3(ctx) {
|
|
|
13651
13648
|
3 && div_style_value !== (div_style_value = `
|
|
13652
13649
|
--max-content-width: ${
|
|
13653
13650
|
/*maxcontentwidth*/
|
|
13654
|
-
ctx[1] || "
|
|
13651
|
+
ctx[1] || "100%"};
|
|
13655
13652
|
--nav-column-width: ${
|
|
13656
13653
|
/*navcolumnwidth*/
|
|
13657
13654
|
ctx[0] || "var(--layout-nav-column-width)"};
|
package/react-components.umd.js
CHANGED
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
ctx[2]);
|
|
1204
1204
|
attr(div2, "style", div2_style_value = `--max-content-width: ${
|
|
1205
1205
|
/*maxcontentwidth*/
|
|
1206
|
-
ctx[3] || "
|
|
1206
|
+
ctx[3] || "100%"}`);
|
|
1207
1207
|
},
|
|
1208
1208
|
|
|
1209
1209
|
m(target, anchor) {
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
/*maxcontentwidth*/
|
|
1240
1240
|
8 && div2_style_value !== (div2_style_value = `--max-content-width: ${
|
|
1241
1241
|
/*maxcontentwidth*/
|
|
1242
|
-
ctx[3] || "
|
|
1242
|
+
ctx[3] || "100%"}`)) {
|
|
1243
1243
|
attr(div2, "style", div2_style_value);
|
|
1244
1244
|
}
|
|
1245
1245
|
},
|
|
@@ -7022,7 +7022,7 @@
|
|
|
7022
7022
|
attr(div5, "class", "app-footer");
|
|
7023
7023
|
attr(div5, "style", div5_style_value = `--max-content-width: ${
|
|
7024
7024
|
/*maxcontentwidth*/
|
|
7025
|
-
ctx[0] || "
|
|
7025
|
+
ctx[0] || "100%"}`);
|
|
7026
7026
|
},
|
|
7027
7027
|
|
|
7028
7028
|
m(target, anchor) {
|
|
@@ -7084,7 +7084,7 @@
|
|
|
7084
7084
|
/*maxcontentwidth*/
|
|
7085
7085
|
1 && div5_style_value !== (div5_style_value = `--max-content-width: ${
|
|
7086
7086
|
/*maxcontentwidth*/
|
|
7087
|
-
ctx[0] || "
|
|
7087
|
+
ctx[0] || "100%"}`)) {
|
|
7088
7088
|
attr(div5, "style", div5_style_value);
|
|
7089
7089
|
}
|
|
7090
7090
|
},
|
|
@@ -7137,7 +7137,7 @@
|
|
|
7137
7137
|
class Footer extends SvelteElement {
|
|
7138
7138
|
constructor(options) {
|
|
7139
7139
|
super();
|
|
7140
|
-
this.shadowRoot.innerHTML = `<style>*{box-sizing:border-box}.app-footer{background-color:var(--color-gray-100);border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width),
|
|
7140
|
+
this.shadowRoot.innerHTML = `<style>*{box-sizing:border-box}.app-footer{background-color:var(--color-gray-100);border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width), 100%)}@media(min-width: 640px){.content{padding:2rem 1.5rem}}.meta-section{display:flex;flex-direction:column;padding:1rem 0}.meta-section.with-meta-links{gap:2rem;justify-content:space-between}.meta-links{display:none}.with-meta-links .meta-links{display:block}.nav-links{display:flex;flex-direction:column;gap:2rem}.abgov{display:flex;flex-direction:column;justify-content:space-between;width:100%}@media(min-width: 640px){.meta-section{flex-direction:row;gap:2rem}.nav-links{flex-direction:row}.abgov{align-items:center;flex-direction:row-reverse}}.abgov.with-meta-links{gap:1rem;flex-direction:column;width:unset}@media(min-width: 640px){.abgov.with-meta-links{align-items:flex-end}}.goa-copyright{white-space:nowrap}a{color:var(--goa-color-text-secondary)}</style>`;
|
|
7141
7141
|
init(this, {
|
|
7142
7142
|
target: this.shadowRoot,
|
|
7143
7143
|
props: attribute_to_object(this.attributes),
|
|
@@ -10272,7 +10272,7 @@
|
|
|
10272
10272
|
}
|
|
10273
10273
|
|
|
10274
10274
|
};
|
|
10275
|
-
} // (
|
|
10275
|
+
} // (55:8) {#if heading}
|
|
10276
10276
|
|
|
10277
10277
|
|
|
10278
10278
|
function create_if_block_3(ctx) {
|
|
@@ -10306,7 +10306,7 @@
|
|
|
10306
10306
|
}
|
|
10307
10307
|
|
|
10308
10308
|
};
|
|
10309
|
-
} // (
|
|
10309
|
+
} // (58:8) {#if isClosable}
|
|
10310
10310
|
|
|
10311
10311
|
|
|
10312
10312
|
function create_if_block_2$2(ctx) {
|
|
@@ -10344,7 +10344,7 @@
|
|
|
10344
10344
|
}
|
|
10345
10345
|
|
|
10346
10346
|
};
|
|
10347
|
-
} // (
|
|
10347
|
+
} // (72:10) {:else}
|
|
10348
10348
|
|
|
10349
10349
|
|
|
10350
10350
|
function create_else_block$1(ctx) {
|
|
@@ -10365,7 +10365,7 @@
|
|
|
10365
10365
|
}
|
|
10366
10366
|
|
|
10367
10367
|
};
|
|
10368
|
-
} // (
|
|
10368
|
+
} // (68:10) {#if isScrollable}
|
|
10369
10369
|
|
|
10370
10370
|
|
|
10371
10371
|
function create_if_block_1$3(ctx) {
|
|
@@ -10480,9 +10480,6 @@
|
|
|
10480
10480
|
let {
|
|
10481
10481
|
width
|
|
10482
10482
|
} = $$props;
|
|
10483
|
-
onMount(() => {
|
|
10484
|
-
console.log("in the modal v2");
|
|
10485
|
-
});
|
|
10486
10483
|
|
|
10487
10484
|
function close(e) {
|
|
10488
10485
|
if (!isClosable) {
|
|
@@ -13678,7 +13675,7 @@
|
|
|
13678
13675
|
attr(div, "style", div_style_value = `
|
|
13679
13676
|
--max-content-width: ${
|
|
13680
13677
|
/*maxcontentwidth*/
|
|
13681
|
-
ctx[1] || "
|
|
13678
|
+
ctx[1] || "100%"};
|
|
13682
13679
|
--nav-column-width: ${
|
|
13683
13680
|
/*navcolumnwidth*/
|
|
13684
13681
|
ctx[0] || "var(--layout-nav-column-width)"};
|
|
@@ -13700,7 +13697,7 @@
|
|
|
13700
13697
|
3 && div_style_value !== (div_style_value = `
|
|
13701
13698
|
--max-content-width: ${
|
|
13702
13699
|
/*maxcontentwidth*/
|
|
13703
|
-
ctx[1] || "
|
|
13700
|
+
ctx[1] || "100%"};
|
|
13704
13701
|
--nav-column-width: ${
|
|
13705
13702
|
/*navcolumnwidth*/
|
|
13706
13703
|
ctx[0] || "var(--layout-nav-column-width)"};
|