@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.
@@ -3556,7 +3556,7 @@
3556
3556
  }
3557
3557
 
3558
3558
  };
3559
- } // (66:4) {#if isIndeterminate}
3559
+ } // (68:4) {#if isIndeterminate}
3560
3560
 
3561
3561
 
3562
3562
  function create_if_block$e(ctx) {
@@ -3591,6 +3591,7 @@
3591
3591
  let div0;
3592
3592
  let input;
3593
3593
  let input_value_value;
3594
+ let input_aria_label_value;
3594
3595
  let t0;
3595
3596
  let t1;
3596
3597
  let div1;
@@ -3603,10 +3604,10 @@
3603
3604
  function select_block_type(ctx, dirty) {
3604
3605
  if (
3605
3606
  /*isIndeterminate*/
3606
- ctx[9]) return create_if_block$e;
3607
+ ctx[10]) return create_if_block$e;
3607
3608
  if (
3608
3609
  /*isChecked*/
3609
- ctx[8]) return create_if_block_1$8;
3610
+ ctx[9]) return create_if_block_1$8;
3610
3611
  }
3611
3612
 
3612
3613
  let current_block_type = select_block_type(ctx);
@@ -3633,18 +3634,23 @@
3633
3634
  ctx[0]);
3634
3635
  input.checked =
3635
3636
  /*isChecked*/
3636
- ctx[8];
3637
+ ctx[9];
3637
3638
  input.disabled =
3638
3639
  /*isDisabled*/
3639
- ctx[11];
3640
+ ctx[12];
3640
3641
  attr(input, "type", "checkbox");
3641
3642
  input.value = input_value_value = `${
3642
3643
  /*value*/
3643
3644
  ctx[2]}`;
3645
+ attr(input, "aria-label", input_aria_label_value =
3646
+ /*arialabel*/
3647
+ ctx[4] ||
3648
+ /*name*/
3649
+ ctx[0]);
3644
3650
  attr(div0, "class", "goa-checkbox-container");
3645
3651
  toggle_class(div0, "goa-checkbox--selected",
3646
3652
  /*isChecked*/
3647
- ctx[8]);
3653
+ ctx[9]);
3648
3654
  attr(div1, "class", "goa-checkbox-text");
3649
3655
  attr(div1, "data-testid", "text");
3650
3656
  attr(label, "data-testid",
@@ -3655,20 +3661,20 @@
3655
3661
  ctx[0]);
3656
3662
  attr(label, "style", label_style_value = calculateMargin(
3657
3663
  /*mt*/
3658
- ctx[4],
3659
- /*mr*/
3660
3664
  ctx[5],
3661
- /*mb*/
3665
+ /*mr*/
3662
3666
  ctx[6],
3667
+ /*mb*/
3668
+ ctx[7],
3663
3669
  /*ml*/
3664
- ctx[7]));
3670
+ ctx[8]));
3665
3671
  attr(label, "class", "goa-checkbox");
3666
3672
  toggle_class(label, "goa-checkbox--disabled",
3667
3673
  /*isDisabled*/
3668
- ctx[11]);
3674
+ ctx[12]);
3669
3675
  toggle_class(label, "goa-checkbox--error",
3670
3676
  /*isError*/
3671
- ctx[10]);
3677
+ ctx[11]);
3672
3678
  },
3673
3679
 
3674
3680
  m(target, anchor) {
@@ -3685,7 +3691,7 @@
3685
3691
  if (!mounted) {
3686
3692
  dispose = listen(input, "change",
3687
3693
  /*onChange*/
3688
- ctx[12]);
3694
+ ctx[13]);
3689
3695
  mounted = true;
3690
3696
  }
3691
3697
  },
@@ -3709,18 +3715,18 @@
3709
3715
 
3710
3716
  if (dirty &
3711
3717
  /*isChecked*/
3712
- 256) {
3718
+ 512) {
3713
3719
  input.checked =
3714
3720
  /*isChecked*/
3715
- ctx[8];
3721
+ ctx[9];
3716
3722
  }
3717
3723
 
3718
3724
  if (dirty &
3719
3725
  /*isDisabled*/
3720
- 2048) {
3726
+ 4096) {
3721
3727
  input.disabled =
3722
3728
  /*isDisabled*/
3723
- ctx[11];
3729
+ ctx[12];
3724
3730
  }
