@descope/flow-components 3.3.5 → 3.5.0

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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.3.5",
8
+ "buildVersion": "3.5.0",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.3.5",
8
+ "buildVersion": "3.5.0",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -83713,7 +83713,7 @@ function requireIndex_cjs () {
83713
83713
  return ['label-type', 'require-match'];
83714
83714
  }
83715
83715
 
83716
- // eslint-disable-next-line class-methods-use-this
83716
+
83717
83717
  #renderItem = ({ displayName, value, label }) => {
83718
83718
  return `<span data-name="${label}" data-id="${value}">${
83719
83719
  displayName || label
@@ -83764,7 +83764,7 @@ function requireIndex_cjs () {
83764
83764
  return data;
83765
83765
  }
83766
83766
  } catch (e) {
83767
- // eslint-disable-next-line no-console
83767
+
83768
83768
  console.error(
83769
83769
  'could not parse data string from attribute "data" -',
83770
83770
  e.message,
@@ -83783,14 +83783,16 @@ function requireIndex_cjs () {
83783
83783
  }
83784
83784
 
83785
83785
  get requireMatch() {
83786
- return this.getAttribute('require-match') === 'true' && !this.allowCustomValue;
83786
+ return (
83787
+ this.getAttribute('require-match') === 'true' && !this.allowCustomValue
83788
+ );
83787
83789
  }
83788
83790
 
83789
- // eslint-disable-next-line class-methods-use-this
83791
+
83790
83792
  isValidDataType(data) {
83791
83793
  const isValid = Array.isArray(data);
83792
83794
  if (!isValid) {
83793
- // eslint-disable-next-line no-console
83795
+
83794
83796
  console.error('data must be an array, received:', data);
83795
83797
  }
83796
83798
 
@@ -83839,7 +83841,7 @@ function requireIndex_cjs () {
83839
83841
  }
83840
83842
  }
83841
83843
 
83842
- // eslint-disable-next-line class-methods-use-this
83844
+
83843
83845
  customValueTransformFn(val) {
83844
83846
  return val;
83845
83847
  }
@@ -83924,7 +83926,7 @@ function requireIndex_cjs () {
83924
83926
  // and not via default renderer, which renders only the data-name's value
83925
83927
  // in its own HTML template
83926
83928
  this.baseElement.renderer = (root, combo, model) => {
83927
- // eslint-disable-next-line no-param-reassign
83929
+
83928
83930
  root.innerHTML = model.item.outerHTML;
83929
83931
  };
83930
83932
  }
@@ -83942,7 +83944,9 @@ function requireIndex_cjs () {
83942
83944
  const val = this.baseElement.querySelector('input').value;
83943
83945
 
83944
83946
  if (val) {
83945
- return this.baseElement.items.some(item => item.dataset.name === val || item.dataset.id === val);
83947
+ return this.baseElement.items.some(
83948
+ (item) => item.dataset.name === val || item.dataset.id === val,
83949
+ );
83946
83950
  }
83947
83951
 
83948
83952
  return true;
@@ -83951,7 +83955,7 @@ function requireIndex_cjs () {
83951
83955
  init() {
83952
83956
  super.init?.();
83953
83957
 
83954
- // eslint-disable-next-line func-names
83958
+
83955
83959
  this.getValidity = function () {
83956
83960
  if (this.requireMatch && !this.isValueMatch()) {
83957
83961
  return {
@@ -84017,7 +84021,8 @@ function requireIndex_cjs () {
84017
84021
  }
84018
84022
 
84019
84023
  handleRequireMatchChange(shouldValidate) {
84020
- this.baseElement.allowCustomValue = shouldValidate || this.allowCustomValue;
84024
+ this.baseElement.allowCustomValue =
84025
+ shouldValidate || this.allowCustomValue;
84021
84026
  }
84022
84027
 
84023
84028
  attributeChangedCallback(attrName, oldValue, newValue) {
@@ -84129,6 +84134,10 @@ function requireIndex_cjs () {
84129
84134
  fontFamily: [label$9, placeholder$3, inputField$6, helperText$a, errorMessage$d],
84130
84135
  labelFontSize: { ...label$9, property: 'font-size' },
84131
84136
  labelFontWeight: { ...label$9, property: 'font-weight' },
84137
+ inputValueFontWeight: { ...inputField$6, property: 'font-weight' },
84138
+ inputPlaceholderFontWeight: { ...placeholder$3, property: 'font-weight' },
84139
+ helperTextFontWeight: { ...helperText$a, property: 'font-weight' },
84140
+ errorMessageFontWeight: { ...errorMessage$d, property: 'font-weight' },
84132
84141
  labelTextColor: [
84133
84142
  { ...label$9, property: 'color' },
84134
84143
  { ...label$9, property: '-webkit-text-fill-color' },
@@ -84402,6 +84411,10 @@ function requireIndex_cjs () {
84402
84411
  labelTextColor: globalRefs$D.colors.surface.dark,
84403
84412
  labelFontSize: '14px', // not taken from globals as it is fixed in all inputs
84404
84413
  labelFontWeight: '500', // not taken from globals as it is fixed in all inputs
84414
+ inputValueFontWeight: '400',
84415
+ inputPlaceholderFontWeight: '400',
84416
+ helperTextFontWeight: '400',
84417
+ errorMessageFontWeight: '400',
84405
84418
  valueTextColor: globalRefs$D.colors.surface.contrast,
84406
84419
  placeholderTextColor: globalRefs$D.colors.surface.dark,
84407
84420
  requiredIndicator: "'*'",
@@ -84441,7 +84454,6 @@ function requireIndex_cjs () {
84441
84454
  errorMessageIconPosition: '0 0.4em',
84442
84455
  errorMessageFontSize: '0.8125rem',
84443
84456
  errorMessageIconRepeat: 'no-repeat',
84444
- errorMessageIconRepeat: 'no-repeat',
84445
84457
 
84446
84458
  size: {
84447
84459
  xs: { fontSize: '12px', chipFontSize: '10px' },
@@ -84530,6 +84542,10 @@ function requireIndex_cjs () {
84530
84542
  [vars$11.fontFamily]: refs$1.fontFamily,
84531
84543
  [vars$11.labelFontSize]: refs$1.labelFontSize,
84532
84544
  [vars$11.labelFontWeight]: refs$1.labelFontWeight,
84545
+ [vars$11.inputValueFontWeight]: refs$1.inputValueFontWeight,
84546
+ [vars$11.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
84547
+ [vars$11.helperTextFontWeight]: refs$1.helperTextFontWeight,
84548
+ [vars$11.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
84533
84549
  [vars$11.labelTextColor]: refs$1.labelTextColor,
84534
84550
  [vars$11.errorMessageTextColor]: refs$1.errorMessageTextColor,
84535
84551
  [vars$11.inputBorderColor]: refs$1.borderColor,
@@ -86549,26 +86565,85 @@ function requireIndex_cjs () {
86549
86565
  .wrapper {
86550
86566
  display: flex;
86551
86567
  flex-direction: column;
86552
- gap: 0.5em;
86553
86568
  align-items: center;
86554
86569
  width: 100%;
86555
86570
  }
86556
- .timer {
86571
+ /* allow timer to grow along the main axis in the wrapper flex container */
86572
+ :host(:not([timer-inside="true"])) .timer {
86557
86573
  flex: 1;
86558
86574
  }
86575
+ :host([timer-inside="true"]) .timer {
86576
+ flex: 0 0 auto;
86577
+ }
86559
86578
  `,
