@app-studio/web 0.3.11 → 0.3.13

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,17 +2496,17 @@ 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 = {
2507
2508
  default: {
2508
- borderTopLeftRadius: 6,
2509
- borderTopRightRadius: 6,
2510
- borderBottomLeftRadius: 0,
2511
- borderBottomRightRadius: 0
2509
+ borderRadius: 0
2512
2510
  },
2513
2511
  sharp: {
2514
2512
  borderRadius: 0
@@ -2591,7 +2589,7 @@ var FieldContent = function FieldContent(_ref) {
2591
2589
  borderStyle: "solid",
2592
2590
  alignItems: "center",
2593
2591
  borderColor: color,
2594
- backgroundColor: "trueGray.50",
2592
+ backgroundColor: "color.white",
2595
2593
  transition: "padding 0.2s ease",
2596
2594
  justifyContent: "space-between",
2597
2595
  fontSize: Typography.fontSizes[size],
@@ -3016,7 +3014,7 @@ var DatePickerView = function DatePickerView(_ref) {
3016
3014
  },
3017
3015
  fontSize: Typography.fontSizes[size],
3018
3016
  backgroundColor: 'transparent',
3019
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
3017
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
3020
3018
  cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
3021
3019
  }, styles['field']);
3022
3020
  return React.createElement(FieldContainer, {
@@ -3424,7 +3422,7 @@ var SelectBox = function SelectBox(_ref2) {
3424
3422
  paddingHorizontal: 0,
3425
3423
  fontSize: Typography.fontSizes[size],
3426
3424
  backgroundColor: 'transparent',
3427
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
3425
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
3428
3426
  cursor: isDisabled ? 'not-allowed' : 'auto'
3429
3427
  }, styles['field'], styles['text']);
3430
3428
  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 +3540,7 @@ var MultiSelect = function MultiSelect(_ref5) {
3542
3540
  borderRadius: 4,
3543
3541
  alignItems: "center",
3544
3542
  fontSize: Typography.fontSizes[size],
3545
- backgroundColor: "trueGray.300",
3543
+ backgroundColor: "color.trueGray.300",
3546
3544
  onClick: function onClick(event) {
3547
3545
  return event.stopPropagation();
3548
3546
  }
@@ -4039,7 +4037,7 @@ var TextAreaView = function TextAreaView(_ref) {
4039
4037
  },
4040
4038
  fontSize: Typography.fontSizes[size],
4041
4039
  backgroundColor: 'transparent',
4042
- color: isDisabled ? 'trueGray.600' : 'blueGray.700',
4040
+ color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
4043
4041
  cursor: isDisabled ? 'not-allowed' : 'auto'
4044
4042
  }, styles['field']);
4045
4043
  var handleHover = function handleHover() {