@abgov/react-components 4.0.0-alpha.134 → 4.0.0-alpha.135
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/package.json +1 -1
- package/react-components.esm.js +42 -64
- package/react-components.umd.js +42 -64
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -10599,7 +10599,7 @@ function create_if_block$b(ctx) {
|
|
|
10599
10599
|
16) show_if = null;
|
|
10600
10600
|
if (show_if == null) show_if = !!Object.keys(
|
|
10601
10601
|
/*_iconOverrides*/
|
|
10602
|
-
ctx[
|
|
10602
|
+
ctx[12]).includes(
|
|
10603
10603
|
/*type*/
|
|
10604
10604
|
ctx[4]);
|
|
10605
10605
|
if (show_if) return create_if_block_1$5;
|
|
@@ -10639,7 +10639,7 @@ function create_if_block$b(ctx) {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
|
|
10641
10641
|
};
|
|
10642
|
-
} // (
|
|
10642
|
+
} // (60:4) {:else}
|
|
10643
10643
|
|
|
10644
10644
|
|
|
10645
10645
|
function create_else_block$4(ctx) {
|
|
@@ -10688,7 +10688,7 @@ function create_else_block$4(ctx) {
|
|
|
10688
10688
|
}
|
|
10689
10689
|
|
|
10690
10690
|
};
|
|
10691
|
-
} // (
|
|
10691
|
+
} // (55:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
10692
10692
|
|
|
10693
10693
|
|
|
10694
10694
|
function create_if_block_1$5(ctx) {
|
|
@@ -10696,7 +10696,7 @@ function create_if_block_1$5(ctx) {
|
|
|
10696
10696
|
let html_tag;
|
|
10697
10697
|
let raw_value =
|
|
10698
10698
|
/*_iconOverrides*/
|
|
10699
|
-
ctx[
|
|
10699
|
+
ctx[12][
|
|
10700
10700
|
/*type*/
|
|
10701
10701
|
ctx[4]] + "";
|
|
10702
10702
|
let t;
|
|
@@ -10723,7 +10723,7 @@ function create_if_block_1$5(ctx) {
|
|
|
10723
10723
|
/*type*/
|
|
10724
10724
|
16 && raw_value !== (raw_value =
|
|
10725
10725
|
/*_iconOverrides*/
|
|
10726
|
-
ctx[
|
|
10726
|
+
ctx[12][
|
|
10727
10727
|
/*type*/
|
|
10728
10728
|
ctx[4]] + "")) html_tag.p(raw_value);
|
|
10729
10729
|
},
|
|
@@ -10749,10 +10749,10 @@ function create_fragment$l(ctx) {
|
|
|
10749
10749
|
attr(div, "class", "goa-icon");
|
|
10750
10750
|
attr(div, "data-testid",
|
|
10751
10751
|
/*testid*/
|
|
10752
|
-
ctx[
|
|
10752
|
+
ctx[9]);
|
|
10753
10753
|
attr(div, "title",
|
|
10754
10754
|
/*title*/
|
|
10755
|
-
ctx[
|
|
10755
|
+
ctx[8]);
|
|
10756
10756
|
attr(div, "style", div_style_value = `
|
|
10757
10757
|
${calculateMargin(
|
|
10758
10758
|
/*mt*/
|
|
@@ -10765,20 +10765,17 @@ function create_fragment$l(ctx) {
|
|
|
10765
10765
|
ctx[3])}
|
|
10766
10766
|
--size: ${
|
|
10767
10767
|
/*_size*/
|
|
10768
|
-
ctx[
|
|
10768
|
+
ctx[10]};
|
|
10769
10769
|
--fill-color: ${
|
|
10770
10770
|
/*fillcolor*/
|
|
10771
10771
|
ctx[6]};
|
|
10772
|
-
--hover-color: ${
|
|
10773
|
-
/*hovercolor*/
|
|
10774
|
-
ctx[7]};
|
|
10775
10772
|
--opacity: ${
|
|
10776
10773
|
/*opacity*/
|
|
10777
|
-
ctx[
|
|
10774
|
+
ctx[7]};
|
|
10778
10775
|
`);
|
|
10779
10776
|
toggle_class(div, "inverted",
|
|
10780
10777
|
/*isInverted*/
|
|
10781
|
-
ctx[
|
|
10778
|
+
ctx[11]);
|
|
10782
10779
|
},
|
|
10783
10780
|
|
|
10784
10781
|
m(target, anchor) {
|
|
@@ -10804,23 +10801,23 @@ function create_fragment$l(ctx) {
|
|
|
10804
10801
|
|
|
10805
10802
|
if (dirty &
|
|
10806
10803
|
/*testid*/
|
|
10807
|
-
|
|
10804
|
+
512) {
|
|
10808
10805
|
attr(div, "data-testid",
|
|
10809
10806
|
/*testid*/
|
|
10810
|
-
ctx[
|
|
10807
|
+
ctx[9]);
|
|
10811
10808
|
}
|
|
10812
10809
|
|
|
10813
10810
|
if (dirty &
|
|
10814
10811
|
/*title*/
|
|
10815
|
-
|
|
10812
|
+
256) {
|
|
10816
10813
|
attr(div, "title",
|
|
10817
10814
|
/*title*/
|
|
10818
|
-
ctx[
|
|
10815
|
+
ctx[8]);
|
|
10819
10816
|
}
|
|
10820
10817
|
|
|
10821
10818
|
if (dirty &
|
|
10822
|
-
/*mt, mr, mb, ml, _size, fillcolor,
|
|
10823
|
-
|
|
10819
|
+
/*mt, mr, mb, ml, _size, fillcolor, opacity*/
|
|
10820
|
+
1231 && div_style_value !== (div_style_value = `
|
|
10824
10821
|
${calculateMargin(
|
|
10825
10822
|
/*mt*/
|
|
10826
10823
|
ctx[0],
|
|
@@ -10832,26 +10829,23 @@ function create_fragment$l(ctx) {
|
|
|
10832
10829
|
ctx[3])}
|
|
10833
10830
|
--size: ${
|
|
10834
10831
|
/*_size*/
|
|
10835
|
-
ctx[
|
|
10832
|
+
ctx[10]};
|
|
10836
10833
|
--fill-color: ${
|
|
10837
10834
|
/*fillcolor*/
|
|
10838
10835
|
ctx[6]};
|
|
10839
|
-
--hover-color: ${
|
|
10840
|
-
/*hovercolor*/
|
|
10841
|
-
ctx[7]};
|
|
10842
10836
|
--opacity: ${
|
|
10843
10837
|
/*opacity*/
|
|
10844
|
-
ctx[
|
|
10838
|
+
ctx[7]};
|
|
10845
10839
|
`)) {
|
|
10846
10840
|
attr(div, "style", div_style_value);
|
|
10847
10841
|
}
|
|
10848
10842
|
|
|
10849
10843
|
if (dirty &
|
|
10850
10844
|
/*isInverted*/
|
|
10851
|
-
|
|
10845
|
+
2048) {
|
|
10852
10846
|
toggle_class(div, "inverted",
|
|
10853
10847
|
/*isInverted*/
|
|
10854
|
-
ctx[
|
|
10848
|
+
ctx[11]);
|
|
10855
10849
|
}
|
|
10856
10850
|
},
|
|
10857
10851
|
|
|
@@ -10898,9 +10892,6 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10898
10892
|
let {
|
|
10899
10893
|
fillcolor = ""
|
|
10900
10894
|
} = $$props;
|
|
10901
|
-
let {
|
|
10902
|
-
hovercolor = ""
|
|
10903
|
-
} = $$props;
|
|
10904
10895
|
let {
|
|
10905
10896
|
opacity = 1
|
|
10906
10897
|
} = $$props;
|
|
@@ -10929,27 +10920,26 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10929
10920
|
if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
|
|
10930
10921
|
if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
|
|
10931
10922
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
10932
|
-
if ('size' in $$props) $$invalidate(
|
|
10923
|
+
if ('size' in $$props) $$invalidate(13, size = $$props.size);
|
|
10933
10924
|
if ('theme' in $$props) $$invalidate(5, theme = $$props.theme);
|
|
10934
|
-
if ('inverted' in $$props) $$invalidate(
|
|
10925
|
+
if ('inverted' in $$props) $$invalidate(14, inverted = $$props.inverted);
|
|
10935
10926
|
if ('fillcolor' in $$props) $$invalidate(6, fillcolor = $$props.fillcolor);
|
|
10936
|
-
if ('
|
|
10937
|
-
if ('
|
|
10938
|
-
if ('
|
|
10939
|
-
if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
|
|
10927
|
+
if ('opacity' in $$props) $$invalidate(7, opacity = $$props.opacity);
|
|
10928
|
+
if ('title' in $$props) $$invalidate(8, title = $$props.title);
|
|
10929
|
+
if ('testid' in $$props) $$invalidate(9, testid = $$props.testid);
|
|
10940
10930
|
};
|
|
10941
10931
|
|
|
10942
10932
|
$$self.$$.update = () => {
|
|
10943
10933
|
if ($$self.$$.dirty &
|
|
10944
10934
|
/*inverted*/
|
|
10945
|
-
|
|
10946
|
-
$$invalidate(
|
|
10935
|
+
16384) {
|
|
10936
|
+
$$invalidate(11, isInverted = toBoolean(inverted));
|
|
10947
10937
|
}
|
|
10948
10938
|
|
|
10949
10939
|
if ($$self.$$.dirty &
|
|
10950
10940
|
/*size*/
|
|
10951
|
-
|
|
10952
|
-
$$invalidate(
|
|
10941
|
+
8192) {
|
|
10942
|
+
$$invalidate(10, _size = {
|
|
10953
10943
|
small: "1.25rem",
|
|
10954
10944
|
medium: "1.5rem",
|
|
10955
10945
|
large: "2rem"
|
|
@@ -10957,13 +10947,13 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10957
10947
|
}
|
|
10958
10948
|
};
|
|
10959
10949
|
|
|
10960
|
-
return [mt, mr, mb, ml, type, theme, fillcolor,
|
|
10950
|
+
return [mt, mr, mb, ml, type, theme, fillcolor, opacity, title, testid, _size, isInverted, _iconOverrides, size, inverted];
|
|
10961
10951
|
}
|
|
10962
10952
|
|
|
10963
10953
|
class Icon extends SvelteElement {
|
|
10964
10954
|
constructor(options) {
|
|
10965
10955
|
super();
|
|
10966
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.
|
|
10956
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.icon-override{display:flex;flex-direction:column;align-items:center}.icon-override *{fill:var(--goa-color-interactive-default)}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
10967
10957
|
init(this, {
|
|
10968
10958
|
target: this.shadowRoot,
|
|
10969
10959
|
props: attribute_to_object(this.attributes),
|
|
@@ -10974,14 +10964,13 @@ class Icon extends SvelteElement {
|
|
|
10974
10964
|
mb: 2,
|
|
10975
10965
|
ml: 3,
|
|
10976
10966
|
type: 4,
|
|
10977
|
-
size:
|
|
10967
|
+
size: 13,
|
|
10978
10968
|
theme: 5,
|
|
10979
|
-
inverted:
|
|
10969
|
+
inverted: 14,
|
|
10980
10970
|
fillcolor: 6,
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
testid: 10
|
|
10971
|
+
opacity: 7,
|
|
10972
|
+
title: 8,
|
|
10973
|
+
testid: 9
|
|
10985
10974
|
}, null);
|
|
10986
10975
|
|
|
10987
10976
|
if (options) {
|
|
@@ -10997,7 +10986,7 @@ class Icon extends SvelteElement {
|
|
|
10997
10986
|
}
|
|
10998
10987
|
|
|
10999
10988
|
static get observedAttributes() {
|
|
11000
|
-
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "
|
|
10989
|
+
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "opacity", "title", "testid"];
|
|
11001
10990
|
}
|
|
11002
10991
|
|
|
11003
10992
|
get mt() {
|
|
@@ -11056,7 +11045,7 @@ class Icon extends SvelteElement {
|
|
|
11056
11045
|
}
|
|
11057
11046
|
|
|
11058
11047
|
get size() {
|
|
11059
|
-
return this.$$.ctx[
|
|
11048
|
+
return this.$$.ctx[13];
|
|
11060
11049
|
}
|
|
11061
11050
|
|
|
11062
11051
|
set size(size) {
|
|
@@ -11078,7 +11067,7 @@ class Icon extends SvelteElement {
|
|
|
11078
11067
|
}
|
|
11079
11068
|
|
|
11080
11069
|
get inverted() {
|
|
11081
|
-
return this.$$.ctx[
|
|
11070
|
+
return this.$$.ctx[14];
|
|
11082
11071
|
}
|
|
11083
11072
|
|
|
11084
11073
|
set inverted(inverted) {
|
|
@@ -11099,19 +11088,8 @@ class Icon extends SvelteElement {
|
|
|
11099
11088
|
flush();
|
|
11100
11089
|
}
|
|
11101
11090
|
|
|
11102
|
-
get hovercolor() {
|
|
11103
|
-
return this.$$.ctx[7];
|
|
11104
|
-
}
|
|
11105
|
-
|
|
11106
|
-
set hovercolor(hovercolor) {
|
|
11107
|
-
this.$$set({
|
|
11108
|
-
hovercolor
|
|
11109
|
-
});
|
|
11110
|
-
flush();
|
|
11111
|
-
}
|
|
11112
|
-
|
|
11113
11091
|
get opacity() {
|
|
11114
|
-
return this.$$.ctx[
|
|
11092
|
+
return this.$$.ctx[7];
|
|
11115
11093
|
}
|
|
11116
11094
|
|
|
11117
11095
|
set opacity(opacity) {
|
|
@@ -11122,7 +11100,7 @@ class Icon extends SvelteElement {
|
|
|
11122
11100
|
}
|
|
11123
11101
|
|
|
11124
11102
|
get title() {
|
|
11125
|
-
return this.$$.ctx[
|
|
11103
|
+
return this.$$.ctx[8];
|
|
11126
11104
|
}
|
|
11127
11105
|
|
|
11128
11106
|
set title(title) {
|
|
@@ -11133,7 +11111,7 @@ class Icon extends SvelteElement {
|
|
|
11133
11111
|
}
|
|
11134
11112
|
|
|
11135
11113
|
get testid() {
|
|
11136
|
-
return this.$$.ctx[
|
|
11114
|
+
return this.$$.ctx[9];
|
|
11137
11115
|
}
|
|
11138
11116
|
|
|
11139
11117
|
set testid(testid) {
|
package/react-components.umd.js
CHANGED
|
@@ -10645,7 +10645,7 @@
|
|
|
10645
10645
|
16) show_if = null;
|
|
10646
10646
|
if (show_if == null) show_if = !!Object.keys(
|
|
10647
10647
|
/*_iconOverrides*/
|
|
10648
|
-
ctx[
|
|
10648
|
+
ctx[12]).includes(
|
|
10649
10649
|
/*type*/
|
|
10650
10650
|
ctx[4]);
|
|
10651
10651
|
if (show_if) return create_if_block_1$5;
|
|
@@ -10685,7 +10685,7 @@
|
|
|
10685
10685
|
}
|
|
10686
10686
|
|
|
10687
10687
|
};
|
|
10688
|
-
} // (
|
|
10688
|
+
} // (60:4) {:else}
|
|
10689
10689
|
|
|
10690
10690
|
|
|
10691
10691
|
function create_else_block$4(ctx) {
|
|
@@ -10734,7 +10734,7 @@
|
|
|
10734
10734
|
}
|
|
10735
10735
|
|
|
10736
10736
|
};
|
|
10737
|
-
} // (
|
|
10737
|
+
} // (55:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
10738
10738
|
|
|
10739
10739
|
|
|
10740
10740
|
function create_if_block_1$5(ctx) {
|
|
@@ -10742,7 +10742,7 @@
|
|
|
10742
10742
|
let html_tag;
|
|
10743
10743
|
let raw_value =
|
|
10744
10744
|
/*_iconOverrides*/
|
|
10745
|
-
ctx[
|
|
10745
|
+
ctx[12][
|
|
10746
10746
|
/*type*/
|
|
10747
10747
|
ctx[4]] + "";
|
|
10748
10748
|
let t;
|
|
@@ -10769,7 +10769,7 @@
|
|
|
10769
10769
|
/*type*/
|
|
10770
10770
|
16 && raw_value !== (raw_value =
|
|
10771
10771
|
/*_iconOverrides*/
|
|
10772
|
-
ctx[
|
|
10772
|
+
ctx[12][
|
|
10773
10773
|
/*type*/
|
|
10774
10774
|
ctx[4]] + "")) html_tag.p(raw_value);
|
|
10775
10775
|
},
|
|
@@ -10795,10 +10795,10 @@
|
|
|
10795
10795
|
attr(div, "class", "goa-icon");
|
|
10796
10796
|
attr(div, "data-testid",
|
|
10797
10797
|
/*testid*/
|
|
10798
|
-
ctx[
|
|
10798
|
+
ctx[9]);
|
|
10799
10799
|
attr(div, "title",
|
|
10800
10800
|
/*title*/
|
|
10801
|
-
ctx[
|
|
10801
|
+
ctx[8]);
|
|
10802
10802
|
attr(div, "style", div_style_value = `
|
|
10803
10803
|
${calculateMargin(
|
|
10804
10804
|
/*mt*/
|
|
@@ -10811,20 +10811,17 @@
|
|
|
10811
10811
|
ctx[3])}
|
|
10812
10812
|
--size: ${
|
|
10813
10813
|
/*_size*/
|
|
10814
|
-
ctx[
|
|
10814
|
+
ctx[10]};
|
|
10815
10815
|
--fill-color: ${
|
|
10816
10816
|
/*fillcolor*/
|
|
10817
10817
|
ctx[6]};
|
|
10818
|
-
--hover-color: ${
|
|
10819
|
-
/*hovercolor*/
|
|
10820
|
-
ctx[7]};
|
|
10821
10818
|
--opacity: ${
|
|
10822
10819
|
/*opacity*/
|
|
10823
|
-
ctx[
|
|
10820
|
+
ctx[7]};
|
|
10824
10821
|
`);
|
|
10825
10822
|
toggle_class(div, "inverted",
|
|
10826
10823
|
/*isInverted*/
|
|
10827
|
-
ctx[
|
|
10824
|
+
ctx[11]);
|
|
10828
10825
|
},
|
|
10829
10826
|
|
|
10830
10827
|
m(target, anchor) {
|
|
@@ -10850,23 +10847,23 @@
|
|
|
10850
10847
|
|
|
10851
10848
|
if (dirty &
|
|
10852
10849
|
/*testid*/
|
|
10853
|
-
|
|
10850
|
+
512) {
|
|
10854
10851
|
attr(div, "data-testid",
|
|
10855
10852
|
/*testid*/
|
|
10856
|
-
ctx[
|
|
10853
|
+
ctx[9]);
|
|
10857
10854
|
}
|
|
10858
10855
|
|
|
10859
10856
|
if (dirty &
|
|
10860
10857
|
/*title*/
|
|
10861
|
-
|
|
10858
|
+
256) {
|
|
10862
10859
|
attr(div, "title",
|
|
10863
10860
|
/*title*/
|
|
10864
|
-
ctx[
|
|
10861
|
+
ctx[8]);
|
|
10865
10862
|
}
|
|
10866
10863
|
|
|
10867
10864
|
if (dirty &
|
|
10868
|
-
/*mt, mr, mb, ml, _size, fillcolor,
|
|
10869
|
-
|
|
10865
|
+
/*mt, mr, mb, ml, _size, fillcolor, opacity*/
|
|
10866
|
+
1231 && div_style_value !== (div_style_value = `
|
|
10870
10867
|
${calculateMargin(
|
|
10871
10868
|
/*mt*/
|
|
10872
10869
|
ctx[0],
|
|
@@ -10878,26 +10875,23 @@
|
|
|
10878
10875
|
ctx[3])}
|
|
10879
10876
|
--size: ${
|
|
10880
10877
|
/*_size*/
|
|
10881
|
-
ctx[
|
|
10878
|
+
ctx[10]};
|
|
10882
10879
|
--fill-color: ${
|
|
10883
10880
|
/*fillcolor*/
|
|
10884
10881
|
ctx[6]};
|
|
10885
|
-
--hover-color: ${
|
|
10886
|
-
/*hovercolor*/
|
|
10887
|
-
ctx[7]};
|
|
10888
10882
|
--opacity: ${
|
|
10889
10883
|
/*opacity*/
|
|
10890
|
-
ctx[
|
|
10884
|
+
ctx[7]};
|
|
10891
10885
|
`)) {
|
|
10892
10886
|
attr(div, "style", div_style_value);
|
|
10893
10887
|
}
|
|
10894
10888
|
|
|
10895
10889
|
if (dirty &
|
|
10896
10890
|
/*isInverted*/
|
|
10897
|
-
|
|
10891
|
+
2048) {
|
|
10898
10892
|
toggle_class(div, "inverted",
|
|
10899
10893
|
/*isInverted*/
|
|
10900
|
-
ctx[
|
|
10894
|
+
ctx[11]);
|
|
10901
10895
|
}
|
|
10902
10896
|
},
|
|
10903
10897
|
|
|
@@ -10944,9 +10938,6 @@
|
|
|
10944
10938
|
let {
|
|
10945
10939
|
fillcolor = ""
|
|
10946
10940
|
} = $$props;
|
|
10947
|
-
let {
|
|
10948
|
-
hovercolor = ""
|
|
10949
|
-
} = $$props;
|
|
10950
10941
|
let {
|
|
10951
10942
|
opacity = 1
|
|
10952
10943
|
} = $$props;
|
|
@@ -10975,27 +10966,26 @@
|
|
|
10975
10966
|
if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
|
|
10976
10967
|
if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
|
|
10977
10968
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
10978
|
-
if ('size' in $$props) $$invalidate(
|
|
10969
|
+
if ('size' in $$props) $$invalidate(13, size = $$props.size);
|
|
10979
10970
|
if ('theme' in $$props) $$invalidate(5, theme = $$props.theme);
|
|
10980
|
-
if ('inverted' in $$props) $$invalidate(
|
|
10971
|
+
if ('inverted' in $$props) $$invalidate(14, inverted = $$props.inverted);
|
|
10981
10972
|
if ('fillcolor' in $$props) $$invalidate(6, fillcolor = $$props.fillcolor);
|
|
10982
|
-
if ('
|
|
10983
|
-
if ('
|
|
10984
|
-
if ('
|
|
10985
|
-
if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
|
|
10973
|
+
if ('opacity' in $$props) $$invalidate(7, opacity = $$props.opacity);
|
|
10974
|
+
if ('title' in $$props) $$invalidate(8, title = $$props.title);
|
|
10975
|
+
if ('testid' in $$props) $$invalidate(9, testid = $$props.testid);
|
|
10986
10976
|
};
|
|
10987
10977
|
|
|
10988
10978
|
$$self.$$.update = () => {
|
|
10989
10979
|
if ($$self.$$.dirty &
|
|
10990
10980
|
/*inverted*/
|
|
10991
|
-
|
|
10992
|
-
$$invalidate(
|
|
10981
|
+
16384) {
|
|
10982
|
+
$$invalidate(11, isInverted = toBoolean(inverted));
|
|
10993
10983
|
}
|
|
10994
10984
|
|
|
10995
10985
|
if ($$self.$$.dirty &
|
|
10996
10986
|
/*size*/
|
|
10997
|
-
|
|
10998
|
-
$$invalidate(
|
|
10987
|
+
8192) {
|
|
10988
|
+
$$invalidate(10, _size = {
|
|
10999
10989
|
small: "1.25rem",
|
|
11000
10990
|
medium: "1.5rem",
|
|
11001
10991
|
large: "2rem"
|
|
@@ -11003,13 +10993,13 @@
|
|
|
11003
10993
|
}
|
|
11004
10994
|
};
|
|
11005
10995
|
|
|
11006
|
-
return [mt, mr, mb, ml, type, theme, fillcolor,
|
|
10996
|
+
return [mt, mr, mb, ml, type, theme, fillcolor, opacity, title, testid, _size, isInverted, _iconOverrides, size, inverted];
|
|
11007
10997
|
}
|
|
11008
10998
|
|
|
11009
10999
|
class Icon extends SvelteElement {
|
|
11010
11000
|
constructor(options) {
|
|
11011
11001
|
super();
|
|
11012
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.
|
|
11002
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.icon-override{display:flex;flex-direction:column;align-items:center}.icon-override *{fill:var(--goa-color-interactive-default)}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
11013
11003
|
init(this, {
|
|
11014
11004
|
target: this.shadowRoot,
|
|
11015
11005
|
props: attribute_to_object(this.attributes),
|
|
@@ -11020,14 +11010,13 @@
|
|
|
11020
11010
|
mb: 2,
|
|
11021
11011
|
ml: 3,
|
|
11022
11012
|
type: 4,
|
|
11023
|
-
size:
|
|
11013
|
+
size: 13,
|
|
11024
11014
|
theme: 5,
|
|
11025
|
-
inverted:
|
|
11015
|
+
inverted: 14,
|
|
11026
11016
|
fillcolor: 6,
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
testid: 10
|
|
11017
|
+
opacity: 7,
|
|
11018
|
+
title: 8,
|
|
11019
|
+
testid: 9
|
|
11031
11020
|
}, null);
|
|
11032
11021
|
|
|
11033
11022
|
if (options) {
|
|
@@ -11043,7 +11032,7 @@
|
|
|
11043
11032
|
}
|
|
11044
11033
|
|
|
11045
11034
|
static get observedAttributes() {
|
|
11046
|
-
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "
|
|
11035
|
+
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "opacity", "title", "testid"];
|
|
11047
11036
|
}
|
|
11048
11037
|
|
|
11049
11038
|
get mt() {
|
|
@@ -11102,7 +11091,7 @@
|
|
|
11102
11091
|
}
|
|
11103
11092
|
|
|
11104
11093
|
get size() {
|
|
11105
|
-
return this.$$.ctx[
|
|
11094
|
+
return this.$$.ctx[13];
|
|
11106
11095
|
}
|
|
11107
11096
|
|
|
11108
11097
|
set size(size) {
|
|
@@ -11124,7 +11113,7 @@
|
|
|
11124
11113
|
}
|
|
11125
11114
|
|
|
11126
11115
|
get inverted() {
|
|
11127
|
-
return this.$$.ctx[
|
|
11116
|
+
return this.$$.ctx[14];
|
|
11128
11117
|
}
|
|
11129
11118
|
|
|
11130
11119
|
set inverted(inverted) {
|
|
@@ -11145,19 +11134,8 @@
|
|
|
11145
11134
|
flush();
|
|
11146
11135
|
}
|
|
11147
11136
|
|
|
11148
|
-
get hovercolor() {
|
|
11149
|
-
return this.$$.ctx[7];
|
|
11150
|
-
}
|
|
11151
|
-
|
|
11152
|
-
set hovercolor(hovercolor) {
|
|
11153
|
-
this.$$set({
|
|
11154
|
-
hovercolor
|
|
11155
|
-
});
|
|
11156
|
-
flush();
|
|
11157
|
-
}
|
|
11158
|
-
|
|
11159
11137
|
get opacity() {
|
|
11160
|
-
return this.$$.ctx[
|
|
11138
|
+
return this.$$.ctx[7];
|
|
11161
11139
|
}
|
|
11162
11140
|
|
|
11163
11141
|
set opacity(opacity) {
|
|
@@ -11168,7 +11146,7 @@
|
|
|
11168
11146
|
}
|
|
11169
11147
|
|
|
11170
11148
|
get title() {
|
|
11171
|
-
return this.$$.ctx[
|
|
11149
|
+
return this.$$.ctx[8];
|
|
11172
11150
|
}
|
|
11173
11151
|
|
|
11174
11152
|
set title(title) {
|
|
@@ -11179,7 +11157,7 @@
|
|
|
11179
11157
|
}
|
|
11180
11158
|
|
|
11181
11159
|
get testid() {
|
|
11182
|
-
return this.$$.ctx[
|
|
11160
|
+
return this.$$.ctx[9];
|
|
11183
11161
|
}
|
|
11184
11162
|
|
|
11185
11163
|
set testid(testid) {
|