@app-studio/web 0.8.26 → 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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { VerticalProps } from './Vertical.props';
3
- declare const Vertical: React.ForwardRefExoticComponent<Pick<VerticalProps, string | number> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const Vertical: React.ForwardRefExoticComponent<Pick<VerticalProps, string | number> & React.RefAttributes<HTMLElement>>;
4
4
  export { Vertical };
5
5
  export type { VerticalProps };
@@ -173,16 +173,16 @@ var Text = TextComponent;
173
173
  var _excluded$1 = ["justifyContent", "isReversed"];
174
174
  var Vertical = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
175
175
  var {
176
+ // Sets a default alignment for content within the Vertical container to 'flex-start'
176
177
  justifyContent = 'flex-start',
178
+ // Determines the direction in which the Vertical elements are stacked, default not reversed
177
179
  isReversed = false
178
180
  } = _ref,
179
181
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
180
- return /*#__PURE__*/React__default.createElement("div", Object.assign({
181
- style: {
182
- display: 'flex',
183
- justifyContent: justifyContent,
184
- flexDirection: isReversed ? 'column-reverse' : 'column'
185
- }
182
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
183
+ display: "flex",
184
+ justifyContent: justifyContent,
185
+ flexDirection: isReversed ? 'column-reverse' : 'column'
186
186
  }, props, {
187
187
  ref: ref
188
188
  }));
@@ -208,20 +208,16 @@ var Horizontal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
208
208
  });
209
209
  Horizontal.displayName = 'Horizontal';
210
210
 
211
- var _excluded$3 = ["isReversed"];
212
- var Center = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
213
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
214
- return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
215
- display: "flex",
216
- justifyContent: "center",
217
- alignItems: "center"
218
- }, props, {
219
- ref: ref
220
- }));
221
- });
211
+ var Center = /*#__PURE__*/React__default.forwardRef((props, ref) => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
212
+ display: "flex",
213
+ justifyContent: "center",
214
+ alignItems: "center"
215
+ }, props, {
216
+ ref: ref
217
+ }))));
222
218
  Center.displayName = 'Center';
223
219
 
224
- var _excluded$4 = ["size", "color", "filled", "strokeWidth"],
220
+ var _excluded$3 = ["size", "color", "filled", "strokeWidth"],
225
221
  _excluded2 = ["size", "color", "filled", "strokeWidth"],
226
222
  _excluded3 = ["size", "color", "filled", "strokeWidth"],
227
223
  _excluded4 = ["size", "color", "filled", "strokeWidth"],
@@ -294,7 +290,7 @@ var ChevronIcon = _ref2 => {
294
290
  filled = false,
295
291
  strokeWidth = 1
296
292
  } = _ref2,
297
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$4);
293
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
298
294
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
299
295
  size: size,
300
296
  color: color
@@ -1670,7 +1666,7 @@ var AlertComponent = _ref => {
1670
1666
  // Exporting the AlertComponent as 'Alert' for use in other parts of the application.
1671
1667
  var Alert = AlertComponent;
1672
1668
 
1673
- var _excluded$5 = ["ratio", "children"];
1669
+ var _excluded$4 = ["ratio", "children"];
1674
1670
  // Declaration of a functional component named AspectRatioView.
1675
1671
  var AspectRatioView = _ref => {
1676
1672
  var {
@@ -1680,7 +1676,7 @@ var AspectRatioView = _ref => {
1680
1676
  children
1681
1677
  // Spread the rest of the props to inherit additional properties.
1682
1678
  } = _ref,
1683
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1679
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
1684
1680
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
1685
1681
  width: '100%',
1686
1682
  position: "relative",
@@ -1696,14 +1692,14 @@ var AspectRatioView = _ref => {
1696
1692
  }, children));
1697
1693
  };
1698
1694
 
1699
- var _excluded$6 = ["ratio", "children"];
1695
+ var _excluded$5 = ["ratio", "children"];
1700
1696
  // Declaration of the AspectRatioComponent functional component with destructured props.
