@abgov/react-components 4.0.0-alpha.57 → 4.0.0-alpha.59
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,6 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
interface WCProps {
|
|
3
3
|
maxcolumncount?: number;
|
|
4
|
+
heading?: string;
|
|
4
5
|
}
|
|
5
6
|
declare global {
|
|
6
7
|
namespace JSX {
|
|
@@ -11,7 +12,8 @@ declare global {
|
|
|
11
12
|
}
|
|
12
13
|
interface FooterNavSectionProps {
|
|
13
14
|
maxColumnCount?: number;
|
|
15
|
+
heading?: string;
|
|
14
16
|
children?: ReactNode;
|
|
15
17
|
}
|
|
16
|
-
export declare function GoAAppFooterNavSection({ maxColumnCount, children }: FooterNavSectionProps): JSX.Element;
|
|
18
|
+
export declare function GoAAppFooterNavSection({ heading, maxColumnCount, children }: FooterNavSectionProps): JSX.Element;
|
|
17
19
|
export default GoAAppFooterNavSection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.59",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"url": "https://github.com/GovAlta/ui-components.git",
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=17.0.2",
|
|
21
|
+
"react-dom": ">=17.0.2"
|
|
22
|
+
},
|
|
19
23
|
"dependencies": {
|
|
20
24
|
"date-fns": "^2.29.2"
|
|
21
25
|
},
|
|
22
26
|
"main": "./react-components.umd.js",
|
|
23
27
|
"module": "./react-components.esm.js",
|
|
24
|
-
"typings": "./index.d.ts"
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"react": "17.0.2"
|
|
27
|
-
}
|
|
28
|
+
"typings": "./index.d.ts"
|
|
28
29
|
}
|
package/react-components.esm.js
CHANGED
|
@@ -6551,7 +6551,7 @@ function get_each_context$2(ctx, list, i) {
|
|
|
6551
6551
|
const child_ctx = ctx.slice();
|
|
6552
6552
|
child_ctx[5] = list[i];
|
|
6553
6553
|
return child_ctx;
|
|
6554
|
-
} // (90:2) {#if
|
|
6554
|
+
} // (90:2) {#if heading}
|
|
6555
6555
|
|
|
6556
6556
|
|
|
6557
6557
|
function create_if_block$b(ctx) {
|
|
@@ -6563,7 +6563,7 @@ function create_if_block$b(ctx) {
|
|
|
6563
6563
|
c() {
|
|
6564
6564
|
div = element("div");
|
|
6565
6565
|
t0 = text(
|
|
6566
|
-
/*
|
|
6566
|
+
/*heading*/
|
|
6567
6567
|
ctx[0]);
|
|
6568
6568
|
t1 = space();
|
|
6569
6569
|
goa_divider = element("goa-divider");
|
|
@@ -6580,9 +6580,9 @@ function create_if_block$b(ctx) {
|
|
|
6580
6580
|
|
|
6581
6581
|
p(ctx, dirty) {
|
|
6582
6582
|
if (dirty &
|
|
6583
|
-
/*
|
|
6583
|
+
/*heading*/
|
|
6584
6584
|
1) set_data(t0,
|
|
6585
|
-
/*
|
|
6585
|
+
/*heading*/
|
|
6586
6586
|
ctx[0]);
|
|
6587
6587
|
},
|
|
6588
6588
|
|
|
@@ -6651,7 +6651,7 @@ function create_fragment$l(ctx) {
|
|
|
6651
6651
|
let ul;
|
|
6652
6652
|
let ul_style_value;
|
|
6653
6653
|
let if_block =
|
|
6654
|
-
/*
|
|
6654
|
+
/*heading*/
|
|
6655
6655
|
ctx[0] && create_if_block$b(ctx);
|
|
6656
6656
|
let each_value =
|
|
6657
6657
|
/*children*/
|
|
@@ -6714,7 +6714,7 @@ function create_fragment$l(ctx) {
|
|
|
6714
6714
|
|
|
6715
6715
|
p(ctx, [dirty]) {
|
|
6716
6716
|
if (
|
|
6717
|
-
/*
|
|
6717
|
+
/*heading*/
|
|
6718
6718
|
ctx[0]) {
|
|
6719
6719
|
if (if_block) {
|
|
6720
6720
|
if_block.p(ctx, dirty);
|
|
@@ -6792,7 +6792,7 @@ function create_fragment$l(ctx) {
|
|
|
6792
6792
|
|
|
6793
6793
|
function instance$j($$self, $$props, $$invalidate) {
|
|
6794
6794
|
let {
|
|
6795
|
-
|
|
6795
|
+
heading = ""
|
|
6796
6796
|
} = $$props;
|
|
6797
6797
|
let {
|
|
6798
6798
|
maxcolumncount = 1
|
|
@@ -6832,11 +6832,11 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
6832
6832
|
}
|
|
6833
6833
|
|
|
6834
6834
|
$$self.$$set = $$props => {
|
|
6835
|
-
if ('
|
|
6835
|
+
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
6836
6836
|
if ('maxcolumncount' in $$props) $$invalidate(1, maxcolumncount = $$props.maxcolumncount);
|
|
6837
6837
|
};
|
|
6838
6838
|
|
|
6839
|
-
return [
|
|
6839
|
+
return [heading, maxcolumncount, rootEl, children, section_binding];
|
|
6840
6840
|
}
|
|
6841
6841
|
|
|
6842
6842
|
class FooterNavSection extends SvelteElement {
|
|
@@ -6848,7 +6848,7 @@ class FooterNavSection extends SvelteElement {
|
|
|
6848
6848
|
props: attribute_to_object(this.attributes),
|
|
6849
6849
|
customElement: true
|
|
6850
6850
|
}, instance$j, create_fragment$l, safe_not_equal, {
|
|
6851
|
-
|
|
6851
|
+
heading: 0,
|
|
6852
6852
|
maxcolumncount: 1
|
|
6853
6853
|
}, null);
|
|
6854
6854
|
|
|
@@ -6865,16 +6865,16 @@ class FooterNavSection extends SvelteElement {
|
|
|
6865
6865
|
}
|
|
6866
6866
|
|
|
6867
6867
|
static get observedAttributes() {
|
|
6868
|
-
return ["
|
|
6868
|
+
return ["heading", "maxcolumncount"];
|
|
6869
6869
|
}
|
|
6870
6870
|
|
|
6871
|
-
get
|
|
6871
|
+
get heading() {
|
|
6872
6872
|
return this.$$.ctx[0];
|
|
6873
6873
|
}
|
|
6874
6874
|
|
|
6875
|
-
set
|
|
6875
|
+
set heading(heading) {
|
|
6876
6876
|
this.$$set({
|
|
6877
|
-
|
|
6877
|
+
heading
|
|
6878
6878
|
});
|
|
6879
6879
|
flush();
|
|
6880
6880
|
}
|
|
@@ -7407,7 +7407,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7407
7407
|
class FormItem extends SvelteElement {
|
|
7408
7408
|
constructor(options) {
|
|
7409
7409
|
super();
|
|
7410
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7410
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7411
7411
|
init(this, {
|
|
7412
7412
|
target: this.shadowRoot,
|
|
7413
7413
|
props: attribute_to_object(this.attributes),
|
|
@@ -14588,11 +14588,13 @@ function GoAAppFooterMetaSection({
|
|
|
14588
14588
|
}
|
|
14589
14589
|
|
|
14590
14590
|
function GoAAppFooterNavSection({
|
|
14591
|
+
heading,
|
|
14591
14592
|
maxColumnCount = 1,
|
|
14592
14593
|
children
|
|
14593
14594
|
}) {
|
|
14594
14595
|
return jsx("goa-app-footer-nav-section", Object.assign({
|
|
14595
14596
|
slot: "nav",
|
|
14597
|
+
heading: heading,
|
|
14596
14598
|
maxcolumncount: maxColumnCount
|
|
14597
14599
|
}, {
|
|
14598
14600
|
children: children
|
package/react-components.umd.js
CHANGED
|
@@ -6596,7 +6596,7 @@
|
|
|
6596
6596
|
const child_ctx = ctx.slice();
|
|
6597
6597
|
child_ctx[5] = list[i];
|
|
6598
6598
|
return child_ctx;
|
|
6599
|
-
} // (90:2) {#if
|
|
6599
|
+
} // (90:2) {#if heading}
|
|
6600
6600
|
|
|
6601
6601
|
|
|
6602
6602
|
function create_if_block$b(ctx) {
|
|
@@ -6608,7 +6608,7 @@
|
|
|
6608
6608
|
c() {
|
|
6609
6609
|
div = element("div");
|
|
6610
6610
|
t0 = text(
|
|
6611
|
-
/*
|
|
6611
|
+
/*heading*/
|
|
6612
6612
|
ctx[0]);
|
|
6613
6613
|
t1 = space();
|
|
6614
6614
|
goa_divider = element("goa-divider");
|
|
@@ -6625,9 +6625,9 @@
|
|
|
6625
6625
|
|
|
6626
6626
|
p(ctx, dirty) {
|
|
6627
6627
|
if (dirty &
|
|
6628
|
-
/*
|
|
6628
|
+
/*heading*/
|
|
6629
6629
|
1) set_data(t0,
|
|
6630
|
-
/*
|
|
6630
|
+
/*heading*/
|
|
6631
6631
|
ctx[0]);
|
|
6632
6632
|
},
|
|
6633
6633
|
|
|
@@ -6696,7 +6696,7 @@
|
|
|
6696
6696
|
let ul;
|
|
6697
6697
|
let ul_style_value;
|
|
6698
6698
|
let if_block =
|
|
6699
|
-
/*
|
|
6699
|
+
/*heading*/
|
|
6700
6700
|
ctx[0] && create_if_block$b(ctx);
|
|
6701
6701
|
let each_value =
|
|
6702
6702
|
/*children*/
|
|
@@ -6759,7 +6759,7 @@
|
|
|
6759
6759
|
|
|
6760
6760
|
p(ctx, [dirty]) {
|
|
6761
6761
|
if (
|
|
6762
|
-
/*
|
|
6762
|
+
/*heading*/
|
|
6763
6763
|
ctx[0]) {
|
|
6764
6764
|
if (if_block) {
|
|
6765
6765
|
if_block.p(ctx, dirty);
|
|
@@ -6837,7 +6837,7 @@
|
|
|
6837
6837
|
|
|
6838
6838
|
function instance$j($$self, $$props, $$invalidate) {
|
|
6839
6839
|
let {
|
|
6840
|
-
|
|
6840
|
+
heading = ""
|
|
6841
6841
|
} = $$props;
|
|
6842
6842
|
let {
|
|
6843
6843
|
maxcolumncount = 1
|
|
@@ -6878,11 +6878,11 @@
|
|
|
6878
6878
|
}
|
|
6879
6879
|
|
|
6880
6880
|
$$self.$$set = $$props => {
|
|
6881
|
-
if ('
|
|
6881
|
+
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
6882
6882
|
if ('maxcolumncount' in $$props) $$invalidate(1, maxcolumncount = $$props.maxcolumncount);
|
|
6883
6883
|
};
|
|
6884
6884
|
|
|
6885
|
-
return [
|
|
6885
|
+
return [heading, maxcolumncount, rootEl, children, section_binding];
|
|
6886
6886
|
}
|
|
6887
6887
|
|
|
6888
6888
|
class FooterNavSection extends SvelteElement {
|
|
@@ -6894,7 +6894,7 @@
|
|
|
6894
6894
|
props: attribute_to_object(this.attributes),
|
|
6895
6895
|
customElement: true
|
|
6896
6896
|
}, instance$j, create_fragment$l, safe_not_equal, {
|
|
6897
|
-
|
|
6897
|
+
heading: 0,
|
|
6898
6898
|
maxcolumncount: 1
|
|
6899
6899
|
}, null);
|
|
6900
6900
|
|
|
@@ -6911,16 +6911,16 @@
|
|
|
6911
6911
|
}
|
|
6912
6912
|
|
|
6913
6913
|
static get observedAttributes() {
|
|
6914
|
-
return ["
|
|
6914
|
+
return ["heading", "maxcolumncount"];
|
|
6915
6915
|
}
|
|
6916
6916
|
|
|
6917
|
-
get
|
|
6917
|
+
get heading() {
|
|
6918
6918
|
return this.$$.ctx[0];
|
|
6919
6919
|
}
|
|
6920
6920
|
|
|
6921
|
-
set
|
|
6921
|
+
set heading(heading) {
|
|
6922
6922
|
this.$$set({
|
|
6923
|
-
|
|
6923
|
+
heading
|
|
6924
6924
|
});
|
|
6925
6925
|
flush();
|
|
6926
6926
|
}
|
|
@@ -7454,7 +7454,7 @@
|
|
|
7454
7454
|
class FormItem extends SvelteElement {
|
|
7455
7455
|
constructor(options) {
|
|
7456
7456
|
super();
|
|
7457
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7457
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7458
7458
|
init(this, {
|
|
7459
7459
|
target: this.shadowRoot,
|
|
7460
7460
|
props: attribute_to_object(this.attributes),
|
|
@@ -14665,11 +14665,13 @@
|
|
|
14665
14665
|
}
|
|
14666
14666
|
|
|
14667
14667
|
function GoAAppFooterNavSection(_a) {
|
|
14668
|
-
var
|
|
14668
|
+
var heading = _a.heading,
|
|
14669
|
+
_b = _a.maxColumnCount,
|
|
14669
14670
|
maxColumnCount = _b === void 0 ? 1 : _b,
|
|
14670
14671
|
children = _a.children;
|
|
14671
14672
|
return jsxRuntime.jsx("goa-app-footer-nav-section", __assign({
|
|
14672
14673
|
slot: "nav",
|
|
14674
|
+
heading: heading,
|
|
14673
14675
|
maxcolumncount: maxColumnCount
|
|
14674
14676
|
}, {
|
|
14675
14677
|
children: children
|