@abgov/react-components 4.0.0-alpha.19 → 4.0.0-alpha.21

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,6 @@
1
1
  import React, { FC } from 'react';
2
2
  interface WCProps {
3
- title: string;
3
+ title?: string;
4
4
  url?: string;
5
5
  }
6
6
  declare global {
@@ -11,7 +11,7 @@ declare global {
11
11
  }
12
12
  }
13
13
  interface Props {
14
- title: string;
14
+ title?: string;
15
15
  url?: string;
16
16
  }
17
17
  export declare const GoAAppHeader: FC<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.19",
3
+ "version": "4.0.0-alpha.21",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -3812,7 +3812,7 @@ function create_fragment$q(ctx) {
3812
3812
  attr(div1, "class", "actions");
3813
3813
  attr(header, "class", header_class_value = "heading--" +
3814
3814
  /*headingsize*/
3815
- ctx[2]);
3815
+ ctx[1]);
3816
3816
  attr(div2, "class", "content");
3817
3817
  attr(div3, "class", div3_class_value = `
3818
3818
  goa-container
@@ -3821,11 +3821,11 @@ function create_fragment$q(ctx) {
3821
3821
  ctx[0]}
3822
3822
  padding--${
3823
3823
  /*padding*/
3824
- ctx[3]}
3824
+ ctx[2]}
3825
3825
  `);
3826
3826
  toggle_class(div3, "colored",
3827
- /*colored*/
3828
- ctx[1]);
3827
+ /*_colored*/
3828
+ ctx[3]);
3829
3829
  },
3830
3830
 