3725
3731
 
3726
3732
  if (dirty &
@@ -3731,6 +3737,16 @@
3731
3737
  input.value = input_value_value;
3732
3738
  }
3733
3739
 
3740
+ if (dirty &
3741
+ /*arialabel, name*/
3742
+ 17 && input_aria_label_value !== (input_aria_label_value =
3743
+ /*arialabel*/
3744
+ ctx[4] ||
3745
+ /*name*/
3746
+ ctx[0])) {
3747
+ attr(input, "aria-label", input_aria_label_value);
3748
+ }
3749
+
3734
3750
  if (current_block_type !== (current_block_type = select_block_type(ctx))) {
3735
3751
  if (if_block) if_block.d(1);
3736
3752
  if_block = current_block_type && current_block_type(ctx);
@@ -3743,10 +3759,10 @@
3743
3759
 
3744
3760
  if (dirty &
3745
3761
  /*isChecked*/
3746
- 256) {
3762
+ 512) {
3747
3763
  toggle_class(div0, "goa-checkbox--selected",
3748
3764
  /*isChecked*/
3749
- ctx[8]);
3765
+ ctx[9]);
3750
3766
  }
3751
3767
 
3752
3768
  if (dirty &
@@ -3773,32 +3789,32 @@
3773
3789
 
3774
3790
  if (dirty &
3775
3791
  /*mt, mr, mb, ml*/
3776
- 240 && label_style_value !== (label_style_value = calculateMargin(
3792
+ 480 && label_style_value !== (label_style_value = calculateMargin(
3777
3793
  /*mt*/
3778
- ctx[4],
3779
- /*mr*/
3780
3794
  ctx[5],
3781
- /*mb*/
3795
+ /*mr*/
3782
3796
  ctx[6],
3797
+ /*mb*/
3798
+ ctx[7],
3783
3799
  /*ml*/
3784
- ctx[7]))) {
3800
+ ctx[8]))) {
3785
3801
  attr(label, "style", label_style_value);
3786
3802
  }
3787
3803
 
3788
3804
  if (dirty &
3789
3805
  /*isDisabled*/
3790
- 2048) {
3806
+ 4096) {
3791
3807
  toggle_class(label, "goa-checkbox--disabled",
3792
3808
  /*isDisabled*/
3793
- ctx[11]);
3809
+ ctx[12]);
3794
3810
  }
3795
3811
 
3796
3812
  if (dirty &
3797
3813
  /*isError*/
3798
- 1024) {
3814
+ 2048) {
3799
3815
  toggle_class(label, "goa-checkbox--error",
3800
3816
  /*isError*/
3801
- ctx[10]);
3817
+ ctx[11]);
3802
3818
  }
3803
3819
  },
3804
3820
 
@@ -3845,6 +3861,9 @@
3845
3861
  let {
3846
3862
  testid = ""
3847
3863
  } = $$props;
3864
+ let {
3865
+ arialabel = ""
3866
+ } = $$props;
3848
3867
  let {
3849
3868
  mt = null
3850
3869
  } = $$props;
@@ -3871,7 +3890,7 @@
3871
3890
  const newCheckStatus = !isChecked;
3872
3891
  const newValue = newCheckStatus ? `${_value || "checked"}` : ""; // set the local state
3873
3892
 
