@abgov/react-components 4.0.0-alpha.22 → 4.0.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/package.json +1 -1
- package/react-components.esm.js +32 -51
- package/react-components.umd.js +35 -54
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -8459,7 +8459,7 @@ function create_if_block$7(ctx) {
|
|
|
8459
8459
|
function select_block_type(ctx, dirty) {
|
|
8460
8460
|
if (
|
|
8461
8461
|
/*fullscreen*/
|
|
8462
|
-
ctx[
|
|
8462
|
+
ctx[4]) return 0;
|
|
8463
8463
|
if (
|
|
8464
8464
|
/*inline*/
|
|
8465
8465
|
ctx[5]) return 1;
|
|
@@ -8540,7 +8540,7 @@ function create_if_block$7(ctx) {
|
|
|
8540
8540
|
}
|
|
8541
8541
|
|
|
8542
8542
|
};
|
|
8543
|
-
} // (
|
|
8543
|
+
} // (39:19)
|
|
8544
8544
|
|
|
8545
8545
|
|
|
8546
8546
|
function create_if_block_3$1(ctx) {
|
|
@@ -8563,13 +8563,13 @@ function create_if_block_3$1(ctx) {
|
|
|
8563
8563
|
ctx[0]);
|
|
8564
8564
|
set_custom_element_data(goa_spinner, "size",
|
|
8565
8565
|
/*spinnerSize*/
|
|
8566
|
-
ctx[
|
|
8566
|
+
ctx[3]);
|
|
8567
8567
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
|
|
8568
8568
|
/*progress*/
|
|
8569
8569
|
ctx[2] || 0);
|
|
8570
8570
|
attr(div, "class", div_class_value = "spinner-" +
|
|
8571
8571
|
/*spinnerSize*/
|
|
8572
|
-
ctx[
|
|
8572
|
+
ctx[3]);
|
|
8573
8573
|
toggle_class(div, "inline",
|
|
8574
8574
|
/*inline*/
|
|
8575
8575
|
ctx[5]);
|
|
@@ -8593,10 +8593,10 @@ function create_if_block_3$1(ctx) {
|
|
|
8593
8593
|
|
|
8594
8594
|
if (dirty &
|
|
8595
8595
|
/*spinnerSize*/
|
|
8596
|
-
|
|
8596
|
+
8) {
|
|
8597
8597
|
set_custom_element_data(goa_spinner, "size",
|
|
8598
8598
|
/*spinnerSize*/
|
|
8599
|
-
ctx[
|
|
8599
|
+
ctx[3]);
|
|
8600
8600
|
}
|
|
8601
8601
|
|
|
8602
8602
|
if (dirty &
|
|
@@ -8624,15 +8624,15 @@ function create_if_block_3$1(ctx) {
|
|
|
8624
8624
|
|
|
8625
8625
|
if (dirty &
|
|
8626
8626
|
/*spinnerSize*/
|
|
8627
|
-
|
|
8627
|
+
8 && div_class_value !== (div_class_value = "spinner-" +
|
|
8628
8628
|
/*spinnerSize*/
|
|
8629
|
-
ctx[
|
|
8629
|
+
ctx[3])) {
|
|
8630
8630
|
attr(div, "class", div_class_value);
|
|
8631
8631
|
}
|
|
8632
8632
|
|
|
8633
8633
|
if (dirty &
|
|
8634
8634
|
/*spinnerSize, inline*/
|
|
8635
|
-
|
|
8635
|
+
40) {
|
|
8636
8636
|
toggle_class(div, "inline",
|
|
8637
8637
|
/*inline*/
|
|
8638
8638
|
ctx[5]);
|
|
@@ -8648,7 +8648,7 @@ function create_if_block_3$1(ctx) {
|
|
|
8648
8648
|
}
|
|
8649
8649
|
|
|
8650
8650
|
};
|
|
8651
|
-
} // (
|
|
8651
|
+
} // (28:2) {#if fullscreen}
|
|
8652
8652
|
|
|
8653
8653
|
|
|
8654
8654
|
function create_if_block_1$4(ctx) {
|
|
@@ -8674,13 +8674,13 @@ function create_if_block_1$4(ctx) {
|
|
|
8674
8674
|
ctx[0]);
|
|
8675
8675
|
set_custom_element_data(goa_spinner, "size",
|
|
8676
8676
|
/*spinnerSize*/
|
|
8677
|
-
ctx[
|
|
8677
|
+
ctx[3]);
|
|
8678
8678
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
|
|
8679
8679
|
/*progress*/
|
|
8680
8680
|
ctx[2] || 0);
|
|
8681
8681
|
toggle_class(div, "fullscreen",
|
|
8682
8682
|
/*fullscreen*/
|
|
8683
|
-
ctx[
|
|
8683
|
+
ctx[4]);
|
|
8684
8684
|
},
|
|
8685
8685
|
|
|
8686
8686
|
m(target, anchor) {
|
|
@@ -8709,10 +8709,10 @@ function create_if_block_1$4(ctx) {
|
|
|
8709
8709
|
|
|
8710
8710
|
if (!current || dirty &
|
|
8711
8711
|
/*spinnerSize*/
|
|
8712
|
-
|
|
8712
|
+
8) {
|
|
8713
8713
|
set_custom_element_data(goa_spinner, "size",
|
|
8714
8714
|
/*spinnerSize*/
|
|
8715
|
-
ctx[
|
|
8715
|
+
ctx[3]);
|
|
8716
8716
|
}
|
|
8717
8717
|
|
|
8718
8718
|
if (!current || dirty &
|
|
@@ -8740,10 +8740,10 @@ function create_if_block_1$4(ctx) {
|
|
|
8740
8740
|
|
|
8741
8741
|
if (dirty &
|
|
8742
8742
|
/*fullscreen*/
|
|
8743
|
-
|
|
8743
|
+
16) {
|
|
8744
8744
|
toggle_class(div, "fullscreen",
|
|
8745
8745
|
/*fullscreen*/
|
|
8746
|
-
ctx[
|
|
8746
|
+
ctx[4]);
|
|
8747
8747
|
}
|
|
8748
8748
|
},
|
|
8749
8749
|
|
|
@@ -8775,7 +8775,7 @@ function create_if_block_1$4(ctx) {
|
|
|
8775
8775
|
}
|
|
8776
8776
|
|
|
8777
8777
|
};
|
|
8778
|
-
} // (
|
|
8778
|
+
} // (42:6) {#if message}
|
|
8779
8779
|
|
|
8780
8780
|
|
|
8781
8781
|
function create_if_block_4(ctx) {
|
|
@@ -8808,7 +8808,7 @@ function create_if_block_4(ctx) {
|
|
|
8808
8808
|
}
|
|
8809
8809
|
|
|
8810
8810
|
};
|
|
8811
|
-
} // (
|
|
8811
|
+
} // (35:6) {#if message}
|
|
8812
8812
|
|
|
8813
8813
|
|
|
8814
8814
|
function create_if_block_2$3(ctx) {
|
|
@@ -8847,8 +8847,8 @@ function create_fragment$f(ctx) {
|
|
|
8847
8847
|
let if_block_anchor;
|
|
8848
8848
|
let current;
|
|
8849
8849
|
let if_block =
|
|
8850
|
-
/*
|
|
8851
|
-
ctx[
|
|
8850
|
+
/*isVisible*/
|
|
8851
|
+
ctx[6] && create_if_block$7(ctx);
|
|
8852
8852
|
return {
|
|
8853
8853
|
c() {
|
|
8854
8854
|
if (if_block) if_block.c();
|
|
@@ -8864,14 +8864,14 @@ function create_fragment$f(ctx) {
|
|
|
8864
8864
|
|
|
8865
8865
|
p(ctx, [dirty]) {
|
|
8866
8866
|
if (
|
|
8867
|
-
/*
|
|
8868
|
-
ctx[
|
|
8867
|
+
/*isVisible*/
|
|
8868
|
+
ctx[6]) {
|
|
8869
8869
|
if (if_block) {
|
|
8870
8870
|
if_block.p(ctx, dirty);
|
|
8871
8871
|
|
|
8872
8872
|
if (dirty &
|
|
8873
|
-
/*
|
|
8874
|
-
|
|
8873
|
+
/*isVisible*/
|
|
8874
|
+
64) {
|
|
8875
8875
|
transition_in(if_block, 1);
|
|
8876
8876
|
}
|
|
8877
8877
|
} else {
|
|
@@ -8910,9 +8910,6 @@ function create_fragment$f(ctx) {
|
|
|
8910
8910
|
|
|
8911
8911
|
function instance$e($$self, $$props, $$invalidate) {
|
|
8912
8912
|
let isVisible;
|
|
8913
|
-
let fullscreen;
|
|
8914
|
-
let inline;
|
|
8915
|
-
let spinnerSize;
|
|
8916
8913
|
let {
|
|
8917
8914
|
type = "infinite"
|
|
8918
8915
|
} = $$props;
|
|
@@ -8931,11 +8928,13 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
8931
8928
|
let {
|
|
8932
8929
|
visible = "false"
|
|
8933
8930
|
} = $$props;
|
|
8934
|
-
let
|
|
8931
|
+
let spinnerSize;
|
|
8932
|
+
let fullscreen;
|
|
8933
|
+
let inline;
|
|
8935
8934
|
onMount(async () => {
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
$$invalidate(
|
|
8935
|
+
$$invalidate(3, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
8936
|
+
$$invalidate(4, fullscreen = variant === "fullscreen");
|
|
8937
|
+
$$invalidate(5, inline = variant === "inline");
|
|
8939
8938
|
});
|
|
8940
8939
|
|
|
8941
8940
|
$$self.$$set = $$props => {
|
|
@@ -8951,29 +8950,11 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
8951
8950
|
if ($$self.$$.dirty &
|
|
8952
8951
|
/*visible*/
|
|
8953
8952
|
512) {
|
|
8954
|
-
isVisible = toBoolean(visible);
|
|
8955
|
-
}
|
|
8956
|
-
|
|
8957
|
-
if ($$self.$$.dirty &
|
|
8958
|
-
/*variant*/
|
|
8959
|
-
128) {
|
|
8960
|
-
$$invalidate(6, fullscreen = variant === "fullscreen");
|
|
8961
|
-
}
|
|
8962
|
-
|
|
8963
|
-
if ($$self.$$.dirty &
|
|
8964
|
-
/*variant*/
|
|
8965
|
-
128) {
|
|
8966
|
-
$$invalidate(5, inline = variant === "inline");
|
|
8967
|
-
}
|
|
8968
|
-
|
|
8969
|
-
if ($$self.$$.dirty &
|
|
8970
|
-
/*size*/
|
|
8971
|
-
256) {
|
|
8972
|
-
$$invalidate(4, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
8953
|
+
$$invalidate(6, isVisible = toBoolean(visible));
|
|
8973
8954
|
}
|
|
8974
8955
|
};
|
|
8975
8956
|
|
|
8976
|
-
return [type, message, progress,
|
|
8957
|
+
return [type, message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
|
|
8977
8958
|
}
|
|
8978
8959
|
|
|
8979
8960
|
class CircularProgress extends SvelteElement {
|
package/react-components.umd.js
CHANGED
|
@@ -8502,7 +8502,7 @@
|
|
|
8502
8502
|
function select_block_type(ctx, dirty) {
|
|
8503
8503
|
if (
|
|
8504
8504
|
/*fullscreen*/
|
|
8505
|
-
ctx[
|
|
8505
|
+
ctx[4]) return 0;
|
|
8506
8506
|
if (
|
|
8507
8507
|
/*inline*/
|
|
8508
8508
|
ctx[5]) return 1;
|
|
@@ -8583,7 +8583,7 @@
|
|
|
8583
8583
|
}
|
|
8584
8584
|
|
|
8585
8585
|
};
|
|
8586
|
-
} // (
|
|
8586
|
+
} // (39:19)
|
|
8587
8587
|
|
|
8588
8588
|
|
|
8589
8589
|
function create_if_block_3$1(ctx) {
|
|
@@ -8606,13 +8606,13 @@
|
|
|
8606
8606
|
ctx[0]);
|
|
8607
8607
|
set_custom_element_data(goa_spinner, "size",
|
|
8608
8608
|
/*spinnerSize*/
|
|
8609
|
-
ctx[
|
|
8609
|
+
ctx[3]);
|
|
8610
8610
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
|
|
8611
8611
|
/*progress*/
|
|
8612
8612
|
ctx[2] || 0);
|
|
8613
8613
|
attr(div, "class", div_class_value = "spinner-" +
|
|
8614
8614
|
/*spinnerSize*/
|
|
8615
|
-
ctx[
|
|
8615
|
+
ctx[3]);
|
|
8616
8616
|
toggle_class(div, "inline",
|
|
8617
8617
|
/*inline*/
|
|
8618
8618
|
ctx[5]);
|
|
@@ -8636,10 +8636,10 @@
|
|
|
8636
8636
|
|
|
8637
8637
|
if (dirty &
|
|
8638
8638
|
/*spinnerSize*/
|
|
8639
|
-
|
|
8639
|
+
8) {
|
|
8640
8640
|
set_custom_element_data(goa_spinner, "size",
|
|
8641
8641
|
/*spinnerSize*/
|
|
8642
|
-
ctx[
|
|
8642
|
+
ctx[3]);
|
|
8643
8643
|
}
|
|
8644
8644
|
|
|
8645
8645
|
if (dirty &
|
|
@@ -8667,15 +8667,15 @@
|
|
|
8667
8667
|
|
|
8668
8668
|
if (dirty &
|
|
8669
8669
|
/*spinnerSize*/
|
|
8670
|
-
|
|
8670
|
+
8 && div_class_value !== (div_class_value = "spinner-" +
|
|
8671
8671
|
/*spinnerSize*/
|
|
8672
|
-
ctx[
|
|
8672
|
+
ctx[3])) {
|
|
8673
8673
|
attr(div, "class", div_class_value);
|
|
8674
8674
|
}
|
|
8675
8675
|
|
|
8676
8676
|
if (dirty &
|
|
8677
8677
|
/*spinnerSize, inline*/
|
|
8678
|
-
|
|
8678
|
+
40) {
|
|
8679
8679
|
toggle_class(div, "inline",
|
|
8680
8680
|
/*inline*/
|
|
8681
8681
|
ctx[5]);
|
|
@@ -8691,7 +8691,7 @@
|
|
|
8691
8691
|
}
|
|
8692
8692
|
|
|
8693
8693
|
};
|
|
8694
|
-
} // (
|
|
8694
|
+
} // (28:2) {#if fullscreen}
|
|
8695
8695
|
|
|
8696
8696
|
|
|
8697
8697
|
function create_if_block_1$4(ctx) {
|
|
@@ -8717,13 +8717,13 @@
|
|
|
8717
8717
|
ctx[0]);
|
|
8718
8718
|
set_custom_element_data(goa_spinner, "size",
|
|
8719
8719
|
/*spinnerSize*/
|
|
8720
|
-
ctx[
|
|
8720
|
+
ctx[3]);
|
|
8721
8721
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
|
|
8722
8722
|
/*progress*/
|
|
8723
8723
|
ctx[2] || 0);
|
|
8724
8724
|
toggle_class(div, "fullscreen",
|
|
8725
8725
|
/*fullscreen*/
|
|
8726
|
-
ctx[
|
|
8726
|
+
ctx[4]);
|
|
8727
8727
|
},
|
|
8728
8728
|
|
|
8729
8729
|
m(target, anchor) {
|
|
@@ -8752,10 +8752,10 @@
|
|
|
8752
8752
|
|
|
8753
8753
|
if (!current || dirty &
|
|
8754
8754
|
/*spinnerSize*/
|
|
8755
|
-
|
|
8755
|
+
8) {
|
|
8756
8756
|
set_custom_element_data(goa_spinner, "size",
|
|
8757
8757
|
/*spinnerSize*/
|
|
8758
|
-
ctx[
|
|
8758
|
+
ctx[3]);
|
|
8759
8759
|
}
|
|
8760
8760
|
|
|
8761
8761
|
if (!current || dirty &
|
|
@@ -8783,10 +8783,10 @@
|
|
|
8783
8783
|
|
|
8784
8784
|
if (dirty &
|
|
8785
8785
|
/*fullscreen*/
|
|
8786
|
-
|
|
8786
|
+
16) {
|
|
8787
8787
|
toggle_class(div, "fullscreen",
|
|
8788
8788
|
/*fullscreen*/
|
|
8789
|
-
ctx[
|
|
8789
|
+
ctx[4]);
|
|
8790
8790
|
}
|
|
8791
8791
|
},
|
|
8792
8792
|
|
|
@@ -8818,7 +8818,7 @@
|
|
|
8818
8818
|
}
|
|
8819
8819
|
|
|
8820
8820
|
};
|
|
8821
|
-
} // (
|
|
8821
|
+
} // (42:6) {#if message}
|
|
8822
8822
|
|
|
8823
8823
|
|
|
8824
8824
|
function create_if_block_4(ctx) {
|
|
@@ -8851,7 +8851,7 @@
|
|
|
8851
8851
|
}
|
|
8852
8852
|
|
|
8853
8853
|
};
|
|
8854
|
-
} // (
|
|
8854
|
+
} // (35:6) {#if message}
|
|
8855
8855
|
|
|
8856
8856
|
|
|
8857
8857
|
function create_if_block_2$3(ctx) {
|
|
@@ -8890,8 +8890,8 @@
|
|
|
8890
8890
|
let if_block_anchor;
|
|
8891
8891
|
let current;
|
|
8892
8892
|
let if_block =
|
|
8893
|
-
/*
|
|
8894
|
-
ctx[
|
|
8893
|
+
/*isVisible*/
|
|
8894
|
+
ctx[6] && create_if_block$7(ctx);
|
|
8895
8895
|
return {
|
|
8896
8896
|
c() {
|
|
8897
8897
|
if (if_block) if_block.c();
|
|
@@ -8907,14 +8907,14 @@
|
|
|
8907
8907
|
|
|
8908
8908
|
p(ctx, [dirty]) {
|
|
8909
8909
|
if (
|
|
8910
|
-
/*
|
|
8911
|
-
ctx[
|
|
8910
|
+
/*isVisible*/
|
|
8911
|
+
ctx[6]) {
|
|
8912
8912
|
if (if_block) {
|
|
8913
8913
|
if_block.p(ctx, dirty);
|
|
8914
8914
|
|
|
8915
8915
|
if (dirty &
|
|
8916
|
-
/*
|
|
8917
|
-
|
|
8916
|
+
/*isVisible*/
|
|
8917
|
+
64) {
|
|
8918
8918
|
transition_in(if_block, 1);
|
|
8919
8919
|
}
|
|
8920
8920
|
} else {
|
|
@@ -8953,9 +8953,6 @@
|
|
|
8953
8953
|
|
|
8954
8954
|
function instance$e($$self, $$props, $$invalidate) {
|
|
8955
8955
|
let isVisible;
|
|
8956
|
-
let fullscreen;
|
|
8957
|
-
let inline;
|
|
8958
|
-
let spinnerSize;
|
|
8959
8956
|
let {
|
|
8960
8957
|
type = "infinite"
|
|
8961
8958
|
} = $$props;
|
|
@@ -8974,13 +8971,15 @@
|
|
|
8974
8971
|
let {
|
|
8975
8972
|
visible = "false"
|
|
8976
8973
|
} = $$props;
|
|
8977
|
-
let
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8974
|
+
let spinnerSize;
|
|
8975
|
+
let fullscreen;
|
|
8976
|
+
let inline;
|
|
8977
|
+
onMount(_async(function () {
|
|
8978
|
+
$$invalidate(3, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
8979
|
+
$$invalidate(4, fullscreen = variant === "fullscreen");
|
|
8980
|
+
$$invalidate(5, inline = variant === "inline");
|
|
8981
|
+
return _await();
|
|
8982
|
+
}));
|
|
8984
8983
|
|
|
8985
8984
|
$$self.$$set = $$props => {
|
|
8986
8985
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
@@ -8995,29 +8994,11 @@
|
|
|
8995
8994
|
if ($$self.$$.dirty &
|
|
8996
8995
|
/*visible*/
|
|
8997
8996
|
512) {
|
|
8998
|
-
isVisible = toBoolean(visible);
|
|
8999
|
-
}
|
|
9000
|
-
|
|
9001
|
-
if ($$self.$$.dirty &
|
|
9002
|
-
/*variant*/
|
|
9003
|
-
128) {
|
|
9004
|
-
$$invalidate(6, fullscreen = variant === "fullscreen");
|
|
9005
|
-
}
|
|
9006
|
-
|
|
9007
|
-
if ($$self.$$.dirty &
|
|
9008
|
-
/*variant*/
|
|
9009
|
-
128) {
|
|
9010
|
-
$$invalidate(5, inline = variant === "inline");
|
|
9011
|
-
}
|
|
9012
|
-
|
|
9013
|
-
if ($$self.$$.dirty &
|
|
9014
|
-
/*size*/
|
|
9015
|
-
256) {
|
|
9016
|
-
$$invalidate(4, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
8997
|
+
$$invalidate(6, isVisible = toBoolean(visible));
|
|
9017
8998
|
}
|
|
9018
8999
|
};
|
|
9019
9000
|
|
|
9020
|
-
return [type, message, progress,
|
|
9001
|
+
return [type, message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
|
|
9021
9002
|
}
|
|
9022
9003
|
|
|
9023
9004
|
class CircularProgress extends SvelteElement {
|