3831
3831
  m(target, anchor) {
@@ -3841,32 +3841,32 @@ function create_fragment$q(ctx) {
3841
3841
  p(ctx, [dirty]) {
3842
3842
  if (dirty &
3843
3843
  /*headingsize*/
3844
- 4 && header_class_value !== (header_class_value = "heading--" +
3844
+ 2 && header_class_value !== (header_class_value = "heading--" +
3845
3845
  /*headingsize*/
3846
- ctx[2])) {
3846
+ ctx[1])) {
3847
3847
  attr(header, "class", header_class_value);
3848
3848
  }
3849
3849
 
3850
3850
  if (dirty &
3851
3851
  /*variant, padding*/
3852
- 9 && div3_class_value !== (div3_class_value = `
3852
+ 5 && div3_class_value !== (div3_class_value = `
3853
3853
  goa-container
3854
3854
  goa-container--${
3855
3855
  /*variant*/
3856
3856
  ctx[0]}
3857
3857
  padding--${
3858
3858
  /*padding*/
3859
- ctx[3]}
3859
+ ctx[2]}
3860
3860
  `)) {
3861
3861
  attr(div3, "class", div3_class_value);
3862
3862
  }
3863
3863
 
3864
3864
  if (dirty &
3865
- /*variant, padding, colored*/
3866
- 11) {
3865
+ /*variant, padding, _colored*/
3866
+ 13) {
3867
3867
  toggle_class(div3, "colored",
3868
- /*colored*/
3869
- ctx[1]);
3868
+ /*_colored*/
3869
+ ctx[3]);
3870
3870
  }
3871
3871
  },
3872
3872
 
@@ -3881,11 +3881,13 @@ function create_fragment$q(ctx) {
3881
3881
  }
3882
3882
 
3883
3883
  function instance$o($$self, $$props, $$invalidate) {
3884
+ let _colored;
3885
+
3884
3886
  let {
3885
3887
  variant = 'default'
3886
3888
  } = $$props;
3887
3889
  let {
3888
- colored = false
3890
+ colored = "false"
3889
3891
  } = $$props;
3890
3892
  let {
3891
3893
  headingsize = 'large'
@@ -3896,12 +3898,20 @@ function instance$o($$self, $$props, $$invalidate) {
3896
3898
 
3897
3899
  $$self.$$set = $$props => {
3898
3900
  if ('variant' in $$props) $$invalidate(0, variant = $$props.variant);
3899
- if ('colored' in $$props) $$invalidate(1, colored = $$props.colored);
3900
- if ('headingsize' in $$props) $$invalidate(2, headingsize = $$props.headingsize);
3901
- if ('padding' in $$props) $$invalidate(3, padding = $$props.padding);
3901
+ if ('colored' in $$props) $$invalidate(4, colored = $$props.colored);
3902
+ if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
3903
+ if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
3904
+ };
3905
+
3906
+ $$self.$$.update = () => {
3907
+ if ($$self.$$.dirty &
3908
+ /*colored*/
3909
+ 16) {
3910
+ $$invalidate(3, _colored = toBoolean(colored));
3911
+ }
3902
3912
  };
3903
3913
 
3904
- return [variant, colored, headingsize, padding];
3914
+ return [variant, headingsize, padding, _colored, colored];
3905
3915
  }
3906
3916
 
3907
3917
  class Container extends SvelteElement {
@@ -3914,9 +3924,9 @@ class Container extends SvelteElement {
3914
3924
  customElement: true
3915
3925
  }, instance$o, create_fragment$q, safe_not_equal, {
3916
3926
  variant: 0,
3917
- colored: 1,
3918
- headingsize: 2,
3919
- padding: 3
3927
+ colored: 4,
3928
+ headingsize: 1,
3929
+ padding: 2
3920
3930
  }, null);
3921
3931
 
3922
3932
  if (options) {
@@ -3947,7 +3957,7 @@ class Container extends SvelteElement {
3947
3957
  }
3948
3958
 
3949
3959
  get colored() {
3950
- return this.$$.ctx[1];
3960
+ return this.$$.ctx[4];
3951
3961
  }
3952
3962
 
3953
3963
  set colored(colored) {
@@ -3958,7 +3968,7 @@ class Container extends SvelteElement {
3958
3968
  }
3959
3969
 
3960
3970
  get headingsize() {
3961
- return this.$$.ctx[2];
3971
+ return this.$$.ctx[1];
3962
3972
  }
3963
3973
 
3964
3974
  set headingsize(headingsize) {
@@ -3969,7 +3979,7 @@ class Container extends SvelteElement {
3969
3979
  }
3970
3980
 
3971
3981
  get padding() {
3972
- return this.$$.ctx[3];
3982
+ return this.$$.ctx[2];
3973
3983
  }
3974
3984
 
3975
3985
  set padding(padding) {
@@ -5544,6 +5554,7 @@ function create_fragment$l(ctx) {
5544
5554
  attr(div0, "class", "goa-hero-banner-content");
5545
5555
  attr(div0, "role", "note");
5546
5556
  attr(slot1, "name", "actions");
5557
+ set_custom_element_data(goa_page_block, "width", "full");
5547
5558
  attr(div1, "class", "goa-hero");
5548
5559
  attr(div1, "data-testid", "background");
5549
5560
  set_style(div1, "background-image", "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url(" +
@@ -3868,7 +3868,7 @@
3868
3868
  attr(div1, "class", "actions");
3869
3869
  attr(header, "class", header_class_value = "heading--" +
3870
3870
  /*headingsize*/
3871
- ctx[2]);
3871
+ ctx[1]);
3872
3872
  attr(div2, "class", "content");
3873
3873
  attr(div3, "class", div3_class_value = `
3874
3874
  goa-container
@@ -3877,11 +3877,11 @@
3877
3877
  ctx[0]}
3878
3878
  padding--${
3879
3879
  /*padding*/
3880
- ctx[3]}
3880
+ ctx[2]}
3881
3881
  `);
3882
3882
  toggle_class(div3, "colored",
3883
- /*colored*/
3884
- ctx[1]);
3883
+ /*_colored*/
3884
+ ctx[3]);
3885
3885
  },
3886
3886
 
3887
3887
  m(target, anchor) {
@@ -3897,32 +3897,32 @@
3897
3897
  p(ctx, [dirty]) {
3898
3898
  if (dirty &
3899
3899
  /*headingsize*/
3900
- 4 && header_class_value !== (header_class_value = "heading--" +
3900
+ 2 && header_class_value !== (header_class_value = "heading--" +
3901
3901
  /*headingsize*/
3902
- ctx[2])) {
3902
+ ctx[1])) {
3903
3903
  attr(header, "class", header_class_value);
3904
3904
  }
3905
3905
 
3906
3906
  if (dirty &
3907
3907
  /*variant, padding*/
3908
- 9 && div3_class_value !== (div3_class_value = `
3908
+ 5 && div3_class_value !== (div3_class_value = `
3909
3909
  goa-container
3910
3910
  goa-container--${
3911
3911
  /*variant*/
3912
3912
  ctx[0]}
3913
3913
  padding--${
3914
3914
  /*padding*/
3915
- ctx[3]}
3915
+ ctx[2]}
3916
3916
  `)) {
3917
3917
  attr(div3, "class", div3_class_value);
3918
3918
  }
3919
3919
 
3920
3920
  if (dirty &
3921
- /*variant, padding, colored*/
3922
- 11) {
3921
+ /*variant, padding, _colored*/
3922
+ 13) {
3923
3923
  toggle_class(div3, "colored",
3924
- /*colored*/
3925
- ctx[1]);
3924
+ /*_colored*/
3925
+ ctx[3]);
3926
3926
  }