86560
86579
  this,
86561
86580
  );
86562
86581
 
86582
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
86563
86583
  this.timer = this.shadowRoot.querySelector('.timer');
86564
86584
  this.button = this.shadowRoot.querySelector('.button');
86585
+ this.forwardingSlot = this.shadowRoot.querySelector('.button slot');
86565
86586
 
86566
86587
  this.timer.addEventListener('timer-started', () => this.onTimerStarted());
86567
86588
  this.timer.addEventListener('timer-ended', () => this.onTimerEnded());
86568
86589
 
86590
+ this.syncTimerPlacement();
86591
+
86569
86592
  this.button.addEventListener('click', this.onClick.bind(this));
86570
86593
  }
86571
86594
 
86595
+ static get observedAttributes() {
86596
+ return [
86597
+ ...(super.observedAttributes || []),
86598
+ 'timer-inside',
86599
+ 'timer-position',
86600
+ ];
86601
+ }
86602
+
86603
+ attributeChangedCallback(name, oldValue, newValue) {
86604
+ super.attributeChangedCallback?.(name, oldValue, newValue);
86605
+ if (name === 'timer-inside' || name === 'timer-position') {
86606
+ this.syncTimerPlacement();
86607
+ }
86608
+ }
86609
+
86610
+ get #isTimerInside() {
86611
+ return this.getAttribute('timer-inside') === 'true';
86612
+ }
86613
+
86614
+ get #isReversed() {
86615
+ return this.getAttribute('timer-position') === 'end';
86616
+ }
86617
+
86618
+ syncTimerPlacement() {
86619
+ if (this.#isTimerInside) {
86620
+ this.#placeTimerInsideButton(this.#isReversed);
86621
+ } else {
86622
+ this.#placeTimerOutsideButton();
86623
+ }
86624
+ }
86625
+
86626
+ #placeTimerInsideButton(reversed) {
86627
+ if (reversed) {
86628
+ // timer after label text (right)
86629
+ if (this.timer.previousSibling !== this.forwardingSlot) {
86630
+ this.button.appendChild(this.timer);
86631
+ }
86632
+ } else {
86633
+ // timer before label text (left) — matches default outside position (above/before button)
86634
+ if (this.timer.nextSibling !== this.forwardingSlot) {
86635
+ this.button.insertBefore(this.timer, this.forwardingSlot);
86636
+ }
86637
+ }
86638
+ }
86639
+
86640
+ #placeTimerOutsideButton() {
86641
+ // move timer back as a wrapper sibling, before the button so flex-column puts it above
86642
+ if (this.timer.parentElement !== this.wrapper) {
86643
+ this.wrapper.insertBefore(this.timer, this.button);
86644
+ }
86645
+ }
86646
+
86572
86647
  set onclick(val) {
86573
86648
  this.button.onclick = val;
86574
86649
  }
