@abgov/react-components 4.0.0-alpha.77 → 4.0.0-alpha.78

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.
@@ -3051,7 +3051,7 @@
3051
3051
  }
3052
3052
 
3053
3053
  };
3054
- } // (51:4) {#if isIndeterminate}
3054
+ } // (59:4) {#if isIndeterminate}
3055
3055
 
3056
3056
 
3057
3057
  function create_if_block$f(ctx) {
@@ -3308,22 +3308,27 @@
3308
3308
  value = ""
3309
3309
  } = $$props;
3310
3310
  let {
3311
- disabled
3311
+ disabled = "false"
3312
3312
  } = $$props;
3313
3313
  let {
3314
- error
3314
+ error = "false"
3315
3315
  } = $$props;
3316
3316
  let {
3317
3317
  testid = ""
3318
- } = $$props;
3318
+ } = $$props; // Private
3319
+
3320
+ let _value;
3321
+
3322
+ onMount(() => {
3323
+ // hold on to the initial value to prevent losing it on check changes
3324
+ _value = value;
3325
+ });
3319
3326
 
3320
3327
  function onChange(e) {
3321
3328
  // An empty string is required as setting the second value to `null` caused the data to get
3322
3329
  // out of sync with the events.
3323
3330
  const newCheckStatus = !isChecked;
3324
-
3325
- const _value = newCheckStatus ? `${value || "checked"}` : ""; // set the local state
3326
-
3331
+ const newValue = newCheckStatus ? `${_value || "checked"}` : ""; // set the local state
3327
3332
 
3328
3333
  $$invalidate(9, checked = fromBoolean(newCheckStatus));
3329
3334
  e.target.dispatchEvent(new CustomEvent("_change", {
@@ -3331,7 +3336,7 @@
3331
3336
  detail: {
3332
3337
  name,
3333
3338
  checked: newCheckStatus,
3334
- value: _value
3339
+ value: newValue
3335
3340
  }
3336
3341
  }));
3337
3342
  }
@@ -3350,6 +3355,7 @@
3350
3355
  if ($$self.$$.dirty &
3351
3356
  /*disabled*/
3352
3357
  1024) {
3358
+ // Binding
3353
3359
  $$invalidate(7, isDisabled = toBoolean(disabled));
3354
3360
  }
3355
3361
 
@@ -7182,9 +7188,14 @@
7182
7188
  let div;
7183
7189
  let t0;
7184
7190
  let t1;
7185
- let if_block =
7186
- /*isOptional*/
7187
- ctx[3] && create_if_block_3$3();
7191
+ let show_if =
7192
+ /*requirement*/
7193
+ ctx[3] &&
7194
+ /*REQUIREMENT_TYPES*/
7195
+ ctx[4].includes(
7196
+ /*requirement*/
7197
+ ctx[3]);
7198
+ let if_block = show_if && create_if_block_3$3(ctx);
7188
7199
  return {
7189
7200
  c() {
7190
7201
  div = element("div");
@@ -7209,12 +7220,21 @@
7209
7220
  1) set_data(t0,
7210
7221
  /*label*/
7211
7222
  ctx[0]);
7223
+ if (dirty &
7224
+ /*requirement*/
7225
+ 8) show_if =
7226
+ /*requirement*/
7227
+ ctx[3] &&
7228
+ /*REQUIREMENT_TYPES*/
7229
+ ctx[4].includes(
7230
+ /*requirement*/
7231
+ ctx[3]);
7212
7232
 
7213
- if (
7214
- /*isOptional*/
7215
- ctx[3]) {
7216
- if (if_block) ;else {
7217
- if_block = create_if_block_3$3();
7233
+ if (show_if) {
7234
+ if (if_block) {
7235
+ if_block.p(ctx, dirty);
7236
+ } else {
7237
+ if_block = create_if_block_3$3(ctx);
7218
7238
  if_block.c();
7219
7239
  if_block.m(div, null);
7220
7240
  }
@@ -7230,19 +7250,37 @@
7230
7250
  }
7231
7251
 
7232
7252
  };
7233
- } // (18:6) {#if isOptional}
7253
+ } // (28:6) {#if requirement && REQUIREMENT_TYPES.includes(requirement)}
7234
7254
 
7235
7255
 
7236
7256
  function create_if_block_3$3(ctx) {
7237
7257
  let em;
7258
+ let t0;
7259
+ let t1;
7260
+ let t2;
7238
7261
  return {
7239
7262
  c() {
7240
7263
  em = element("em");
7241
- em.textContent = "(optional)";
7264
+ t0 = text("(");
7265
+ t1 = text(
7266
+ /*requirement*/
7267
+ ctx[3]);
7268
+ t2 = text(")");
7242
7269
  },
7243
7270
 
7244
7271
  m(target, anchor) {
7245
7272
  insert(target, em, anchor);
7273
+ append(em, t0);
7274
+ append(em, t1);
7275
+ append(em, t2);
7276
+ },
7277
+
7278
+ p(ctx, dirty) {
7279
+ if (dirty &
7280
+ /*requirement*/
7281
+ 8) set_data(t1,
7282
+ /*requirement*/
7283
+ ctx[3]);
7246
7284
  },
7247
7285
 
7248
7286
  d(detaching) {
@@ -7250,7 +7288,7 @@
7250
7288
  }
7251
7289
 
7252
7290
  };
7253
- } // (26:2) {#if error}
7291
+ } // (36:2) {#if error}
7254
7292
 