3927
3927
  },
3928
3928
 
@@ -3937,11 +3937,13 @@
3937
3937
  }
3938
3938
 
3939
3939
  function instance$o($$self, $$props, $$invalidate) {
3940
+ let _colored;
3941
+
3940
3942
  let {
3941
3943
  variant = 'default'
3942
3944
  } = $$props;
3943
3945
  let {
3944
- colored = false
3946
+ colored = "false"
3945
3947
  } = $$props;
3946
3948
  let {
3947
3949
  headingsize = 'large'
@@ -3952,12 +3954,20 @@
3952
3954
 
3953
3955
  $$self.$$set = $$props => {
3954
3956
  if ('variant' in $$props) $$invalidate(0, variant = $$props.variant);
3955
- if ('colored' in $$props) $$invalidate(1, colored = $$props.colored);
3956
- if ('headingsize' in $$props) $$invalidate(2, headingsize = $$props.headingsize);
3957
- if ('padding' in $$props) $$invalidate(3, padding = $$props.padding);
3957
+ if ('colored' in $$props) $$invalidate(4, colored = $$props.colored);
3958
+ if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
3959
+ if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
3960
+ };
3961
+
3962
+ $$self.$$.update = () => {
3963
+ if ($$self.$$.dirty &
3964
+ /*colored*/
3965
+ 16) {
3966
+ $$invalidate(3, _colored = toBoolean(colored));
3967
+ }
3958
3968
  };
3959
3969
 
3960
- return [variant, colored, headingsize, padding];
3970
+ return [variant, headingsize, padding, _colored, colored];
3961
3971
  }
3962
3972
 
3963
3973
  class Container extends SvelteElement {
@@ -3970,9 +3980,9 @@
3970
3980
  customElement: true
3971
3981
  }, instance$o, create_fragment$q, safe_not_equal, {
3972
3982
  variant: 0,
3973
- colored: 1,
3974
- headingsize: 2,
3975
- padding: 3
3983
+ colored: 4,
3984
+ headingsize: 1,
3985
+ padding: 2
3976
3986
  }, null);
3977
3987
 
3978
3988
  if (options) {
@@ -4003,7 +4013,7 @@
4003
4013
  }
4004
4014
 
4005
4015
  get colored() {
4006
- return this.$$.ctx[1];
4016
+ return this.$$.ctx[4];
4007
4017
  }
4008
4018
 
4009
4019
  set colored(colored) {
@@ -4014,7 +4024,7 @@
4014
4024
  }
4015
4025
 
4016
4026
  get headingsize() {
4017
- return this.$$.ctx[2];
4027
+ return this.$$.ctx[1];
4018
4028
  }
4019
4029
 
4020
4030
  set headingsize(headingsize) {
@@ -4025,7 +4035,7 @@
4025
4035
  }
4026
4036
 
4027
4037
  get padding() {
4028
- return this.$$.ctx[3];
4038
+ return this.$$.ctx[2];
4029
4039
  }
4030
4040
 
4031
4041
  set padding(padding) {
@@ -5587,6 +5597,7 @@
5587
5597
  attr(div0, "class", "goa-hero-banner-content");
5588
5598
  attr(div0, "role", "note");
5589
5599
  attr(slot1, "name", "actions");
5600
+ set_custom_element_data(goa_page_block, "width", "full");
5590
5601
  attr(div1, "class", "goa-hero");
5591
5602
  attr(div1, "data-testid", "background");
5592
5603
  set_style(div1, "background-image", "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url(" +