@app-studio/web 0.8.25 → 0.8.27

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.
@@ -195,20 +195,16 @@
195
195
  });
196
196
  Horizontal.displayName = 'Horizontal';
197
197
 
198
- var _excluded$3 = ["isReversed"];
199
- var Center = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
200
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
201
- return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
202
- display: "flex",
203
- justifyContent: "center",
204
- alignItems: "center"
205
- }, props, {
206
- ref: ref
207
- }));
208
- });
198
+ var Center = /*#__PURE__*/React__default.forwardRef((props, ref) => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
199
+ display: "flex",
200
+ justifyContent: "center",
201
+ alignItems: "center"
202
+ }, props, {
203
+ ref: ref
204
+ }))));
209
205
  Center.displayName = 'Center';
210
206
 
211
- var _excluded$4 = ["size", "color", "filled", "strokeWidth"],
207
+ var _excluded$3 = ["size", "color", "filled", "strokeWidth"],
212
208
  _excluded2 = ["size", "color", "filled", "strokeWidth"],
213
209
  _excluded3 = ["size", "color", "filled", "strokeWidth"],
214
210
  _excluded4 = ["size", "color", "filled", "strokeWidth"],
@@ -281,7 +277,7 @@
281
277
  filled = false,
282
278
  strokeWidth = 1
283
279
  } = _ref2,
284
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$4);
280
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
285
281
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
286
282
  size: size,
287
283
  color: color
@@ -1657,7 +1653,7 @@
1657
1653
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
1658
1654
  var Alert = AlertComponent;
1659
1655
 
1660
- var _excluded$5 = ["ratio", "children"];
1656
+ var _excluded$4 = ["ratio", "children"];
1661
1657
  // Declaration of a functional component named AspectRatioView.
1662
1658
  var AspectRatioView = _ref => {
1663
1659
  var {
@@ -1667,7 +1663,7 @@
1667
1663
  children
1668
1664
  // Spread the rest of the props to inherit additional properties.
1669
1665
  } = _ref,
1670
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1666
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
1671
1667
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
1672
1668
  width: '100%',
1673
1669
  position: "relative",
@@ -1683,14 +1679,14 @@
1683
1679
  }, children));
1684
1680
  };
1685
1681
 
1686
- var _excluded$6 = ["ratio", "children"];
1682
+ var _excluded$5 = ["ratio", "children"];
1687
1683
  // Declaration of the AspectRatioComponent functional component with destructured props.
1688
1684
  var AspectRatioComponent = _ref => {
1689
1685
  var {
1690
1686
  ratio,
1691
1687
  children
1692
1688
  } = _ref,
1693
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1689
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1694
1690
  // Beginning of the return statement in the functional component.
1695
1691
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
1696
1692
  ratio: ratio
@@ -1960,7 +1956,7 @@
1960
1956
  '6xl': 64
1961
1957
  };
1962
1958
 
1963
- var _excluded$7 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1959
+ var _excluded$6 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1964
1960
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
1965
1961
  var LinkView = _ref => {
1966
1962
  var {
@@ -1983,7 +1979,7 @@
1983
1979
  // Setter function for the hover state, noop function provided by default.
1984
1980
  setIsHovered = () => {}
1985
1981
  } = _ref,
1986
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1982
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1987
1983
  // Function to handle mouse enter/leave events to toggle hover state.
1988
1984
  var handleHover = () => {
1989
1985
  if (underline === 'hover') setIsHovered(true);
@@ -2141,7 +2137,7 @@
2141
2137
  slow: 300
2142
2138
  };
2143
2139
 
2144
- var _excluded$8 = ["size", "speed", "color"],
2140
+ var _excluded$7 = ["size", "speed", "color"],
2145
2141
  _excluded2$1 = ["size", "speed", "color"],
2146
2142
  _excluded3$1 = ["size", "speed", "color"],
2147
2143
  _excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
@@ -2151,7 +2147,7 @@
2151
2147
  speed = 'normal',
2152
2148
  color = 'theme.loading'
2153
2149
  } = _ref,
2154
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2150
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2155
2151
  var theme = appStudio.useTheme();
2156
2152
  var colorStyle = theme.getColor(color);
2157
2153
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
@@ -2304,7 +2300,7 @@
2304
2300
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
2305
2301
  var Loader = LoaderComponent;
2306
2302
 
