@process.co/ui 0.0.12 → 0.0.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.
@@ -90,6 +90,8 @@ interface SelectProps {
90
90
  placeholder?: string;
91
91
  /** Expected return type for validation */
92
92
  expectedType?: string;
93
+ /** Whether to hide the type badge */
94
+ hideTypeBadge?: boolean;
93
95
  /** Whether this is a required field */
94
96
  required?: boolean;
95
97
  /** Whether this field has a required property error (missing value) */
@@ -147,7 +149,7 @@ interface SelectRenderProps {
147
149
  * />
148
150
  * ```
149
151
  */
150
- declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
152
+ declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
151
153
 
152
154
  /**
153
155
  * Shared Operator Type Definitions and Utilities
@@ -90,6 +90,8 @@ interface SelectProps {
90
90
  placeholder?: string;
91
91
  /** Expected return type for validation */
92
92
  expectedType?: string;
93
+ /** Whether to hide the type badge */
94
+ hideTypeBadge?: boolean;
93
95
  /** Whether this is a required field */
94
96
  required?: boolean;
95
97
  /** Whether this field has a required property error (missing value) */
@@ -147,7 +149,7 @@ interface SelectRenderProps {
147
149
  * />
148
150
  * ```
149
151
  */
150
- declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
152
+ declare function Select({ fieldName, label, value, onChange, options: rawOptions, disabled, placeholder, expectedType, hideTypeBadge, required, hasRequiredError, className, children, }: SelectProps): React.JSX.Element;
151
153
 
152
154
  /**
153
155
  * Shared Operator Type Definitions and Utilities
package/dist/index.cjs CHANGED
@@ -5419,7 +5419,7 @@ function useResolvedExpectedType2(expectedType, devCtx) {
5419
5419
  ]);
5420
5420
  }
5421
5421
  function Select2(param) {
5422
- var fieldName = param.fieldName, label = param.label, value = param.value, onChange = param.onChange, rawOptions = param.options, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, placeholder = param.placeholder, _param_expectedType = param.expectedType, expectedType = _param_expectedType === void 0 ? "string" : _param_expectedType, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_hasRequiredError = param.hasRequiredError, hasRequiredError = _param_hasRequiredError === void 0 ? false : _param_hasRequiredError, className = param.className, children = param.children;
5422
+ var fieldName = param.fieldName, label = param.label, value = param.value, onChange = param.onChange, rawOptions = param.options, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, placeholder = param.placeholder, _param_expectedType = param.expectedType, expectedType = _param_expectedType === void 0 ? "string" : _param_expectedType, _param_hideTypeBadge = param.hideTypeBadge, hideTypeBadge = _param_hideTypeBadge === void 0 ? false : _param_hideTypeBadge, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_hasRequiredError = param.hasRequiredError, hasRequiredError = _param_hasRequiredError === void 0 ? false : _param_hasRequiredError, className = param.className, children = param.children;
5423
5423
  var devCtx = React2.useContext(DevContext);
5424
5424
  var resolvedExpectedType = useResolvedExpectedType2(expectedType, devCtx);
5425
5425
  var _React2__namespace_useState = _sliced_to_array(React2__namespace.useState(false), 2), isExpressionMode = _React2__namespace_useState[0], setIsExpressionMode = _React2__namespace_useState[1];