@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.
@@ -1509,7 +1509,7 @@
1509
1509
  }
1510
1510
 
1511
1511
  };
1512
- } // (41:2) {#if showIcon}
1512
+ } // (40:2) {#if showIcon}
1513
1513
 
1514
1514
 
1515
1515
  function create_if_block_1$b(ctx) {
@@ -1542,7 +1542,7 @@
1542
1542
  }
1543
1543
 
1544
1544
  };
1545
- } // (46:2) {#if content}
1545
+ } // (45:2) {#if content}
1546
1546
 
1547
1547
 
1548
1548
  function create_if_block$i(ctx) {
@@ -1733,7 +1733,6 @@
1733
1733
  warning: "alert-circle",
1734
1734
  information: "information-circle",
1735
1735
  emergency: "warning",
1736
- inactive: "information-circle",
1737
1736
  dark: "information-circle",
1738
1737
  midtone: "information-circle",
1739
1738
  light: "information-circle"
@@ -1747,7 +1746,7 @@
1747
1746
  class Badge extends SvelteElement {
1748
1747
  constructor(options) {
1749
1748
  super();
1750
- 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>`;
1749
+ 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>`;
1751
1750
  init(this, {
1752
1751
  target: this.shadowRoot,
1753
1752
  props: attribute_to_object(this.attributes),
@@ -2172,7 +2171,7 @@
2172
2171
  let isButtonDark;
2173
2172
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
2174
2173
  const SIZES = ["", "compact"];
2175
- const VARIANTS = ["", "danger"]; // type check functions
2174
+ const VARIANTS = ["", "destructive"]; // type check functions
2176
2175
 
2177
2176
  function isButtonType(value) {
2178
2177
  return BUTTON_TYPES.includes(value);
@@ -2256,7 +2255,7 @@
2256
2255
  constructor(options) {
2257
2256
  super();
2258
2257
  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,
2259
- 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>`;
2258
+ 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>`;
2260
2259
  init(this, {
2261
2260
  target: this.shadowRoot,
2262
2261
  props: attribute_to_object(this.attributes),
@@ -6658,7 +6657,7 @@
6658
6657
  }
6659
6658
 
6660
6659
  };
6661
- } // (96:4) {#if trailingicon && !handlesTrailingIconClick}
6660
+ } // (102:4) {#if trailingicon && !handlesTrailingIconClick}
6662
6661
 
6663
6662
 
6664
6663
  function create_if_block_4$1(ctx) {
@@ -6693,7 +6692,7 @@
6693
6692
  }
6694
6693
 
6695
6694
  };
6696
- } // (106:4) {#if trailingicon && handlesTrailingIconClick}
6695
+ } // (112:4) {#if trailingicon && handlesTrailingIconClick}
6697
6696
 
6698
6697
 
6699
6698
  function create_if_block_3$3(ctx) {
@@ -6706,7 +6705,7 @@
6706
6705
  set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
6707
6706
  set_custom_element_data(goa_icon_button, "disabled",
6708
6707
  /*isDisabled*/
6709
- ctx[13]);
6708
+ ctx[16]);
6710
6709
  set_custom_element_data(goa_icon_button, "variant", "nocolor");
6711
6710
  set_custom_element_data(goa_icon_button, "size", "medium");
6712
6711
  set_custom_element_data(goa_icon_button, "type",
@@ -6727,10 +6726,10 @@
6727
6726
  p(ctx, dirty) {
6728
6727
  if (dirty &
6729
6728
  /*isDisabled*/
6730
- 8192) {
6729
+ 65536) {
6731
6730
  set_custom_element_data(goa_icon_button, "disabled",
6732
6731
  /*isDisabled*/
6733
- ctx[13]);
6732
+ ctx[16]);
6734
6733
  }
6735
6734
 
6736
6735
  if (dirty &
@@ -6749,7 +6748,7 @@
6749
6748
  }
6750
6749
 
6751
6750
  };
6752
- } // (120:2) {#if showCounter}
6751
+ } // (126:2) {#if showCounter}
6753
6752
 
6754
6753
 
6755
6754
  function create_if_block$a(ctx) {
@@ -6758,7 +6757,7 @@
6758
6757
  function select_block_type(ctx, dirty) {
6759
6758
  if (
6760
6759
  /*maxcharcount*/
6761
- ctx[10] > 0) return create_if_block_1$6;
6760
+ ctx[13] > 0) return create_if_block_1$6;
6762
6761
  if (
6763
6762
  /*value*/
6764
6763
  ctx[0].length > 0) return create_if_block_2$5;
@@ -6800,7 +6799,7 @@
6800
6799
  }
