@abgov/react-components 4.0.0-alpha.92 → 4.0.0-alpha.94

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.
@@ -3515,7 +3515,7 @@ function create_if_block_1$8(ctx) {
3515
3515
  }
3516
3516
 
3517
3517
  };
3518
- } // (66:4) {#if isIndeterminate}
3518
+ } // (68:4) {#if isIndeterminate}
3519
3519
 
3520
3520
 
3521
3521
  function create_if_block$e(ctx) {
@@ -3550,6 +3550,7 @@ function create_fragment$w(ctx) {
3550
3550
  let div0;
3551
3551
  let input;
3552
3552
  let input_value_value;
3553
+ let input_aria_label_value;
3553
3554
  let t0;
3554
3555
  let t1;
3555
3556
  let div1;
@@ -3562,10 +3563,10 @@ function create_fragment$w(ctx) {
3562
3563
  function select_block_type(ctx, dirty) {
3563
3564
  if (
3564
3565
  /*isIndeterminate*/
3565
- ctx[9]) return create_if_block$e;
3566
+ ctx[10]) return create_if_block$e;
3566
3567
  if (
3567
3568
  /*isChecked*/
3568
- ctx[8]) return create_if_block_1$8;
3569
+ ctx[9]) return create_if_block_1$8;
3569
3570
  }
3570
3571
 
3571
3572
  let current_block_type = select_block_type(ctx);
@@ -3592,18 +3593,23 @@ function create_fragment$w(ctx) {
3592
3593
  ctx[0]);
3593
3594
  input.checked =
3594
3595
  /*isChecked*/
3595
- ctx[8];
3596
+ ctx[9];
3596
3597
  input.disabled =
3597
3598
  /*isDisabled*/
3598
- ctx[11];
3599
+ ctx[12];
3599
3600
  attr(input, "type", "checkbox");
3600
3601
  input.value = input_value_value = `${
3601
3602
  /*value*/
3602
3603
  ctx[2]}`;
3604
+ attr(input, "aria-label", input_aria_label_value =
3605
+ /*arialabel*/
3606
+ ctx[4] ||
3607
+ /*name*/
3608
+ ctx[0]);
3603
3609
  attr(div0, "class", "goa-checkbox-container");
3604
3610
  toggle_class(div0, "goa-checkbox--selected",
3605
3611
  /*isChecked*/
3606
- ctx[8]);
3612
+ ctx[9]);
3607
3613
  attr(div1, "class", "goa-checkbox-text");
3608
3614
  attr(div1, "data-testid", "text");
3609
3615
  attr(label, "data-testid",
@@ -3614,20 +3620,20 @@ function create_fragment$w(ctx) {
3614
3620
  ctx[0]);
3615
3621
  attr(label, "style", label_style_value = calculateMargin(
3616
3622
  /*mt*/
3617
- ctx[4],
3618
- /*mr*/
3619
3623
  ctx[5],
3620
- /*mb*/
3624
+ /*mr*/
3621
3625
  ctx[6],
3626
+ /*mb*/
3627
+ ctx[7],
3622
3628
  /*ml*/
3623
- ctx[7]));
3629
+ ctx[8]));
3624
3630
  attr(label, "class", "goa-checkbox");
3625
3631
  toggle_class(label, "goa-checkbox--disabled",
3626
3632
  /*isDisabled*/
3627
- ctx[11]);
3633
+ ctx[12]);
3628
3634
  toggle_class(label, "goa-checkbox--error",
3629
3635
  /*isError*/
3630
- ctx[10]);
3636
+ ctx[11]);
3631
3637
  },
3632
3638
 
3633
3639
  m(target, anchor) {
@@ -3644,7 +3650,7 @@ function create_fragment$w(ctx) {
3644
3650
  if (!mounted) {
3645
3651
  dispose = listen(input, "change",
3646
3652
  /*onChange*/
3647
- ctx[12]);
3653
+ ctx[13]);
3648
3654
  mounted = true;
3649
3655
  }
3650
3656
  },