7255
7293
 
7256
7294
  function create_if_block_1$6(ctx) {
@@ -7283,7 +7321,7 @@
7283
7321
  }
7284
7322
 
7285
7323
  };
7286
- } // (29:2) {#if helptext}
7324
+ } // (39:2) {#if helptext}
7287
7325
 
7288
7326
 
7289
7327
  function create_if_block$9(ctx) {
@@ -7421,7 +7459,12 @@
7421
7459
  }
7422
7460
 
7423
7461
  function instance$h($$self, $$props, $$invalidate) {
7424
- let isOptional;
7462
+ const REQUIREMENT_TYPES = ["optional", "required", ""]; // type check function
7463
+
7464
+ function isRequirementType(value) {
7465
+ return REQUIREMENT_TYPES.includes(value);
7466
+ }
7467
+
7425
7468
  let {
7426
7469
  label = ""
7427
7470
  } = $$props;
@@ -7432,25 +7475,22 @@
7432
7475
  error = ""
7433
7476
  } = $$props;
7434
7477
  let {
7435
- optional = "false"
7478
+ requirement = ""
7436
7479
  } = $$props;
7480
+ onMount(() => {
7481
+ if (!isRequirementType(requirement)) {
7482
+ throw "Invalid requirement type";
7483
+ }
7484
+ });
7437
7485
 
7438
7486
  $$self.$$set = $$props => {
7439
7487
  if ('label' in $$props) $$invalidate(0, label = $$props.label);
7440
7488
  if ('helptext' in $$props) $$invalidate(1, helptext = $$props.helptext);
7441
7489
  if ('error' in $$props) $$invalidate(2, error = $$props.error);
7442
- if ('optional' in $$props) $$invalidate(4, optional = $$props.optional);
7490
+ if ('requirement' in $$props) $$invalidate(3, requirement = $$props.requirement);
7443
7491
  };
7444
7492
 
7445
- $$self.$$.update = () => {
7446
- if ($$self.$$.dirty &
7447
- /*optional*/
7448
- 16) {
7449
- $$invalidate(3, isOptional = toBoolean(optional));
7450
- }
7451
- };
7452
-
7453
- return [label, helptext, error, isOptional, optional];
7493
+ return [label, helptext, error, requirement, REQUIREMENT_TYPES];
7454
7494
  }
7455
7495
 
7456
7496
  class FormItem extends SvelteElement {
@@ -7465,7 +7505,7 @@
7465
7505
  label: 0,
7466
7506
  helptext: 1,
7467
7507
  error: 2,
7468
- optional: 4
7508
+ requirement: 3
7469
7509
  }, null);
7470
7510
 
7471
7511
  if (options) {
@@ -7481,7 +7521,7 @@
7481
7521
  }
7482
7522
 
7483
7523
  static get observedAttributes() {
7484
- return ["label", "helptext", "error", "optional"];
7524
+ return ["label", "helptext", "error", "requirement"];
7485
7525
  }
7486
7526
 
7487
7527
  get label() {
@@ -7517,13 +7557,13 @@
7517
7557
  flush();
7518
7558
  }
7519
7559
 