1701
1697
  var AspectRatioComponent = _ref => {
1702
1698
  var {
1703
1699
  ratio,
1704
1700
  children
1705
1701
  } = _ref,
1706
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1702
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1707
1703
  // Beginning of the return statement in the functional component.
1708
1704
  return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
1709
1705
  ratio: ratio
@@ -1973,7 +1969,7 @@ var IconSizes = {
1973
1969
  '6xl': 64
1974
1970
  };
1975
1971
 
1976
- var _excluded$7 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1972
+ var _excluded$6 = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
1977
1973
  // Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
1978
1974
  var LinkView = _ref => {
1979
1975
  var {
@@ -1996,7 +1992,7 @@ var LinkView = _ref => {
1996
1992
  // Setter function for the hover state, noop function provided by default.
1997
1993
  setIsHovered = () => {}
1998
1994
  } = _ref,
1999
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
1995
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2000
1996
  // Function to handle mouse enter/leave events to toggle hover state.
2001
1997
  var handleHover = () => {
2002
1998
  if (underline === 'hover') setIsHovered(true);
@@ -2154,7 +2150,7 @@ var DefaultSpeeds = {
2154
2150
  slow: 300
2155
2151
  };
2156
2152
 
2157
- var _excluded$8 = ["size", "speed", "color"],
2153
+ var _excluded$7 = ["size", "speed", "color"],
2158
2154
  _excluded2$1 = ["size", "speed", "color"],
2159
2155
  _excluded3$1 = ["size", "speed", "color"],
2160
2156
  _excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
@@ -2164,7 +2160,7 @@ var DefaultSpinner = _ref => {
2164
2160
  speed = 'normal',
2165
2161
  color = 'theme.loading'
2166
2162
  } = _ref,
2167
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2163
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2168
2164
  var theme = appStudio.useTheme();
2169
2165
  var colorStyle = theme.getColor(color);
2170
2166
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
@@ -2317,7 +2313,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
2317
2313
  // Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
2318
2314
  var Loader = LoaderComponent;
2319
2315
 
2320
- var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
2316
+ var _excluded$8 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
2321
2317
  var contrast = /*#__PURE__*/require('contrast');
2322
2318
  var ButtonView = _ref => {
2323
2319
  var _props$onClick;
@@ -2353,7 +2349,7 @@ var ButtonView = _ref => {
2353
2349
  setIsHovered = () => {}
2354
2350
  // Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
2355
2351
  } = _ref,
2356
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
2352
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2357
2353
  var {
2358
2354
  getColor
2359
2355
  } = appStudio.useTheme();
@@ -2468,14 +2464,14 @@ var ButtonComponent = props => {
2468
2464
  };
2469
2465
  var Button = ButtonComponent;
2470
2466
 
2471
- var _excluded$a = ["src", "color"],
2467
+ var _excluded$9 = ["src", "color"],
2472
2468
  _excluded2$2 = ["path"];
2473
2469
  var FileSVG = _ref => {
2474
2470
  var {
2475
2471
  src,
2476
2472
  color
2477
2473
  } = _ref,
2478
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2474
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
2479
2475
  var {
2480
2476
  getColor
2481
2477
  } = appStudio.useTheme();
@@ -2544,7 +2540,7 @@ var useItemState = () => {
2544
2540
  };
2545
2541
  };
2546
2542
 
2547
- var _excluded$b = ["children", "styles"];
2543
+ var _excluded$a = ["children", "styles"];
2548
2544
  var HelperText = _ref => {
2549
2545
  var {
2550
2546
  children,
@@ -2552,7 +2548,7 @@ var HelperText = _ref => {
2552
2548
  helperText: {}
2553
2549
  }
2554
2550
  } = _ref,
2555
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2551
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
2556
2552
  return /*#__PURE__*/React__default.createElement(Text, Object.assign({
2557
2553
  size: "xs",
2558
2554
  marginVertical: 0,
@@ -2561,7 +2557,7 @@ var HelperText = _ref => {
2561
2557
  }, styles['helperText'], props), children);
2562
2558
  };
2563
2559
 
2564
- var _excluded$c = ["children", "helperText", "error", "styles"];
2560
+ var _excluded$b = ["children", "helperText", "error", "styles"];
2565
2561
  var FieldContainer = _ref => {
2566
2562
  var {
2567
2563
  children,
@@ -2569,7 +2565,7 @@ var FieldContainer = _ref => {
2569
2565
  error = false,
2570
2566
  styles
2571
2567
  } = _ref,
2572
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2568
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
2573
2569
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
2574
2570
  gap: 5,
2575
2571
  position: "relative"
@@ -2628,7 +2624,7 @@ var PaddingWithoutLabel = {
2628
2624
  paddingRight: 36
2629
2625
  };
2630
2626
 
2631
- var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2627
+ var _excluded$c = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2632
2628
  var FieldContent = _ref => {
2633
2629
  var {
2634
2630
  shadow,
@@ -2647,7 +2643,7 @@ var FieldContent = _ref => {
2647
2643
  pickerBox: {}
2648
2644
  }
2649
2645
  } = _ref,
2650
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2646
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
2651
2647
  var isInteractive = (isHovered || isFocused) && !isDisabled;
2652
2648
  var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
2653
2649
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
@@ -2668,12 +2664,12 @@ var FieldContent = _ref => {
2668
2664
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
2669
2665
  };
2670
2666
 
2671
- var _excluded$e = ["children"];
2667
+ var _excluded$d = ["children"];
2672
2668
  var FieldIcons = _ref => {
2673
2669
  var {
2674
2670
  children
2675
2671
  } = _ref,
2676
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2672
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
2677
2673
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
2678
2674
  gap: 10,
2679
2675
  right: 16,
@@ -2725,7 +2721,7 @@ var HeadingSizes$1 = {
2725
2721
  }
2726
2722
  };
2727
2723
 
2728
- var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
2724
+ var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
2729
2725
  var LabelView = _ref => {
2730
2726
  var {
2731
2727
  children,
@@ -2741,7 +2737,7 @@ var LabelView = _ref => {
2741
2737
  size = 'sm'
2742
2738
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
2743
2739
  } = _ref,
2744
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2740
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2745
2741
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
2746
2742
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
2747
2743
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -2773,7 +2769,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
2773
2769
  var Label = LabelComponent;
2774
2770
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
2775
2771
 
2776
- var _excluded$g = ["children", "size", "error", "color", "styles", "helperText"];
2772
+ var _excluded$f = ["children", "size", "error", "color", "styles", "helperText"];
2777
2773
  var FieldLabel = _ref => {
2778
2774
  var {
2779
2775
  children,
@@ -2784,7 +2780,7 @@ var FieldLabel = _ref => {
2784
2780
  label: {}
2785
2781
  }
2786
2782
  } = _ref,
2787
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2783
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2788
2784
  return /*#__PURE__*/React__default.createElement(Label, Object.assign({
2789
2785
  top: 6,
2790
2786
  zIndex: 1000,
@@ -2797,12 +2793,12 @@ var FieldLabel = _ref => {
2797
2793
  }, styles['label'], props), children);
2798
2794
  };
2799
2795
 
2800
- var _excluded$h = ["children"];
2796
+ var _excluded$g = ["children"];
2801
2797
  var FieldWrapper = _ref => {
2802
2798
  var {
2803
2799
  children
2804
2800
  } = _ref,
2805
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2801
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2806
2802
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
2807
2803
  width: "100%"
2808
2804
  }, props), children);
@@ -2818,7 +2814,7 @@ var IconSizes$2 = {
2818
2814
  xl: 16
2819
2815
  };
2820
2816
 
2821
- var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
2817
+ var _excluded$h = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
2822
2818
  _excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
2823
2819
  _excluded3$2 = ["option", "size", "removeOption"],
2824
2820
  _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"];
@@ -2832,7 +2828,7 @@ var Item = _ref => {
2832
2828
  callback = () => {},
2833
2829
  style
2834
2830
  } = _ref,
2835
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2831
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2836
2832
  // Handles the click event on an option by invoking the callback with the selected option's value.
2837
2833
  var handleOptionClick = option => callback(option);
2838
2834
  // Toggles the hover state on the item.
@@ -3294,7 +3290,7 @@ var SliderPadding = {
3294
3290
  }
3295
3291
  };
3296
3292
 
3297
- var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "styles"];
3293
+ var _excluded$i = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "styles"];
3298
3294
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
3299
3295
  type: "checkbox"
3300
3296
  }, props));
@@ -3324,7 +3320,7 @@ var SwitchView = _ref => {
3324
3320
  label: {}
3325
3321
  }
3326
3322
  } = _ref,
3327
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3323
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3328
3324
  var handleToggle = event => {
3329
3325
  if (!isReadOnly) {
3330
3326
  setValue(!value);
@@ -3414,7 +3410,7 @@ var useTextAreaState = _ref => {
3414
3410
  // Export of the useTextAreaState hook for external usage.
3415
3411
  };
3416
3412
 
3417
- 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"];
3413
+ 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"];
3418
3414
  var TextAreaView = _ref => {
3419
3415
  var {
3420
3416
  id,
@@ -3454,7 +3450,7 @@ var TextAreaView = _ref => {
3454
3450
  field: {}
3455
3451
  }
3456
3452
  } = _ref,
3457
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3453
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3458
3454
  var isWithLabel = !!(isFocused && label);
3459
3455
  var fieldStyles = Object.assign({
3460
3456
  margin: 0,
@@ -3584,7 +3580,7 @@ var useTextFieldState = _ref => {
3584
3580
  };
3585
3581
  };
3586
3582
 
3587
- 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"];
3583
+ 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"];
3588
3584
  var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
3589
3585
  type: "text"
3590
3586
  }, props));
@@ -3627,7 +3623,7 @@ var TextFieldView = _ref => {
3627
3623
  onFocus,
3628
3624
  onBlur = () => {}
3629
3625
  } = _ref,
3630
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3626
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3631
3627
  var {
3632
3628
  getColor
3633
3629
  } = appStudio.useTheme();
@@ -3808,7 +3804,7 @@ var IconSizes$3 = {
3808
3804
  '6xl': 60
3809
3805
  };
3810
3806
 
3811
- 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"];
3807
+ 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"];
3812
3808
  var CheckboxView = _ref => {
3813
3809
  var {
3814
3810
  id,
@@ -3836,7 +3832,7 @@ var CheckboxView = _ref => {
3836
3832
  },
3837
3833
  infoText
3838
3834
  } = _ref,
3839
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
3835
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3840
3836
  var handleHover = () => setIsHovered(!isHovered);
3841
3837
  var handleChange = () => {
3842
3838
  if (!isReadOnly && !isDisabled) {
@@ -5395,11 +5391,11 @@ var IconSizes$4 = {
5395
5391
  xl: 16
5396
5392
  };
5397
5393
 
5398
- var _excluded$n = ["size"],
5394
+ var _excluded$m = ["size"],
5399
5395
  _excluded2$4 = ["size"],
5400
5396
  _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"];
5401
5397
  var CountryList = _ref => {
5402
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
5398
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5403
5399
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
5404
5400
  as: "ul"
5405
5401
  }, props));
@@ -5638,7 +5634,7 @@ var useDatePickerState = () => {
5638
5634
  };
5639
5635
  };
5640
5636
 
5641
- 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"];
5637
+ 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"];
5642
5638
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
5643
5639
  type: "date"
5644
5640
  }, props));
@@ -5672,7 +5668,7 @@ var DatePickerView = _ref => {
5672
5668
  onChange,
5673
5669
  onChangeText
5674
5670
  } = _ref,
5675
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
5671
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
5676
5672
  var isWithLabel = !!(isFocused && label);
5677
5673
  var handleHover = () => setIsHovered(!isHovered);
5678
5674
  var handleFocus = () => setIsFocused(true);
@@ -5760,7 +5756,7 @@ var usePasswordState = props => {
5760
5756
  }, props, textFieldStates);