2307
- var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
2303
+ var _excluded$8 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
2308
2304
  var contrast = /*#__PURE__*/require('contrast');
2309
2305
  var ButtonView = _ref => {
2310
2306
  var _props$onClick;
@@ -2340,7 +2336,7 @@
2340
2336
  setIsHovered = () => {}
2341
2337
  // Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
2342
2338
  } = _ref,
2343
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
2339
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2344
2340
  var {
2345
2341
  getColor
2346
2342
  } = appStudio.useTheme();
@@ -2455,14 +2451,14 @@
2455
2451
  };
2456
2452
  var Button = ButtonComponent;
2457
2453
 
2458
- var _excluded$a = ["src", "color"],
2454
+ var _excluded$9 = ["src", "color"],
2459
2455
  _excluded2$2 = ["path"];
2460
2456
  var FileSVG = _ref => {
2461
2457
  var {
2462
2458
  src,
2463
2459
  color
2464
2460
  } = _ref,
2465
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2461
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
2466
2462
  var {
2467
2463
  getColor
2468
2464
  } = appStudio.useTheme();
@@ -2531,7 +2527,7 @@
2531
2527
  };
2532
2528
  };
2533
2529
 
2534
- var _excluded$b = ["children", "styles"];
2530
+ var _excluded$a = ["children", "styles"];
2535
2531
  var HelperText = _ref => {
2536
2532
  var {
2537
2533
  children,
@@ -2539,7 +2535,7 @@
2539
2535
  helperText: {}
2540
2536
  }
2541
2537
  } = _ref,
2542
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2538
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2543
2539
  return /*#__PURE__*/React__default.createElement(Text, Object.assign({
2544
2540
  size: "xs",
2545
2541
  marginVertical: 0,
@@ -2548,7 +2544,7 @@
2548
2544
  }, styles['helperText'], props), children);
2549
2545
  };
2550
2546
 
2551
- var _excluded$c = ["children", "helperText", "error", "styles"];
2547
+ var _excluded$b = ["children", "helperText", "error", "styles"];
2552
2548
  var FieldContainer = _ref => {
2553
2549
  var {
2554
2550
  children,
@@ -2556,7 +2552,7 @@
2556
2552
  error = false,
2557
2553
  styles
2558
2554
  } = _ref,
2559
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2555
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2560
2556
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
2561
2557
  gap: 5,
2562
2558
  position: "relative"
@@ -2615,7 +2611,7 @@
2615
2611
  paddingRight: 36
2616
2612
  };
2617
2613
 
2618
- var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2614
+ var _excluded$c = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2619
2615
  var FieldContent = _ref => {
2620
2616
  var {
2621
2617
  shadow,
@@ -2634,7 +2630,7 @@
2634
2630
  pickerBox: {}
2635
2631
  }
2636
2632
  } = _ref,
2637
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2633
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2638
2634
  var isInteractive = (isHovered || isFocused) && !isDisabled;
2639
2635
  var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
2640
2636
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
@@ -2655,12 +2651,12 @@
2655
2651
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
2656
2652
  };
2657
2653
 
2658
- var _excluded$e = ["children"];
2654
+ var _excluded$d = ["children"];
2659
2655
  var FieldIcons = _ref => {
2660
2656
  var {
2661
2657
  children
2662
2658
  } = _ref,
2663
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2659
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2664
2660
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
2665
2661
  gap: 10,
2666
2662
  right: 16,
@@ -2712,7 +2708,7 @@
2712
2708
  }
2713
2709
  };
2714
2710
 
2715
- var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
2711
+ var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
2716
2712
  var LabelView = _ref => {
2717
2713
  var {
2718
2714
  children,
@@ -2728,7 +2724,7 @@
2728
2724
  size = 'sm'
2729
2725
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
2730
2726
  } = _ref,
2731
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2727
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2732
2728
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
2733
2729
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
2734
2730
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -2760,7 +2756,7 @@
2760
2756
  var Label = LabelComponent;
2761
2757
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
2762
2758
 
2763
- var _excluded$g = ["children", "size", "error", "color", "styles", "helperText"];
2759
+ var _excluded$f = ["children", "size", "error", "color", "styles", "helperText"];
2764
2760
  var FieldLabel = _ref => {
2765
2761
  var {
2766
2762
  children,
@@ -2771,7 +2767,7 @@
2771
2767
  label: {}
2772
2768
  }
2773
2769
  } = _ref,
2774
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2770
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2775
2771
  return /*#__PURE__*/React__default.createElement(Label, Object.assign({
2776
2772
  top: 6,
2777
2773
  zIndex: 1000,
@@ -2784,12 +2780,12 @@
2784
2780
  }, styles['label'], props), children);
2785
2781
  };