@@ -3668,18 +3674,18 @@ function create_fragment$w(ctx) {
3668
3674
 
3669
3675
  if (dirty &
3670
3676
  /*isChecked*/
3671
- 256) {
3677
+ 512) {
3672
3678
  input.checked =
3673
3679
  /*isChecked*/
3674
- ctx[8];
3680
+ ctx[9];
3675
3681
  }
3676
3682
 
3677
3683
  if (dirty &
3678
3684
  /*isDisabled*/
3679
- 2048) {
3685
+ 4096) {
3680
3686
  input.disabled =
3681
3687
  /*isDisabled*/
3682
- ctx[11];
3688
+ ctx[12];
3683
3689
  }
3684
3690
 
3685
3691
  if (dirty &
@@ -3690,6 +3696,16 @@ function create_fragment$w(ctx) {
3690
3696
  input.value = input_value_value;
3691
3697
  }
3692
3698
 
3699
+ if (dirty &
3700
+ /*arialabel, name*/
3701
+ 17 && input_aria_label_value !== (input_aria_label_value =
3702
+ /*arialabel*/
3703
+ ctx[4] ||
3704
+ /*name*/
3705
+ ctx[0])) {
3706
+ attr(input, "aria-label", input_aria_label_value);
3707
+ }
3708
+
3693
3709
  if (current_block_type !== (current_block_type = select_block_type(ctx))) {
3694
3710
  if (if_block) if_block.d(1);
3695
3711
  if_block = current_block_type && current_block_type(ctx);
@@ -3702,10 +3718,10 @@ function create_fragment$w(ctx) {
3702
3718
 
3703
3719
  if (dirty &
3704
3720
  /*isChecked*/
3705
- 256) {
3721
+ 512) {
3706
3722
  toggle_class(div0, "goa-checkbox--selected",
3707
3723
  /*isChecked*/
3708
- ctx[8]);
3724
+ ctx[9]);
3709
3725
  }
3710
3726
 
3711
3727
  if (dirty &
@@ -3732,32 +3748,32 @@ function create_fragment$w(ctx) {
3732
3748
 
3733
3749
  if (dirty &
3734
3750
  /*mt, mr, mb, ml*/
3735
- 240 && label_style_value !== (label_style_value = calculateMargin(
3751
+ 480 && label_style_value !== (label_style_value = calculateMargin(
3736
3752
  /*mt*/
3737
- ctx[4],
3738
- /*mr*/
3739
3753
  ctx[5],
3740
- /*mb*/
3754
+ /*mr*/
3741
3755
  ctx[6],
3756
+ /*mb*/
3757
+ ctx[7],
3742
3758
  /*ml*/
3743
- ctx[7]))) {
3759
+ ctx[8]))) {
3744
3760
  attr(label, "style", label_style_value);
3745
3761
  }
3746
3762
 
3747
3763
  if (dirty &
3748
3764
  /*isDisabled*/
3749
- 2048) {
3765
+ 4096) {
3750
3766
  toggle_class(label, "goa-checkbox--disabled",
3751
3767
  /*isDisabled*/
3752
- ctx[11]);
3768
+ ctx[12]);
3753
3769
  }
3754
3770
 
3755
3771
  if (dirty &
3756
3772
  /*isError*/
3757
- 1024) {
3773
+ 2048) {
3758
3774
  toggle_class(label, "goa-checkbox--error",
3759
3775
  /*isError*/
3760
- ctx[10]);
3776
+ ctx[11]);
3761
3777
  }
3762
3778
  },
3763
3779
 
@@ -3804,6 +3820,9 @@ function instance$u($$self, $$props, $$invalidate) {
3804
3820
  let {
3805
3821
  testid = ""
3806
3822
  } = $$props;
3823
+ let {
3824
+ arialabel = ""
3825
+ } = $$props;
3807
3826
  let {
3808
3827
  mt = null
3809
3828
  } = $$props;
@@ -3830,7 +3849,7 @@ function instance$u($$self, $$props, $$invalidate) {
3830
3849
  const newCheckStatus = !isChecked;
3831
3850
  const newValue = newCheckStatus ? `${_value || "checked"}` : ""; // set the local state
3832
3851
 
3833
- $$invalidate(13, checked = fromBoolean(newCheckStatus));
3852
+ $$invalidate(14, checked = fromBoolean(newCheckStatus));
3834
3853
  e.target.dispatchEvent(new CustomEvent("_change", {
3835
3854
  composed: true,
3836
3855
  detail: {
@@ -3843,42 +3862,43 @@ function instance$u($$self, $$props, $$invalidate) {
3843
3862
 
3844
3863
  $$self.$$set = $$props => {
3845
3864
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
3846
- if ('checked' in $$props) $$invalidate(13, checked = $$props.checked);
3865
+ if ('checked' in $$props) $$invalidate(14, checked = $$props.checked);
3847
3866
  if ('text' in $$props) $$invalidate(1, text = $$props.text);
3848
3867
  if ('value' in $$props) $$invalidate(2, value = $$props.value);
3849
- if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
3850
- if ('error' in $$props) $$invalidate(15, error = $$props.error);
3868
+ if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
3869
+ if ('error' in $$props) $$invalidate(16, error = $$props.error);
3851
3870
  if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
3852
- if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
3853
- if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
3854
- if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
3855
- if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
3871
+ if ('arialabel' in $$props) $$invalidate(4, arialabel = $$props.arialabel);
3872
+ if ('mt' in $$props) $$invalidate(5, mt = $$props.mt);
3873
+ if ('mr' in $$props) $$invalidate(6, mr = $$props.mr);
3874
+ if ('mb' in $$props) $$invalidate(7, mb = $$props.mb);
3875
+ if ('ml' in $$props) $$invalidate(8, ml = $$props.ml);
3856
3876
  };
3857
3877
 
3858
3878
  $$self.$$.update = () => {
3859
3879
  if ($$self.$$.dirty &
3860
3880
  /*disabled*/
3861
- 16384) {
3881
+ 32768) {
3862
3882
  // Binding
3863
- $$invalidate(11, isDisabled = toBoolean(disabled));
3883
+ $$invalidate(12, isDisabled = toBoolean(disabled));
3864
3884
  }
3865
3885
 
3866
3886
  if ($$self.$$.dirty &
3867
3887
  /*error*/
3868
- 32768) {
3869
- $$invalidate(10, isError = toBoolean(error));
3888
+ 65536) {
3889
+ $$invalidate(11, isError = toBoolean(error));
3870
3890
  }
3871
3891
 
3872
3892
  if ($$self.$$.dirty &
3873
3893
  /*checked*/
3874
- 8192) {
3875
- $$invalidate(8, isChecked = toBoolean(checked));
3894
+ 16384) {
3895
+ $$invalidate(9, isChecked = toBoolean(checked));
3876
3896
  }
3877
3897
  };
3878
3898
 
3879
- $$invalidate(9, isIndeterminate = false); // Desighn review. To be built with TreeView Later
3899
+ $$invalidate(10, isIndeterminate = false); // Desighn review. To be built with TreeView Later
3880
3900
 
3881
- return [name, text, value, testid, mt, mr, mb, ml, isChecked, isIndeterminate, isError, isDisabled, onChange, checked, disabled, error];
3901
+ return [name, text, value, testid, arialabel, mt, mr, mb, ml, isChecked, isIndeterminate, isError, isDisabled, onChange, checked, disabled, error];
3882
3902
  }
3883
3903
 
3884
3904
  class Checkbox extends SvelteElement {
@@ -3891,16 +3911,17 @@ class Checkbox extends SvelteElement {
3891
3911
  customElement: true
3892
3912
  }, instance$u, create_fragment$w, safe_not_equal, {
3893
3913
  name: 0,
3894
- checked: 13,
3914
+ checked: 14,
3895
3915
  text: 1,
3896
3916
  value: 2,
3897
- disabled: 14,
3898
- error: 15,
3917
+ disabled: 15,
3918
+ error: 16,
3899
3919
  testid: 3,
3900
- mt: 4,
3901
- mr: 5,
3902
- mb: 6,
3903
- ml: 7
3920
+ arialabel: 4,
3921
+ mt: 5,
3922
+ mr: 6,
3923
+ mb: 7,
3924
+ ml: 8
3904
3925
  }, null);
3905
3926
 
3906
3927
  if (options) {
@@ -3916,7 +3937,7 @@ class Checkbox extends SvelteElement {
3916
3937
  }
3917
3938
 
3918
3939
  static get observedAttributes() {
3919
- return ["name", "checked", "text", "value", "disabled", "error", "testid", "mt", "mr", "mb", "ml"];
3940
+ return ["name", "checked", "text", "value", "disabled", "error", "testid", "arialabel", "mt", "mr", "mb", "ml"];
3920
3941
  }
3921
3942
 
3922
3943
  get name() {
@@ -3931,7 +3952,7 @@ class Checkbox extends SvelteElement {
3931
3952
  }
3932
3953
 
3933
3954
  get checked() {
3934
- return this.$$.ctx[13];
3955
+ return this.$$.ctx[14];
3935
3956
  }
3936
3957
 
3937
3958
  set checked(checked) {
@@ -3964,7 +3985,7 @@ class Checkbox extends SvelteElement {
3964
3985
  }
3965
3986
 
3966
3987
  get disabled() {
3967
- return this.$$.ctx[14];
3988
+ return this.$$.ctx[15];
3968
3989
  }
3969
3990
 
3970
3991
  set disabled(disabled) {
@@ -3975,7 +3996,7 @@ class Checkbox extends SvelteElement {
3975
3996
  }
3976
3997
 
3977
3998
  get error() {
3978
- return this.$$.ctx[15];
3999
+ return this.$$.ctx[16];
3979
4000
  }
3980
4001
 
3981
4002
  set error(error) {
@@ -3996,10 +4017,21 @@ class Checkbox extends SvelteElement {
3996
4017
  flush();
3997
4018
  }
3998
4019
 
3999
- get mt() {
4020
+ get arialabel() {
4000
4021
  return this.$$.ctx[4];
4001
4022
  }
4002
4023
 
4024
+ set arialabel(arialabel) {
4025
+ this.$$set({
4026
+ arialabel
4027
+ });
4028
+ flush();
4029
+ }
4030
+
4031
+ get mt() {
4032
+ return this.$$.ctx[5];
4033
+ }
4034
+
4003
4035
  set mt(mt) {
4004
4036
  this.$$set({
4005
4037
  mt
@@ -4008,7 +4040,7 @@ class Checkbox extends SvelteElement {
4008
4040
  }
4009
4041
 
4010
4042
  get mr() {
4011
- return this.$$.ctx[5];
4043
+ return this.$$.ctx[6];
4012
4044
  }
4013
4045
 
4014
4046
  set mr(mr) {
@@ -4019,7 +4051,7 @@ class Checkbox extends SvelteElement {
4019
4051
  }
4020
4052
 
4021
4053
  get mb() {
4022
- return this.$$.ctx[6];
4054
+ return this.$$.ctx[7];
4023
4055
  }
4024
4056
 
4025
4057
  set mb(mb) {
@@ -4030,7 +4062,7 @@ class Checkbox extends SvelteElement {
4030
4062
  }
4031
4063
 
4032
4064
  get ml() {
4033
- return this.$$.ctx[7];
4065
+ return this.$$.ctx[8];
4034
4066
  }
4035
4067
 
4036
4068
  set ml(ml) {
@@ -10401,7 +10433,7 @@ function instance$f($$self, $$props, $$invalidate) {
10401
10433
  class Input extends SvelteElement {
10402
10434
  constructor(options) {
10403
10435
  super();
10404
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=text],input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix{background-color:var(--color-gray-100);padding:0 0.75rem;display:flex;align-items:center}.prefix{border-top-left-radius:var(--input-border-radius);border-bottom-left-radius:var(--input-border-radius);border-right:1px solid var(--color-gray-600)}.suffix{border-top-right-radius:var(--input-border-radius);border-bottom-right-radius:var(--input-border-radius);border-left:1px solid var(--color-gray-600)}.goa-input--disabled .prefix{border-right:1px solid var(--color-gray-200)}.goa-input--disabled .suffix{border-left:1px solid var(--color-gray-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
10436
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=text],input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix{background-color:var(--color-gray-100);padding:0 0.75rem;display:flex;align-items:center}.prefix{border-top-left-radius:var(--input-border-radius);border-bottom-left-radius:var(--input-border-radius);border-right:1px solid var(--color-gray-600)}.suffix{border-top-right-radius:var(--input-border-radius);border-bottom-right-radius:var(--input-border-radius);border-left:1px solid var(--color-gray-600)}.goa-input--disabled .prefix{border-right:1px solid var(--color-gray-200)}.goa-input--disabled .suffix{border-left:1px solid var(--color-gray-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
10405
10437
  center center no-repeat}</style>`;
10406
10438
  init(this, {
10407
10439
  target: this.shadowRoot,
@@ -12184,9 +12216,9 @@ customElements.define("goa-page-block", PageBlock);
12184
12216
 
12185
12217
  function get_each_context$1(ctx, list, i) {
12186
12218
  const child_ctx = ctx.slice();
12187
- child_ctx[19] = list[i];
12219
+ child_ctx[20] = list[i];
12188
12220
  return child_ctx;
12189
- } // (59:2) {#each options as option (option.value)}
12221
+ } // (60:2) {#each options as option (option.value)}
12190
12222
 
12191
12223
 
12192
12224
  function create_each_block$1(key_1, ctx) {
@@ -12194,15 +12226,16 @@ function create_each_block$1(key_1, ctx) {
12194
12226
  let input;
12195
12227
  let input_value_value;
12196
12228
  let input_checked_value;
12229
+ let input_aria_label_value;
12197
12230
  let t0;
12198
12231
  let div;
12199
12232
  let t1;
12200
12233
  let span;
12201
12234
  let t2_value = (
12202
12235
  /*option*/
12203
- ctx[19].label ||
12236
+ ctx[20].label ||
12204
12237
  /*option*/
12205
- ctx[19].value) + "";
12238
+ ctx[20].value) + "";
12206
12239
  let t2;
12207
12240
  let t3;
12208
12241
  let label_data_testid_value;
@@ -12212,9 +12245,9 @@ function create_each_block$1(key_1, ctx) {
12212
12245
  function change_handler() {
12213
12246
  return (
12214
12247
  /*change_handler*/
12215
- ctx[17](
12248
+ ctx[18](
12216
12249
  /*option*/
12217
- ctx[19])
12250
+ ctx[20])
12218
12251
  );
12219
12252
  }
12220
12253
 
@@ -12237,27 +12270,32 @@ function create_each_block$1(key_1, ctx) {
12237
12270
  ctx[1]);
12238
12271
  input.value = input_value_value =
12239
12272
  /*option*/
12240
- ctx[19].value;
12273
+ ctx[20].value;
12241
12274
  input.disabled =
12242
12275
  /*isDisabled*/
12243
- ctx[11];
12276
+ ctx[12];
12244
12277
  input.checked = input_checked_value =
12245
12278
  /*option*/
12246
- ctx[19].value ===
12279
+ ctx[20].value ===
12247
12280
  /*value*/
12248
12281
  ctx[0];
12282
+ attr(input, "aria-label", input_aria_label_value =
12283
+ /*arialabel*/
12284
+ ctx[4] ||
12285
+ /*name*/
12286
+ ctx[1]);
12249
12287
  attr(div, "class", "goa-radio-icon");
12250
12288
  attr(span, "class", "goa-radio-label");
12251
12289
  attr(label, "data-testid", label_data_testid_value = "radio-option-" +
12252
12290
  /*option*/
12253
- ctx[19].value);
12291
+ ctx[20].value);
12254
12292
  attr(label, "class", "goa-radio");
12255
12293
  toggle_class(label, "goa-radio--disabled",
12256
12294
  /*isDisabled*/
12257
- ctx[11]);
12295
+ ctx[12]);
12258
12296
  toggle_class(label, "goa-radio--error",
12259
12297
  /*isError*/
12260
- ctx[9]);
12298
+ ctx[10]);
12261
12299
  this.first = label;
12262
12300
  },
12263
12301
 
@@ -12290,60 +12328,70 @@ function create_each_block$1(key_1, ctx) {
12290
12328
 
12291
12329
  if (dirty &
12292
12330
  /*options*/
12293
- 256 && input_value_value !== (input_value_value =
12331
+ 512 && input_value_value !== (input_value_value =
12294
12332
  /*option*/
12295
- ctx[19].value)) {
12333
+ ctx[20].value)) {
12296
12334
  input.value = input_value_value;
12297
12335
  }
12298
12336
 
12299
12337
  if (dirty &
12300
12338
  /*isDisabled*/
12301
- 2048) {
12339
+ 4096) {
12302
12340
  input.disabled =
12303
12341
  /*isDisabled*/
12304
- ctx[11];
12342
+ ctx[12];
12305
12343
  }
12306
12344
 
12307
12345
  if (dirty &
12308
12346
  /*options, value*/
12309
- 257 && input_checked_value !== (input_checked_value =
12347
+ 513 && input_checked_value !== (input_checked_value =
12310
12348
  /*option*/
12311
- ctx[19].value ===
12349
+ ctx[20].value ===
12312
12350
  /*value*/
12313
12351
  ctx[0])) {
12314
12352
  input.checked = input_checked_value;
12315
12353
  }
12316
12354
 
12355
+ if (dirty &
12356
+ /*arialabel, name*/
12357
+ 18 && input_aria_label_value !== (input_aria_label_value =
12358
+ /*arialabel*/
12359
+ ctx[4] ||
12360
+ /*name*/
12361
+ ctx[1])) {
12362
+ attr(input, "aria-label", input_aria_label_value);
12363
+ }
12364
+
12317
12365
  if (dirty &
12318
12366
  /*options*/
12319
- 256 && t2_value !== (t2_value = (
12367
+ 512 && t2_value !== (t2_value = (
12320
12368
  /*option*/
12321
- ctx[19].label ||
12369
+ ctx[20].label ||
12322
12370
  /*option*/
12323
- ctx[19].value) + "")) set_data(t2, t2_value);
12371
+ ctx[20].value) + "")) set_data(t2, t2_value);
12324
12372
 
12325
12373
  if (dirty &
12326
12374
  /*options*/
12327
- 256 && label_data_testid_value !== (label_data_testid_value = "radio-option-" +
12375
+ 512 && label_data_testid_value !== (label_data_testid_value = "radio-option-" +
12328
12376
  /*option*/
12329
- ctx[19].value)) {
12377
+ ctx[20].value)) {
12330
12378
  attr(label, "data-testid", label_data_testid_value);
12331
12379
  }
12332
12380
 
12333
12381
  if (dirty &
12334
12382
  /*isDisabled*/
12335
- 2048) {
12383
+ 4096) {
12336
12384
  toggle_class(label, "goa-radio--disabled",
12337
12385
  /*isDisabled*/
12338
- ctx[11]);
12386
+ ctx[12]);
12339
12387
  }
12340
12388
 
12341
12389
  if (dirty &
12342
12390
  /*isError*/
12343
- 512) {
12391
+ 1024) {
12344
12392
  toggle_class(label, "goa-radio--error",
12345
12393
  /*isError*/
12346
- ctx[9]);
12394
+ ctx[10]);
12347
12395
  }
12348
12396
  },
12349
12397
 
@@ -12366,11 +12414,11 @@ function create_fragment$c(ctx) {
12366
12414
  let div_class_value;
12367
12415
  let each_value =
12368
12416
  /*options*/
12369
- ctx[8];
12417
+ ctx[9];
12370
12418
 
12371
12419
  const get_key = ctx =>
12372
12420
  /*option*/
12373
- ctx[19].value;
12421
+ ctx[20].value;
12374
12422
 
12375
12423
  for (let i = 0; i < each_value.length; i += 1) {
12376
12424
  let child_ctx = get_each_context$1(ctx, each_value, i);
@@ -12391,13 +12439,13 @@ function create_fragment$c(ctx) {
12391
12439
  this.c = noop;
12392
12440
  attr(div, "style", div_style_value = calculateMargin(
12393
12441
  /*mt*/
12394
- ctx[4],
12395
- /*mr*/
12396
12442
  ctx[5],
12397
- /*mb*/
12443
+ /*mr*/
12398
12444
  ctx[6],
12445
+ /*mb*/
12446
+ ctx[7],
12399
12447
  /*ml*/
12400
- ctx[7]));
12448
+ ctx[8]));
12401
12449
  attr(div, "class", div_class_value = `goa-radio-group--${
12402
12450
  /*orientation*/
12403
12451
  ctx[2]}`);
@@ -12417,30 +12465,30 @@ function create_fragment$c(ctx) {
12417
12465
  /*div_binding*/
12418
12466
 
12419
12467
 
12420
- ctx[18](div);
12468
+ ctx[19](div);
12421
12469
  },
12422
12470
 
12423
12471
  p(ctx, [dirty]) {
12424
12472
  if (dirty &
12425
- /*options, isDisabled, isError, name, value, onChange*/
12426
- 6915) {
12473
+ /*options, isDisabled, isError, name, value, arialabel, onChange*/
12474
+ 13843) {
12427
12475
  each_value =
12428
12476
  /*options*/
12429
- ctx[8];
12477
+ ctx[9];
12430
12478
  each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, destroy_block, create_each_block$1, null, get_each_context$1);
12431
12479
  }
12432
12480
 
12433
12481
  if (dirty &
12434
12482
  /*mt, mr, mb, ml*/
12435
- 240 && div_style_value !== (div_style_value = calculateMargin(
12483
+ 480 && div_style_value !== (div_style_value = calculateMargin(
12436
12484
  /*mt*/
12437
- ctx[4],
12438
- /*mr*/
12439
12485
  ctx[5],
12440
- /*mb*/
12486
+ /*mr*/
12441
12487
  ctx[6],
12488
+ /*mb*/
12489
+ ctx[7],
12442
12490
  /*ml*/
12443
- ctx[7]))) {
12491
+ ctx[8]))) {
12444
12492
  attr(div, "style", div_style_value);
12445
12493
  }
12446
12494
 
@@ -12473,7 +12521,7 @@ function create_fragment$c(ctx) {
12473
12521
  /*div_binding*/
12474
12522
 
12475
12523
 
12476
- ctx[18](null);
12524
+ ctx[19](null);
12477
12525
  }
12478
12526
 
12479
12527
  };
@@ -12499,6 +12547,9 @@ function instance$a($$self, $$props, $$invalidate) {
12499
12547
  let {
12500
12548
  testid = ""
12501
12549
  } = $$props;
12550
+ let {
12551
+ arialabel = ""
12552
+ } = $$props;
12502
12553
  let {
12503
12554
  mt = null
12504
12555
  } = $$props;
@@ -12539,7 +12590,7 @@ function instance$a($$self, $$props, $$invalidate) {
12539
12590
  function div_binding($$value) {
12540
12591
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12541
12592
  el = $$value;
12542
- $$invalidate(10, el);
12593
+ $$invalidate(11, el);
12543
12594
  });
12544
12595
  }
12545
12596
 
@@ -12547,45 +12598,46 @@ function instance$a($$self, $$props, $$invalidate) {
12547
12598
  if ('name' in $$props) $$invalidate(1, name = $$props.name);
12548
12599
  if ('value' in $$props) $$invalidate(0, value = $$props.value);
12549
12600
  if ('orientation' in $$props) $$invalidate(2, orientation = $$props.orientation);
12550
- if ('disabled' in $$props) $$invalidate(13, disabled = $$props.disabled);
12551
- if ('error' in $$props) $$invalidate(14, error = $$props.error);
12601
+ if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
12602
+ if ('error' in $$props) $$invalidate(15, error = $$props.error);
12552
12603
  if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
12553
- if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
12554
- if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
12555
- if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
12556
- if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
12604
+ if ('arialabel' in $$props) $$invalidate(4, arialabel = $$props.arialabel);
12605
+ if ('mt' in $$props) $$invalidate(5, mt = $$props.mt);
12606
+ if ('mr' in $$props) $$invalidate(6, mr = $$props.mr);
12607
+ if ('mb' in $$props) $$invalidate(7, mb = $$props.mb);
12608
+ if ('ml' in $$props) $$invalidate(8, ml = $$props.ml);
12557
12609
  };
12558
12610
 
12559
12611
  $$self.$$.update = () => {
12560
12612
  if ($$self.$$.dirty &
12561
12613
  /*disabled*/
12562
- 8192) {
12563
- $$invalidate(11, isDisabled = toBoolean(disabled));
12614
+ 16384) {
12615
+ $$invalidate(12, isDisabled = toBoolean(disabled));
12564
12616
  }
12565
12617
 
12566
12618
  if ($$self.$$.dirty &
12567
12619
  /*error*/
12568
- 16384) {
12569
- $$invalidate(9, isError = toBoolean(error));
12620
+ 32768) {
12621
+ $$invalidate(10, isError = toBoolean(error));
12570
12622
  }
12571
12623
 
12572
12624
  if ($$self.$$.dirty &
12573
12625
  /*name, isBound, ctx, options*/
12574
- 98562) {
12626
+ 197122) {
12575
12627
  {
12576
12628
  if (name && !isBound) {
12577
- $$invalidate(16, isBound = true);
12578
- $$invalidate(15, ctx = getContext(name));
12629
+ $$invalidate(17, isBound = true);
12630
+ $$invalidate(16, ctx = getContext(name));
12579
12631
  ctx.subscribe(msg => {
12580
12632
  if (!msg) return;
12581
- $$invalidate(8, options = [...options, msg]);
12633
+ $$invalidate(9, options = [...options, msg]);
12582
12634
  });
12583
12635
  }
12584
12636
  }
12585
12637
  }
12586
12638
  };
12587
12639
 
12588
- return [value, name, orientation, testid, mt, mr, mb, ml, options, isError, el, isDisabled, onChange, disabled, error, ctx, isBound, change_handler, div_binding];
12640
+ return [value, name, orientation, testid, arialabel, mt, mr, mb, ml, options, isError, el, isDisabled, onChange, disabled, error, ctx, isBound, change_handler, div_binding];
12589
12641
  }
12590
12642
 
12591
12643
  class RadioGroup extends SvelteElement {
@@ -12602,13 +12654,14 @@ class RadioGroup extends SvelteElement {
12602
12654
  name: 1,
12603
12655
  value: 0,
12604
12656
  orientation: 2,
12605
- disabled: 13,
12606
- error: 14,
12657
+ disabled: 14,
12658
+ error: 15,
12607
12659
  testid: 3,
12608
- mt: 4,
12609
- mr: 5,
12610
- mb: 6,
12611
- ml: 7
12660
+ arialabel: 4,
12661
+ mt: 5,
12662
+ mr: 6,
12663
+ mb: 7,
12664
+ ml: 8
12612
12665
  }, null);
12613
12666
 
12614
12667
  if (options) {
@@ -12624,7 +12677,7 @@ class RadioGroup extends SvelteElement {
12624
12677
  }
12625
12678
 
12626
12679
  static get observedAttributes() {
12627
- return ["name", "value", "orientation", "disabled", "error", "testid", "mt", "mr", "mb", "ml"];
12680
+ return ["name", "value", "orientation", "disabled", "error", "testid", "arialabel", "mt", "mr", "mb", "ml"];
12628
12681
  }
12629
12682
 
12630
12683
  get name() {
@@ -12661,7 +12714,7 @@ class RadioGroup extends SvelteElement {
12661
12714
  }
12662
12715
 
12663
12716
  get disabled() {
12664
- return this.$$.ctx[13];
12717
+ return this.$$.ctx[14];
12665
12718
  }
12666
12719
 
12667
12720
  set disabled(disabled) {
@@ -12672,7 +12725,7 @@ class RadioGroup extends SvelteElement {
12672
12725
  }
12673
12726
 
12674
12727
  get error() {
12675
- return this.$$.ctx[14];
12728
+ return this.$$.ctx[15];
12676
12729
  }
12677
12730
 
12678
12731
  set error(error) {
@@ -12693,10 +12746,21 @@ class RadioGroup extends SvelteElement {
12693
12746
  flush();
12694
12747
  }
12695
12748
 
12696
- get mt() {
12749
+ get arialabel() {
12697
12750
  return this.$$.ctx[4];
12698
12751
  }
12699
12752
 
12753
+ set arialabel(arialabel) {
12754
+ this.$$set({
12755
+ arialabel
12756
+ });
12757
+ flush();
12758
+ }
12759
+
12760
+ get mt() {
12761
+ return this.$$.ctx[5];
12762
+ }
12763
+
12700
12764
  set mt(mt) {
12701
12765
  this.$$set({
12702
12766
  mt
@@ -12705,7 +12769,7 @@ class RadioGroup extends SvelteElement {
12705
12769
  }
12706
12770
 
12707
12771
  get mr() {
12708
- return this.$$.ctx[5];
12772
+ return this.$$.ctx[6];
12709
12773
  }
12710
12774
 
12711
12775
  set mr(mr) {
@@ -12716,7 +12780,7 @@ class RadioGroup extends SvelteElement {
12716
12780
  }
12717
12781
 
12718
12782
  get mb() {
12719
- return this.$$.ctx[6];
12783
+ return this.$$.ctx[7];
12720
12784
  }
12721
12785
 
12722
12786
  set mb(mb) {
@@ -12727,7 +12791,7 @@ class RadioGroup extends SvelteElement {
12727
12791
  }
12728
12792
 
12729
12793
  get ml() {
12730
- return this.$$.ctx[7];
12794
+ return this.$$.ctx[8];
12731
12795
  }
12732
12796
 
12733
12797
  set ml(ml) {
@@ -14645,7 +14709,7 @@ function instance$5($$self, $$props, $$invalidate) {
14645
14709
  class TextArea extends SvelteElement {
14646
14710
  constructor(options) {
14647
14711
  super();
14648
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--textarea-padding-vertical, 0.5rem) var(--textarea-padding-horizontal, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)
14712
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;color:var(--color-black, #ccc);padding:var(--textarea-padding-vertical, 0.5rem) var(--textarea-padding-horizontal, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)
14649
14713
  }.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}</style>`;
14650
14714
  init(this, {
14651
14715
  target: this.shadowRoot,
@@ -16168,6 +16232,7 @@ const GoACheckbox = ({
16168
16232
  text,
16169
16233
  children,
16170
16234
  onChange,
16235
+ ariaLabel,
16171
16236
  mt,
16172
16237
  mr,
16173
16238
  mb,
@@ -16201,6 +16266,7 @@ const GoACheckbox = ({
16201
16266
  disabled: disabled,
16202
16267
  text: text,
16203
16268
  value: value,
16269
+ arialabel: ariaLabel,
16204
16270
  mt: mt,
16205
16271
  mr: mr,
16206
16272
  mb: mb,
@@ -16356,6 +16422,7 @@ const GoADropdown = props => {
16356
16422
  error: props.error,
16357
16423
  testid: props.testId,
16358
16424
  width: props.width,
16425
+ arialabel: props.ariaLabel,
16359
16426
  mt: props.mt,
16360
16427
  mr: props.mr,
16361
16428
  mb: props.mb,
@@ -16587,6 +16654,7 @@ const GoAInput = ({
16587
16654
  step,
16588
16655
  prefix,
16589
16656
  suffix,
16657
+ ariaLabel,
16590
16658
  mt,
16591
16659
  mr,
16592
16660
  mb,
@@ -16643,6 +16711,7 @@ const GoAInput = ({
16643
16711
  step: step,
16644
16712
  prefix: prefix,
16645
16713
  suffix: suffix,
16714
+ arialabel: ariaLabel,
16646
16715
  mt: mt,
16647
16716
  mr: mr,
16648
16717
  mb: mb,
@@ -16925,6 +16994,7 @@ const GoARadioGroup = ({
16925
16994
  disabled: _disabled = false,
16926
16995
  error: _error = false,
16927
16996
  testId,
16997
+ ariaLabel,
16928
16998
  mt,
16929
16999
  mr,
16930
17000
  mb,
@@ -16960,6 +17030,7 @@ const GoARadioGroup = ({
16960
17030
  orientation: _orientation,
16961
17031
  disabled: _disabled,
16962
17032
  error: _error,
17033
+ arialabel: ariaLabel,
16963
17034
  mt: mt,
16964
17035
  mr: mr,
16965
17036
  mb: mb,
@@ -17025,6 +17096,7 @@ const GoATextArea = ({
17025
17096
  width,
17026
17097
  testId,
17027
17098
  error,
17099
+ ariaLabel,
17028
17100
  mt,
17029
17101
  mr,
17030
17102
  mb,
@@ -17064,6 +17136,7 @@ const GoATextArea = ({
17064
17136
  width: width,
17065
17137
  error: error,
17066
17138
  "data-testid": testId,
17139
+ arialabel: ariaLabel,
17067
17140
  mt: mt,
17068
17141
  mr: mr,
17069
17142
  mb: mb,