6801
6800
 
6802
6801
  };
6803
- } // (125:31)
6802
+ } // (131:31)
6804
6803
 
6805
6804
 
6806
6805
  function create_if_block_2$5(ctx) {
@@ -6834,7 +6833,7 @@
6834
6833
  }
6835
6834
 
6836
6835
  };
6837
- } // (121:4) {#if maxcharcount > 0}
6836
+ } // (127:4) {#if maxcharcount > 0}
6838
6837
 
6839
6838
 
6840
6839
  function create_if_block_1$6(ctx) {
@@ -6845,7 +6844,7 @@
6845
6844
  let t0;
6846
6845
  let t1_value = `/${
6847
6846
  /*maxcharcount*/
6848
- ctx[10]}` + "";
6847
+ ctx[13]}` + "";
6849
6848
  let t1;
6850
6849
  return {
6851
6850
  c() {
@@ -6857,7 +6856,7 @@
6857
6856
  /*value*/
6858
6857
  ctx[0].length >
6859
6858
  /*maxcharcount*/
6860
- ctx[10]);
6859
+ ctx[13]);
6861
6860
  },
6862
6861
 
6863
6862
  m(target, anchor) {
@@ -6874,18 +6873,18 @@
6874
6873
  ctx[0].length + "")) set_data(t0, t0_value);
6875
6874
  if (dirty &
6876
6875
  /*maxcharcount*/
6877
- 1024 && t1_value !== (t1_value = `/${
6876
+ 8192 && t1_value !== (t1_value = `/${
6878
6877
  /*maxcharcount*/
6879
- ctx[10]}` + "")) set_data(t1, t1_value);
6878
+ ctx[13]}` + "")) set_data(t1, t1_value);
6880
6879
 
6881
6880
  if (dirty &
6882
6881
  /*value, maxcharcount*/
6883
- 1025) {
6882
+ 8193) {
6884
6883
  toggle_class(div, "counter-error",
6885
6884
  /*value*/
6886
6885
  ctx[0].length >
6887
6886
  /*maxcharcount*/
6888
- ctx[10]);
6887
+ ctx[13]);
6889
6888
  }
6890
6889
  },
6891
6890
 
@@ -6918,15 +6917,15 @@
6918
6917
  /*trailingicon*/
6919
6918
  ctx[5] && !
6920
6919
  /*handlesTrailingIconClick*/
6921
- ctx[16] && create_if_block_4$1(ctx);
6920
+ ctx[19] && create_if_block_4$1(ctx);
6922
6921
  let if_block2 =
6923
6922
  /*trailingicon*/
6924
6923
  ctx[5] &&
6925
6924
  /*handlesTrailingIconClick*/
6926
- ctx[16] && create_if_block_3$3(ctx);
6925
+ ctx[19] && create_if_block_3$3(ctx);
6927
6926
  let if_block3 =
6928
6927
  /*showCounter*/
6929
- ctx[12] && create_if_block$a(ctx);
6928
+ ctx[15] && create_if_block$a(ctx);
6930
6929
  return {
6931
6930
  c() {
6932
6931
  div1 = element("div");
@@ -6949,10 +6948,10 @@
6949
6948
  ctx[5] ? "-0.5rem" : "0"}`);
6950
6949
  input.readOnly =
6951
6950
  /*isReadonly*/
6952
- ctx[15];
6951
+ ctx[18];
6953
6952
  input.disabled =
6954
6953
  /*isDisabled*/
6955
- ctx[13];
6954
+ ctx[16];
6956
6955
  attr(input, "data-testid",
6957
6956
  /*testid*/
6958
6957
  ctx[7]);
@@ -6968,6 +6967,15 @@
6968
6967
  attr(input, "placeholder",
6969
6968
  /*placeholder*/
6970
6969
  ctx[3]);
6970
+ attr(input, "min",
6971
+ /*min*/
6972
+ ctx[10]);
6973
+ attr(input, "max",
6974
+ /*max*/
6975
+ ctx[11]);
6976
+ attr(input, "step",
6977
+ /*step*/
6978
+ ctx[12]);
6971
6979
  attr(input, "role", "textbox");