2786
2782
 
2787
- var _excluded$h = ["children"];
2783
+ var _excluded$g = ["children"];
2788
2784
  var FieldWrapper = _ref => {
2789
2785
  var {
2790
2786
  children
2791
2787
  } = _ref,
2792
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2788
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2793
2789
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
2794
2790
  width: "100%"
2795
2791
  }, props), children);
@@ -2805,7 +2801,7 @@
2805
2801
  xl: 16
2806
2802
  };
2807
2803
 
2808
- var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
2804
+ var _excluded$h = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
2809
2805
  _excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
2810
2806
  _excluded3$2 = ["option", "size", "removeOption"],
2811
2807
  _excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
@@ -2819,7 +2815,7 @@
2819
2815
  callback = () => {},
2820
2816
  style
2821
2817
  } = _ref,
2822
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2818
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2823
2819
  // Handles the click event on an option by invoking the callback with the selected option's value.
2824
2820
  var handleOptionClick = option => callback(option);
2825
2821
  // Toggles the hover state on the item.
@@ -3281,7 +3277,7 @@
3281
3277
  }
3282
3278
  };
3283
3279
 
3284
- var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "styles"];
3280
+ var _excluded$i = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "styles"];
3285
3281
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
3286
3282
  type: "checkbox"
3287
3283
  }, props));
@@ -3311,7 +3307,7 @@
3311
3307
  label: {}
3312
3308
  }
3313
3309
  } = _ref,
3314
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3310
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3315
3311
  var handleToggle = event => {
3316
3312
  if (!isReadOnly) {
3317
3313
  setValue(!value);
@@ -3401,7 +3397,7 @@
3401
3397
  // Export of the useTextAreaState hook for external usage.
3402
3398
  };
3403
3399
 
3404
- var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
3400
+ var _excluded$j = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
3405
3401
  var TextAreaView = _ref => {
3406
3402
  var {
3407
3403
  id,
@@ -3441,7 +3437,7 @@
3441
3437
  field: {}
3442
3438
  }
3443
3439
  } = _ref,
3444
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3440
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3445
3441
  var isWithLabel = !!(isFocused && label);
3446
3442
  var fieldStyles = Object.assign({
3447
3443
  margin: 0,
@@ -3571,7 +3567,7 @@
3571
3567
  };
3572
3568
  };
3573
3569
 
3574
- var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3570
+ var _excluded$k = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3575
3571
  var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
3576
3572
  type: "text"
3577
3573
  }, props));
@@ -3614,7 +3610,7 @@
3614
3610
  onFocus,
3615
3611
  onBlur = () => {}
3616
3612
  } = _ref,
3617
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3613
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3618
3614
  var {
3619
3615
  getColor
3620
3616
  } = appStudio.useTheme();
@@ -3795,7 +3791,7 @@
3795
3791
  '6xl': 60
3796
3792
  };
3797
3793
 
3798
- var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles", "infoText", "helperText"];
3794
+ var _excluded$l = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles", "infoText", "helperText"];
3799
3795
  var CheckboxView = _ref => {
3800
3796
  var {
3801
3797
  id,
@@ -3823,7 +3819,7 @@
3823
3819
  },
3824
3820
  infoText
3825
3821
  } = _ref,
3826
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
3822
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3827
3823
  var handleHover = () => setIsHovered(!isHovered);
3828
3824
  var handleChange = () => {
3829
3825
  if (!isReadOnly && !isDisabled) {
@@ -5382,11 +5378,11 @@
5382
5378
  xl: 16
5383
5379
  };
5384
5380
 
5385
- var _excluded$n = ["size"],
5381
+ var _excluded$m = ["size"],
5386
5382
  _excluded2$4 = ["size"],
5387
5383
  _excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
5388
5384
  var CountryList = _ref => {
5389
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
5385
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5390
5386
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
5391
5387
  as: "ul"
5392
5388
  }, props));
@@ -5625,7 +5621,7 @@
5625
5621
  };
