@abgov/react-components 4.0.0-alpha.33 → 4.0.0-alpha.34

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.
@@ -1453,7 +1453,7 @@ function create_else_block$3(ctx) {
1453
1453
  }
1454
1454
 
1455
1455
  };
1456
- } // (41:2) {#if showIcon}
1456
+ } // (40:2) {#if showIcon}
1457
1457
 
1458
1458
 
1459
1459
  function create_if_block_1$b(ctx) {
@@ -1486,7 +1486,7 @@ function create_if_block_1$b(ctx) {
1486
1486
  }
1487
1487
 
1488
1488
  };
1489
- } // (46:2) {#if content}
1489
+ } // (45:2) {#if content}
1490
1490
 
1491
1491
 
1492
1492
  function create_if_block$i(ctx) {
@@ -1677,7 +1677,6 @@ function instance$x($$self, $$props, $$invalidate) {
1677
1677
  warning: "alert-circle",
1678
1678
  information: "information-circle",
1679
1679
  emergency: "warning",
1680
- inactive: "information-circle",
1681
1680
  dark: "information-circle",
1682
1681
  midtone: "information-circle",
1683
1682
  light: "information-circle"
@@ -1691,7 +1690,7 @@ function instance$x($$self, $$props, $$invalidate) {
1691
1690
  class Badge extends SvelteElement {
1692
1691
  constructor(options) {
1693
1692
  super();
1694
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}.goa-badge.badge-inactive{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1693
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1695
1694
  init(this, {
1696
1695
  target: this.shadowRoot,
1697
1696
  props: attribute_to_object(this.attributes),
@@ -2116,7 +2115,7 @@ function instance$w($$self, $$props, $$invalidate) {
2116
2115
  let isButtonDark;
2117
2116
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
2118
2117
  const SIZES = ["", "compact"];
2119
- const VARIANTS = ["", "danger"]; // type check functions
2118
+ const VARIANTS = ["", "destructive"]; // type check functions
2120
2119
 
2121
2120
  function isButtonType(value) {
2122
2121
  return BUTTON_TYPES.includes(value);
@@ -2200,7 +2199,7 @@ class Button extends SvelteElement {
2200
2199
  constructor(options) {
2201
2200
  super();
2202
2201
  this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
2203
- border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
2202
+ border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.destructive{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.destructive:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.destructive:focus,.primary.destructive:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.destructive{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
2204
2203
  init(this, {
2205
2204
  target: this.shadowRoot,
2206
2205
  props: attribute_to_object(this.attributes),
@@ -6615,7 +6614,7 @@ function create_if_block_5(ctx) {
6615
6614
  }
6616
6615
 
6617
6616
  };
6618
- } // (96:4) {#if trailingicon && !handlesTrailingIconClick}
6617
+ } // (102:4) {#if trailingicon && !handlesTrailingIconClick}
6619
6618
 
6620
6619
 
6621
6620
  function create_if_block_4$1(ctx) {
@@ -6650,7 +6649,7 @@ function create_if_block_4$1(ctx) {
6650
6649
  }
6651
6650
 
6652
6651
  };
6653
- } // (106:4) {#if trailingicon && handlesTrailingIconClick}
6652
+ } // (112:4) {#if trailingicon && handlesTrailingIconClick}
6654
6653
 
6655
6654
 
6656
6655
  function create_if_block_3$3(ctx) {
@@ -6663,7 +6662,7 @@ function create_if_block_3$3(ctx) {
6663
6662
  set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
6664
6663
  set_custom_element_data(goa_icon_button, "disabled",
6665
6664
  /*isDisabled*/
6666
- ctx[13]);
6665
+ ctx[16]);
6667
6666
  set_custom_element_data(goa_icon_button, "variant", "nocolor");
6668
6667
  set_custom_element_data(goa_icon_button, "size", "medium");
6669
6668
  set_custom_element_data(goa_icon_button, "type",
@@ -6684,10 +6683,10 @@ function create_if_block_3$3(ctx) {
6684
6683
  p(ctx, dirty) {
6685
6684
  if (dirty &
6686
6685
  /*isDisabled*/
6687
- 8192) {
6686
+ 65536) {
6688
6687
  set_custom_element_data(goa_icon_button, "disabled",
6689
6688
  /*isDisabled*/
6690
- ctx[13]);
6689
+ ctx[16]);
6691
6690
  }
6692
6691
 
6693
6692
  if (dirty &
@@ -6706,7 +6705,7 @@ function create_if_block_3$3(ctx) {
6706
6705
  }
6707
6706
 
6708
6707
  };
6709
- } // (120:2) {#if showCounter}
6708
+ } // (126:2) {#if showCounter}
6710
6709
 
6711
6710
 
6712
6711
  function create_if_block$a(ctx) {
@@ -6715,7 +6714,7 @@ function create_if_block$a(ctx) {
6715
6714
  function select_block_type(ctx, dirty) {
6716
6715
  if (
6717
6716
  /*maxcharcount*/
6718
- ctx[10] > 0) return create_if_block_1$6;
6717
+ ctx[13] > 0) return create_if_block_1$6;
6719
6718
  if (
6720
6719
  /*value*/
6721
6720
  ctx[0].length > 0) return create_if_block_2$5;
@@ -6757,7 +6756,7 @@ function create_if_block$a(ctx) {
6757
6756
  }
6758
6757
 
6759
6758
  };
6760
- } // (125:31)
6759
+ } // (131:31)
6761
6760
 
6762
6761
 
6763
6762
  function create_if_block_2$5(ctx) {
@@ -6791,7 +6790,7 @@ function create_if_block_2$5(ctx) {
6791
6790
  }
6792
6791
 
6793
6792
  };
6794
- } // (121:4) {#if maxcharcount > 0}
6793
+ } // (127:4) {#if maxcharcount > 0}
6795
6794
 
6796
6795
 
6797
6796
  function create_if_block_1$6(ctx) {
@@ -6802,7 +6801,7 @@ function create_if_block_1$6(ctx) {
6802
6801
  let t0;
6803
6802
  let t1_value = `/${
6804
6803
  /*maxcharcount*/
6805
- ctx[10]}` + "";
6804
+ ctx[13]}` + "";
6806
6805
  let t1;
6807
6806
  return {
6808
6807
  c() {
@@ -6814,7 +6813,7 @@ function create_if_block_1$6(ctx) {
6814
6813
  /*value*/
6815
6814
  ctx[0].length >
6816
6815
  /*maxcharcount*/
6817
- ctx[10]);
6816
+ ctx[13]);
6818
6817
  },
6819
6818
 
6820
6819
  m(target, anchor) {
@@ -6831,18 +6830,18 @@ function create_if_block_1$6(ctx) {
6831
6830
  ctx[0].length + "")) set_data(t0, t0_value);
6832
6831
  if (dirty &
6833
6832
  /*maxcharcount*/
6834
- 1024 && t1_value !== (t1_value = `/${
6833
+ 8192 && t1_value !== (t1_value = `/${
6835
6834
  /*maxcharcount*/
6836
- ctx[10]}` + "")) set_data(t1, t1_value);
6835
+ ctx[13]}` + "")) set_data(t1, t1_value);
6837
6836
 
6838
6837
  if (dirty &
6839
6838
  /*value, maxcharcount*/
6840
- 1025) {
6839
+ 8193) {
6841
6840
  toggle_class(div, "counter-error",
6842
6841
  /*value*/
6843
6842
  ctx[0].length >
6844
6843
  /*maxcharcount*/
6845
- ctx[10]);
6844
+ ctx[13]);
6846
6845
  }
6847
6846
  },
6848
6847
 
@@ -6875,15 +6874,15 @@ function create_fragment$j(ctx) {
6875
6874
  /*trailingicon*/
6876
6875
  ctx[5] && !
6877
6876
  /*handlesTrailingIconClick*/
6878
- ctx[16] && create_if_block_4$1(ctx);
6877
+ ctx[19] && create_if_block_4$1(ctx);
6879
6878
  let if_block2 =
6880
6879
  /*trailingicon*/
6881
6880
  ctx[5] &&
6882
6881
  /*handlesTrailingIconClick*/
6883
- ctx[16] && create_if_block_3$3(ctx);
6882
+ ctx[19] && create_if_block_3$3(ctx);
6884
6883
  let if_block3 =
6885
6884
  /*showCounter*/
6886
- ctx[12] && create_if_block$a(ctx);
6885
+ ctx[15] && create_if_block$a(ctx);
6887
6886
  return {
6888
6887
  c() {
6889
6888
  div1 = element("div");
@@ -6906,10 +6905,10 @@ function create_fragment$j(ctx) {
6906
6905
  ctx[5] ? "-0.5rem" : "0"}`);
6907
6906
  input.readOnly =
6908
6907
  /*isReadonly*/
6909
- ctx[15];
6908
+ ctx[18];
6910
6909
  input.disabled =
6911
6910
  /*isDisabled*/
6912
- ctx[13];
6911
+ ctx[16];
6913
6912
  attr(input, "data-testid",
6914
6913
  /*testid*/
6915
6914
  ctx[7]);
@@ -6925,6 +6924,15 @@ function create_fragment$j(ctx) {
6925
6924
  attr(input, "placeholder",
6926
6925
  /*placeholder*/
6927
6926
  ctx[3]);
6927
+ attr(input, "min",
6928
+ /*min*/
6929
+ ctx[10]);
6930
+ attr(input, "max",
6931
+ /*max*/
6932
+ ctx[11]);
6933
+ attr(input, "step",
6934
+ /*step*/
6935
+ ctx[12]);
6928
6936
  attr(input, "role", "textbox");
6929
6937
  attr(input, "aria-label", input_aria_label_value =
6930
6938
  /*arialabel*/
@@ -6935,7 +6943,7 @@ function create_fragment$j(ctx) {
6935
6943
  goa-input
6936
6944
  ${
6937
6945
  /*isDisabled*/
6938
- ctx[13] ? "goa-input--disabled" : ""}
6946
+ ctx[16] ? "goa-input--disabled" : ""}
6939
6947
  variant--${
6940
6948
  /*variant*/
6941
6949
  ctx[6]}
@@ -6945,7 +6953,7 @@ function create_fragment$j(ctx) {
6945
6953
  `);
6946
6954
  toggle_class(div0, "error",
6947
6955
  /*isError*/
6948
- ctx[14]);
6956
+ ctx[17]);
6949
6957
  attr(div1, "class", "container");
6950
6958
  attr(div1, "style", div1_style_value = `
6951
6959
  --width: ${
@@ -6962,7 +6970,7 @@ function create_fragment$j(ctx) {
6962
6970
  append(div0, input);
6963
6971
  /*input_binding*/
6964
6972
 
6965
- ctx[25](input);
6973
+ ctx[28](input);
6966
6974
  append(div0, t1);
6967
6975
  if (if_block1) if_block1.m(div0, null);
6968
6976
  append(div0, t2);
@@ -6973,9 +6981,9 @@ function create_fragment$j(ctx) {
6973
6981
  if (!mounted) {
6974
6982
  dispose = [listen(input, "keyup",
6975
6983
  /*onKeyUp*/
6976
- ctx[17]), listen(input, "change",
6984
+ ctx[20]), listen(input, "change",
6977
6985
  /*onKeyUp*/
6978
- ctx[17])];
6986
+ ctx[20])];
6979
6987
  mounted = true;
6980
6988
  }
6981
6989
  },
@@ -7014,18 +7022,18 @@ function create_fragment$j(ctx) {
7014
7022
 
7015
7023
  if (dirty &
7016
7024
  /*isReadonly*/
7017
- 32768) {
7025
+ 262144) {
7018
7026
  input.readOnly =
7019
7027
  /*isReadonly*/
7020
- ctx[15];
7028
+ ctx[18];
7021
7029
  }
7022
7030
 
7023
7031
  if (dirty &
7024
7032
  /*isDisabled*/
7025
- 8192) {
7033
+ 65536) {
7026
7034
  input.disabled =
7027
7035
  /*isDisabled*/
7028
- ctx[13];
7036
+ ctx[16];
7029
7037
  }
7030
7038
 
7031
7039
  if (dirty &
@@ -7070,6 +7078,30 @@ function create_fragment$j(ctx) {
7070
7078
  ctx[3]);
7071
7079
  }
7072
7080
 
7081
+ if (dirty &
7082
+ /*min*/
7083
+ 1024) {
7084
+ attr(input, "min",
7085
+ /*min*/
7086
+ ctx[10]);
7087
+ }
7088
+
7089
+ if (dirty &
7090
+ /*max*/
7091
+ 2048) {
7092
+ attr(input, "max",
7093
+ /*max*/
7094
+ ctx[11]);
7095
+ }
7096
+
7097
+ if (dirty &
7098
+ /*step*/
7099
+ 4096) {
7100
+ attr(input, "step",
7101
+ /*step*/
7102
+ ctx[12]);
7103
+ }
7104
+
7073
7105
  if (dirty &
7074
7106
  /*arialabel, name*/
7075
7107
  516 && input_aria_label_value !== (input_aria_label_value =
@@ -7084,7 +7116,7 @@ function create_fragment$j(ctx) {
7084
7116
  /*trailingicon*/
7085
7117
  ctx[5] && !
7086
7118
  /*handlesTrailingIconClick*/
7087
- ctx[16]) {
7119
+ ctx[19]) {
7088
7120
  if (if_block1) {
7089
7121
  if_block1.p(ctx, dirty);
7090
7122
  } else {
@@ -7101,7 +7133,7 @@ function create_fragment$j(ctx) {
7101
7133
  /*trailingicon*/
7102
7134
  ctx[5] &&
7103
7135
  /*handlesTrailingIconClick*/
7104
- ctx[16]) {
7136
+ ctx[19]) {
7105
7137
  if (if_block2) {
7106
7138
  if_block2.p(ctx, dirty);
7107
7139
  } else {
@@ -7116,11 +7148,11 @@ function create_fragment$j(ctx) {
7116
7148
 
7117
7149
  if (dirty &
7118
7150
  /*isDisabled, variant, type*/
7119
- 8258 && div0_class_value !== (div0_class_value = `
7151
+ 65602 && div0_class_value !== (div0_class_value = `
7120
7152
  goa-input
7121
7153
  ${
7122
7154
  /*isDisabled*/
7123
- ctx[13] ? "goa-input--disabled" : ""}
7155
+ ctx[16] ? "goa-input--disabled" : ""}
7124
7156
  variant--${
7125
7157
  /*variant*/
7126
7158
  ctx[6]}
@@ -7133,15 +7165,15 @@ function create_fragment$j(ctx) {
7133
7165
 
7134
7166
  if (dirty &
7135
7167
  /*isDisabled, variant, type, isError*/
7136
- 24642) {
7168
+ 196674) {
7137
7169
  toggle_class(div0, "error",
7138
7170
  /*isError*/
7139
- ctx[14]);
7171
+ ctx[17]);
7140
7172
  }
7141
7173
 
7142
7174
  if (
7143
7175
  /*showCounter*/
7144
- ctx[12]) {
7176
+ ctx[15]) {
7145
7177
  if (if_block3) {
7146
7178
  if_block3.p(ctx, dirty);
7147
7179
  } else {
@@ -7173,7 +7205,7 @@ function create_fragment$j(ctx) {
7173
7205
  if (if_block0) if_block0.d();
7174
7206
  /*input_binding*/
7175
7207
 
7176
- ctx[25](null);
7208
+ ctx[28](null);
7177
7209
  if (if_block1) if_block1.d();
7178
7210
  if (if_block2) if_block2.d();
7179
7211
  if (if_block3) if_block3.d();
@@ -7242,6 +7274,15 @@ function instance$h($$self, $$props, $$invalidate) {
7242
7274
  let {
7243
7275
  arialabel = ""
7244
7276
  } = $$props;
7277
+ let {
7278
+ min = ""
7279
+ } = $$props;
7280
+ let {
7281
+ max = ""
7282
+ } = $$props;
7283
+ let {
7284
+ step
7285
+ } = $$props;
7245
7286
  let {
7246
7287
  showcounter = "false"
7247
7288
  } = $$props;
@@ -7266,7 +7307,7 @@ function instance$h($$self, $$props, $$invalidate) {
7266
7307
  function input_binding($$value) {
7267
7308
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
7268
7309
  inputEl = $$value;
7269
- $$invalidate(11, inputEl);
7310
+ $$invalidate(14, inputEl);
7270
7311
  });
7271
7312
  }
7272
7313
 
@@ -7278,58 +7319,61 @@ function instance$h($$self, $$props, $$invalidate) {
7278
7319
  if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
7279
7320
  if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
7280
7321
  if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
7281
- if ('disabled' in $$props) $$invalidate(18, disabled = $$props.disabled);
7282
- if ('handletrailingiconclick' in $$props) $$invalidate(19, handletrailingiconclick = $$props.handletrailingiconclick);
7283
- if ('focused' in $$props) $$invalidate(20, focused = $$props.focused);
7284
- if ('readonly' in $$props) $$invalidate(21, readonly = $$props.readonly);
7285
- if ('error' in $$props) $$invalidate(22, error = $$props.error);
7322
+ if ('disabled' in $$props) $$invalidate(21, disabled = $$props.disabled);
7323
+ if ('handletrailingiconclick' in $$props) $$invalidate(22, handletrailingiconclick = $$props.handletrailingiconclick);
7324
+ if ('focused' in $$props) $$invalidate(23, focused = $$props.focused);
7325
+ if ('readonly' in $$props) $$invalidate(24, readonly = $$props.readonly);
7326
+ if ('error' in $$props) $$invalidate(25, error = $$props.error);
7286
7327
  if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
7287
7328
  if ('width' in $$props) $$invalidate(8, width = $$props.width);
7288
7329
  if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
7289
- if ('showcounter' in $$props) $$invalidate(23, showcounter = $$props.showcounter);
7290
- if ('maxcharcount' in $$props) $$invalidate(10, maxcharcount = $$props.maxcharcount);
7330
+ if ('min' in $$props) $$invalidate(10, min = $$props.min);
7331
+ if ('max' in $$props) $$invalidate(11, max = $$props.max);
7332
+ if ('step' in $$props) $$invalidate(12, step = $$props.step);
7333
+ if ('showcounter' in $$props) $$invalidate(26, showcounter = $$props.showcounter);
7334
+ if ('maxcharcount' in $$props) $$invalidate(13, maxcharcount = $$props.maxcharcount);
7291
7335
  };
7292
7336
 
7293
7337
  $$self.$$.update = () => {
7294
7338
  if ($$self.$$.dirty &
7295
7339
  /*handletrailingiconclick*/
7296
- 524288) {
7297
- $$invalidate(16, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
7340
+ 4194304) {
7341
+ $$invalidate(19, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
7298
7342
  }
7299
7343
 
7300
7344
  if ($$self.$$.dirty &
7301
7345
  /*focused*/
7302
- 1048576) {
7303
- $$invalidate(24, isFocused = toBoolean(focused));
7346
+ 8388608) {
7347
+ $$invalidate(27, isFocused = toBoolean(focused));
7304
7348
  }
7305
7349
 
7306
7350
  if ($$self.$$.dirty &
7307
7351
  /*readonly*/
7308
- 2097152) {
7309
- $$invalidate(15, isReadonly = toBoolean(readonly));
7352
+ 16777216) {
7353
+ $$invalidate(18, isReadonly = toBoolean(readonly));
7310
7354
  }
7311
7355
 
7312
7356
  if ($$self.$$.dirty &
7313
7357
  /*error*/
7314
- 4194304) {
7315
- $$invalidate(14, isError = toBoolean(error));
7358
+ 33554432) {
7359
+ $$invalidate(17, isError = toBoolean(error));
7316
7360
  }
7317
7361
 
7318
7362
  if ($$self.$$.dirty &
7319
7363
  /*disabled*/
7320
- 262144) {
7321
- $$invalidate(13, isDisabled = toBoolean(disabled));
7364
+ 2097152) {
7365
+ $$invalidate(16, isDisabled = toBoolean(disabled));
7322
7366
  }
7323
7367
 
7324
7368
  if ($$self.$$.dirty &
7325
7369
  /*showcounter*/
7326
- 8388608) {
7327
- $$invalidate(12, showCounter = toBoolean(showcounter));
7370
+ 67108864) {
7371
+ $$invalidate(15, showCounter = toBoolean(showcounter));
7328
7372
  }
7329
7373
 
7330
7374
  if ($$self.$$.dirty &
7331
7375
  /*isFocused, inputEl*/
7332
- 16779264) {
7376
+ 134234112) {
7333
7377
  if (isFocused && inputEl) {
7334
7378
  setTimeout(() => inputEl.focus(), 1);
7335
7379
  }
@@ -7337,7 +7381,7 @@ function instance$h($$self, $$props, $$invalidate) {
7337
7381
 
7338
7382
  if ($$self.$$.dirty &
7339
7383
  /*inputEl, type*/
7340
- 2050) {
7384
+ 16386) {
7341
7385
  if (inputEl && type === "search") {
7342
7386
  inputEl.addEventListener("search", e => {
7343
7387
  onKeyUp(e);
@@ -7346,7 +7390,7 @@ function instance$h($$self, $$props, $$invalidate) {
7346
7390
  }
7347
7391
  };
7348
7392
 
7349
- return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
7393
+ return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
7350
7394
  }
7351
7395
 
7352
7396
  class Input extends SvelteElement {
@@ -7366,16 +7410,19 @@ class Input extends SvelteElement {
7366
7410
  leadingicon: 4,
7367
7411
  trailingicon: 5,
7368
7412
  variant: 6,
7369
- disabled: 18,
7370
- handletrailingiconclick: 19,
7371
- focused: 20,
7372
- readonly: 21,
7373
- error: 22,
7413
+ disabled: 21,
7414
+ handletrailingiconclick: 22,
7415
+ focused: 23,
7416
+ readonly: 24,
7417
+ error: 25,
7374
7418
  testid: 7,
7375
7419
  width: 8,
7376
7420
  arialabel: 9,
7377
- showcounter: 23,
7378
- maxcharcount: 10
7421
+ min: 10,
7422
+ max: 11,
7423
+ step: 12,
7424
+ showcounter: 26,
7425
+ maxcharcount: 13
7379
7426
  }, null);
7380
7427
 
7381
7428
  if (options) {
@@ -7391,7 +7438,7 @@ class Input extends SvelteElement {
7391
7438
  }
7392
7439
 
7393
7440
  static get observedAttributes() {
7394
- return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "showcounter", "maxcharcount"];
7441
+ return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "showcounter", "maxcharcount"];
7395
7442
  }
7396
7443
 
7397
7444
  get type() {
@@ -7472,7 +7519,7 @@ class Input extends SvelteElement {
7472
7519
  }
7473
7520
 
7474
7521
  get disabled() {
7475
- return this.$$.ctx[18];
7522
+ return this.$$.ctx[21];
7476
7523
  }
7477
7524
 
7478
7525
  set disabled(disabled) {
@@ -7483,7 +7530,7 @@ class Input extends SvelteElement {
7483
7530
  }
7484
7531
 
7485
7532
  get handletrailingiconclick() {
7486
- return this.$$.ctx[19];
7533
+ return this.$$.ctx[22];
7487
7534
  }
7488
7535
 
7489
7536
  set handletrailingiconclick(handletrailingiconclick) {
@@ -7494,7 +7541,7 @@ class Input extends SvelteElement {
7494
7541
  }
7495
7542
 
7496
7543
  get focused() {
7497
- return this.$$.ctx[20];
7544
+ return this.$$.ctx[23];
7498
7545
  }
7499
7546
 
7500
7547
  set focused(focused) {
@@ -7505,7 +7552,7 @@ class Input extends SvelteElement {
7505
7552
  }
7506
7553
 
7507
7554
  get readonly() {
7508
- return this.$$.ctx[21];
7555
+ return this.$$.ctx[24];
7509
7556
  }
7510
7557
 
7511
7558
  set readonly(readonly) {
@@ -7516,7 +7563,7 @@ class Input extends SvelteElement {
7516
7563
  }
7517
7564
 
7518
7565
  get error() {
7519
- return this.$$.ctx[22];
7566
+ return this.$$.ctx[25];
7520
7567
  }
7521
7568
 
7522
7569
  set error(error) {
@@ -7559,8 +7606,41 @@ class Input extends SvelteElement {
7559
7606
  flush();
7560
7607
  }
7561
7608
 
7609
+ get min() {
7610
+ return this.$$.ctx[10];
7611
+ }
7612
+
7613
+ set min(min) {
7614
+ this.$$set({
7615
+ min
7616
+ });
7617
+ flush();
7618
+ }
7619
+
7620
+ get max() {
7621
+ return this.$$.ctx[11];
7622
+ }
7623
+
7624
+ set max(max) {
7625
+ this.$$set({
7626
+ max
7627
+ });
7628
+ flush();
7629
+ }
7630
+
7631
+ get step() {
7632
+ return this.$$.ctx[12];
7633
+ }
7634
+
7635
+ set step(step) {
7636
+ this.$$set({
7637
+ step
7638
+ });
7639
+ flush();
7640
+ }
7641
+
7562
7642
  get showcounter() {
7563
- return this.$$.ctx[23];
7643
+ return this.$$.ctx[26];
7564
7644
  }
7565
7645
 
7566
7646
  set showcounter(showcounter) {
@@ -7571,7 +7651,7 @@ class Input extends SvelteElement {
7571
7651
  }
7572
7652
 
7573
7653
  get maxcharcount() {
7574
- return this.$$.ctx[10];
7654
+ return this.$$.ctx[13];
7575
7655
  }
7576
7656
 
7577
7657
  set maxcharcount(maxcharcount) {
@@ -13773,6 +13853,9 @@ const GoAInput = ({
13773
13853
  showCounter,
13774
13854
  maxCharCount,
13775
13855
  testId,
13856
+ min,
13857
+ max,
13858
+ step,
13776
13859
  onTrailingIconClick,
13777
13860
  onChange
13778
13861
  }) => {
@@ -13819,6 +13902,9 @@ const GoAInput = ({
13819
13902
  "data-testid": testId,
13820
13903
  value: value,
13821
13904
  width: width,
13905
+ min: min,
13906
+ max: max,
13907
+ step: step,
13822
13908
  showcounter: showCounter,
13823
13909
  maxcharcount: maxCharCount,
13824
13910
  handletrailingiconclick: !!onTrailingIconClick
@@ -13886,15 +13972,22 @@ const GoAInputMonth = props => {
13886
13972
  type: "month"
13887
13973
  }), void 0);
13888
13974
  };
13889
- const GoAInputNumber = props => {
13975
+ const GoAInputNumber = _a => {
13976
+ var {
13977
+ min,
13978
+ max,
13979
+ value
13980
+ } = _a,
13981
+ props = __rest(_a, ["min", "max", "value"]);
13982
+
13890
13983
  return jsx(GoAInput, Object.assign({}, props, {
13891
- value: props.value.toString(),
13984
+ min: min === null || min === void 0 ? void 0 : min.toString(),
13985
+ max: max === null || max === void 0 ? void 0 : max.toString(),
13986
+ value: value.toString(),
13892
13987
  type: "number"
13893
13988
  }), void 0);
13894
13989
  };
13895
- const GoAInputRange = _a => {
13896
- var props = __rest(_a, ["step"]);
13897
-
13990
+ const GoAInputRange = props => {
13898
13991
  return jsx(GoAInput, Object.assign({}, props, {
13899
13992
  type: "range"
13900
13993
  }), void 0);