3874
- $$invalidate(13, checked = fromBoolean(newCheckStatus));
3893
+ $$invalidate(14, checked = fromBoolean(newCheckStatus));
3875
3894
  e.target.dispatchEvent(new CustomEvent("_change", {
3876
3895
  composed: true,
3877
3896
  detail: {
@@ -3884,42 +3903,43 @@
3884
3903
 
3885
3904
  $$self.$$set = $$props => {
3886
3905
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
3887
- if ('checked' in $$props) $$invalidate(13, checked = $$props.checked);
3906
+ if ('checked' in $$props) $$invalidate(14, checked = $$props.checked);
3888
3907
  if ('text' in $$props) $$invalidate(1, text = $$props.text);
3889
3908
  if ('value' in $$props) $$invalidate(2, value = $$props.value);
3890
- if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
3891
- if ('error' in $$props) $$invalidate(15, error = $$props.error);
3909
+ if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
3910
+ if ('error' in $$props) $$invalidate(16, error = $$props.error);
3892
3911
  if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
3893
- if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
3894
- if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
3895
- if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
3896
- if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
3912
+ if ('arialabel' in $$props) $$invalidate(4, arialabel = $$props.arialabel);
3913
+ if ('mt' in $$props) $$invalidate(5, mt = $$props.mt);
3914
+ if ('mr' in $$props) $$invalidate(6, mr = $$props.mr);
3915
+ if ('mb' in $$props) $$invalidate(7, mb = $$props.mb);
3916
+ if ('ml' in $$props) $$invalidate(8, ml = $$props.ml);
3897
3917
  };
3898
3918
 
3899
3919
  $$self.$$.update = () => {
3900
3920
  if ($$self.$$.dirty &
3901
3921
  /*disabled*/
3902
- 16384) {
3922
+ 32768) {
3903
3923
  // Binding
3904
- $$invalidate(11, isDisabled = toBoolean(disabled));
3924
+ $$invalidate(12, isDisabled = toBoolean(disabled));
3905
3925
  }
3906
3926
 
3907
3927
  if ($$self.$$.dirty &
3908
3928
  /*error*/
3909
- 32768) {
3910
- $$invalidate(10, isError = toBoolean(error));
3929
+ 65536) {
3930
+ $$invalidate(11, isError = toBoolean(error));
3911
3931
  }
3912
3932
 
3913
3933
  if ($$self.$$.dirty &
3914
3934
  /*checked*/
3915
- 8192) {
3916
- $$invalidate(8, isChecked = toBoolean(checked));
3935
+ 16384) {
3936
+ $$invalidate(9, isChecked = toBoolean(checked));
3917
3937
  }
3918
3938
  };
3919
3939
 
3920
- $$invalidate(9, isIndeterminate = false); // Desighn review. To be built with TreeView Later
3940
+ $$invalidate(10, isIndeterminate = false); // Desighn review. To be built with TreeView Later
3921
3941
 
3922
- return [name, text, value, testid, mt, mr, mb, ml, isChecked, isIndeterminate, isError, isDisabled, onChange, checked, disabled, error];
3942
+ return [name, text, value, testid, arialabel, mt, mr, mb, ml, isChecked, isIndeterminate, isError, isDisabled, onChange, checked, disabled, error];
3923
3943
  }
3924
3944
 
3925
3945
  class Checkbox extends SvelteElement {
@@ -3932,16 +3952,17 @@
3932
3952
  customElement: true
3933
3953
  }, instance$u, create_fragment$w, safe_not_equal, {
3934
3954
  name: 0,
3935
- checked: 13,
3955
+ checked: 14,
3936
3956
  text: 1,
3937
3957
  value: 2,
3938
- disabled: 14,
3939
- error: 15,
3958
+ disabled: 15,
3959
+ error: 16,
3940
3960
  testid: 3,
3941
- mt: 4,
3942
- mr: 5,
3943
- mb: 6,
3944
- ml: 7
3961
+ arialabel: 4,
3962
+ mt: 5,
3963
+ mr: 6,
3964
+ mb: 7,
3965
+ ml: 8
3945
3966
  }, null);
3946
3967
 
3947
3968
  if (options) {
@@ -3957,7 +3978,7 @@
3957
3978
  }
3958
3979
 
3959
3980
  static get observedAttributes() {
3960
- return ["name", "checked", "text", "value", "disabled", "error", "testid", "mt", "mr", "mb", "ml"];
3981
+ return ["name", "checked", "text", "value", "disabled", "error", "testid", "arialabel", "mt", "mr", "mb", "ml"];
3961
3982
  }
3962
3983
 
3963
3984
  get name() {
@@ -3972,7 +3993,7 @@
3972
3993
  }
3973
3994
 
3974
3995
  get checked() {
3975
- return this.$$.ctx[13];
3996
+ return this.$$.ctx[14];
3976
3997
  }
3977
3998
 
3978
3999
  set checked(checked) {
@@ -4005,7 +4026,7 @@
4005
4026
  }
4006
4027
 
4007
4028
  get disabled() {
4008
- return this.$$.ctx[14];
4029
+ return this.$$.ctx[15];
4009
4030
  }
4010
4031
 
4011
4032
  set disabled(disabled) {
@@ -4016,7 +4037,7 @@
4016
4037
  }
4017
4038
 
4018
4039
  get error() {
4019
- return this.$$.ctx[15];
4040
+ return this.$$.ctx[16];
4020
4041
  }
4021
4042
 
4022
4043
  set error(error) {
@@ -4037,10 +4058,21 @@
4037
4058
  flush();
4038
4059
  }
4039
4060
 
4040
- get mt() {
4061
+ get arialabel() {
4041
4062
  return this.$$.ctx[4];
4042
4063
  }
4043
4064
 
4065
+ set arialabel(arialabel) {
4066
+ this.$$set({
4067
+ arialabel
4068
+ });
4069
+ flush();
4070
+ }
4071
+
4072
+ get mt() {
4073
+ return this.$$.ctx[5];
4074
+ }
4075
+
4044
4076
  set mt(mt) {
4045
4077
  this.$$set({
4046
4078
  mt
@@ -4049,7 +4081,7 @@
4049
4081
  }
4050
4082
 
4051
4083
  get mr() {
4052
- return this.$$.ctx[5];
4084
+ return this.$$.ctx[6];
4053
4085
  }
4054
4086
 
4055
4087
  set mr(mr) {
@@ -4060,7 +4092,7 @@
4060
4092
  }
4061
4093
 
4062
4094
  get mb() {
4063
- return this.$$.ctx[6];
4095
+ return this.$$.ctx[7];
4064
4096
  }
4065
4097
 
4066
4098
  set mb(mb) {
@@ -4071,7 +4103,7 @@
4071
4103
  }
4072
4104
 
4073
4105
  get ml() {
4074
- return this.$$.ctx[7];
4106
+ return this.$$.ctx[8];
4075
4107
  }
4076
4108
 
4077
4109
  set ml(ml) {
@@ -10446,7 +10478,7 @@
10446
10478
  class Input extends SvelteElement {
10447
10479
  constructor(options) {
10448
10480
  super();
10449
- 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>')
10481
+ 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>')
10450
10482
  center center no-repeat}</style>`;
10451
10483
  init(this, {
10452
10484
  target: this.shadowRoot,
@@ -12229,9 +12261,9 @@
12229
12261
 
12230
12262
  function get_each_context$1(ctx, list, i) {
12231
12263
  const child_ctx = ctx.slice();
12232
- child_ctx[19] = list[i];
12264
+ child_ctx[20] = list[i];
12233
12265
  return child_ctx;
12234
- } // (59:2) {#each options as option (option.value)}
12266
+ } // (60:2) {#each options as option (option.value)}
12235
12267
 
12236
12268
 
12237
12269
  function create_each_block$1(key_1, ctx) {
@@ -12239,15 +12271,16 @@
12239
12271
  let input;
12240
12272
  let input_value_value;
12241
12273
  let input_checked_value;
12274
+ let input_aria_label_value;
12242
12275
  let t0;
12243
12276
  let div;
12244
12277
  let t1;
12245
12278
  let span;
12246
12279
  let t2_value = (
12247
12280
  /*option*/
12248
- ctx[19].label ||
12281
+ ctx[20].label ||
12249
12282
  /*option*/
12250
- ctx[19].value) + "";
12283
+ ctx[20].value) + "";
12251
12284
  let t2;
12252
12285
  let t3;
12253
12286
  let label_data_testid_value;
@@ -12257,9 +12290,9 @@
12257
12290
  function change_handler() {
12258
12291
  return (
12259
12292
  /*change_handler*/
12260
- ctx[17](
12293
+ ctx[18](
12261
12294
  /*option*/
12262
- ctx[19])
12295
+ ctx[20])
12263
12296
  );
12264
12297
  }
12265
12298
 
@@ -12282,27 +12315,32 @@
12282
12315
  ctx[1]);
12283
12316
  input.value = input_value_value =
12284
12317
  /*option*/
12285
- ctx[19].value;
12318
+ ctx[20].value;
12286
12319
  input.disabled =
12287
12320
  /*isDisabled*/
12288
- ctx[11];
12321
+ ctx[12];
12289
12322
  input.checked = input_checked_value =
12290
12323
  /*option*/
12291
- ctx[19].value ===
12324
+ ctx[20].value ===
12292
12325
  /*value*/
12293
12326
  ctx[0];
12327
+ attr(input, "aria-label", input_aria_label_value =
12328
+ /*arialabel*/
12329
+ ctx[4] ||
12330
+ /*name*/
12331
+ ctx[1]);
12294
12332
  attr(div, "class", "goa-radio-icon");
12295
12333
  attr(span, "class", "goa-radio-label");
12296
12334
  attr(label, "data-testid", label_data_testid_value = "radio-option-" +
12297
12335
  /*option*/
12298
- ctx[19].value);
12336
+ ctx[20].value);
12299
12337
  attr(label, "class", "goa-radio");
12300
12338
  toggle_class(label, "goa-radio--disabled",
12301
12339
  /*isDisabled*/
12302
- ctx[11]);
12340
+ ctx[12]);
12303
12341
  toggle_class(label, "goa-radio--error",
12304
12342
  /*isError*/
12305
- ctx[9]);
12343
+ ctx[10]);
12306
12344
  this.first = label;
12307
12345
  },
12308
12346
 
@@ -12335,60 +12373,70 @@
12335
12373
 
12336
12374
  if (dirty &
12337
12375
  /*options*/
12338
- 256 && input_value_value !== (input_value_value =
12376
+ 512 && input_value_value !== (input_value_value =
12339
12377
  /*option*/
12340
- ctx[19].value)) {
12378
+ ctx[20].value)) {
12341
12379
  input.value = input_value_value;
12342
12380
  }
12343
12381
 
12344
12382
  if (dirty &
12345
12383
  /*isDisabled*/
12346
- 2048) {
12384
+ 4096) {
12347
12385
  input.disabled =
12348
12386
  /*isDisabled*/
12349
- ctx[11];
12387
+ ctx[12];
12350
12388
  }
12351
12389
 
12352
12390
  if (dirty &
12353
12391
  /*options, value*/
12354
- 257 && input_checked_value !== (input_checked_value =
12392
+ 513 && input_checked_value !== (input_checked_value =
12355
12393
  /*option*/
12356
- ctx[19].value ===
12394
+ ctx[20].value ===
12357
12395
  /*value*/
12358
12396
  ctx[0])) {
12359
12397
  input.checked = input_checked_value;
12360
12398
  }
12361
12399
 
12400
+ if (dirty &
12401
+ /*arialabel, name*/
12402
+ 18 && input_aria_label_value !== (input_aria_label_value =
12403
+ /*arialabel*/
12404
+ ctx[4] ||
12405
+ /*name*/
12406
+ ctx[1])) {
12407
+ attr(input, "aria-label", input_aria_label_value);
12408
+ }
12409
+
12362
12410
  if (dirty &
12363
12411
  /*options*/
12364
- 256 && t2_value !== (t2_value = (
12412
+ 512 && t2_value !== (t2_value = (
12365
12413
  /*option*/
12366
- ctx[19].label ||
12414
+ ctx[20].label ||
12367
12415
  /*option*/
12368
- ctx[19].value) + "")) set_data(t2, t2_value);
12416
+ ctx[20].value) + "")) set_data(t2, t2_value);
12369
12417
 
12370
12418
  if (dirty &
12371
12419
  /*options*/
12372
- 256 && label_data_testid_value !== (label_data_testid_value = "radio-option-" +
12420
+ 512 && label_data_testid_value !== (label_data_testid_value = "radio-option-" +
12373
12421
  /*option*/
12374
- ctx[19].value)) {
12422
+ ctx[20].value)) {
12375
12423
  attr(label, "data-testid", label_data_testid_value);
12376
12424
  }
12377
12425
 
12378
12426
  if (dirty &
12379
12427
  /*isDisabled*/
12380
- 2048) {
12428
+ 4096) {
12381
12429
  toggle_class(label, "goa-radio--disabled",
12382
12430
  /*isDisabled*/
12383
- ctx[11]);
12431
+ ctx[12]);
12384
12432
  }
12385
12433
 
12386
12434
  if (dirty &
12387
12435
  /*isError*/
12388
- 512) {
12436
+ 1024) {
12389
12437
  toggle_class(label, "goa-radio--error",
12390
12438
  /*isError*/
12391
- ctx[9]);
12439
+ ctx[10]);
12392
12440
  }
12393
12441
  },
12394
12442
 
@@ -12411,11 +12459,11 @@
12411
12459
  let div_class_value;
12412
12460
  let each_value =
12413
12461
  /*options*/
12414
- ctx[8];
12462
+ ctx[9];
12415
12463
 
12416
12464
  const get_key = ctx =>
12417
12465
  /*option*/
12418
- ctx[19].value;
12466
+ ctx[20].value;
12419
12467
 
12420
12468
  for (let i = 0; i < each_value.length; i += 1) {
12421
12469
  let child_ctx = get_each_context$1(ctx, each_value, i);
@@ -12436,13 +12484,13 @@
12436
12484
  this.c = noop;
12437
12485
  attr(div, "style", div_style_value = calculateMargin(
12438
12486
  /*mt*/
12439
- ctx[4],
12440
- /*mr*/
12441
12487
  ctx[5],
12442
- /*mb*/
12488
+ /*mr*/
12443
12489
  ctx[6],
12490
+ /*mb*/
12491
+ ctx[7],
12444
12492
  /*ml*/
12445
- ctx[7]));
12493
+ ctx[8]));
12446
12494
  attr(div, "class", div_class_value = `goa-radio-group--${
12447
12495
  /*orientation*/
12448
12496
  ctx[2]}`);
@@ -12462,30 +12510,30 @@
12462
12510
  /*div_binding*/
12463
12511
 
12464
12512
 
12465
- ctx[18](div);
12513
+ ctx[19](div);
12466
12514
  },
12467
12515
 
12468
12516
  p(ctx, [dirty]) {
12469
12517
  if (dirty &
12470
- /*options, isDisabled, isError, name, value, onChange*/
12471
- 6915) {
12518
+ /*options, isDisabled, isError, name, value, arialabel, onChange*/
12519
+ 13843) {
12472
12520
  each_value =
12473
12521
  /*options*/
12474
- ctx[8];
12522
+ ctx[9];
12475
12523
  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);
12476
12524
  }
12477
12525
 
12478
12526
  if (dirty &
12479
12527
  /*mt, mr, mb, ml*/
12480
- 240 && div_style_value !== (div_style_value = calculateMargin(
12528
+ 480 && div_style_value !== (div_style_value = calculateMargin(
12481
12529
  /*mt*/
12482
- ctx[4],
12483
- /*mr*/
12484
12530
  ctx[5],
12485
- /*mb*/
12531
+ /*mr*/
12486
12532
  ctx[6],
12533
+ /*mb*/
12534
+ ctx[7],
12487
12535
  /*ml*/
12488
- ctx[7]))) {
12536
+ ctx[8]))) {
12489
12537
  attr(div, "style", div_style_value);
12490
12538
  }
12491
12539
 
@@ -12518,7 +12566,7 @@
12518
12566
  /*div_binding*/
12519
12567
 
12520
12568
 
12521
- ctx[18](null);
12569
+ ctx[19](null);
12522
12570
  }
12523
12571
 
12524
12572
  };
@@ -12544,6 +12592,9 @@
12544
12592
  let {
12545
12593
  testid = ""
12546
12594
  } = $$props;
12595
+ let {
12596
+ arialabel = ""
12597
+ } = $$props;
12547
12598
  let {
12548
12599
  mt = null
12549
12600
  } = $$props;
@@ -12584,7 +12635,7 @@
12584
12635
  function div_binding($$value) {
12585
12636
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12586
12637
  el = $$value;
12587
- $$invalidate(10, el);
12638
+ $$invalidate(11, el);
12588
12639
  });
12589
12640
  }
12590
12641
 
@@ -12592,45 +12643,46 @@
12592
12643
  if ('name' in $$props) $$invalidate(1, name = $$props.name);
12593
12644
  if ('value' in $$props) $$invalidate(0, value = $$props.value);
12594
12645
  if ('orientation' in $$props) $$invalidate(2, orientation = $$props.orientation);
12595
- if ('disabled' in $$props) $$invalidate(13, disabled = $$props.disabled);
12596
- if ('error' in $$props) $$invalidate(14, error = $$props.error);
12646
+ if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
12647
+ if ('error' in $$props) $$invalidate(15, error = $$props.error);
12597
12648
  if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
12598
- if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
12599
- if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
12600
- if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
12601
- if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
12649
+ if ('arialabel' in $$props) $$invalidate(4, arialabel = $$props.arialabel);
12650
+ if ('mt' in $$props) $$invalidate(5, mt = $$props.mt);
12651
+ if ('mr' in $$props) $$invalidate(6, mr = $$props.mr);
12652
+ if ('mb' in $$props) $$invalidate(7, mb = $$props.mb);
12653
+ if ('ml' in $$props) $$invalidate(8, ml = $$props.ml);
12602
12654
  };
12603
12655
 
12604
12656
  $$self.$$.update = () => {
12605
12657
  if ($$self.$$.dirty &
12606
12658
  /*disabled*/
12607
- 8192) {
12608
- $$invalidate(11, isDisabled = toBoolean(disabled));
12659
+ 16384) {
12660
+ $$invalidate(12, isDisabled = toBoolean(disabled));
12609
12661
  }
12610
12662
 
12611
12663
  if ($$self.$$.dirty &
12612
12664
  /*error*/
12613
- 16384) {
12614
- $$invalidate(9, isError = toBoolean(error));
12665
+ 32768) {
12666
+ $$invalidate(10, isError = toBoolean(error));
12615
12667
  }
12616
12668
 
12617
12669
  if ($$self.$$.dirty &
12618
12670
  /*name, isBound, ctx, options*/
12619
- 98562) {
12671
+ 197122) {
12620
12672
  {
12621
12673
  if (name && !isBound) {
12622
- $$invalidate(16, isBound = true);
12623
- $$invalidate(15, ctx = getContext(name));
12674
+ $$invalidate(17, isBound = true);
12675
+ $$invalidate(16, ctx = getContext(name));
12624
12676
  ctx.subscribe(msg => {
12625
12677
  if (!msg) return;
12626
- $$invalidate(8, options = [...options, msg]);
12678
+ $$invalidate(9, options = [...options, msg]);
12627
12679
  });
12628
12680
  }
12629
12681
  }
12630
12682
  }
12631
12683
  };
12632
12684
 
12633
- return [value, name, orientation, testid, mt, mr, mb, ml, options, isError, el, isDisabled, onChange, disabled, error, ctx, isBound, change_handler, div_binding];
12685
+ return [value, name, orientation, testid, arialabel, mt, mr, mb, ml, options, isError, el, isDisabled, onChange, disabled, error, ctx, isBound, change_handler, div_binding];
12634
12686
  }
12635
12687
 
12636
12688
  class RadioGroup extends SvelteElement {
@@ -12647,13 +12699,14 @@
12647
12699
  name: 1,
12648
12700
  value: 0,
12649
12701
  orientation: 2,
12650
- disabled: 13,
12651
- error: 14,
12702
+ disabled: 14,
12703
+ error: 15,
12652
12704
  testid: 3,
12653
- mt: 4,
12654
- mr: 5,
12655
- mb: 6,
12656
- ml: 7
12705
+ arialabel: 4,
12706
+ mt: 5,
12707
+ mr: 6,
12708
+ mb: 7,
12709
+ ml: 8
12657
12710
  }, null);
12658
12711
 
12659
12712
  if (options) {
@@ -12669,7 +12722,7 @@
12669
12722
  }
12670
12723
 
12671
12724
  static get observedAttributes() {
12672
- return ["name", "value", "orientation", "disabled", "error", "testid", "mt", "mr", "mb", "ml"];
12725
+ return ["name", "value", "orientation", "disabled", "error", "testid", "arialabel", "mt", "mr", "mb", "ml"];
12673
12726
  }
12674
12727
 
12675
12728
  get name() {
@@ -12706,7 +12759,7 @@
12706
12759
  }
12707
12760
 
12708
12761
  get disabled() {
12709
- return this.$$.ctx[13];
12762
+ return this.$$.ctx[14];
12710
12763
  }
12711
12764
 
12712
12765
  set disabled(disabled) {
@@ -12717,7 +12770,7 @@
12717
12770
  }
12718
12771
 
12719
12772
  get error() {
12720
- return this.$$.ctx[14];
12773
+ return this.$$.ctx[15];
12721
12774
  }
12722
12775
 
12723
12776
  set error(error) {
@@ -12738,10 +12791,21 @@
12738
12791
  flush();
12739
12792
  }
12740
12793
 
12741
- get mt() {
12794
+ get arialabel() {
12742
12795
  return this.$$.ctx[4];
12743
12796
  }
12744
12797
 
12798
+ set arialabel(arialabel) {
12799
+ this.$$set({
12800
+ arialabel
12801
+ });
12802
+ flush();
12803
+ }
12804
+
12805
+ get mt() {
12806
+ return this.$$.ctx[5];
12807
+ }
12808
+
12745
12809
  set mt(mt) {
12746
12810
  this.$$set({
12747
12811
  mt
@@ -12750,7 +12814,7 @@
12750
12814
  }
12751
12815
 
12752
12816
  get mr() {
12753
- return this.$$.ctx[5];
12817
+ return this.$$.ctx[6];
12754
12818
  }
12755
12819
 
12756
12820
  set mr(mr) {
@@ -12761,7 +12825,7 @@
12761
12825
  }
12762
12826
 
12763
12827
  get mb() {
12764
- return this.$$.ctx[6];
12828
+ return this.$$.ctx[7];
12765
12829
  }
12766
12830
 
12767
12831
  set mb(mb) {
@@ -12772,7 +12836,7 @@
12772
12836
  }
12773
12837
 
12774
12838
  get ml() {
12775
- return this.$$.ctx[7];
12839
+ return this.$$.ctx[8];
12776
12840
  }
12777
12841
 
12778
12842
  set ml(ml) {
@@ -14690,7 +14754,7 @@
14690
14754
  class TextArea extends SvelteElement {
14691
14755
  constructor(options) {
14692
14756
  super();
14693
- 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)
14757
+ 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)
14694
14758
  }.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}</style>`;
14695
14759
  init(this, {
14696
14760
  target: this.shadowRoot,
@@ -16245,6 +16309,7 @@
16245
16309
  text = _a.text,
16246
16310
  children = _a.children,
16247
16311
  onChange = _a.onChange,
16312
+ ariaLabel = _a.ariaLabel,
16248
16313
  mt = _a.mt,
16249
16314
  mr = _a.mr,
16250
16315
  mb = _a.mb,
@@ -16277,6 +16342,7 @@
16277
16342
  disabled: disabled,
16278
16343
  text: text,
16279
16344
  value: value,
16345
+ arialabel: ariaLabel,
16280
16346
  mt: mt,
16281
16347
  mr: mr,
16282
16348
  mb: mb,
@@ -16431,6 +16497,7 @@
16431
16497
  error: props.error,
16432
16498
  testid: props.testId,
16433
16499
  width: props.width,
16500
+ arialabel: props.ariaLabel,
16434
16501
  mt: props.mt,
16435
16502
  mr: props.mr,
16436
16503
  mb: props.mb,
@@ -16630,6 +16697,7 @@
16630
16697
  step = _a.step,
16631
16698
  prefix = _a.prefix,
16632
16699
  suffix = _a.suffix,
16700
+ ariaLabel = _a.ariaLabel,
16633
16701
  mt = _a.mt,
16634
16702
  mr = _a.mr,
16635
16703
  mb = _a.mb,
@@ -16684,6 +16752,7 @@
16684
16752
  step: step,
16685
16753
  prefix: prefix,
16686
16754
  suffix: suffix,
16755
+ arialabel: ariaLabel,
16687
16756
  mt: mt,
16688
16757
  mr: mr,
16689
16758
  mb: mb,
@@ -16968,6 +17037,7 @@
16968
17037
  _d = _a.error,
16969
17038
  error = _d === void 0 ? false : _d,
16970
17039
  testId = _a.testId,
17040
+ ariaLabel = _a.ariaLabel,
16971
17041
  mt = _a.mt,
16972
17042
  mr = _a.mr,
16973
17043
  mb = _a.mb,
@@ -17002,6 +17072,7 @@
17002
17072
  orientation: orientation,
17003
17073
  disabled: disabled,
17004
17074
  error: error,
17075
+ arialabel: ariaLabel,
17005
17076
  mt: mt,
17006
17077
  mr: mr,
17007
17078
  mb: mb,
@@ -17065,6 +17136,7 @@
17065
17136
  width = _a.width,
17066
17137
  testId = _a.testId,
17067
17138
  error = _a.error,
17139
+ ariaLabel = _a.ariaLabel,
17068
17140
  mt = _a.mt,
17069
17141
  mr = _a.mr,
17070
17142
  mb = _a.mb,
@@ -17102,6 +17174,7 @@
17102
17174
  width: width,
17103
17175
  error: error,
17104
17176
  "data-testid": testId,
17177
+ arialabel: ariaLabel,
17105
17178
  mt: mt,
17106
17179
  mr: mr,
17107
17180
  mb: mb,