5626
5622
  };
5627
5623
 
5628
- var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
5624
+ var _excluded$n = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
5629
5625
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
5630
5626
  type: "date"
5631
5627
  }, props));
@@ -5659,7 +5655,7 @@
5659
5655
  onChange,
5660
5656
  onChangeText
5661
5657
  } = _ref,
5662
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
5658
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
5663
5659
  var isWithLabel = !!(isFocused && label);
5664
5660
  var handleHover = () => setIsHovered(!isHovered);
5665
5661
  var handleFocus = () => setIsFocused(true);
@@ -5747,7 +5743,7 @@
5747
5743
  }, props, textFieldStates);
5748
5744
  };
5749
5745
 
5750
- var _excluded$p = ["visibleIcon", "hiddenIcon"],
5746
+ var _excluded$o = ["visibleIcon", "hiddenIcon"],
5751
5747
  _excluded2$5 = ["isVisible", "setIsVisible"];
5752
5748
  var PasswordComponent = _ref => {
5753
5749
  var {
@@ -5758,7 +5754,7 @@
5758
5754
  size: 14
5759
5755
  })
5760
5756
  } = _ref,
5761
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
5757
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
5762
5758
  var _usePasswordState = usePasswordState(props),
5763
5759
  {
5764
5760
  isVisible,
@@ -5812,7 +5808,7 @@
5812
5808
  };
5813
5809
  };
5814
5810
 
5815
- var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
5811
+ var _excluded$p = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
5816
5812
  // Defines the functional component 'ComboBoxView' with destructured props.
5817
5813
  var ComboBoxView = _ref => {
5818
5814
  var {
@@ -5837,7 +5833,7 @@
5837
5833
  setIsDropdownVisible
5838
5834
  // Collects all further props not destructured explicitly.
5839
5835
  } = _ref,
5840
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
5836
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
5841
5837
  // Sets up an effect to handle clicking outside the dropdown to close it.
5842
5838
  React.useEffect(() => {
5843
5839
  var handleClickOutside = event => {
@@ -5948,7 +5944,7 @@
5948
5944
  }))))))))))));
5949
5945
  };
5950
5946
 
5951
- var _excluded$r = ["id", "name", "items", "placeholder", "searchPlaceholder"];
5947
+ var _excluded$q = ["id", "name", "items", "placeholder", "searchPlaceholder"];
5952
5948
  // Defines the ComboBoxComponent functional component with ComboBoxProps
5953
5949
  var ComboBoxComponent = _ref => {
5954
5950
  var {
@@ -5964,7 +5960,7 @@
5964
5960
  searchPlaceholder
5965
5961
  // Destructures the rest of the props not explicitly defined
5966
5962
  } = _ref,
5967
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
5963
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
5968
5964
  // Initializes ComboBox state using custom hook with items and placeholders
5969
5965
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
5970
5966
  return (
@@ -5980,7 +5976,7 @@
5980
5976
  // Exports the ComboBoxComponent as ComboBox
5981
5977
  var ComboBox = ComboBoxComponent;
5982
5978
 
5983
- var _excluded$s = ["children", "autoFocus", "initFocus", "onChange"];
5979
+ var _excluded$r = ["children", "autoFocus", "initFocus", "onChange"];
5984
5980
  var FocusContext = /*#__PURE__*/React.createContext({
5985
5981
  active: false,
5986
5982
  focusNextInput: () => {},
@@ -5996,7 +5992,7 @@
5996
5992
  initFocus,
5997
5993
  onChange = () => {}
5998
5994
  } = _ref,
5999
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
5995
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
6000
5996
  var formik$1 = formik.useFormikContext();
6001
5997
  React.useEffect(() => {
6002
5998
  onChange(formik$1.values);
@@ -6044,7 +6040,7 @@
6044
6040
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
6045
6041
  };
6046
6042
 
6047
- var _excluded$t = ["name", "type"];
6043
+ var _excluded$s = ["name", "type"];
6048
6044
  var getInputTypeProps = type => {
6049
6045
  switch (type) {
6050
6046
  case 'email':
@@ -6083,7 +6079,7 @@
6083
6079
  name,
6084
6080
  type
6085
6081
  } = _ref,
6086
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
6082
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
6087
6083
  var focus = useFormFocus();
6088
6084
  var {
6089
6085
  touched,
@@ -6127,13 +6123,13 @@
6127
6123
  } : {});
6128
6124
  };
6129
6125
 
6130
- var _excluded$u = ["value"];
6126
+ var _excluded$t = ["value"];
6131
6127
  var CheckboxComponent$1 = props => {
6132
6128
  var _useFormikInput = useFormikInput(props),
6133
6129
  {
6134
6130
  value
6135
6131
  } = _useFormikInput,
6136
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$u);
6132
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$t);
6137
6133
  formProps.isChecked = value;
6138
6134
  var checkboxStates = useCheckboxState(props);
6139
6135
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -6191,11 +6187,11 @@
6191
6187
  */
6192
6188
  var FormikTextArea = TextAreaComponent$1;
6193
6189
 
6194
- var _excluded$v = ["value"];
6190
+ var _excluded$u = ["value"];
6195
6191
  var TextFieldComponent$1 = props => {
6196
6192
  var formProps = useFormikInput(props);
6197
6193
  var _useTextFieldState = useTextFieldState(props),
6198
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$v);
6194
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$u);
6199
6195
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
6200
6196
  };
