@descope/flow-components 2.0.548 → 2.0.550

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.
package/dist/index.cjs.js CHANGED
@@ -79160,8 +79160,9 @@ function requireIndex_cjs () {
79160
79160
  #blockNativeEvents() {
79161
79161
  ['blur', 'focus', 'focusin', 'focusout'].forEach((event) => {
79162
79162
  this.addEventListener(event, (e) => {
79163
- e.isTrusted && e.target === this && e.stopImmediatePropagation();
79164
- });
79163
+ if (e.isTrusted && e.target === this) {
79164
+ e.stopImmediatePropagation();
79165
+ } });
79165
79166
  });
79166
79167
  }
79167
79168
 
@@ -92990,6 +92991,7 @@ descope-boolean-field-internal {
92990
92991
  'PageUp',
92991
92992
  'PageDown',
92992
92993
  'Meta',
92994
+ 'Enter',
92993
92995
  ];
92994
92996
 
92995
92997
  const months = [
@@ -93020,7 +93022,7 @@ descope-boolean-field-internal {
93020
93022
  const counterConfig = {
93021
93023
  MONTH: { id: 'month', min: 1, max: 12, placeholder: 'MM', count: 5, shiftCount: 10 },
93022
93024
  DAY: { id: 'day', min: 1, max: 31, placeholder: 'DD', count: 5, shiftCount: 10 },
93023
- YEAR: { id: 'year', min: 0, max: 9999, placeholder: 'YYYY', count: 10, shiftCount: 100 },
93025
+ YEAR: { id: 'year', min: 1900, max: 2099, placeholder: 'YYYY', count: 10, shiftCount: 100 },
93024
93026
  };
93025
93027
 
93026
93028
  const BUTTON_LABEL_DONE = 'Done';
@@ -93032,7 +93034,7 @@ descope-boolean-field-internal {
93032
93034
  const isNumber = (val) => !Number.isNaN(Number(val));
93033
93035
 
93034
93036
  const getTimestampParts = (timestamp) => {
93035
- const date = new Date(timestamp);
93037
+ const date = newDate(timestamp);
93036
93038
  const year = date.getFullYear();
93037
93039
  const month = date.getMonth() + 1;
93038
93040
  const day = date.getDate();
@@ -93080,6 +93082,7 @@ descope-boolean-field-internal {
93080
93082
  shiftArrowDown: shiftKey && key === 'ArrowDown',
93081
93083
  shiftPageUp: shiftKey && key === 'PageUp',
93082
93084
  shiftPageDown: shiftKey && key === 'PageDown',
93085
+ enter: key === 'Enter',
93083
93086
  };
93084
93087
  };
93085
93088
 
@@ -94064,12 +94067,23 @@ descope-boolean-field-internal {
94064
94067
  // For examele, we have a DayCounter, MonthCounter and YearCounter, which can each separately navigate
94065
94068
  // between different ranges.
94066
94069
  class DateCounter {
94067
- constructor({ id, min, max, placeholder }) {
94070
+ #data = Object.freeze([]);
94071
+
94072
+ constructor({ id, min, max, placeholder }, onChange) {
94068
94073
  this.id = id;
94069
- this.data = [];
94070
94074
  this.min = min;
94071
94075
  this.max = max;
94072
94076
  this.placeholder = placeholder;
94077
+ this.onChange = onChange;
94078
+ }
94079
+
94080
+ get data() {
94081
+ return this.#data;
94082
+ }
94083
+
94084
+ set data(val) {
94085
+ this.#data = Object.freeze(val);
94086
+ this.onChange?.();
94073
94087
  }
94074
94088
 
94075
94089
  get #initialNumValue() {
@@ -94101,23 +94115,27 @@ descope-boolean-field-internal {
94101
94115
  }
94102
94116
 
94103
94117
  add(num) {
94104
- this.data.push(num);
94118
+ // use local var to avoid triggering onChange
94119
+ let data = this.data;
94120
+
94121
+ data = [...data, num];
94105
94122
 
94106
94123
  if (this.numberValue > this.max) {
94107
- this.data.length = 0;
94108
- this.data.push(num);
94109
- } else if (this.length < this.data.length) {
94110
- this.data.shift();
94124
+ data = [num];
94125
+ } else if (this.length < data.length) {
94126
+ data = data.slice(1, data.length);
94111
94127
  }
94112
94128
 
94129
+ this.data = data;
94130
+
94113
94131
  return num;
94114
94132
  }
94115
94133
 
94116
94134
  del() {
94117
94135
  if (!this.data.filter((d) => d !== '0').filter(Boolean).length) {
94118
- this.data.length = 0;
94136
+ this.data = [];
94119
94137
  } else {
94120
- this.data.pop();
94138
+ this.data = this.data.slice(0, this.data.length - 1);
94121
94139
  }
94122
94140
  }
94123
94141
 
@@ -94126,11 +94144,19 @@ descope-boolean-field-internal {
94126
94144
  }
94127
94145
 
94128
94146
  inc(gap) {
94129
- this.replaceValue(this.#initialNumValue + (gap || 1));
94147
+ this.replaceValue(
94148
+ this.#initialNumValue < this.max
94149
+ ? Math.max(this.#initialNumValue + (gap || 1), this.min)
94150
+ : this.min
94151
+ );
94130
94152
  }
94131
94153
 
94132
94154
  dec(gap) {
94133
- this.replaceValue(this.#initialNumValue - (gap || 1));
94155
+ this.replaceValue(
94156
+ this.#initialNumValue > this.min
94157
+ ? Math.min(this.#initialNumValue - (gap || 1), this.max)
94158
+ : this.max
94159
+ );
94134
94160
  }
94135
94161
 
94136
94162
  isInRange(val) {
@@ -94142,6 +94168,14 @@ descope-boolean-field-internal {
94142
94168
  this.data = val.toString().padStart(this.length, 0).split('');
94143
94169
  }
94144
94170
  }
94171
+
94172
+ setMin(val) {
94173
+ this.min = Number(val);
94174
+ }
94175
+
94176
+ setMax(val) {
94177
+ this.max = Number(val);
94178
+ }
94145
94179
  }
94146
94180
 
94147
94181
  const componentName$j = getComponentName$1('date-field');
@@ -94151,7 +94185,7 @@ descope-boolean-field-internal {
94151
94185
  const BASE_SELECTOR = 'vaadin-popover';
94152
94186
  const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$j, baseSelector: BASE_SELECTOR });
94153
94187
 
94154
- const dateFieldAttrs = ['format', 'opened', 'initial-value', 'readonly'];
94188
+ const dateFieldAttrs = ['format', 'opened', 'initial-value', 'readonly', 'disable-calendar'];
94155
94189
  const calendarAttrs = ['years-range', 'calendar-months', 'calendar-weekdays'];
94156
94190
  const observedAttrs$1 = [...dateFieldAttrs, ...calendarAttrs];
94157
94191
 
@@ -94162,10 +94196,40 @@ descope-boolean-field-internal {
94162
94196
 
94163
94197
  selectedCounterIdx = 0;
94164
94198
 
94199
+ updateCountersDisplay() {
94200
+ this.inputElement.value = this.countersValue;
94201
+ }
94202
+
94203
+ updateValue() {
94204
+ if (this.isCountersOutOfRange) {
94205
+ this.updateTimestamp('');
94206
+ } else {
94207
+ const date = formats[this.format].getDate(this.inputElement.value);
94208
+ this.updateTimestamp(date.getTime());
94209
+ }
94210
+ }
94211
+
94212
+ onDateCounterChange = () => {
94213
+ this.updateCountersDisplay();
94214
+ this.updateValue();
94215
+ // update validity
94216
+ this.#dispatchInput();
94217
+ };
94218
+
94219
+ updateTimestamp(epochOrDate) {
94220
+ if (!epochOrDate) {
94221
+ this.timestamp = '';
94222
+ } else {
94223
+ this.timestamp = newDate(epochOrDate).getTime();
94224
+ }
94225
+ }
94226
+
94227
+ #yearDateCounter = new DateCounter(counterConfig.YEAR, this.onDateCounterChange.bind(this));
94228
+
94165
94229
  dateCounters = [
94166
- new DateCounter(counterConfig.MONTH),
94167
- new DateCounter(counterConfig.DAY),
94168
- new DateCounter(counterConfig.YEAR),
94230
+ new DateCounter(counterConfig.MONTH, this.onDateCounterChange.bind(this)),
94231
+ new DateCounter(counterConfig.DAY, this.onDateCounterChange.bind(this)),
94232
+ this.#yearDateCounter,
94169
94233
  ];
94170
94234
 
94171
94235
  static get observedAttributes() {
@@ -94211,17 +94275,20 @@ descope-boolean-field-internal {
94211
94275
  :host([readonly="true"]) .toggle-calendar {
94212
94276
  pointer-events: none;
94213
94277
  }
94278
+
94279
+ .hidden {
94280
+ display: none;
94281
+ }
94214
94282
  `,
94215
94283
  this
94216
94284
  );
94217
94285
 
94218
94286
  this.inputElement = this.shadowRoot.querySelector('descope-text-field');
94219
94287
  this.popoverToggleButton = this.inputElement.querySelector('.toggle-calendar');
94288
+ }
94220
94289
 
94221
- this.oninvalid = () => {
94222
- this.inputElement.setAttribute('invalid', 'true');
94223
- this.inputElement.focus();
94224
- };
94290
+ get validationTarget() {
94291
+ return this.inputElement;
94225
94292
  }
94226
94293
 
94227
94294
  get opened() {
@@ -94229,7 +94296,7 @@ descope-boolean-field-internal {
94229
94296
  }
94230
94297
 
94231
94298
  // returns the input's value as a timestamp
94232
- get inputValueTimestamp() {
94299
+ get displayValueEpoch() {
94233
94300
  const date = formats[this.format].getDate(this.inputElement.value);
94234
94301
 
94235
94302
  if (!isValidTimestamp(date?.getTime())) {
@@ -94281,37 +94348,36 @@ descope-boolean-field-internal {
94281
94348
  }
94282
94349
 
94283
94350
  set value(val) {
94284
- if (!val) return;
94285
-
94286
- const numVal = Number(val);
94287
- const isValTimestamp = !Number.isNaN(numVal);
94288
-
94289
- let date;
94290
- let timestamp;
94291
-
94292
- if (isValTimestamp) {
94293
- date = newDate(numVal);
94294
- timestamp = numVal;
94351
+ if (val) {
94352
+ this.updateTimestamp(val);
94353
+ this.updateDateCounters(newDate(val));
94295
94354
  } else {
94296
- date = newDate(val);
94297
- timestamp = date.getTime();
94355
+ this.updateTimestamp('');
94298
94356
  }
94357
+ }
94299
94358
 
94300
- if (!isValidTimestamp(timestamp) || timestamp === this.timestamp) {
94301
- return;
94302
- }
94359
+ get isCountersEmpty() {
94360
+ return this.dateCounters.every((dc) => dc.isEmpty);
94361
+ }
94303
94362
 
94304
- this.timestamp = timestamp;
94363
+ get isCountersOutOfRange() {
94364
+ return this.dateCounters.some((dc) => !dc.isInRange(dc.numberValue));
94365
+ }
94366
+
94367
+ get disableCalendar() {
94368
+ return this.getAttribute('disable-calendar') === 'true';
94369
+ }
94305
94370
 
94306
- this.updateInputDisplay();
94307
- this.updateDateCounters(date);
94371
+ reportValidity() {
94372
+ this.inputElement.reportValidity();
94373
+ }
94308
94374
 
94309
- // since baseElement is set to vaadin-popover, we need to manually dispatch an input event to trigger getValidity
94310
- this.dispatchEvent(new Event('input'));
94375
+ #dispatchInput() {
94376
+ this.inputElement.baseElement.dispatchEvent(new Event('input', { bubbles: true }));
94311
94377
  }
94312
94378
 
94313
94379
  updateInputDisplay() {
94314
- this.inputElement.value = formatTimestamp(newDate(this.value).getTime(), this.format);
94380
+ this.inputElement.value = formatTimestamp(newDate(this.countersValue).getTime(), this.format);
94315
94381
  }
94316
94382
 
94317
94383
  init() {
@@ -94319,6 +94385,7 @@ descope-boolean-field-internal {
94319
94385
 
94320
94386
  this.updateFormatPattern();
94321
94387
  this.initPopover();
94388
+ this.onDateCounterChange();
94322
94389
  this.initInputElement();
94323
94390
 
94324
94391
  setTimeout(() => {
@@ -94327,15 +94394,16 @@ descope-boolean-field-internal {
94327
94394
  }
94328
94395
 
94329
94396
  initInputElement() {
94397
+ this.inputElement.getValidity = this.getValidity.bind(this);
94398
+ this.inputElement.baseElement.checkValidity = this.checkValidity.bind(this);
94399
+
94330
94400
  this.popoverToggleButton.addEventListener('click', this.onPopoverToggle.bind(this));
94331
94401
 
94332
94402
  this.inputElement.addEventListener('focus', this.onFocus.bind(this));
94333
94403
  this.inputElement.addEventListener('blur', this.onBlur.bind(this));
94334
- this.inputElement.addEventListener('input', this.onInput.bind(this));
94335
94404
  this.inputElement.addEventListener('click', this.handleMouseCaretPositionChange.bind(this));
94336
- this.inputElement.addEventListener('keydown', this.handleKeyDownValueChange.bind(this));
94337
- this.inputElement.addEventListener('keydown', this.handleKeydownCaretPositionChange.bind(this));
94338
- this.inputElement.addEventListener('keydown', this.handleValueChange.bind(this));
94405
+ this.inputElement.addEventListener('keydown', this.handleNavKeys.bind(this));
94406
+ this.inputElement.addEventListener('keydown', this.handleDigitKeys.bind(this));
94339
94407
 
94340
94408
  forwardAttrs$1(this, this.inputElement, {
94341
94409
  includeAttrs: [
@@ -94349,8 +94417,14 @@ descope-boolean-field-internal {
94349
94417
  'full-width',
94350
94418
  'st-host-direction',
94351
94419
  'pattern',
94352
- 'invalid',
94353
94420
  'bordered',
94421
+ 'data-errormessage-value-missing',
94422
+ 'data-errormessage-pattern-mismatch',
94423
+ 'data-errormessage-range-underflow',
94424
+ 'data-errormessage-range-overflow',
94425
+ 'st-error-message-icon',
94426
+ 'st-error-message-icon-size',
94427
+ 'st-error-message-icon-padding',
94354
94428
  ],
94355
94429
  });
94356
94430
  }
@@ -94454,6 +94528,7 @@ descope-boolean-field-internal {
94454
94528
  }
94455
94529
 
94456
94530
  openPopover() {
94531
+ if (this.disableCalendar) return;
94457
94532
  this.setAttribute('opened', 'true');
94458
94533
  }
94459
94534
 
@@ -94478,7 +94553,7 @@ descope-boolean-field-internal {
94478
94553
  this.getCounterById('month').replaceValue(calendarDate.getMonth() + 1);
94479
94554
  this.getCounterById('day').replaceValue(calendarDate.getDate());
94480
94555
 
94481
- this.dispatchEvent(new Event('input'));
94556
+ this.#dispatchInput();
94482
94557
  }
94483
94558
 
94484
94559
  this.closePopover();
@@ -94489,10 +94564,10 @@ descope-boolean-field-internal {
94489
94564
  isValidTimestamp(newDate(this.inputElement.value || '').getTime()) &&
94490
94565
  formats[this.format].validate(this.inputElement.value);
94491
94566
 
94492
- if (this.inputValueTimestamp || validInputVal) {
94567
+ if (this.displayValueEpoch || validInputVal) {
94493
94568
  this.calendar.setAttribute(
94494
94569
  'initial-value',
94495
- formatTimestamp(this.inputValueTimestamp || this.timestamp, NATIVE_FORMAT)
94570
+ formatTimestamp(this.displayValueEpoch || this.timestamp, NATIVE_FORMAT)
94496
94571
  );
94497
94572
  } else {
94498
94573
  this.calendar.clearValue();
@@ -94515,13 +94590,6 @@ descope-boolean-field-internal {
94515
94590
  });
94516
94591
  }
94517
94592
 
94518
- onInput(e) {
94519
- if (!e.target.value) {
94520
- this.calendar?.clear();
94521
- this.calendar?.renderCalendar();
94522
- }
94523
- }
94524
-
94525
94593
  onFocus() {
94526
94594
  if (this.isReadOnly) {
94527
94595
  return;
@@ -94533,16 +94601,13 @@ descope-boolean-field-internal {
94533
94601
  }
94534
94602
  }
94535
94603
 
94536
- clearInputValue() {
94537
- this.inputElement.value = '';
94538
- this.resetDateCounters();
94539
- }
94540
-
94541
94604
  onBlur() {
94542
- if (this.inputValueTimestamp) {
94543
- this.value = this.inputValueTimestamp;
94544
- } else if (!this.opened && this.countersValue === this.format) {
94545
- this.clearInputValue();
94605
+ if (this.opened) {
94606
+ return;
94607
+ }
94608
+
94609
+ if (this.inputElement.value === this.format) {
94610
+ this.inputElement.value = '';
94546
94611
  }
94547
94612
  }
94548
94613
 
@@ -94559,11 +94624,11 @@ descope-boolean-field-internal {
94559
94624
  this.setAttribute('pattern', formats[format].pattern);
94560
94625
  }
94561
94626
 
94562
- handleValueChange(e) {
94627
+ handleDigitKeys(e) {
94563
94628
  if (isNumber(e.key)) {
94564
94629
  e.preventDefault();
94565
94630
 
94566
- this.handleCountersValue(e.key);
94631
+ this.activeCounter.add(e.key);
94567
94632
 
94568
94633
  if (this.activeCounter.isFull) {
94569
94634
  this.selectNextCounter();
@@ -94583,11 +94648,6 @@ descope-boolean-field-internal {
94583
94648
  return [c1, c2, c3].indexOf(true);
94584
94649
  }
94585
94650
 
94586
- handleCountersValue(val) {
94587
- this.activeCounter.add(val);
94588
- this.inputElement.value = this.countersValue;
94589
- }
94590
-
94591
94651
  setSelectedCounterByCaretPosition(e) {
94592
94652
  this.selectedCounterIdx = this.getCounterIdx(e.target.selectionStart);
94593
94653
  }
@@ -94645,21 +94705,21 @@ descope-boolean-field-internal {
94645
94705
  });
94646
94706
  }
94647
94707
 
94648
- handleKeyDownValueChange(e) {
94708
+ handleNavKeys(e) {
94649
94709
  if (this.isReadOnly) {
94650
94710
  return;
94651
94711
  }
94652
94712
 
94653
94713
  const { key, shiftKey, metaKey } = e;
94654
94714
  const keys = getKeyMap(key, shiftKey, metaKey);
94655
- const allowedOperations = keys.refresh || keys.tab || keys.shiftTab;
94656
94715
 
94657
94716
  if (this.opened) {
94658
94717
  this.closePopover();
94659
94718
  }
94660
94719
 
94720
+ e.preventDefault();
94721
+
94661
94722
  if (isSupportedKey(key)) {
94662
- e.preventDefault();
94663
94723
  const counter = this.activeCounter;
94664
94724
 
94665
94725
  if (!counter) return;
@@ -94676,12 +94736,10 @@ descope-boolean-field-internal {
94676
94736
  else if (keys.pageDown) counter.dec(count);
94677
94737
  else if (keys.shiftPageUp) counter.inc(shiftCount);
94678
94738
  else if (keys.shiftPageDown) counter.dec(shiftCount);
94679
-
94680
- this.inputElement.value = this.countersValue;
94739
+ else if (keys.arrowRight) this.selectNextCounter();
94740
+ else if (keys.arrowLeft) this.selectPrevCounter();
94681
94741
 
94682
94742
  this.setInputSelectionRange();
94683
- } else if (!allowedOperations) {
94684
- e.preventDefault();
94685
94743
  }
94686
94744
  }
94687
94745
 
@@ -94696,25 +94754,6 @@ descope-boolean-field-internal {
94696
94754
  }
94697
94755
  }
94698
94756
 
94699
- handleKeydownCaretPositionChange(e) {
94700
- if (this.opened) {
94701
- return;
94702
- }
94703
-
94704
- const { key } = e;
94705
-
94706
- if (isSupportedKey(key)) {
94707
- e.preventDefault();
94708
-
94709
- const keys = getKeyMap(key, false);
94710
-
94711
- if (keys.arrowRight) this.selectNextCounter();
94712
- else if (keys.arrowLeft) this.selectPrevCounter();
94713
-
94714
- this.setInputSelectionRange();
94715
- }
94716
- }
94717
-
94718
94757
  handleMouseCaretPositionChange(e) {
94719
94758
  if (this.opened) {
94720
94759
  return;
@@ -94734,10 +94773,33 @@ descope-boolean-field-internal {
94734
94773
  });
94735
94774
  }
94736
94775
 
94776
+ setYearRange(val) {
94777
+ if (!val) return;
94778
+ const [min, max] = val.split?.('-');
94779
+ if (min && max) {
94780
+ this.#yearDateCounter.setMin(min);
94781
+ this.#yearDateCounter.setMax(max);
94782
+ }
94783
+ }
94784
+
94785
+ togglePopoverAccess(visibility) {
94786
+ if (visibility) {
94787
+ this.popoverToggleButton.classList.remove('hidden');
94788
+ } else {
94789
+ this.popoverToggleButton.classList.add('hidden');
94790
+ }
94791
+ }
94792
+
94737
94793
  attributeChangedCallback(attrName, oldValue, newValue) {
94738
94794
  super.attributeChangedCallback?.(attrName, oldValue, newValue);
94739
94795
 
94740
94796
  if (oldValue !== newValue) {
94797
+ if (attrName === 'years-range') {
94798
+ this.setYearRange(newValue);
94799
+ }
94800
+ if (attrName === 'disable-calendar') {
94801
+ this.togglePopoverAccess(newValue !== 'true');
94802
+ }
94741
94803
  if (dateFieldAttrs.includes(attrName)) {
94742
94804
  if (newValue && attrName === 'format') {
94743
94805
  this.onFormatUpdate(newValue);
@@ -94756,16 +94818,20 @@ descope-boolean-field-internal {
94756
94818
  }
94757
94819
 
94758
94820
  getValidity() {
94759
- if (this.isRequired && !this.inputElement.value) {
94821
+ if (this.isRequired && this.isCountersEmpty) {
94760
94822
  return { valueMissing: true };
94761
94823
  }
94762
94824
 
94825
+ if (this.isCountersOutOfRange) {
94826
+ return { patternMismatch: true };
94827
+ }
94828
+
94763
94829
  return {};
94764
94830
  }
94765
94831
  }
94766
94832
 
94767
94833
  const textVars = TextFieldClass.cssVarList;
94768
- const { host: host$5, input, inputEleRTL, toggleButton, overlay, backdrop } = {
94834
+ const { host: host$5, input, inputEleRTL, toggleButton, overlay, backdrop} = {
94769
94835
  host: { selector: () => ':host' },
94770
94836
  input: { selector: () => 'descope-text-field' },
94771
94837
  inputEleRTL: { selector: () => ':host([st-host-direction="rtl"]) descope-text-field' },
@@ -94803,6 +94869,30 @@ descope-boolean-field-internal {
94803
94869
  overlayOutlineStyle: {
94804
94870
  property: () => DateFieldClass.cssVarList.overlayOutlineStyle,
94805
94871
  },
94872
+ errorMessageIcon: {
94873
+ selector: TextFieldClass.componentName,
94874
+ property: TextFieldClass.cssVarList.errorMessageIcon,
94875
+ },
94876
+ errorMessageIconSize: {
94877
+ selector: TextFieldClass.componentName,
94878
+ property: TextFieldClass.cssVarList.errorMessageIconSize,
94879
+ },
94880
+ errorMessageIconPadding: {
94881
+ selector: TextFieldClass.componentName,
94882
+ property: TextFieldClass.cssVarList.errorMessageIconPadding,
94883
+ },
94884
+ errorMessageIconRepeat: {
94885
+ selector: TextFieldClass.componentName,
94886
+ property: TextFieldClass.cssVarList.errorMessageIconRepeat,
94887
+ },
94888
+ errorMessageIconPosition: {
94889
+ selector: TextFieldClass.componentName,
94890
+ property: TextFieldClass.cssVarList.errorMessageIconPosition,
94891
+ },
94892
+ errorMessageFontSize: {
94893
+ selector: TextFieldClass.componentName,
94894
+ property: TextFieldClass.cssVarList.errorMessageFontSize,
94895
+ },
94806
94896
  },
94807
94897
  }),
94808
94898
  portalMixin({
@@ -94847,6 +94937,13 @@ descope-boolean-field-internal {
94847
94937
 
94848
94938
  [vars$g.rtlInputDirection]: 'ltr',
94849
94939
  [vars$g.rtlInputAlignment]: 'right',
94940
+
94941
+ [vars$g.errorMessageIcon]: refs$1.errorMessageIcon,
94942
+ [vars$g.errorMessageIconSize]: refs$1.errorMessageIconSize,
94943
+ [vars$g.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
94944
+ [vars$g.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
94945
+ [vars$g.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
94946
+ [vars$g.errorMessageFontSize]: refs$1.errorMessageFontSize,
94850
94947
  };
94851
94948
 
94852
94949
  var dateField$1 = /*#__PURE__*/Object.freeze({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.548",
3
+ "version": "2.0.550",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -112,7 +112,7 @@
112
112
  "webpack-dev-server": "5.2.1"
113
113
  },
114
114
  "dependencies": {
115
- "@descope/web-components-ui": "1.88.0"
115
+ "@descope/web-components-ui": "1.91.0"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "react": ">= 18"