7520
- get optional() {
7521
- return this.$$.ctx[4];
7560
+ get requirement() {
7561
+ return this.$$.ctx[3];
7522
7562
  }
7523
7563
 
7524
- set optional(optional) {
7564
+ set requirement(requirement) {
7525
7565
  this.$$set({
7526
- optional
7566
+ requirement
7527
7567
  });
7528
7568
  flush();
7529
7569
  }
@@ -8391,7 +8431,7 @@
8391
8431
  customElements.define("goa-icon", Icon);
8392
8432
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
8393
8433
 
8394
- function create_if_block_7(ctx) {
8434
+ function create_if_block_4(ctx) {
8395
8435
  let div;
8396
8436
  let t;
8397
8437
  return {
@@ -8409,7 +8449,7 @@
8409
8449
  },
8410
8450
 
8411
8451
  p(ctx, dirty) {
8412
- if (dirty[0] &
8452
+ if (dirty &
8413
8453
  /*prefix*/
8414
8454
  16384) set_data(t,
8415
8455
  /*prefix*/
@@ -8421,10 +8461,10 @@
8421
8461
  }
8422
8462
 
8423
8463
  };
8424
- } // (82:4) {#if leadingicon}
8464
+ } // (78:4) {#if leadingicon}
8425
8465
 
8426
8466
 
8427
- function create_if_block_6(ctx) {
8467
+ function create_if_block_3$2(ctx) {
8428
8468
  let goa_icon;
8429
8469
  return {
8430
8470
  c() {
@@ -8441,7 +8481,7 @@
8441
8481
  },
8442
8482
 
8443
8483
  p(ctx, dirty) {
8444
- if (dirty[0] &
8484
+ if (dirty &
8445
8485
  /*leadingicon*/
8446
8486
  32) {
8447
8487
  set_custom_element_data(goa_icon, "type",
@@ -8455,10 +8495,10 @@
8455
8495
  }
8456
8496
 
8457
8497
  };
8458
- } // (112:4) {#if trailingicon && !handlesTrailingIconClick}
8498
+ } // (108:4) {#if trailingicon && !handlesTrailingIconClick}
8459
8499
 
8460
8500
 
8461
- function create_if_block_5(ctx) {
8501
+ function create_if_block_2$4(ctx) {
8462
8502
  let goa_icon;
8463
8503
  return {
8464
8504
  c() {
@@ -8476,7 +8516,7 @@
8476
8516
  },
8477
8517
 
8478
8518
  p(ctx, dirty) {
8479
- if (dirty[0] &
8519
+ if (dirty &
8480
8520
  /*trailingicon*/
8481
8521
  64) {
8482
8522
  set_custom_element_data(goa_icon, "type",
@@ -8490,10 +8530,10 @@
8490
8530
  }
8491
8531
 
8492
8532
  };
8493
- } // (122:4) {#if trailingicon && handlesTrailingIconClick}
8533
+ } // (118:4) {#if trailingicon && handlesTrailingIconClick}
8494
8534
 
8495
8535
 
8496
- function create_if_block_4(ctx) {
8536
+ function create_if_block_1$5(ctx) {
8497
8537
  let goa_icon_button;
8498
8538
  let mounted;
8499
8539
  let dispose;
@@ -8502,7 +8542,7 @@
8502
8542
  goa_icon_button = element("goa-icon-button");
8503
8543
  set_custom_element_data(goa_icon_button, "disabled",
8504
8544
  /*isDisabled*/
8505
- ctx[19]);
8545
+ ctx[17]);
8506
8546
  set_custom_element_data(goa_icon_button, "variant", "nocolor");
8507
8547
  set_custom_element_data(goa_icon_button, "size", "medium");
8508
8548
  set_custom_element_data(goa_icon_button, "icon",
@@ -8521,15 +8561,15 @@
8521
8561
  },
8522
8562
 
8523
8563
  p(ctx, dirty) {
8524
- if (dirty[0] &
8564
+ if (dirty &
8525
8565
  /*isDisabled*/
8526
- 524288) {
8566
+ 131072) {
8527
8567
  set_custom_element_data(goa_icon_button, "disabled",
8528
8568
  /*isDisabled*/
8529
- ctx[19]);
8569
+ ctx[17]);
8530
8570
  }
8531
8571
 
8532
- if (dirty[0] &
8572
+ if (dirty &
8533
8573
  /*trailingicon*/
8534
8574
  64) {
8535
8575
  set_custom_element_data(goa_icon_button, "icon",
@@ -8545,10 +8585,10 @@
8545
8585
  }
8546
8586
 
8547
8587
  };
8548
- } // (133:4) {#if suffix}
8588
+ } // (129:4) {#if suffix}
8549
8589
 
8550
8590
 
8551
- function create_if_block_3$2(ctx) {
8591
+ function create_if_block$7(ctx) {
8552
8592
  let span;
8553
8593
  let t;
8554
8594
  return {
@@ -8566,7 +8606,7 @@
8566
8606
  },
8567
8607
 
8568
8608
  p(ctx, dirty) {
8569
- if (dirty[0] &
8609
+ if (dirty &
8570
8610
  /*suffix*/
8571
8611
  32768) set_data(t,
8572
8612
  /*suffix*/
@@ -8577,151 +8617,6 @@
8577
8617
  if (detaching) detach(span);
8578
8618
  }
8579
8619
 
8580
- };
8581
- } // (139:2) {#if showCounter}
8582
-
8583
-
8584
- function create_if_block$7(ctx) {
8585
- let if_block_anchor;
8586
-
8587
- function select_block_type(ctx, dirty) {
8588
- if (
8589
- /*maxcharcount*/
8590
- ctx[16] > 0) return create_if_block_1$5;
8591
- if (
8592
- /*value*/
8593
- ctx[0].length > 0) return create_if_block_2$4;
8594
- }
8595
-
8596
- let current_block_type = select_block_type(ctx);
8597
- let if_block = current_block_type && current_block_type(ctx);
8598
- return {
8599
- c() {
8600
- if (if_block) if_block.c();
8601
- if_block_anchor = empty();
8602
- },
8603
-
8604
- m(target, anchor) {
8605
- if (if_block) if_block.m(target, anchor);
8606
- insert(target, if_block_anchor, anchor);
8607
- },
8608
-
8609
- p(ctx, dirty) {
8610
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
8611
- if_block.p(ctx, dirty);
8612
- } else {
8613
- if (if_block) if_block.d(1);
8614
- if_block = current_block_type && current_block_type(ctx);
8615
-
8616
- if (if_block) {
8617
- if_block.c();
8618
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
8619
- }
8620
- }
8621
- },
8622
-
8623
- d(detaching) {
8624
- if (if_block) {
8625
- if_block.d(detaching);
8626
- }
8627
-
8628
- if (detaching) detach(if_block_anchor);
8629
- }
8630
-
8631
- };
8632
- } // (144:31)
8633
-
8634
-
8635
- function create_if_block_2$4(ctx) {
8636
- let div;
8637
- let t_value =
8638
- /*value*/
8639
- ctx[0].length + "";
8640
- let t;
8641
- return {
8642
- c() {
8643
- div = element("div");
8644
- t = text(t_value);
8645
- attr(div, "class", "counter");
8646
- },
8647
-
8648
- m(target, anchor) {
8649
- insert(target, div, anchor);
8650
- append(div, t);
8651
- },
8652
-
8653
- p(ctx, dirty) {
8654
- if (dirty[0] &
8655
- /*value*/
8656
- 1 && t_value !== (t_value =
8657
- /*value*/
8658
- ctx[0].length + "")) set_data(t, t_value);
8659
- },
8660
-
8661
- d(detaching) {
8662
- if (detaching) detach(div);
8663
- }
8664
-
8665
- };
8666
- } // (140:4) {#if maxcharcount > 0}
8667
-
8668
-
8669
- function create_if_block_1$5(ctx) {
8670
- let div;
8671
- let t0_value =
8672
- /*value*/
8673
- ctx[0].length + "";
8674
- let t0;
8675
- let t1_value = `/${
8676
- /*maxcharcount*/
8677
- ctx[16]}` + "";
8678
- let t1;
8679
- return {
8680
- c() {
8681
- div = element("div");
8682
- t0 = text(t0_value);
8683
- t1 = text(t1_value);
8684
- attr(div, "class", "counter");
8685
- toggle_class(div, "counter-error",
8686
- /*value*/
8687
- ctx[0].length >
8688
- /*maxcharcount*/
8689
- ctx[16]);
8690
- },
8691
-
8692
- m(target, anchor) {
8693
- insert(target, div, anchor);
8694
- append(div, t0);
8695
- append(div, t1);
8696
- },
8697
-
8698
- p(ctx, dirty) {
8699
- if (dirty[0] &
8700
- /*value*/
8701
- 1 && t0_value !== (t0_value =
8702
- /*value*/
8703
- ctx[0].length + "")) set_data(t0, t0_value);
8704
- if (dirty[0] &
8705
- /*maxcharcount*/
8706
- 65536 && t1_value !== (t1_value = `/${
8707
- /*maxcharcount*/
8708
- ctx[16]}` + "")) set_data(t1, t1_value);
8709
-
8710
- if (dirty[0] &
8711
- /*value, maxcharcount*/
8712
- 65537) {
8713
- toggle_class(div, "counter-error",
8714
- /*value*/
8715
- ctx[0].length >
8716
- /*maxcharcount*/
8717
- ctx[16]);
8718
- }
8719
- },
8720
-
8721
- d(detaching) {
8722
- if (detaching) detach(div);
8723
- }
8724
-
8725
8620
  };
8726
8621
  }
8727
8622
 
@@ -8738,32 +8633,28 @@
8738
8633
  let t3;
8739
8634
  let t4;
8740
8635
  let div0_class_value;
8741
- let t5;
8742
8636
  let div1_style_value;
8743
8637
  let mounted;
8744
8638
  let dispose;
8745
8639
  let if_block0 =
8746
8640
  /*prefix*/
8747
- ctx[14] && create_if_block_7(ctx);
8641
+ ctx[14] && create_if_block_4(ctx);
8748
8642
  let if_block1 =
8749
8643
  /*leadingicon*/
8750
- ctx[5] && create_if_block_6(ctx);
8644
+ ctx[5] && create_if_block_3$2(ctx);
8751
8645
  let if_block2 =
8752
8646
  /*trailingicon*/
8753
8647
  ctx[6] && !
8754
8648
  /*handlesTrailingIconClick*/
8755
- ctx[22] && create_if_block_5(ctx);
8649
+ ctx[20] && create_if_block_2$4(ctx);
8756
8650
  let if_block3 =
8757
8651
  /*trailingicon*/
8758
8652
  ctx[6] &&
8759
8653
  /*handlesTrailingIconClick*/
8760
- ctx[22] && create_if_block_4(ctx);
8654
+ ctx[20] && create_if_block_1$5(ctx);
8761
8655
  let if_block4 =
8762
8656
  /*suffix*/
8763
- ctx[15] && create_if_block_3$2(ctx);
8764
- let if_block5 =
8765
- /*showCounter*/
8766
- ctx[18] && create_if_block$7(ctx);
8657
+ ctx[15] && create_if_block$7(ctx);
8767
8658
  return {
8768
8659
  c() {
8769
8660
  div1 = element("div");
@@ -8779,8 +8670,6 @@
8779
8670
  if (if_block3) if_block3.c();
8780
8671
  t4 = space();
8781
8672
  if (if_block4) if_block4.c();
8782
- t5 = space();
8783
- if (if_block5) if_block5.c();
8784
8673
  this.c = noop;
8785
8674
  attr(input, "class", input_class_value = `input--${
8786
8675
  /*variant*/
@@ -8790,10 +8679,10 @@
8790
8679
  ctx[6] ? "-0.5rem" : "0"}`);
8791
8680
  input.readOnly =
8792
8681
  /*isReadonly*/
8793
- ctx[21];
8682
+ ctx[19];
8794
8683
  input.disabled =
8795
8684
  /*isDisabled*/
8796
- ctx[19];
8685
+ ctx[17];
8797
8686
  attr(input, "data-testid",
8798
8687
  /*testid*/
8799
8688
  ctx[8]);
@@ -8831,7 +8720,7 @@
8831
8720
  goa-input
8832
8721
  ${
8833
8722
  /*isDisabled*/
8834
- ctx[19] ? "goa-input--disabled" : ""}
8723
+ ctx[17] ? "goa-input--disabled" : ""}
8835
8724
  variant--${
8836
8725
  /*variant*/
8837
8726
  ctx[7]}
@@ -8841,7 +8730,7 @@
8841
8730
  `);
8842
8731
  toggle_class(div0, "error",
8843
8732
  /*isError*/
8844
- ctx[20]);
8733
+ ctx[18]);
8845
8734
  attr(div1, "class", "container");
8846
8735
  attr(div1, "style", div1_style_value = `
8847
8736
  --width: ${
@@ -8860,34 +8749,32 @@
8860
8749
  append(div0, input);
8861
8750
  /*input_binding*/
8862
8751
 
8863
- ctx[31](input);
8752
+ ctx[28](input);
8864
8753
  append(div0, t2);
8865
8754
  if (if_block2) if_block2.m(div0, null);
8866
8755
  append(div0, t3);
8867
8756
  if (if_block3) if_block3.m(div0, null);
8868
8757
  append(div0, t4);
8869
8758
  if (if_block4) if_block4.m(div0, null);
8870
- append(div1, t5);
8871
- if (if_block5) if_block5.m(div1, null);
8872
8759
 
8873
8760
  if (!mounted) {
8874
8761
  dispose = [listen(input, "keyup",
8875
8762
  /*onKeyUp*/
8876
- ctx[23]), listen(input, "change",
8763
+ ctx[21]), listen(input, "change",
8877
8764
  /*onKeyUp*/
8878
- ctx[23])];
8765
+ ctx[21])];
8879
8766
  mounted = true;
8880
8767
  }
8881
8768
  },
8882
8769
 
8883
- p(ctx, dirty) {
8770
+ p(ctx, [dirty]) {
8884
8771
  if (
8885
8772
  /*prefix*/
8886
8773
  ctx[14]) {
8887
8774
  if (if_block0) {
8888
8775
  if_block0.p(ctx, dirty);
8889
8776
  } else {
8890
- if_block0 = create_if_block_7(ctx);
8777
+ if_block0 = create_if_block_4(ctx);
8891
8778
  if_block0.c();
8892
8779
  if_block0.m(div0, t0);
8893
8780
  }
@@ -8902,7 +8789,7 @@
8902
8789
  if (if_block1) {
8903
8790
  if_block1.p(ctx, dirty);
8904
8791
  } else {
8905
- if_block1 = create_if_block_6(ctx);
8792
+ if_block1 = create_if_block_3$2(ctx);
8906
8793
  if_block1.c();
8907
8794
  if_block1.m(div0, t1);
8908
8795
  }
@@ -8911,7 +8798,7 @@
8911
8798
  if_block1 = null;
8912
8799
  }
8913
8800
 
8914
- if (dirty[0] &
8801
+ if (dirty &
8915
8802
  /*variant*/
8916
8803
  128 && input_class_value !== (input_class_value = `input--${
8917
8804
  /*variant*/
@@ -8919,7 +8806,7 @@
8919
8806
  attr(input, "class", input_class_value);
8920
8807
  }
8921
8808
 
8922
- if (dirty[0] &
8809
+ if (dirty &
8923
8810
  /*trailingicon*/
8924
8811
  64 && input_style_value !== (input_style_value = `--search-icon-offset: ${
8925
8812
  /*trailingicon*/
@@ -8927,23 +8814,23 @@
8927
8814
  attr(input, "style", input_style_value);
8928
8815
  }
8929
8816
 
8930
- if (dirty[0] &
8817
+ if (dirty &
8931
8818
  /*isReadonly*/
8932
- 2097152) {
8819
+ 524288) {
8933
8820
  input.readOnly =
8934
8821
  /*isReadonly*/
8935
- ctx[21];
8822
+ ctx[19];
8936
8823
  }
8937
8824
 
8938
- if (dirty[0] &
8825
+ if (dirty &
8939
8826
  /*isDisabled*/
8940
- 524288) {
8827
+ 131072) {
8941
8828
  input.disabled =
8942
8829
  /*isDisabled*/
8943
- ctx[19];
8830
+ ctx[17];
8944
8831
  }
8945
8832
 
8946
- if (dirty[0] &
8833
+ if (dirty &
8947
8834
  /*testid*/
8948
8835
  256) {
8949
8836
  attr(input, "data-testid",
@@ -8951,7 +8838,7 @@
8951
8838
  ctx[8]);
8952
8839
  }
8953
8840
 
8954
- if (dirty[0] &
8841
+ if (dirty &
8955
8842
  /*autocapitalize*/
8956
8843
  8) {
8957
8844
  attr(input, "autocapitalize",
@@ -8959,7 +8846,7 @@
8959
8846
  ctx[3]);
8960
8847
  }
8961
8848
 
8962
- if (dirty[0] &
8849
+ if (dirty &
8963
8850
  /*name*/
8964
8851
  4) {
8965
8852
  attr(input, "name",
@@ -8967,7 +8854,7 @@
8967
8854
  ctx[2]);
8968
8855
  }
8969
8856
 
8970
- if (dirty[0] &
8857
+ if (dirty &
8971
8858
  /*type*/
8972
8859
  2) {
8973
8860
  attr(input, "type",
@@ -8975,7 +8862,7 @@
8975
8862
  ctx[1]);
8976
8863
  }
8977
8864
 
8978
- if (dirty[0] &
8865
+ if (dirty &
8979
8866
  /*value*/
8980
8867
  1 && input.value !==
8981
8868
  /*value*/
@@ -8985,7 +8872,7 @@
8985
8872
  ctx[0];
8986
8873
  }
8987
8874
 
8988
- if (dirty[0] &
8875
+ if (dirty &
8989
8876
  /*placeholder*/
8990
8877
  16) {
8991
8878
  attr(input, "placeholder",
@@ -8993,7 +8880,7 @@
8993
8880
  ctx[4]);
8994
8881
  }
8995
8882
 
8996
- if (dirty[0] &
8883
+ if (dirty &
8997
8884
  /*min*/
8998
8885
  2048) {
8999
8886
  attr(input, "min",
@@ -9001,7 +8888,7 @@
9001
8888
  ctx[11]);
9002
8889
  }
9003
8890
 
9004
- if (dirty[0] &
8891
+ if (dirty &
9005
8892
  /*max*/
9006
8893
  4096) {
9007
8894
  attr(input, "max",
@@ -9009,7 +8896,7 @@
9009
8896
  ctx[12]);
9010
8897
  }
9011
8898
 
9012
- if (dirty[0] &
8899
+ if (dirty &
9013
8900
  /*step*/
9014
8901
  8192) {
9015
8902
  attr(input, "step",
@@ -9017,7 +8904,7 @@
9017
8904
  ctx[13]);
9018
8905
  }
9019
8906
 
9020
- if (dirty[0] &
8907
+ if (dirty &
9021
8908
  /*arialabel, name*/
9022
8909
  1028 && input_aria_label_value !== (input_aria_label_value =
9023
8910
  /*arialabel*/
@@ -9031,11 +8918,11 @@
9031
8918
  /*trailingicon*/
9032
8919
  ctx[6] && !
9033
8920
  /*handlesTrailingIconClick*/
9034
- ctx[22]) {
8921
+ ctx[20]) {
9035
8922
  if (if_block2) {
9036
8923
  if_block2.p(ctx, dirty);
9037
8924
  } else {
9038
- if_block2 = create_if_block_5(ctx);
8925
+ if_block2 = create_if_block_2$4(ctx);
9039
8926
  if_block2.c();
9040
8927
  if_block2.m(div0, t3);
9041
8928
  }
@@ -9048,11 +8935,11 @@
9048
8935
  /*trailingicon*/
9049
8936
  ctx[6] &&
9050
8937
  /*handlesTrailingIconClick*/
9051
- ctx[22]) {
8938
+ ctx[20]) {
9052
8939
  if (if_block3) {
9053
8940
  if_block3.p(ctx, dirty);
9054
8941
  } else {
9055
- if_block3 = create_if_block_4(ctx);
8942
+ if_block3 = create_if_block_1$5(ctx);
9056
8943
  if_block3.c();
9057
8944
  if_block3.m(div0, t4);
9058
8945
  }
@@ -9067,7 +8954,7 @@
9067
8954
  if (if_block4) {
9068
8955
  if_block4.p(ctx, dirty);
9069
8956
  } else {
9070
- if_block4 = create_if_block_3$2(ctx);
8957
+ if_block4 = create_if_block$7(ctx);
9071
8958
  if_block4.c();
9072
8959
  if_block4.m(div0, null);
9073
8960
  }
@@ -9076,13 +8963,13 @@
9076
8963
  if_block4 = null;
9077
8964
  }
9078
8965
 
9079
- if (dirty[0] &
8966
+ if (dirty &
9080
8967
  /*isDisabled, variant, type*/
9081
- 524418 && div0_class_value !== (div0_class_value = `
8968
+ 131202 && div0_class_value !== (div0_class_value = `
9082
8969
  goa-input
9083
8970
  ${
9084
8971
  /*isDisabled*/
9085
- ctx[19] ? "goa-input--disabled" : ""}
8972
+ ctx[17] ? "goa-input--disabled" : ""}
9086
8973
  variant--${
9087
8974
  /*variant*/
9088
8975
  ctx[7]}
@@ -9093,30 +8980,15 @@
9093
8980
  attr(div0, "class", div0_class_value);
9094
8981
  }
9095
8982
 
9096
- if (dirty[0] &
8983
+ if (dirty &
9097
8984
  /*isDisabled, variant, type, isError*/
9098
- 1572994) {
8985
+ 393346) {
9099
8986
  toggle_class(div0, "error",
9100
8987
  /*isError*/
9101
- ctx[20]);
9102
- }
9103
-
9104
- if (
9105
- /*showCounter*/
9106
- ctx[18]) {
9107
- if (if_block5) {
9108
- if_block5.p(ctx, dirty);
9109
- } else {
9110
- if_block5 = create_if_block$7(ctx);
9111
- if_block5.c();
9112
- if_block5.m(div1, null);
9113
- }
9114
- } else if (if_block5) {
9115
- if_block5.d(1);
9116
- if_block5 = null;
8988
+ ctx[18]);
9117
8989
  }
9118
8990
 
9119
- if (dirty[0] &
8991
+ if (dirty &
9120
8992
  /*width*/
9121
8993
  512 && div1_style_value !== (div1_style_value = `
9122
8994
  --width: ${
@@ -9136,11 +9008,10 @@
9136
9008
  if (if_block1) if_block1.d();
9137
9009
  /*input_binding*/
9138
9010
 
9139
- ctx[31](null);
9011
+ ctx[28](null);
9140
9012
  if (if_block2) if_block2.d();
9141
9013
  if (if_block3) if_block3.d();
9142
9014
  if (if_block4) if_block4.d();
9143
- if (if_block5) if_block5.d();
9144
9015
  mounted = false;
9145
9016
  run_all(dispose);
9146
9017
  }
@@ -9160,7 +9031,6 @@
9160
9031
  let isReadonly;
9161
9032
  let isError;
9162
9033
  let isDisabled;
9163
- let showCounter;
9164
9034
  let {
9165
9035
  type = "text"
9166
9036
  } = $$props;
@@ -9224,12 +9094,6 @@
9224
9094
  let {
9225
9095
  suffix = ""
9226
9096
  } = $$props;
9227
- let {
9228
- showcounter = "false"
9229
- } = $$props;
9230
- let {
9231
- maxcharcount = 0
9232
- } = $$props;
9233
9097
  let inputEl;
9234
9098
 
9235
9099
  function onKeyUp(e) {
@@ -9248,7 +9112,7 @@
9248
9112
  function input_binding($$value) {
9249
9113
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
9250
9114
  inputEl = $$value;
9251
- $$invalidate(17, inputEl);
9115
+ $$invalidate(16, inputEl);
9252
9116
  });
9253
9117
  }
9254
9118
 
@@ -9261,11 +9125,11 @@
9261
9125
  if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
9262
9126
  if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
9263
9127
  if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
9264
- if ('disabled' in $$props) $$invalidate(24, disabled = $$props.disabled);
9265
- if ('handletrailingiconclick' in $$props) $$invalidate(25, handletrailingiconclick = $$props.handletrailingiconclick);
9266
- if ('focused' in $$props) $$invalidate(26, focused = $$props.focused);
9267
- if ('readonly' in $$props) $$invalidate(27, readonly = $$props.readonly);
9268
- if ('error' in $$props) $$invalidate(28, error = $$props.error);
9128
+ if ('disabled' in $$props) $$invalidate(22, disabled = $$props.disabled);
9129
+ if ('handletrailingiconclick' in $$props) $$invalidate(23, handletrailingiconclick = $$props.handletrailingiconclick);
9130
+ if ('focused' in $$props) $$invalidate(24, focused = $$props.focused);
9131
+ if ('readonly' in $$props) $$invalidate(25, readonly = $$props.readonly);
9132
+ if ('error' in $$props) $$invalidate(26, error = $$props.error);
9269
9133
  if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
9270
9134
  if ('width' in $$props) $$invalidate(9, width = $$props.width);
9271
9135
  if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
@@ -9274,58 +9138,50 @@
9274
9138
  if ('step' in $$props) $$invalidate(13, step = $$props.step);
9275
9139
  if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
9276
9140
  if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
9277
- if ('showcounter' in $$props) $$invalidate(29, showcounter = $$props.showcounter);
9278
- if ('maxcharcount' in $$props) $$invalidate(16, maxcharcount = $$props.maxcharcount);
9279
9141
  };
9280
9142
 
9281
9143
  $$self.$$.update = () => {
9282
- if ($$self.$$.dirty[0] &
9144
+ if ($$self.$$.dirty &
9283
9145
  /*handletrailingiconclick*/
9284
- 33554432) {
9285
- $$invalidate(22, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
9146
+ 8388608) {
9147
+ $$invalidate(20, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
9286
9148
  }
9287
9149
 
9288
- if ($$self.$$.dirty[0] &
9150
+ if ($$self.$$.dirty &
9289
9151
  /*focused*/
9290
- 67108864) {
9291
- $$invalidate(30, isFocused = toBoolean(focused));
9152
+ 16777216) {
9153
+ $$invalidate(27, isFocused = toBoolean(focused));
9292
9154
  }
9293
9155
 
9294
- if ($$self.$$.dirty[0] &
9156
+ if ($$self.$$.dirty &
9295
9157
  /*readonly*/
9296
- 134217728) {
9297
- $$invalidate(21, isReadonly = toBoolean(readonly));
9158
+ 33554432) {
9159
+ $$invalidate(19, isReadonly = toBoolean(readonly));
9298
9160
  }
9299
9161
 
9300
- if ($$self.$$.dirty[0] &
9162
+ if ($$self.$$.dirty &
9301
9163
  /*error*/
9302
- 268435456) {
9303
- $$invalidate(20, isError = toBoolean(error));
9164
+ 67108864) {
9165
+ $$invalidate(18, isError = toBoolean(error));
9304
9166
  }
9305
9167
 
9306
- if ($$self.$$.dirty[0] &
9168
+ if ($$self.$$.dirty &
9307
9169
  /*disabled*/
9308
- 16777216) {
9309
- $$invalidate(19, isDisabled = toBoolean(disabled));
9310
- }
9311
-
9312
- if ($$self.$$.dirty[0] &
9313
- /*showcounter*/
9314
- 536870912) {
9315
- $$invalidate(18, showCounter = toBoolean(showcounter));
9170
+ 4194304) {
9171
+ $$invalidate(17, isDisabled = toBoolean(disabled));
9316
9172
  }
9317
9173
 
9318
- if ($$self.$$.dirty[0] &
9174
+ if ($$self.$$.dirty &
9319
9175
  /*isFocused, inputEl*/
9320
- 1073872896) {
9176
+ 134283264) {
9321
9177
  if (isFocused && inputEl) {
9322
9178
  setTimeout(() => inputEl.focus(), 1);
9323
9179
  }
9324
9180
  }
9325
9181
 
9326
- if ($$self.$$.dirty[0] &
9182
+ if ($$self.$$.dirty &
9327
9183
  /*inputEl, type*/
9328
- 131074) {
9184
+ 65538) {
9329
9185
  if (inputEl && type === "search") {
9330
9186
  inputEl.addEventListener("search", e => {
9331
9187
  onKeyUp(e);
@@ -9334,13 +9190,13 @@
9334
9190
  }
9335
9191
  };
9336
9192
 
9337
- return [value, type, name, autocapitalize, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
9193
+ return [value, type, name, autocapitalize, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, inputEl, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, isFocused, input_binding];
9338
9194
  }
9339
9195
 
9340
9196
  class Input extends SvelteElement {
9341
9197
  constructor(options) {
9342
9198
  super();
9343
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%}@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)}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}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.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>')
9199
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%}@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)}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>')
9344
9200
  center center no-repeat}</style>`;
9345
9201
  init(this, {
9346
9202
  target: this.shadowRoot,
@@ -9355,11 +9211,11 @@
9355
9211
  leadingicon: 5,
9356
9212
  trailingicon: 6,
9357
9213
  variant: 7,
9358
- disabled: 24,
9359
- handletrailingiconclick: 25,
9360
- focused: 26,
9361
- readonly: 27,
9362
- error: 28,
9214
+ disabled: 22,
9215
+ handletrailingiconclick: 23,
9216
+ focused: 24,
9217
+ readonly: 25,
9218
+ error: 26,
9363
9219
  testid: 8,
9364
9220
  width: 9,
9365
9221
  arialabel: 10,
@@ -9367,10 +9223,8 @@
9367
9223
  max: 12,
9368
9224
  step: 13,
9369
9225
  prefix: 14,
9370
- suffix: 15,
9371
- showcounter: 29,
9372
- maxcharcount: 16
9373
- }, null, [-1, -1]);
9226
+ suffix: 15
9227
+ }, null);
9374
9228
 
9375
9229
  if (options) {
9376
9230
  if (options.target) {
@@ -9385,7 +9239,7 @@
9385
9239
  }
9386
9240
 
9387
9241
  static get observedAttributes() {
9388
- return ["type", "name", "value", "autocapitalize", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix", "showcounter", "maxcharcount"];
9242
+ return ["type", "name", "value", "autocapitalize", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix"];
9389
9243
  }
9390
9244
 
9391
9245
  get type() {
@@ -9477,7 +9331,7 @@
9477
9331
  }
9478
9332
 
9479
9333
  get disabled() {
9480
- return this.$$.ctx[24];
9334
+ return this.$$.ctx[22];
9481
9335
  }
9482
9336
 
9483
9337
  set disabled(disabled) {
@@ -9488,7 +9342,7 @@
9488
9342
  }
9489
9343
 
9490
9344
  get handletrailingiconclick() {
9491
- return this.$$.ctx[25];
9345
+ return this.$$.ctx[23];
9492
9346
  }
9493
9347
 
9494
9348
  set handletrailingiconclick(handletrailingiconclick) {
@@ -9499,7 +9353,7 @@
9499
9353
  }
9500
9354
 
9501
9355
  get focused() {
9502
- return this.$$.ctx[26];
9356
+ return this.$$.ctx[24];
9503
9357
  }
9504
9358
 
9505
9359
  set focused(focused) {
@@ -9510,7 +9364,7 @@
9510
9364
  }
9511
9365
 
9512
9366
  get readonly() {
9513
- return this.$$.ctx[27];
9367
+ return this.$$.ctx[25];
9514
9368
  }
9515
9369
 
9516
9370
  set readonly(readonly) {
@@ -9521,7 +9375,7 @@
9521
9375
  }
9522
9376
 
9523
9377
  get error() {
9524
- return this.$$.ctx[28];
9378
+ return this.$$.ctx[26];
9525
9379
  }
9526
9380
 
9527
9381
  set error(error) {
@@ -9619,28 +9473,6 @@
9619
9473
  flush();
9620
9474
  }
9621
9475
 
9622
- get showcounter() {
9623
- return this.$$.ctx[29];
9624
- }
9625
-
9626
- set showcounter(showcounter) {
9627
- this.$$set({
9628
- showcounter
9629
- });
9630
- flush();
9631
- }
9632
-
9633
- get maxcharcount() {
9634
- return this.$$.ctx[16];
9635
- }
9636
-
9637
- set maxcharcount(maxcharcount) {
9638
- this.$$set({
9639
- maxcharcount
9640
- });
9641
- flush();
9642
- }
9643
-
9644
9476
  }
9645
9477
 
9646
9478
  customElements.define("goa-input", Input);
@@ -14694,12 +14526,12 @@
14694
14526
  var children = _a.children,
14695
14527
  helpText = _a.helpText,
14696
14528
  error = _a.error,
14697
- optional = _a.optional,
14529
+ requirement = _a.requirement,
14698
14530
  label = _a.label;
14699
14531
  return jsxRuntime.jsx("goa-form-item", __assign({
14700
14532
  label: label,
14701
14533
  error: error,
14702
- optional: optional ? "true" : "false",
14534
+ requirement: requirement,
14703
14535
  helptext: helpText
14704
14536
  }, {
14705
14537
  children: children
@@ -14799,8 +14631,6 @@
14799
14631
  placeholder = _a.placeholder,
14800
14632
  error = _a.error,
14801
14633
  width = _a.width,
14802
- showCounter = _a.showCounter,
14803
- maxCharCount = _a.maxCharCount,
14804
14634
  testId = _a.testId,
14805
14635
  min = _a.min,
14806
14636
  max = _a.max,
@@ -14857,8 +14687,6 @@
14857
14687
  step: step,
14858
14688
  prefix: prefix,
14859
14689
  suffix: suffix,
14860
- showcounter: showCounter,
14861
- maxcharcount: maxCharCount,
14862
14690
  handletrailingiconclick: !!onTrailingIconClick
14863
14691
  }, void 0);
14864
14692
  };