5761
5757
  };
5762
5758
 
5763
- var _excluded$p = ["visibleIcon", "hiddenIcon"],
5759
+ var _excluded$o = ["visibleIcon", "hiddenIcon"],
5764
5760
  _excluded2$5 = ["isVisible", "setIsVisible"];
5765
5761
  var PasswordComponent = _ref => {
5766
5762
  var {
@@ -5771,7 +5767,7 @@ var PasswordComponent = _ref => {
5771
5767
  size: 14
5772
5768
  })
5773
5769
  } = _ref,
5774
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
5770
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
5775
5771
  var _usePasswordState = usePasswordState(props),
5776
5772
  {
5777
5773
  isVisible,
@@ -5825,7 +5821,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
5825
5821
  };
5826
5822
  };
5827
5823
 
5828
- var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
5824
+ var _excluded$p = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
5829
5825
  // Defines the functional component 'ComboBoxView' with destructured props.
5830
5826
  var ComboBoxView = _ref => {
5831
5827
  var {
@@ -5850,7 +5846,7 @@ var ComboBoxView = _ref => {
5850
5846
  setIsDropdownVisible
5851
5847
  // Collects all further props not destructured explicitly.
5852
5848
  } = _ref,
5853
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
5849
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
5854
5850
  // Sets up an effect to handle clicking outside the dropdown to close it.
5855
5851
  React.useEffect(() => {
5856
5852
  var handleClickOutside = event => {
@@ -5961,7 +5957,7 @@ var ComboBoxView = _ref => {
5961
5957
  }))))))))))));