6972
6980
  attr(input, "aria-label", input_aria_label_value =
6973
6981
  /*arialabel*/
@@ -6978,7 +6986,7 @@
6978
6986
  goa-input
6979
6987
  ${
6980
6988
  /*isDisabled*/
6981
- ctx[13] ? "goa-input--disabled" : ""}
6989
+ ctx[16] ? "goa-input--disabled" : ""}
6982
6990
  variant--${
6983
6991
  /*variant*/
6984
6992
  ctx[6]}
@@ -6988,7 +6996,7 @@
6988
6996
  `);
6989
6997
  toggle_class(div0, "error",
6990
6998
  /*isError*/
6991
- ctx[14]);
6999
+ ctx[17]);
6992
7000
  attr(div1, "class", "container");
6993
7001
  attr(div1, "style", div1_style_value = `
6994
7002
  --width: ${
@@ -7005,7 +7013,7 @@
7005
7013
  append(div0, input);
7006
7014
  /*input_binding*/
7007
7015
 
7008
- ctx[25](input);
7016
+ ctx[28](input);
7009
7017
  append(div0, t1);
7010
7018
  if (if_block1) if_block1.m(div0, null);
7011
7019
  append(div0, t2);
@@ -7016,9 +7024,9 @@
7016
7024
  if (!mounted) {
7017
7025
  dispose = [listen(input, "keyup",
7018
7026
  /*onKeyUp*/
7019
- ctx[17]), listen(input, "change",
7027
+ ctx[20]), listen(input, "change",
7020
7028
  /*onKeyUp*/
7021
- ctx[17])];
7029
+ ctx[20])];
7022
7030
  mounted = true;
7023
7031
  }
7024
7032
  },
@@ -7057,18 +7065,18 @@
7057
7065
 
7058
7066
  if (dirty &
7059
7067
  /*isReadonly*/
7060
- 32768) {
7068
+ 262144) {
7061
7069
  input.readOnly =
7062
7070
  /*isReadonly*/
7063
- ctx[15];
7071
+ ctx[18];
7064
7072
  }
7065
7073
 
7066
7074
  if (dirty &
7067
7075
  /*isDisabled*/
7068
- 8192) {
7076
+ 65536) {
7069
7077
  input.disabled =
7070
7078
  /*isDisabled*/
7071
- ctx[13];
7079
+ ctx[16];
7072
7080
  }
7073
7081
 
7074
7082
  if (dirty &
@@ -7113,6 +7121,30 @@
7113
7121
  ctx[3]);
7114
7122
  }
7115
7123
 
