@app-studio/web 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web.esm.js CHANGED
@@ -2469,21 +2469,19 @@ var TextComponent = function TextComponent(props) {
2469
2469
  */
2470
2470
  var Text = TextComponent;
2471
2471
 
2472
- var _excluded$e = ["children", "styles", "error"];
2472
+ var _excluded$e = ["children", "styles"];
2473
2473
  var HelperText = function HelperText(_ref) {
2474
2474
  var children = _ref.children,
2475
2475
  _ref$styles = _ref.styles,
2476
2476
  styles = _ref$styles === void 0 ? {
2477
2477
  helperText: {}
2478
2478
  } : _ref$styles,
2479
- _ref$error = _ref.error,
2480
- error = _ref$error === void 0 ? false : _ref$error,
2481
2479
  props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2482
2480
  return React.createElement(Text, Object.assign({
2483
2481
  size: "xs",
2484
2482
  marginVertical: 0,
2485
2483
  marginHorizontal: 0,
2486
- color: error ? 'theme.error' : 'theme.text.dark'
2484
+ color: 'theme.text.dark'
2487
2485
  }, styles['helperText'], props), children);
2488
2486
  };
2489
2487
 
@@ -2498,9 +2496,12 @@ var FieldContainer = function FieldContainer(_ref) {
2498
2496
  return React.createElement(Vertical, Object.assign({
2499
2497
  gap: 5,
2500
2498
  position: "relative"
2501
- }, props), children, helperText && React.createElement(HelperText, Object.assign({
2502
- error: error
2503
- }, styles), helperText));
2499
+ }, props), children, !error && helperText && React.createElement(HelperText, Object.assign({}, styles), helperText), error && React.createElement(Text, {
2500
+ size: "xs",
2501
+ marginVertical: 0,
2502
+ marginHorizontal: 0,
2503
+ color: 'theme.error'
2504
+ }, error));
2504
2505
  };
2505
2506
 
2506
2507
  var Shapes = {
@@ -2591,7 +2592,7 @@ var FieldContent = function FieldContent(_ref) {
2591
2592
  borderStyle: "solid",
2592
2593
  alignItems: "center",
2593
2594
  borderColor: color,
2594
- backgroundColor: "trueGray.50",
2595
+ backgroundColor: "color.trueGray.50",
2595
2596
  transition: "padding 0.2s ease",
2596
2597
  justifyContent: "space-between",
2597
2598
  fontSize: Typography.fontSizes[size],
@@ -3016,7 +3017,7 @@ var DatePickerView = function DatePickerView(_ref) {
3016
3017
  },
3017
3018
  fontSize: Typography.fontSizes[size],
3018
3019
  backgroundColor: 'transparent',
3019
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
3020
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
3020
3021
  cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
3021
3022
  }, styles['field']);
3022
3023
  return React.createElement(FieldContainer, {
@@ -3424,7 +3425,7 @@ var SelectBox = function SelectBox(_ref2) {
3424
3425
  paddingHorizontal: 0,
3425
3426
  fontSize: Typography.fontSizes[size],
3426
3427
  backgroundColor: 'transparent',
3427
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
3428
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
3428
3429
  cursor: isDisabled ? 'not-allowed' : 'auto'
3429
3430
  }, styles['field'], styles['text']);
3430
3431
  return React.createElement(Text, Object.assign({}, fieldStyles), (selected === '' || selected && selected.length === 0) && !!placeholder ? placeholder : React.createElement(React.Fragment, null, typeof selected === 'string' ? selected : selected && selected.length > 0 && React.createElement(Horizontal, {
@@ -3542,7 +3543,7 @@ var MultiSelect = function MultiSelect(_ref5) {
3542
3543
  borderRadius: 4,
3543
3544
  alignItems: "center",
3544
3545
  fontSize: Typography.fontSizes[size],
3545
- backgroundColor: "trueGray.300",
3546
+ backgroundColor: "color.trueGray.300",
3546
3547
  onClick: function onClick(event) {
3547
3548
  return event.stopPropagation();
3548
3549
  }
@@ -4039,7 +4040,7 @@ var TextAreaView = function TextAreaView(_ref) {
4039
4040
  },
4040
4041
  fontSize: Typography.fontSizes[size],
4041
4042
  backgroundColor: 'transparent',
4042
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
4043
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
4043
4044
  cursor: isDisabled ? 'not-allowed' : 'auto'
4044
4045
  }, styles['field']);
4045
4046
  var handleHover = function handleHover() {