5962
5958
  };
5963
5959
 
5964
- var _excluded$r = ["id", "name", "items", "placeholder", "searchPlaceholder"];
5960
+ var _excluded$q = ["id", "name", "items", "placeholder", "searchPlaceholder"];
5965
5961
  // Defines the ComboBoxComponent functional component with ComboBoxProps
5966
5962
  var ComboBoxComponent = _ref => {
5967
5963
  var {
@@ -5977,7 +5973,7 @@ var ComboBoxComponent = _ref => {
5977
5973
  searchPlaceholder
5978
5974
  // Destructures the rest of the props not explicitly defined
5979
5975
  } = _ref,
5980
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
5976
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
5981
5977
  // Initializes ComboBox state using custom hook with items and placeholders
5982
5978
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
5983
5979
  return (
@@ -5993,7 +5989,7 @@ var ComboBoxComponent = _ref => {
5993
5989
  // Exports the ComboBoxComponent as ComboBox
5994
5990
  var ComboBox = ComboBoxComponent;
5995
5991
 
5996
- var _excluded$s = ["children", "autoFocus", "initFocus", "onChange"];
5992
+ var _excluded$r = ["children", "autoFocus", "initFocus", "onChange"];
5997
5993
  var FocusContext = /*#__PURE__*/React.createContext({
5998
5994
  active: false,
5999
5995
  focusNextInput: () => {},
@@ -6009,7 +6005,7 @@ var FormikForm = _ref => {
6009
6005
  initFocus,
6010
6006
  onChange = () => {}
6011
6007
  } = _ref,
6012
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
6008
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
6013
6009
  var formik$1 = formik.useFormikContext();
6014
6010
  React.useEffect(() => {
6015
6011
  onChange(formik$1.values);
@@ -6057,7 +6053,7 @@ var FormikForm = _ref => {
6057
6053
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
6058
6054
  };
6059
6055
 
6060
- var _excluded$t = ["name", "type"];
6056
+ var _excluded$s = ["name", "type"];
6061
6057
  var getInputTypeProps = type => {
6062
6058
  switch (type) {
6063
6059
  case 'email':
@@ -6096,7 +6092,7 @@ var useFormikInput = _ref => {
6096
6092
  name,
6097
6093
  type
6098
6094
  } = _ref,
6099
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
6095
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
6100
6096
  var focus = useFormFocus();
6101
6097
  var {
6102
6098
  touched,
@@ -6140,13 +6136,13 @@ var useFormikInput = _ref => {
6140
6136
  } : {});
6141
6137
  };
6142
6138
 
6143
- var _excluded$u = ["value"];
6139
+ var _excluded$t = ["value"];
6144
6140
  var CheckboxComponent$1 = props => {
6145
6141
  var _useFormikInput = useFormikInput(props),
6146
6142
  {
6147
6143
  value
6148
6144
  } = _useFormikInput,
6149
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$u);
6145
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$t);
6150
6146
  formProps.isChecked = value;
6151
6147
  var checkboxStates = useCheckboxState(props);
6152
6148
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -6204,11 +6200,11 @@ var TextAreaComponent$1 = props => {
6204
6200
  */
6205
6201
  var FormikTextArea = TextAreaComponent$1;
6206
6202
 
6207
- var _excluded$v = ["value"];
6203
+ var _excluded$u = ["value"];
6208
6204
  var TextFieldComponent$1 = props => {
6209
6205
  var formProps = useFormikInput(props);
6210
6206
  var _useTextFieldState = useTextFieldState(props),
6211
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$v);
6207
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$u);
6212
6208
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
6213
6209
  };
6214
6210
  /**
@@ -6216,7 +6212,7 @@ var TextFieldComponent$1 = props => {
6216
6212
  */
6217
6213
  var FormikTextField = TextFieldComponent$1;
6218
6214
 
6219
- var _excluded$w = ["visibleIcon", "hiddenIcon"],
6215
+ var _excluded$v = ["visibleIcon", "hiddenIcon"],
6220
6216
  _excluded2$6 = ["isVisible", "setIsVisible"];
6221
6217
  var PasswordComponent$1 = _ref => {
6222
6218
  var {
@@ -6227,7 +6223,7 @@ var PasswordComponent$1 = _ref => {
6227
6223
  size: 14
6228
6224
  })
6229
6225
  } = _ref,
6230
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
6226
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
6231
6227
  var formProps = useFormikInput(props);
6232
6228
  var _usePasswordState = usePasswordState(formProps),
6233
6229
  {
@@ -6252,14 +6248,14 @@ var PasswordComponent$1 = _ref => {
6252
6248
  */
6253
6249
  var FormikPassword = PasswordComponent$1;
6254
6250
 
6255
- var _excluded$x = ["items", "placeholder", "searchPlaceholder"];
6251
+ var _excluded$w = ["items", "placeholder", "searchPlaceholder"];
6256
6252
  var ComboBoxComponent$1 = _ref => {
6257
6253
  var {
6258
6254
  items,
6259
6255
  placeholder,
6260
6256
  searchPlaceholder
6261
6257
  } = _ref,
6262
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
6258
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
6263
6259
  var formProps = useFormikInput(props);
6264
6260
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
6265
6261
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -6628,7 +6624,7 @@ var HeaderIconSizes = {
6628
6624
  xl: 28
6629
6625
  };
6630
6626
 
6631
- var _excluded$y = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
6627
+ var _excluded$x = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
6632
6628
  _excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
6633
6629
  _excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
6634
6630
  _excluded4$3 = ["children"],
@@ -6642,7 +6638,7 @@ var ModalOverlay = _ref => {
6642
6638
  onClose = () => {},
6643
6639
  position = 'center'
6644
6640
  } = _ref,
6645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
6641
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
6646
6642
  var handleClick = () => {
6647
6643
  if (!isClosePrevented) onClose();
6648
6644
  };
@@ -7031,7 +7027,7 @@ var ToggleShapes = {
7031
7027
  pillShaped: 24
7032
7028
  };
7033
7029
 
7034
- var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
7030
+ var _excluded$y = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
7035
7031
  var ToggleView = _ref => {
7036
7032
  var {
7037
7033
  children,
@@ -7045,7 +7041,7 @@ var ToggleView = _ref => {
7045
7041
  setIsToggled,
7046
7042
  onToggle
7047
7043
  } = _ref,
7048
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
7044
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
7049
7045
  var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
7050
7046
  var isActive = !!(isToggle || isHovered);
7051
7047
  var ToggleVariants = {
@@ -7087,7 +7083,7 @@ var ToggleView = _ref => {
7087
7083
  }, ToggleVariants[variant], props), children);
7088
7084
  };
7089
7085
 
7090
- var _excluded$A = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
7086
+ var _excluded$z = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
7091
7087
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
7092
7088
  var ToggleComponent = _ref => {
7093
7089
  var {
@@ -7100,7 +7096,7 @@ var ToggleComponent = _ref => {
7100
7096
  isToggled = false,
7101
7097
  onToggle
7102
7098
  } = _ref,
7103
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
7099
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
7104
7100
  // Initializing toggle state and set state functions using the custom hook useToggleState.
7105
7101
  var {
7106
7102
  isHovered,