7124
+ if (dirty &
7125
+ /*min*/
7126
+ 1024) {
7127
+ attr(input, "min",
7128
+ /*min*/
7129
+ ctx[10]);
7130
+ }
7131
+
7132
+ if (dirty &
7133
+ /*max*/
7134
+ 2048) {
7135
+ attr(input, "max",
7136
+ /*max*/
7137
+ ctx[11]);
7138
+ }
7139
+
7140
+ if (dirty &
7141
+ /*step*/
7142
+ 4096) {
7143
+ attr(input, "step",
7144
+ /*step*/
7145
+ ctx[12]);
7146
+ }
7147
+
7116
7148
  if (dirty &
7117
7149
  /*arialabel, name*/
7118
7150
  516 && input_aria_label_value !== (input_aria_label_value =
@@ -7127,7 +7159,7 @@
7127
7159
  /*trailingicon*/
7128
7160
  ctx[5] && !
7129
7161
  /*handlesTrailingIconClick*/
7130
- ctx[16]) {
7162
+ ctx[19]) {
7131
7163
  if (if_block1) {
7132
7164
  if_block1.p(ctx, dirty);
7133
7165
  } else {
@@ -7144,7 +7176,7 @@
7144
7176
  /*trailingicon*/
7145
7177
  ctx[5] &&
7146
7178
  /*handlesTrailingIconClick*/
7147
- ctx[16]) {
7179
+ ctx[19]) {
7148
7180
  if (if_block2) {
7149
7181
  if_block2.p(ctx, dirty);
7150
7182
  } else {
@@ -7159,11 +7191,11 @@
7159
7191
 
7160
7192
  if (dirty &
7161
7193
  /*isDisabled, variant, type*/
7162
- 8258 && div0_class_value !== (div0_class_value = `
7194
+ 65602 && div0_class_value !== (div0_class_value = `
7163
7195
  goa-input
7164
7196
  ${
7165
7197
  /*isDisabled*/
7166
- ctx[13] ? "goa-input--disabled" : ""}
7198
+ ctx[16] ? "goa-input--disabled" : ""}
7167
7199
  variant--${
7168
7200
  /*variant*/
7169
7201
  ctx[6]}
@@ -7176,15 +7208,15 @@
7176
7208
 
7177
7209
  if (dirty &
7178
7210
  /*isDisabled, variant, type, isError*/
7179
- 24642) {
7211
+ 196674) {
7180
7212
  toggle_class(div0, "error",
7181
7213
  /*isError*/
7182
- ctx[14]);
7214
+ ctx[17]);
7183
7215
  }
7184
7216
 
7185
7217
  if (
7186
7218
  /*showCounter*/
7187
- ctx[12]) {
7219
+ ctx[15]) {
7188
7220
  if (if_block3) {
7189
7221
  if_block3.p(ctx, dirty);
7190
7222
  } else {
@@ -7216,7 +7248,7 @@
7216
7248
  if (if_block0) if_block0.d();
7217
7249
  /*input_binding*/
7218
7250
 
7219
- ctx[25](null);
7251
+ ctx[28](null);
7220
7252
  if (if_block1) if_block1.d();
7221
7253
  if (if_block2) if_block2.d();
7222
7254
  if (if_block3) if_block3.d();
@@ -7285,6 +7317,15 @@
7285
7317
  let {
7286
7318
  arialabel = ""
7287
7319
  } = $$props;
7320
+ let {
7321
+ min = ""
7322
+ } = $$props;
7323
+ let {
7324
+ max = ""
7325
+ } = $$props;
7326
+ let {
7327
+ step
7328
+ } = $$props;
7288
7329
  let {
7289
7330
  showcounter = "false"
7290
7331
  } = $$props;
@@ -7309,7 +7350,7 @@
7309
7350
  function input_binding($$value) {
7310
7351
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
7311
7352
  inputEl = $$value;
7312
- $$invalidate(11, inputEl);
7353
+ $$invalidate(14, inputEl);
7313
7354
  });
7314
7355
  }
7315
7356
 
@@ -7321,58 +7362,61 @@
7321
7362
  if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
7322
7363
  if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
7323
7364
  if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
7324
- if ('disabled' in $$props) $$invalidate(18, disabled = $$props.disabled);
7325
- if ('handletrailingiconclick' in $$props) $$invalidate(19, handletrailingiconclick = $$props.handletrailingiconclick);
7326
- if ('focused' in $$props) $$invalidate(20, focused = $$props.focused);
7327
- if ('readonly' in $$props) $$invalidate(21, readonly = $$props.readonly);
7328
- if ('error' in $$props) $$invalidate(22, error = $$props.error);
7365
+ if ('disabled' in $$props) $$invalidate(21, disabled = $$props.disabled);
7366
+ if ('handletrailingiconclick' in $$props) $$invalidate(22, handletrailingiconclick = $$props.handletrailingiconclick);
7367
+ if ('focused' in $$props) $$invalidate(23, focused = $$props.focused);
7368
+ if ('readonly' in $$props) $$invalidate(24, readonly = $$props.readonly);
7369
+ if ('error' in $$props) $$invalidate(25, error = $$props.error);
7329
7370
  if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
7330
7371
  if ('width' in $$props) $$invalidate(8, width = $$props.width);
7331
7372
  if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
7332
- if ('showcounter' in $$props) $$invalidate(23, showcounter = $$props.showcounter);
7333
- if ('maxcharcount' in $$props) $$invalidate(10, maxcharcount = $$props.maxcharcount);
7373
+ if ('min' in $$props) $$invalidate(10, min = $$props.min);
7374
+ if ('max' in $$props) $$invalidate(11, max = $$props.max);
7375
+ if ('step' in $$props) $$invalidate(12, step = $$props.step);
7376
+ if ('showcounter' in $$props) $$invalidate(26, showcounter = $$props.showcounter);
7377
+ if ('maxcharcount' in $$props) $$invalidate(13, maxcharcount = $$props.maxcharcount);
7334
7378
  };
7335
7379
 
7336
7380
  $$self.$$.update = () => {
7337
7381
  if ($$self.$$.dirty &
7338
7382
  /*handletrailingiconclick*/
7339
- 524288) {
7340
- $$invalidate(16, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
7383
+ 4194304) {
7384
+ $$invalidate(19, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
7341
7385
  }
7342
7386
 
7343
7387
  if ($$self.$$.dirty &
7344
7388
  /*focused*/
7345
- 1048576) {
7346
- $$invalidate(24, isFocused = toBoolean(focused));
7389
+ 8388608) {
7390
+ $$invalidate(27, isFocused = toBoolean(focused));
7347
7391
  }
7348
7392
 
7349
7393
  if ($$self.$$.dirty &
7350
7394
  /*readonly*/
7351
- 2097152) {
7352
- $$invalidate(15, isReadonly = toBoolean(readonly));
7395
+ 16777216) {
7396
+ $$invalidate(18, isReadonly = toBoolean(readonly));
7353
7397
  }
7354
7398
 
7355
7399
  if ($$self.$$.dirty &
7356
7400
  /*error*/
7357
- 4194304) {
7358
- $$invalidate(14, isError = toBoolean(error));
7401
+ 33554432) {
7402
+ $$invalidate(17, isError = toBoolean(error));
7359
7403
  }
7360
7404
 
7361
7405
  if ($$self.$$.dirty &
7362
7406
  /*disabled*/
7363
- 262144) {
7364
- $$invalidate(13, isDisabled = toBoolean(disabled));
7407
+ 2097152) {
7408
+ $$invalidate(16, isDisabled = toBoolean(disabled));
7365
7409
  }
7366
7410
 
7367
7411
  if ($$self.$$.dirty &
7368
7412
  /*showcounter*/
7369
- 8388608) {
7370
- $$invalidate(12, showCounter = toBoolean(showcounter));
7413
+ 67108864) {
7414
+ $$invalidate(15, showCounter = toBoolean(showcounter));
7371
7415
  }
7372
7416
 
7373
7417
  if ($$self.$$.dirty &
7374
7418
  /*isFocused, inputEl*/
7375
- 16779264) {
7419
+ 134234112) {
7376
7420
  if (isFocused && inputEl) {
7377
7421
  setTimeout(() => inputEl.focus(), 1);
7378
7422
  }
@@ -7380,7 +7424,7 @@
7380
7424
 
7381
7425
  if ($$self.$$.dirty &
7382
7426
  /*inputEl, type*/
7383
- 2050) {
7427
+ 16386) {
7384
7428
  if (inputEl && type === "search") {
7385
7429
  inputEl.addEventListener("search", e => {
7386
7430
  onKeyUp(e);
@@ -7389,7 +7433,7 @@
7389
7433
  }
7390
7434
  };
7391
7435
 
7392
- 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];
7436
+ 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];
7393
7437
  }
7394
7438
 
7395
7439
  class Input extends SvelteElement {
@@ -7409,16 +7453,19 @@
7409
7453
  leadingicon: 4,
7410
7454
  trailingicon: 5,
7411
7455
  variant: 6,
7412
- disabled: 18,
7413
- handletrailingiconclick: 19,
7414
- focused: 20,
7415
- readonly: 21,
7416
- error: 22,
7456
+ disabled: 21,
7457
+ handletrailingiconclick: 22,
7458
+ focused: 23,
7459
+ readonly: 24,
7460
+ error: 25,
7417
7461
  testid: 7,
7418
7462
  width: 8,
7419
7463
  arialabel: 9,
7420
- showcounter: 23,
7421
- maxcharcount: 10
7464
+ min: 10,
7465
+ max: 11,
7466
+ step: 12,
7467
+ showcounter: 26,
7468
+ maxcharcount: 13
7422
7469
  }, null);
7423
7470
 
7424
7471
  if (options) {
@@ -7434,7 +7481,7 @@
7434
7481
  }
7435
7482
 
7436
7483
  static get observedAttributes() {
7437
- return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "showcounter", "maxcharcount"];
7484
+ return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "showcounter", "maxcharcount"];
7438
7485
  }
7439
7486
 
7440
7487
  get type() {
@@ -7515,7 +7562,7 @@
7515
7562
  }
7516
7563
 
7517
7564
  get disabled() {
7518
- return this.$$.ctx[18];
7565
+ return this.$$.ctx[21];
7519
7566
  }
7520
7567
 
7521
7568
  set disabled(disabled) {
@@ -7526,7 +7573,7 @@
7526
7573
  }
7527
7574
 
7528
7575
  get handletrailingiconclick() {
7529
- return this.$$.ctx[19];
7576
+ return this.$$.ctx[22];
7530
7577
  }
7531
7578
 
7532
7579
  set handletrailingiconclick(handletrailingiconclick) {
@@ -7537,7 +7584,7 @@
7537
7584
  }
7538
7585
 
7539
7586
  get focused() {
7540
- return this.$$.ctx[20];
7587
+ return this.$$.ctx[23];
7541
7588
  }
7542
7589
 
7543
7590
  set focused(focused) {
@@ -7548,7 +7595,7 @@
7548
7595
  }
7549
7596
 
7550
7597
  get readonly() {
7551
- return this.$$.ctx[21];
7598
+ return this.$$.ctx[24];
7552
7599
  }
7553
7600
 
7554
7601
  set readonly(readonly) {
@@ -7559,7 +7606,7 @@
7559
7606
  }
7560
7607
 
7561
7608
  get error() {
7562
- return this.$$.ctx[22];
7609
+ return this.$$.ctx[25];
7563
7610
  }
7564
7611
 
7565
7612
  set error(error) {
@@ -7602,8 +7649,41 @@
7602
7649
  flush();
7603
7650
  }
7604
7651
 
7652
+ get min() {
7653
+ return this.$$.ctx[10];
7654
+ }
7655
+
7656
+ set min(min) {
7657
+ this.$$set({
7658
+ min
7659
+ });
7660
+ flush();
7661
+ }
7662
+
7663
+ get max() {
7664
+ return this.$$.ctx[11];
7665
+ }
7666
+
7667
+ set max(max) {
7668
+ this.$$set({
7669
+ max
7670
+ });
7671
+ flush();
7672
+ }
7673
+
7674
+ get step() {
7675
+ return this.$$.ctx[12];
7676
+ }
7677
+
7678
+ set step(step) {
7679
+ this.$$set({
7680
+ step
7681
+ });
7682
+ flush();
7683
+ }
7684
+
7605
7685
  get showcounter() {
7606
- return this.$$.ctx[23];
7686
+ return this.$$.ctx[26];
7607
7687
  }
7608
7688
 
7609
7689
  set showcounter(showcounter) {
@@ -7614,7 +7694,7 @@
7614
7694
  }
7615
7695
 
7616
7696
  get maxcharcount() {
7617
- return this.$$.ctx[10];
7697
+ return this.$$.ctx[13];
7618
7698
  }
7619
7699
 
7620
7700
  set maxcharcount(maxcharcount) {
@@ -13828,6 +13908,9 @@
13828
13908
  showCounter = _a.showCounter,
13829
13909
  maxCharCount = _a.maxCharCount,
13830
13910
  testId = _a.testId,
13911
+ min = _a.min,
13912
+ max = _a.max,
13913
+ step = _a.step,
13831
13914
  onTrailingIconClick = _a.onTrailingIconClick,
13832
13915
  onChange = _a.onChange;
13833
13916
  var ref = react.useRef(null);
@@ -13872,6 +13955,9 @@
13872
13955
  "data-testid": testId,
13873
13956
  value: value,
13874
13957
  width: width,
13958
+ min: min,
13959
+ max: max,
13960
+ step: step,
13875
13961
  showcounter: showCounter,
13876
13962
  maxcharcount: maxCharCount,
13877
13963
  handletrailingiconclick: !!onTrailingIconClick
@@ -13941,16 +14027,20 @@
13941
14027
  type: "month"
13942
14028
  }), void 0);
13943
14029
  };
13944
- var GoAInputNumber = function GoAInputNumber(props) {
14030
+ var GoAInputNumber = function GoAInputNumber(_a) {
14031
+ var min = _a.min,
14032
+ max = _a.max,
14033
+ value = _a.value,
14034
+ props = __rest(_a, ["min", "max", "value"]);
14035
+
13945
14036
  return jsxRuntime.jsx(GoAInput, __assign({}, props, {
13946
- value: props.value.toString(),
14037
+ min: min === null || min === void 0 ? void 0 : min.toString(),
14038
+ max: max === null || max === void 0 ? void 0 : max.toString(),
14039
+ value: value.toString(),
13947
14040
  type: "number"
13948
14041
  }), void 0);
13949
14042
  };
13950
- var GoAInputRange = function GoAInputRange(_a) {
13951
- _a.step;
13952
- var props = __rest(_a, ["step"]);
13953
-
14043
+ var GoAInputRange = function GoAInputRange(props) {
13954
14044
  return jsxRuntime.jsx(GoAInput, __assign({}, props, {
13955
14045
  type: "range"
13956
14046
  }), void 0);