6201
6197
  /**
@@ -6203,7 +6199,7 @@
6203
6199
  */
6204
6200
  var FormikTextField = TextFieldComponent$1;
6205
6201
 
6206
- var _excluded$w = ["visibleIcon", "hiddenIcon"],
6202
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
6207
6203
  _excluded2$6 = ["isVisible", "setIsVisible"];
6208
6204
  var PasswordComponent$1 = _ref => {
6209
6205
  var {
@@ -6214,7 +6210,7 @@
6214
6210
  size: 14
6215
6211
  })
6216
6212
  } = _ref,
6217
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
6213
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
6218
6214
  var formProps = useFormikInput(props);
6219
6215
  var _usePasswordState = usePasswordState(formProps),
6220
6216
  {
@@ -6239,14 +6235,14 @@
6239
6235
  */
6240
6236
  var FormikPassword = PasswordComponent$1;
6241
6237
 
6242
- var _excluded$x = ["items", "placeholder", "searchPlaceholder"];
6238
+ var _excluded$w = ["items", "placeholder", "searchPlaceholder"];
6243
6239
  var ComboBoxComponent$1 = _ref => {
6244
6240
  var {
6245
6241
  items,
6246
6242
  placeholder,
6247
6243
  searchPlaceholder
6248
6244
  } = _ref,
6249
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
6245
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
6250
6246
  var formProps = useFormikInput(props);
6251
6247
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
6252
6248
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -6615,7 +6611,7 @@
6615
6611
  xl: 28
6616
6612
  };
6617
6613
 
6618
- var _excluded$y = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
6614
+ var _excluded$x = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
6619
6615
  _excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
6620
6616
  _excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
6621
6617
  _excluded4$3 = ["children"],
@@ -6629,7 +6625,7 @@
6629
6625
  onClose = () => {},
6630
6626
  position = 'center'
6631
6627
  } = _ref,
6632
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
6628
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
6633
6629
  var handleClick = () => {
6634
6630
  if (!isClosePrevented) onClose();
6635
6631
  };
@@ -7018,7 +7014,7 @@
7018
7014
  pillShaped: 24
7019
7015
  };
7020
7016
 
7021
- var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
7017
+ var _excluded$y = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
7022
7018
  var ToggleView = _ref => {
7023
7019
  var {
7024
7020
  children,
@@ -7032,7 +7028,7 @@
7032
7028
  setIsToggled,
7033
7029
  onToggle
7034
7030
  } = _ref,
7035
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
7031
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
7036
7032
  var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
7037
7033
  var isActive = !!(isToggle || isHovered);
7038
7034
  var ToggleVariants = {
@@ -7074,7 +7070,7 @@
7074
7070
  }, ToggleVariants[variant], props), children);
7075
7071
  };
7076
7072
 
7077
- var _excluded$A = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
7073
+ var _excluded$z = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
7078
7074
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
7079
7075
  var ToggleComponent = _ref => {
7080
7076
  var {
@@ -7087,7 +7083,7 @@
7087
7083
  isToggled = false,
7088
7084
  onToggle
7089
7085
  } = _ref,
7090
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
7086
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
7091
7087
  // Initializing toggle state and set state functions using the custom hook useToggleState.
7092
7088
  var {
7093
7089
  isHovered,