@@ -86616,8 +86691,26 @@ function requireIndex_cjs () {
86616
86691
  }
86617
86692
  }
86618
86693
 
86619
- const { host: host$p } = {
86620
- host: { selector: () => ':host' }};
86694
+ const {
86695
+ host: host$p,
86696
+ nestedTimer,
86697
+ nestedButton,
86698
+ timerInsideNotReversed,
86699
+ timerInsideReversed,
86700
+ } = {
86701
+ host: { selector: () => ':host' },
86702
+ nestedTimer: { selector: () => ':host([timer-inside="true"]) .timer' },
86703
+ nestedButton: {
86704
+ selector: () => ':host([timer-inside="true"]) .button',
86705
+ },
86706
+ timerInsideNotReversed: {
86707
+ selector: () =>
86708
+ ':host([timer-inside="true"]:not([timer-position="end"])) .timer',
86709
+ },
86710
+ timerInsideReversed: {
86711
+ selector: () => ':host([timer-inside="true"][timer-position="end"]) .timer',
86712
+ },
86713
+ };
86621
86714
 
86622
86715
  const TimerButtonClass = compose(
86623
86716
  createStyleMixin$1({
@@ -86626,6 +86719,30 @@ function requireIndex_cjs () {
86626
86719
  flexDirection: {},
86627
86720
  hostWidth: { ...host$p, property: 'width' },
86628
86721
  hostDirection: { ...host$p, property: 'direction' },
86722
+ timerTextColor: {
86723
+ ...nestedTimer,
86724
+ property: TimerClass.cssVarList.textColor,
86725
+ },
86726
+ timerIconColor: {
86727
+ ...nestedTimer,
86728
+ property: TimerClass.cssVarList.iconColor,
86729
+ },
86730
+ timerHostWidth: {
86731
+ ...nestedTimer,
86732
+ property: TimerClass.cssVarList.hostWidth,
86733
+ },
86734
+ buttonLabelSpacing: {
86735
+ ...nestedButton,
86736
+ property: ButtonClass.cssVarList.labelSpacing,
86737
+ },
86738
+ timerInsideGapEnd: {
86739
+ ...timerInsideNotReversed,
86740
+ property: 'margin-inline-end',
86741
+ },
86742
+ timerInsideGapStart: {
86743
+ ...timerInsideReversed,
86744
+ property: 'margin-inline-start',
86745
+ },
86629
86746
  },
86630
86747
  }),
86631
86748
  draggableMixin$1,
@@ -86641,11 +86758,35 @@ function requireIndex_cjs () {
86641
86758
 
86642
86759
  _horizontal: {
86643
86760
  [vars$S.flexDirection]: 'row',
86761
+ timerPosition: {
86762
+ end: {
86763
+ [vars$S.flexDirection]: 'row-reverse',
86764
+ },
86765
+ },
86766
+ },
86767
+
86768
+ timerPosition: {
86769
+ end: {
86770
+ [vars$S.flexDirection]: 'column-reverse',
86771
+ },
86644
86772
  },
86645
86773
 
86646
86774
  _fullWidth: {
86647
86775
  [vars$S.hostWidth]: '100%',
86648
86776
  },
86777
+
86778
+ _timerInside: {
86779
+ [vars$S.timerTextColor]: 'currentColor',
86780
+ [vars$S.timerIconColor]: 'currentColor',
86781
+ [vars$S.timerHostWidth]: 'auto',
86782
+ [vars$S.buttonLabelSpacing]: '0',
86783
+ [vars$S.timerInsideGapEnd]: `var(${vars$S.gap})`,
86784
+ timerPosition: {
86785
+ end: {
86786
+ [vars$S.timerInsideGapStart]: `var(${vars$S.gap})`,
86787
+ },
86788
+ },
86789
+ },
86649
86790
  };
86650
86791
 
86651
86792
  var timerButton$1 = /*#__PURE__*/Object.freeze({
@@ -91326,6 +91467,17 @@ function requireIndex_cjs () {
91326
91467
  labelFontSize: { ...label$8, property: 'font-size' },
91327
91468
  labelFontWeight: { ...label$8, property: 'font-weight' },
91328
91469
 
91470
+ inputValueFontWeight: [
91471
+ { ...input$1, property: 'font-weight' },
91472
+ { ...externalInput, property: 'font-weight' },
91473
+ ],
91474
+ inputPlaceholderFontWeight: [
91475
+ { selector: () => ':host input:placeholder-shown', property: 'font-weight' },
91476
+ { ...externalPlaceholder, property: 'font-weight' },
91477
+ ],
91478
+ helperTextFontWeight: { ...helperText$9, property: 'font-weight' },
91479
+ errorMessageFontWeight: { ...errorMessage$c, property: 'font-weight' },
91480
+
91329
91481
  labelTextColor: [
91330
91482
  { ...label$8, property: 'color' },
91331
91483
  { ...requiredIndicator$a, property: 'color' },
@@ -91572,6 +91724,10 @@ function requireIndex_cjs () {
91572
91724
  labelTextColor: globalRefs$p.colors.surface.dark,
91573
91725
  labelFontSize: '14px', // not taken from globals as it is fixed in all inputs
91574
91726
  labelFontWeight: '500', // not taken from globals as it is fixed in all inputs
91727
+ inputValueFontWeight: '400',
91728
+ inputPlaceholderFontWeight: '400',
91729
+ helperTextFontWeight: '400',
91730
+ errorMessageFontWeight: '400',
91575
91731
  valueTextColor: globalRefs$p.colors.surface.contrast,
91576
91732
  placeholderTextColor: globalRefs$p.colors.surface.dark,
91577
91733
  requiredIndicator: "'*'",
@@ -91711,6 +91867,10 @@ function requireIndex_cjs () {
91711
91867
  [vars$H.fontFamily]: refs.fontFamily,
91712
91868
  [vars$H.labelFontSize]: refs.labelFontSize,
91713
91869
  [vars$H.labelFontWeight]: refs.labelFontWeight,
91870
+ [vars$H.inputValueFontWeight]: refs.inputValueFontWeight,
91871
+ [vars$H.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
91872
+ [vars$H.helperTextFontWeight]: refs.helperTextFontWeight,
91873
+ [vars$H.errorMessageFontWeight]: refs.errorMessageFontWeight,
91714
91874
  [vars$H.labelTextColor]: refs.labelTextColor,
91715
91875
  [vars$H.labelRequiredIndicator]: refs.requiredIndicator,
91716
91876
  [vars$H.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -91965,6 +92125,16 @@ function requireIndex_cjs () {
91965
92125
 
91966
92126
  labelFontSize: { ...label$7, property: 'font-size' },
91967
92127
  labelFontWeight: { ...label$7, property: 'font-weight' },
92128
+ inputValueFontWeight: [
92129
+ { ...inputElement$2, property: 'font-weight' },
92130
+ { selector: () => ':host ::slotted(input)', property: 'font-weight' },
92131
+ ],
92132
+ inputPlaceholderFontWeight: [
92133
+ { ...inputElementPlaceholder, property: 'font-weight' },
92134
+ { selector: () => ':host ::slotted(input:placeholder-shown)', property: 'font-weight' },
92135
+ ],
92136
+ helperTextFontWeight: { ...helperText$8, property: 'font-weight' },
92137
+ errorMessageFontWeight: { ...errorMessage$b, property: 'font-weight' },
91968
92138
  labelTextColor: [
91969
92139
  { ...label$7, property: 'color' },
91970
92140
  { ...label$7, property: '-webkit-text-fill-color' },
@@ -92105,6 +92275,10 @@ function requireIndex_cjs () {
92105
92275
  [vars$G.fontFamily]: refs.fontFamily,
92106
92276
  [vars$G.labelFontSize]: refs.labelFontSize,
92107
92277
  [vars$G.labelFontWeight]: refs.labelFontWeight,
92278
+ [vars$G.inputValueFontWeight]: refs.inputValueFontWeight,
92279
+ [vars$G.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
92280
+ [vars$G.helperTextFontWeight]: refs.helperTextFontWeight,
92281
+ [vars$G.errorMessageFontWeight]: refs.errorMessageFontWeight,
92108
92282
  [vars$G.labelTextColor]: refs.labelTextColor,
92109
92283
  [vars$G.errorMessageTextColor]: refs.errorMessageTextColor,
92110
92284
  [vars$G.inputHorizontalPadding]: refs.horizontalPadding,
@@ -92197,6 +92371,10 @@ function requireIndex_cjs () {
92197
92371
  [vars$F.fontFamily]: refs.fontFamily,
92198
92372
  [vars$F.labelFontSize]: refs.labelFontSize,
92199
92373
  [vars$F.labelFontWeight]: refs.labelFontWeight,
92374
+ [vars$F.inputValueFontWeight]: refs.inputValueFontWeight,
92375
+ [vars$F.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
92376
+ [vars$F.helperTextFontWeight]: refs.helperTextFontWeight,
92377
+ [vars$F.errorMessageFontWeight]: refs.errorMessageFontWeight,
92200
92378
  [vars$F.labelTextColor]: refs.labelTextColor,
92201
92379
  [vars$F.errorMessageTextColor]: refs.errorMessageTextColor,
92202
92380
  [vars$F.inputValueTextColor]: refs.valueTextColor,
@@ -92322,6 +92500,10 @@ function requireIndex_cjs () {
92322
92500
  [vars$E.fontFamily]: refs.fontFamily,
92323
92501
  [vars$E.labelFontSize]: refs.labelFontSize,
92324
92502
  [vars$E.labelFontWeight]: refs.labelFontWeight,
92503
+ [vars$E.inputValueFontWeight]: refs.inputValueFontWeight,
92504
+ [vars$E.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
92505
+ [vars$E.helperTextFontWeight]: refs.helperTextFontWeight,
92506
+ [vars$E.errorMessageFontWeight]: refs.errorMessageFontWeight,
92325
92507
  [vars$E.labelTextColor]: refs.labelTextColor,
92326
92508
  [vars$E.errorMessageTextColor]: refs.errorMessageTextColor,
92327
92509
  [vars$E.inputValueTextColor]: refs.valueTextColor,
@@ -92394,6 +92576,12 @@ function requireIndex_cjs () {
92394
92576
  hostDirection: { ...host$i, property: 'direction' },
92395
92577
  fontSize: [host$i, textArea$2],
92396
92578
  fontFamily: [label$6, inputField$3, helperText$7, errorMessage$a],
92579
+ labelFontSize: { ...label$6, property: 'font-size' },
92580
+ labelFontWeight: { ...label$6, property: 'font-weight' },
92581
+ inputValueFontWeight: { ...textArea$2, property: 'font-weight' },
92582
+ inputPlaceholderFontWeight: { ...placeholder$1, property: 'font-weight' },
92583
+ helperTextFontWeight: { ...helperText$7, property: 'font-weight' },
92584
+ errorMessageFontWeight: { ...errorMessage$a, property: 'font-weight' },
92397
92585
  labelTextColor: [
92398
92586
  { ...label$6, property: 'color' },
92399
92587
  { ...label$6, property: '-webkit-text-fill-color' },
@@ -92459,6 +92647,12 @@ function requireIndex_cjs () {
92459
92647
  [vars$D.hostDirection]: refs.direction,
92460
92648
  [vars$D.fontSize]: refs.fontSize,
92461
92649
  [vars$D.fontFamily]: refs.fontFamily,
92650
+ [vars$D.labelFontSize]: refs.labelFontSize,
92651
+ [vars$D.labelFontWeight]: refs.labelFontWeight,
92652
+ [vars$D.inputValueFontWeight]: refs.inputValueFontWeight,
92653
+ [vars$D.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
92654
+ [vars$D.helperTextFontWeight]: refs.helperTextFontWeight,
92655
+ [vars$D.errorMessageFontWeight]: refs.errorMessageFontWeight,
92462
92656
  [vars$D.labelTextColor]: refs.labelTextColor,
92463
92657
  [vars$D.labelRequiredIndicator]: refs.requiredIndicator,
92464
92658
  [vars$D.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -93632,6 +93826,12 @@ descope-enriched-text {
93632
93826
  hostWidth: { property: 'width' },
93633
93827
  hostDirection: { ...host$e, property: 'direction' },
93634
93828
  fontFamily: [host$e, { ...label$5 }],
93829
+ labelFontWeight: { ...label$5, property: 'font-weight' },
93830
+ errorMessageFontWeight: { ...errorMessage$7, property: 'font-weight' },
93831
+ digitValueFontWeight: {
93832
+ selector: TextFieldClass.componentName,
93833
+ property: textVars$3.inputValueFontWeight,
93834
+ },
93635
93835
  labelTextColor: [
93636
93836
  { ...label$5, property: 'color' },
93637
93837
  { ...label$5, property: '-webkit-text-fill-color' },
@@ -93763,8 +93963,11 @@ descope-enriched-text {
93763
93963
  [vars$v.fontSize]: refs.fontSize,
93764
93964
  [vars$v.labelTextColor]: refs.labelTextColor,
93765
93965
  [vars$v.labelRequiredIndicator]: refs.requiredIndicator,
93966
+ [vars$v.labelFontWeight]: refs.labelFontWeight,
93766
93967
  [vars$v.errorMessageTextColor]: refs.errorMessageTextColor,
93968
+ [vars$v.errorMessageFontWeight]: refs.errorMessageFontWeight,
93767
93969
  [vars$v.digitValueTextColor]: refs.valueTextColor,
93970
+ [vars$v.digitValueFontWeight]: refs.inputValueFontWeight,
93768
93971
  [vars$v.digitPadding]: '0',
93769
93972
  [vars$v.digitTextAlign]: 'center',
93770
93973
  [vars$v.digitSpacing]: '4px',
@@ -95343,6 +95546,15 @@ descope-enriched-text {
95343
95546
  { ...countryCodeInput, property: 'padding-right' },
95344
95547
  ],
95345
95548
 
95549
+ labelFontSize: { ...label$4, property: 'font-size' },
95550
+ labelFontWeight: { ...label$4, property: 'font-weight' },
95551
+ inputValueFontWeight: [
95552
+ { ...phoneInput$1, property: textVars$2.inputValueFontWeight },
95553
+ { ...countryCodeInput, property: comboVars.inputValueFontWeight },
95554
+ ],
95555
+ inputPlaceholderFontWeight: { ...phoneInput$1, property: textVars$2.inputPlaceholderFontWeight },
95556
+ helperTextFontWeight: { ...helperText$4, property: 'font-weight' },
95557
+ errorMessageFontWeight: { ...errorMessage$6, property: 'font-weight' },
95346
95558
  labelTextColor: [
95347
95559
  { ...label$4, property: 'color' },
95348
95560
  { ...label$4, property: '-webkit-text-fill-color' },
@@ -95498,6 +95710,12 @@ descope-enriched-text {
95498
95710
  [vars$s.hostDirection]: refs.direction,
95499
95711
  [vars$s.fontSize]: refs.fontSize,
95500
95712
  [vars$s.fontFamily]: refs.fontFamily,
95713
+ [vars$s.labelFontSize]: refs.labelFontSize,
95714
+ [vars$s.labelFontWeight]: refs.labelFontWeight,
95715
+ [vars$s.inputValueFontWeight]: refs.inputValueFontWeight,
95716
+ [vars$s.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
95717
+ [vars$s.helperTextFontWeight]: refs.helperTextFontWeight,
95718
+ [vars$s.errorMessageFontWeight]: refs.errorMessageFontWeight,
95501
95719
  [vars$s.labelTextColor]: refs.labelTextColor,
95502
95720
  [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
95503
95721
  [vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -95641,6 +95859,10 @@ descope-enriched-text {
95641
95859
 
95642
95860
  labelFontSize: { ...label$3, property: 'font-size' },
95643
95861
  labelFontWeight: { ...label$3, property: 'font-weight' },
95862
+ inputValueFontWeight: { ...phoneInput, property: textVars$1.inputValueFontWeight },
95863
+ inputPlaceholderFontWeight: { ...phoneInput, property: textVars$1.inputPlaceholderFontWeight },
95864
+ helperTextFontWeight: { ...helperText$3, property: 'font-weight' },
95865
+ errorMessageFontWeight: { ...errorMessage$5, property: 'font-weight' },
95644
95866
  labelTextColor: [
95645
95867
  { ...label$3, property: 'color' },
95646
95868
  { ...label$3, property: '-webkit-text-fill-color' },
@@ -95783,6 +96005,10 @@ descope-enriched-text {
95783
96005
  [vars$r.fontFamily]: refs.fontFamily,
95784
96006
  [vars$r.labelFontSize]: refs.labelFontSize,
95785
96007
  [vars$r.labelFontWeight]: refs.labelFontWeight,
96008
+ [vars$r.inputValueFontWeight]: refs.inputValueFontWeight,
96009
+ [vars$r.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
96010
+ [vars$r.helperTextFontWeight]: refs.helperTextFontWeight,
96011
+ [vars$r.errorMessageFontWeight]: refs.errorMessageFontWeight,
95786
96012
  [vars$r.labelTextColor]: refs.labelTextColor,
95787
96013
  [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
95788
96014
  [vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -96232,6 +96458,16 @@ descope-enriched-text {
96232
96458
  fontFamily: [label$2, errorMessage$4, helperText$2],
96233
96459
  labelFontSize: { ...label$2, property: 'font-size' },
96234
96460
  labelFontWeight: { ...label$2, property: 'font-weight' },
96461
+ inputValueFontWeight: {
96462
+ ...passwordInput,
96463
+ property: PasswordClass.cssVarList.inputValueFontWeight,
96464
+ },
96465
+ inputPlaceholderFontWeight: {
96466
+ ...passwordInput,
96467
+ property: PasswordClass.cssVarList.inputPlaceholderFontWeight,
96468
+ },
96469
+ helperTextFontWeight: { ...helperText$2, property: 'font-weight' },
96470
+ errorMessageFontWeight: { ...errorMessage$4, property: 'font-weight' },
96235
96471
  labelTextColor: { ...label$2, property: 'color' },
96236
96472
  errorMessageTextColor: { ...errorMessage$4, property: 'color' },
96237
96473
  errorMessageIcon: { ...errorMessage$4, property: 'background-image' },
@@ -96337,6 +96573,10 @@ descope-enriched-text {
96337
96573
  [vars$q.fontFamily]: refs.fontFamily,
96338
96574
  [vars$q.labelFontSize]: refs.labelFontSize,
96339
96575
  [vars$q.labelFontWeight]: refs.labelFontWeight,
96576
+ [vars$q.inputValueFontWeight]: refs.inputValueFontWeight,
96577
+ [vars$q.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
96578
+ [vars$q.helperTextFontWeight]: refs.helperTextFontWeight,
96579
+ [vars$q.errorMessageFontWeight]: refs.errorMessageFontWeight,
96340
96580
  [vars$q.labelTextColor]: refs.labelTextColor,
96341
96581
  [vars$q.spaceBetweenInputs]: '1em',
96342
96582
  [vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -98703,6 +98943,10 @@ descope-enriched-text {
98703
98943
  fontFamily: [label, placeholder, inputField, helperText$1, errorMessage$2, chipLabel],
98704
98944
  labelFontSize: { ...label, property: 'font-size' },
98705
98945
  labelFontWeight: { ...label, property: 'font-weight' },
98946
+ inputValueFontWeight: { ...inputField, property: 'font-weight' },
98947
+ inputPlaceholderFontWeight: { ...placeholder, property: 'font-weight' },
98948
+ helperTextFontWeight: { ...helperText$1, property: 'font-weight' },
98949
+ errorMessageFontWeight: { ...errorMessage$2, property: 'font-weight' },
98706
98950
  labelTextColor: [
98707
98951
  { ...label, property: 'color' },
98708
98952
  { ...requiredIndicator, property: 'color' },
@@ -98924,6 +99168,10 @@ descope-enriched-text {
98924
99168
  [vars$i.fontFamily]: refs.fontFamily,
98925
99169
  [vars$i.labelFontSize]: refs.labelFontSize,
98926
99170
  [vars$i.labelFontWeight]: refs.labelFontWeight,
99171
+ [vars$i.inputValueFontWeight]: refs.inputValueFontWeight,
99172
+ [vars$i.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
99173
+ [vars$i.helperTextFontWeight]: refs.helperTextFontWeight,
99174
+ [vars$i.errorMessageFontWeight]: refs.errorMessageFontWeight,
98927
99175
  [vars$i.labelTextColor]: refs.labelTextColor,
98928
99176
  [vars$i.errorMessageTextColor]: refs.errorMessageTextColor,
98929
99177
  [vars$i.inputBorderColor]: refs.borderColor,
@@ -102875,6 +103123,26 @@ descope-enriched-text {
102875
103123
  selector: TextFieldClass.componentName,
102876
103124
  property: TextFieldClass.cssVarList.errorMessageFontSize,
102877
103125
  },
103126
+ labelFontWeight: {
103127
+ selector: TextFieldClass.componentName,
103128
+ property: TextFieldClass.cssVarList.labelFontWeight,
103129
+ },
103130
+ inputValueFontWeight: {
103131
+ selector: TextFieldClass.componentName,
103132
+ property: TextFieldClass.cssVarList.inputValueFontWeight,
103133
+ },
103134
+ inputPlaceholderFontWeight: {
103135
+ selector: TextFieldClass.componentName,
103136
+ property: TextFieldClass.cssVarList.inputPlaceholderFontWeight,
103137
+ },
103138
+ helperTextFontWeight: {
103139
+ selector: TextFieldClass.componentName,
103140
+ property: TextFieldClass.cssVarList.helperTextFontWeight,
103141
+ },
103142
+ errorMessageFontWeight: {
103143
+ selector: TextFieldClass.componentName,
103144
+ property: TextFieldClass.cssVarList.errorMessageFontWeight,
103145
+ },
102878
103146
  },
102879
103147
  }),
102880
103148
  portalMixin({
@@ -102926,6 +103194,12 @@ descope-enriched-text {
102926
103194
  [vars$8.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
102927
103195
  [vars$8.errorMessageIconPosition]: refs.errorMessageIconPosition,
102928
103196
  [vars$8.errorMessageFontSize]: refs.errorMessageFontSize,
103197
+
103198
+ [vars$8.labelFontWeight]: refs.labelFontWeight,
103199
+ [vars$8.inputValueFontWeight]: refs.inputValueFontWeight,
103200
+ [vars$8.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
103201
+ [vars$8.helperTextFontWeight]: refs.helperTextFontWeight,
103202
+ [vars$8.errorMessageFontWeight]: refs.errorMessageFontWeight,
102929
103203
  };
102930
103204
 
102931
103205
  var dateField$1 = /*#__PURE__*/Object.freeze({
@@ -104209,6 +104483,56 @@ descope-enriched-text {
104209
104483
  property: PhoneFieldInputBoxClass.cssVarList.errorMessageFontSize,
104210
104484
  },
104211
104485
  ],
104486
+ labelFontWeight: [
104487
+ {
104488
+ selector: () => PhoneFieldClass.componentName,
104489
+ property: PhoneFieldClass.cssVarList.labelFontWeight,
104490
+ },
104491
+ {
104492
+ selector: () => PhoneFieldInputBoxClass.componentName,
104493
+ property: PhoneFieldInputBoxClass.cssVarList.labelFontWeight,
104494
+ },
104495
+ ],
104496
+ inputValueFontWeight: [
104497
+ {
104498
+ selector: () => PhoneFieldClass.componentName,
104499
+ property: PhoneFieldClass.cssVarList.inputValueFontWeight,
104500
+ },
104501
+ {
104502
+ selector: () => PhoneFieldInputBoxClass.componentName,
104503
+ property: PhoneFieldInputBoxClass.cssVarList.inputValueFontWeight,
104504
+ },
104505
+ ],
104506
+ inputPlaceholderFontWeight: [
104507
+ {
104508
+ selector: () => PhoneFieldClass.componentName,
104509
+ property: PhoneFieldClass.cssVarList.inputPlaceholderFontWeight,
104510
+ },
104511
+ {
104512
+ selector: () => PhoneFieldInputBoxClass.componentName,
104513
+ property: PhoneFieldInputBoxClass.cssVarList.inputPlaceholderFontWeight,
104514
+ },
104515
+ ],
104516
+ helperTextFontWeight: [
104517
+ {
104518
+ selector: () => PhoneFieldClass.componentName,
104519
+ property: PhoneFieldClass.cssVarList.helperTextFontWeight,
104520
+ },
104521
+ {
104522
+ selector: () => PhoneFieldInputBoxClass.componentName,
104523
+ property: PhoneFieldInputBoxClass.cssVarList.helperTextFontWeight,
104524
+ },
104525
+ ],
104526
+ errorMessageFontWeight: [
104527
+ {
104528
+ selector: () => PhoneFieldClass.componentName,
104529
+ property: PhoneFieldClass.cssVarList.errorMessageFontWeight,
104530
+ },
104531
+ {
104532
+ selector: () => PhoneFieldInputBoxClass.componentName,
104533
+ property: PhoneFieldInputBoxClass.cssVarList.errorMessageFontWeight,
104534
+ },
104535
+ ],
104212
104536
  },
104213
104537
  }),
104214
104538
  draggableMixin,
@@ -104219,6 +104543,11 @@ descope-enriched-text {
104219
104543
 
104220
104544
  const hybridField = {
104221
104545
  [vars$3.hostDirection]: refs.direction,
104546
+ [vars$3.labelFontWeight]: refs.labelFontWeight,
104547
+ [vars$3.inputValueFontWeight]: refs.inputValueFontWeight,
104548
+ [vars$3.inputPlaceholderFontWeight]: refs.inputPlaceholderFontWeight,
104549
+ [vars$3.helperTextFontWeight]: refs.helperTextFontWeight,
104550
+ [vars$3.errorMessageFontWeight]: refs.errorMessageFontWeight,
104222
104551
 
104223
104552
  // error message icon
104224
104553
  [vars$3.errorMessageIcon]: refs.errorMessageIcon,
@@ -105917,7 +106246,7 @@ const AddressField = React__default.default.forwardRef(({ size = 'md', ...props
105917
106246
 
105918
106247
  const CountrySubdivisionCityField = React__default.default.forwardRef(({ size = 'md', ...props }, ref) => (React__default.default.createElement("descope-country-subdivision-city-field", { size: size, ...props, ref: ref })));
105919
106248
 
105920
- const TimerButton = React__default.default.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, ...props }, ref) => (React__default.default.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, ref: ref }, children)));
106249
+ const TimerButton = React__default.default.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, 'timer-position': timerPosition = 'start', 'timer-inside': timerInside = false, ...props }, ref) => (React__default.default.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, "timer-position": timerPosition, "timer-inside": timerInside, ref: ref }, children)));
105921
106250
 
105922
106251
  const applyDefaults = ({ paddingX, paddingY, background, spaceBetween }) => ({
105923
106252
  'st-horizontal-padding': !paddingX || isNumeric(paddingX)