@jobber/components 6.103.2-JOB-140609-fafe469.18 → 6.103.2-JOB-140609-9051081.26

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.
@@ -7,10 +7,10 @@ import type { InputTextRebuiltProps, InputTextRef } from "../InputText";
7
7
  * Certain ARIA attributes are controlled internally by Autocomplete's
8
8
  * state management and floating-ui integration and shouldn't be overridden.
9
9
  *
10
- * Omits: aria-controls, aria-expanded, aria-activedescendant, aria-autocomplete
10
+ * Omits: ariaControls, ariaExpanded, ariaActiveDescendant, ariaAutocomplete
11
11
  * (These are managed by the component's internal state/floating-ui)
12
12
  */
13
- export interface AriaInputPropsManaged extends Omit<AriaInputProps, "aria-controls" | "aria-expanded" | "aria-activedescendant" | "aria-autocomplete"> {
13
+ export interface AriaInputPropsManaged extends Omit<AriaInputProps, "ariaControls" | "ariaExpanded" | "ariaActiveDescendant" | "ariaAutocomplete"> {
14
14
  }
15
15
  export type ExtraProps = Record<string, unknown>;
16
16
  type OptionValue = string | number;
@@ -909,7 +909,7 @@ function AutocompleteRebuiltInternal(props, forwardedRef) {
909
909
  onBlur: onInputBlur,
910
910
  });
911
911
  const inputProps = Object.assign(Object.assign(Object.assign(Object.assign({ version: 2, value: inputValue, onChange: props.readOnly ? undefined : onInputChangeFromUser }, (props.readOnly ? { onFocus: onInputFocus, onBlur: onInputBlur } : {})), { placeholder,
912
- disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox", "aria-autocomplete": "list", "aria-expanded": open ? true : false, "aria-controls": listboxId, "aria-activedescendant": open && activeIndex != null
912
+ disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox", ariaAutocomplete: "list", ariaExpanded: open ? true : false, ariaControls: listboxId, ariaActiveDescendant: open && activeIndex != null
913
913
  ? `${listboxId}-item-${activeIndex}`
914
914
  : undefined });
915
915
  const referenceInputRef = (node) => {
@@ -907,7 +907,7 @@ function AutocompleteRebuiltInternal(props, forwardedRef) {
907
907
  onBlur: onInputBlur,
908
908
  });
909
909
  const inputProps = Object.assign(Object.assign(Object.assign(Object.assign({ version: 2, value: inputValue, onChange: props.readOnly ? undefined : onInputChangeFromUser }, (props.readOnly ? { onFocus: onInputFocus, onBlur: onInputBlur } : {})), { placeholder,
910
- disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox", "aria-autocomplete": "list", "aria-expanded": open ? true : false, "aria-controls": listboxId, "aria-activedescendant": open && activeIndex != null
910
+ disabled, readOnly: props.readOnly, error: error !== null && error !== void 0 ? error : undefined, name: props.name, invalid, autoComplete: "off", description, size: sizeProp ? sizeProp : undefined, prefix: props.prefix, suffix: props.suffix }), (props.readOnly ? {} : composedReferenceProps)), { role: "combobox", ariaAutocomplete: "list", ariaExpanded: open ? true : false, ariaControls: listboxId, ariaActiveDescendant: open && activeIndex != null
911
911
  ? `${listboxId}-item-${activeIndex}`
912
912
  : undefined });
913
913
  const referenceInputRef = (node) => {
@@ -54,7 +54,7 @@ function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value,
54
54
  } }));
55
55
  }
56
56
 
57
- const CheckboxRebuilt = React.forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, }, ref) {
57
+ const CheckboxRebuilt = React.forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, ariaLabel, ariaDescribedBy, ariaInvalid, ariaRequired, }, ref) {
58
58
  const descriptionIdentifier = React.useId();
59
59
  const wrapperClassName = classnames(styles.wrapper, disabled && styles.disabled, invalid && styles.invalid);
60
60
  const inputClassName = classnames(styles.input, {
@@ -52,7 +52,7 @@ function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value,
52
52
  } }));
53
53
  }
54
54
 
55
- const CheckboxRebuilt = forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, }, ref) {
55
+ const CheckboxRebuilt = forwardRef(function CheckboxRebuiltInternal({ checked, defaultChecked, disabled, label, name, value, indeterminate = false, description, id, onBlur, onChange, onFocus, invalid, ariaLabel, ariaDescribedBy, ariaInvalid, ariaRequired, }, ref) {
56
56
  const descriptionIdentifier = useId();
57
57
  const wrapperClassName = classnames(styles.wrapper, disabled && styles.disabled, invalid && styles.invalid);
58
58
  const inputClassName = classnames(styles.input, {
@@ -1,4 +1,4 @@
1
- import type { ChangeEvent, ReactNode, RefObject } from "react";
1
+ import type { AriaAttributes, ChangeEvent, ReactNode, RefObject } from "react";
2
2
  import type React from "react";
3
3
  import type { RegisterOptions } from "react-hook-form";
4
4
  import type { XOR } from "ts-xor";
@@ -8,42 +8,63 @@ export type FormFieldTypes = "text" | "password" | "number" | "time" | "textarea
8
8
  export type KeyBoardTypes = "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
9
9
  export type AutocompleteTypes = "one-time-code" | "address-line1" | "address-line2";
10
10
  /**
11
- * ARIA attributes for accessibility.
12
- * Common attributes that can be used across input components.
11
+ * Core ARIA attributes for input elements.
12
+ * Uses camelCase naming for consistency with React props pattern.
13
+ * Based on React's canonical ARIA type definitions.
13
14
  */
14
15
  export interface AriaInputProps {
15
16
  /**
16
- * ARIA label for accessibility.
17
+ * Defines a string value that labels the current element.
18
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-label}
17
19
  */
18
- readonly "aria-label"?: string;
20
+ readonly ariaLabel?: AriaAttributes["aria-label"];
19
21
  /**
20
- * ARIA described-by for accessibility.
22
+ * Identifies the element (or elements) that labels the current element.
23
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-labelledby}
21
24
  */
22
- readonly "aria-describedby"?: string;
25
+ readonly ariaLabelledBy?: AriaAttributes["aria-labelledby"];
23
26
  /**
24
- * ARIA invalid state for accessibility.
27
+ * Identifies the element (or elements) that describes the object.
28
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-describedby}
25
29
  */
26
- readonly "aria-invalid"?: boolean | "true" | "false";
30
+ readonly ariaDescribedBy?: AriaAttributes["aria-describedby"];
27
31
  /**
28
- * ARIA controls attribute.
32
+ * Identifies the element (or elements) that provide a detailed, extended description.
33
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-details}
29
34
  */
30
- readonly "aria-controls"?: string;
35
+ readonly ariaDetails?: AriaAttributes["aria-details"];
31
36
  /**
32
- * ARIA expanded state.
37
+ * ID of the currently active descendant element.
38
+ * Used for composite widgets like combobox or listbox.
39
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-activedescendant}
33
40
  */
34
- readonly "aria-expanded"?: boolean;
41
+ readonly ariaActiveDescendant?: AriaAttributes["aria-activedescendant"];
35
42
  /**
36
- * ARIA active descendant.
43
+ * Indicates the entered value does not conform to the format expected.
44
+ * Supports boolean or specific error types: "grammar" | "spelling".
45
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-invalid}
37
46
  */
38
- readonly "aria-activedescendant"?: string;
47
+ readonly ariaInvalid?: AriaAttributes["aria-invalid"];
39
48
  /**
40
- * ARIA autocomplete attribute.
49
+ * Indicates the element that controls the current element.
50
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-controls}
41
51
  */
42
- readonly "aria-autocomplete"?: "none" | "inline" | "list" | "both";
52
+ readonly ariaControls?: AriaAttributes["aria-controls"];
43
53
  /**
44
- * ARIA required attribute.
54
+ * Indicates whether the element is expanded or collapsed.
55
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-expanded}
45
56
  */
46
- readonly "aria-required"?: boolean;
57
+ readonly ariaExpanded?: AriaAttributes["aria-expanded"];
58
+ /**
59
+ * Indicates the type of autocomplete interaction.
60
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-autocomplete}
61
+ */
62
+ readonly ariaAutocomplete?: AriaAttributes["aria-autocomplete"];
63
+ /**
64
+ * Indicates that user input is required before form submission.
65
+ * @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-required}
66
+ */
67
+ readonly ariaRequired?: AriaAttributes["aria-required"];
47
68
  }
48
69
  /**
49
70
  * Focus event handlers for input elements.
@@ -25,16 +25,4 @@ export interface InputEmailRebuiltProps extends HTMLInputBaseProps, FocusEvents<
25
25
  * @deprecated Use `id` instead. This prop will be removed in a future version.
26
26
  */
27
27
  readonly identifier?: string;
28
- /**
29
- * @deprecated Use `autoComplete` with string values instead. This prop will be removed in a future version.
30
- */
31
- readonly autocomplete?: never;
32
- /**
33
- * @deprecated Use `aria-label` instead. This prop will be removed in a future version.
34
- */
35
- readonly ariaLabel?: never;
36
- /**
37
- * @deprecated Use `readOnly` instead. This prop will be removed in a future version.
38
- */
39
- readonly readonly?: never;
40
28
  }
@@ -103,9 +103,9 @@ const InputEmailRebuilt = React.forwardRef(function InputEmailInternal(props, re
103
103
  });
104
104
  const descriptionIdentifier = `descriptionUUID--${id}`;
105
105
  const hasDescription = props.description && !props.inline;
106
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
106
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
107
107
  return (React.createElement(FormField.FormFieldWrapper, { error: props.error || "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, size: props.size, inline: props.inline, align: props.align, prefix: props.prefix, suffix: props.suffix, description: props.description, clearable: (_b = props.clearable) !== null && _b !== void 0 ? _b : "never", onClear: handleClear, wrapperRef: wrapperRef, maxLength: props.maxLength, disabled: props.disabled, type: "email", value: props.value, placeholder: props.placeholder, autofocus: props.autoFocus, name: name },
108
- React.createElement("input", { id: id, name: name, type: "email", ref: inputRef, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, "data-testid": "ATL-InputEmail-input" }),
108
+ React.createElement("input", { id: id, name: name, type: "email", ref: inputRef, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, "data-testid": "ATL-InputEmail-input" }),
109
109
  React.createElement(FormField.FormFieldPostFix, { variation: "spinner", visible: (_c = props.loading) !== null && _c !== void 0 ? _c : false }),
110
110
  props.children));
111
111
  });
@@ -101,9 +101,9 @@ const InputEmailRebuilt = forwardRef(function InputEmailInternal(props, ref) {
101
101
  });
102
102
  const descriptionIdentifier = `descriptionUUID--${id}`;
103
103
  const hasDescription = props.description && !props.inline;
104
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
104
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
105
105
  return (React__default.createElement(FormFieldWrapper, { error: props.error || "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, size: props.size, inline: props.inline, align: props.align, prefix: props.prefix, suffix: props.suffix, description: props.description, clearable: (_b = props.clearable) !== null && _b !== void 0 ? _b : "never", onClear: handleClear, wrapperRef: wrapperRef, maxLength: props.maxLength, disabled: props.disabled, type: "email", value: props.value, placeholder: props.placeholder, autofocus: props.autoFocus, name: name },
106
- React__default.createElement("input", { id: id, name: name, type: "email", ref: inputRef, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, "data-testid": "ATL-InputEmail-input" }),
106
+ React__default.createElement("input", { id: id, name: name, type: "email", ref: inputRef, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, "data-testid": "ATL-InputEmail-input" }),
107
107
  React__default.createElement(FormFieldPostFix, { variation: "spinner", visible: (_c = props.loading) !== null && _c !== void 0 ? _c : false }),
108
108
  props.children));
109
109
  });
@@ -5,10 +5,6 @@ import type { AriaInputProps, FocusEvents, KeyboardEvents } from "../FormField/F
5
5
  export type InputNumberVersion = 1 | 2 | undefined;
6
6
  export interface InputNumberRebuiltProps extends Omit<CommonFormFieldProps, "version">, AriaInputProps, FocusEvents<HTMLInputElement>, KeyboardEvents<HTMLInputElement> {
7
7
  readonly align?: "center" | "right";
8
- /**
9
- * @deprecated Use `autoComplete` (camelCase) instead.
10
- */
11
- readonly autocomplete?: boolean;
12
8
  /**
13
9
  * HTML autocomplete attribute for browser autofill.
14
10
  */
@@ -36,10 +32,6 @@ export interface InputNumberRebuiltProps extends Omit<CommonFormFieldProps, "ver
36
32
  * @param event - Optional change event
37
33
  */
38
34
  readonly onChange?: (newValue: number, event?: React.ChangeEvent<HTMLInputElement>) => void;
39
- /**
40
- * @deprecated Use `readOnly` (camelCase) instead.
41
- */
42
- readonly readonly?: boolean;
43
35
  /**
44
36
  * Whether the input is read-only.
45
37
  */
@@ -2721,7 +2721,6 @@ const defaultFormatOptions = {
2721
2721
  style: "decimal",
2722
2722
  };
2723
2723
  const InputNumberRebuilt = React.forwardRef((props, ref) => {
2724
- var _a;
2725
2724
  const inputRef = React.createRef();
2726
2725
  const mergedFormatOptions = Object.assign(Object.assign({}, defaultFormatOptions), props.formatOptions);
2727
2726
  function handleChange(newValue, event) {
@@ -2741,16 +2740,12 @@ const InputNumberRebuilt = React.forwardRef((props, ref) => {
2741
2740
  }
2742
2741
  },
2743
2742
  }));
2744
- const { align, description, disabled, error, inline, invalid, placeholder,
2745
- // Support both old and new prop names
2746
- readonly, readOnly = readonly, showMiniLabel = true, size, minValue, maxValue,
2743
+ const { align, description, disabled, error, inline, invalid, placeholder, readOnly, showMiniLabel = true, size, minValue, maxValue,
2747
2744
  // Deprecated props (filter out to avoid spreading to React Aria)
2748
2745
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2749
- identifier: _deprecatedIdentifier,
2750
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2751
- autocomplete: _deprecatedAutocomplete } = props, ariaNumberFieldProps = tslib_es6.__rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "readOnly", "showMiniLabel", "size", "minValue", "maxValue", "identifier", "autocomplete"]);
2746
+ identifier: _deprecatedIdentifier } = props, ariaNumberFieldProps = tslib_es6.__rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readOnly", "showMiniLabel", "size", "minValue", "maxValue", "identifier"]);
2752
2747
  const stringDescription = typeof description === "string";
2753
- return (React.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, id: (_a = props.id) !== null && _a !== void 0 ? _a : props.identifier, isDisabled: disabled, isInvalid: invalid, isReadOnly: readOnly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
2748
+ return (React.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, id: props.id, isDisabled: disabled, isInvalid: invalid, isReadOnly: readOnly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
2754
2749
  React.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: classnames(styles.wrapper, align && styles[align], invalid && styles.invalid, disabled && styles.disabled) },
2755
2750
  React.createElement("div", { className: styles.horizontalWrapper },
2756
2751
  React.createElement("div", { className: classnames(styles.inputWrapper, disabled && styles.disabled, !showMiniLabel && styles.hideLabel, size && styles[size]) },
@@ -2719,7 +2719,6 @@ const defaultFormatOptions = {
2719
2719
  style: "decimal",
2720
2720
  };
2721
2721
  const InputNumberRebuilt = forwardRef((props, ref) => {
2722
- var _a;
2723
2722
  const inputRef = createRef();
2724
2723
  const mergedFormatOptions = Object.assign(Object.assign({}, defaultFormatOptions), props.formatOptions);
2725
2724
  function handleChange(newValue, event) {
@@ -2739,16 +2738,12 @@ const InputNumberRebuilt = forwardRef((props, ref) => {
2739
2738
  }
2740
2739
  },
2741
2740
  }));
2742
- const { align, description, disabled, error, inline, invalid, placeholder,
2743
- // Support both old and new prop names
2744
- readonly, readOnly = readonly, showMiniLabel = true, size, minValue, maxValue,
2741
+ const { align, description, disabled, error, inline, invalid, placeholder, readOnly, showMiniLabel = true, size, minValue, maxValue,
2745
2742
  // Deprecated props (filter out to avoid spreading to React Aria)
2746
2743
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2747
- identifier: _deprecatedIdentifier,
2748
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2749
- autocomplete: _deprecatedAutocomplete } = props, ariaNumberFieldProps = __rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "readOnly", "showMiniLabel", "size", "minValue", "maxValue", "identifier", "autocomplete"]);
2744
+ identifier: _deprecatedIdentifier } = props, ariaNumberFieldProps = __rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readOnly", "showMiniLabel", "size", "minValue", "maxValue", "identifier"]);
2750
2745
  const stringDescription = typeof description === "string";
2751
- return (React__default.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, id: (_a = props.id) !== null && _a !== void 0 ? _a : props.identifier, isDisabled: disabled, isInvalid: invalid, isReadOnly: readOnly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
2746
+ return (React__default.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, id: props.id, isDisabled: disabled, isInvalid: invalid, isReadOnly: readOnly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
2752
2747
  React__default.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: classnames(styles.wrapper, align && styles[align], invalid && styles.invalid, disabled && styles.disabled) },
2753
2748
  React__default.createElement("div", { className: styles.horizontalWrapper },
2754
2749
  React__default.createElement("div", { className: classnames(styles.inputWrapper, disabled && styles.disabled, !showMiniLabel && styles.hideLabel, size && styles[size]) },
@@ -41,17 +41,5 @@ export interface InputPhoneNumberRebuiltProps extends Omit<HTMLInputBaseProps, "
41
41
  * @deprecated Use `id` instead. This prop will be removed in a future version.
42
42
  */
43
43
  readonly identifier?: string;
44
- /**
45
- * @deprecated Use `autoComplete` with string values instead. This prop will be removed in a future version.
46
- */
47
- readonly autocomplete?: never;
48
- /**
49
- * @deprecated Use `aria-label` instead. This prop will be removed in a future version.
50
- */
51
- readonly ariaLabel?: never;
52
- /**
53
- * @deprecated Use `readOnly` instead. This prop will be removed in a future version.
54
- */
55
- readonly readonly?: never;
56
44
  }
57
45
  export declare const DEFAULT_PATTERN = "(***) ***-****";
@@ -149,9 +149,7 @@ function useInputPhoneActions({ onChange, inputRef, onFocus, onBlur, onKeyDown,
149
149
  };
150
150
  }
151
151
 
152
- const InputPhoneNumberRebuilt = React.forwardRef(
153
- // eslint-disable-next-line max-statements
154
- function InputPhoneNumberInternal(_a, ref) {
152
+ const InputPhoneNumberRebuilt = React.forwardRef(function InputPhoneNumberInternal(_a, ref) {
155
153
  var _b, _c, _d, _e;
156
154
  var { pattern = DEFAULT_PATTERN } = _a, props = tslib_es6.__rest(_a, ["pattern"]);
157
155
  const inputPhoneNumberRef = (_b = ref) !== null && _b !== void 0 ? _b : React.useRef(null);
@@ -189,12 +187,11 @@ function InputPhoneNumberInternal(_a, ref) {
189
187
  });
190
188
  const descriptionIdentifier = `descriptionUUID--${id}`;
191
189
  const hasDescription = props.description && !props.inline;
192
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
193
- const effectiveReadOnly = props.readonly || props.readOnly;
194
- return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, inline: props.inline, wrapperRef: wrapperRef, error: (_c = props.error) !== null && _c !== void 0 ? _c : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_d = props.clearable) !== null && _d !== void 0 ? _d : "never", onClear: handleClear, type: "tel", placeholder: props.placeholder, value: formattedValue, prefix: props.prefix, suffix: props.suffix, readonly: effectiveReadOnly, loading: props.loading },
190
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
191
+ return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, inline: props.inline, wrapperRef: wrapperRef, error: (_c = props.error) !== null && _c !== void 0 ? _c : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_d = props.clearable) !== null && _d !== void 0 ? _d : "never", onClear: handleClear, type: "tel", placeholder: props.placeholder, value: formattedValue, prefix: props.prefix, suffix: props.suffix, readonly: props.readOnly, loading: props.loading },
195
192
  React.createElement("input", { id: id, name: name, type: "tel", ref: inputPhoneNumberRef, className: classnames(inputStyle, {
196
193
  [styles.emptyValue]: inputValue.length === 0 && pattern[0] === "(",
197
- }), value: formattedValue, disabled: props.disabled, readOnly: effectiveReadOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown }),
194
+ }), value: formattedValue, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown }),
198
195
  React.createElement(MaskElement, { isMasking: isMasking, formattedValue: formattedValue, placeholderMask: placeholderMask }),
199
196
  React.createElement(FormField.FormFieldPostFix, { variation: "spinner", visible: (_e = props.loading) !== null && _e !== void 0 ? _e : false })));
200
197
  });
@@ -147,9 +147,7 @@ function useInputPhoneActions({ onChange, inputRef, onFocus, onBlur, onKeyDown,
147
147
  };
148
148
  }
149
149
 
150
- const InputPhoneNumberRebuilt = forwardRef(
151
- // eslint-disable-next-line max-statements
152
- function InputPhoneNumberInternal(_a, ref) {
150
+ const InputPhoneNumberRebuilt = forwardRef(function InputPhoneNumberInternal(_a, ref) {
153
151
  var _b, _c, _d, _e;
154
152
  var { pattern = DEFAULT_PATTERN } = _a, props = __rest(_a, ["pattern"]);
155
153
  const inputPhoneNumberRef = (_b = ref) !== null && _b !== void 0 ? _b : React__default.useRef(null);
@@ -187,12 +185,11 @@ function InputPhoneNumberInternal(_a, ref) {
187
185
  });
188
186
  const descriptionIdentifier = `descriptionUUID--${id}`;
189
187
  const hasDescription = props.description && !props.inline;
190
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
191
- const effectiveReadOnly = props.readonly || props.readOnly;
192
- return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, inline: props.inline, wrapperRef: wrapperRef, error: (_c = props.error) !== null && _c !== void 0 ? _c : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_d = props.clearable) !== null && _d !== void 0 ? _d : "never", onClear: handleClear, type: "tel", placeholder: props.placeholder, value: formattedValue, prefix: props.prefix, suffix: props.suffix, readonly: effectiveReadOnly, loading: props.loading },
188
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
189
+ return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, inline: props.inline, wrapperRef: wrapperRef, error: (_c = props.error) !== null && _c !== void 0 ? _c : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_d = props.clearable) !== null && _d !== void 0 ? _d : "never", onClear: handleClear, type: "tel", placeholder: props.placeholder, value: formattedValue, prefix: props.prefix, suffix: props.suffix, readonly: props.readOnly, loading: props.loading },
193
190
  React__default.createElement("input", { id: id, name: name, type: "tel", ref: inputPhoneNumberRef, className: classnames(inputStyle, {
194
191
  [styles.emptyValue]: inputValue.length === 0 && pattern[0] === "(",
195
- }), value: formattedValue, disabled: props.disabled, readOnly: effectiveReadOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown }),
192
+ }), value: formattedValue, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown }),
196
193
  React__default.createElement(MaskElement, { isMasking: isMasking, formattedValue: formattedValue, placeholderMask: placeholderMask }),
197
194
  React__default.createElement(FormFieldPostFix, { variation: "spinner", visible: (_e = props.loading) !== null && _e !== void 0 ? _e : false })));
198
195
  });
@@ -51,18 +51,6 @@ export interface InputTextRebuiltProps extends HTMLInputBaseProps, FocusEvents<H
51
51
  * @deprecated Use `id` instead. This prop will be removed in a future version.
52
52
  */
53
53
  readonly identifier?: string;
54
- /**
55
- * @deprecated Use `autoComplete` with string values instead. This prop will be removed in a future version.
56
- */
57
- readonly autocomplete?: never;
58
- /**
59
- * @deprecated Use `aria-label` instead. This prop will be removed in a future version.
60
- */
61
- readonly ariaLabel?: never;
62
- /**
63
- * @deprecated Use `readOnly` instead. This prop will be removed in a future version.
64
- */
65
- readonly readonly?: never;
66
54
  }
67
55
  interface BaseProps extends CommonFormFieldProps, Pick<FormFieldProps, "autofocus" | "maxLength" | "readonly" | "autocomplete" | "keyboard" | "onEnter" | "onFocus" | "onBlur" | "onChange" | "inputRef" | "validations" | "defaultValue" | "prefix" | "suffix" | "toolbar" | "toolbarVisibility" | "version"> {
68
56
  multiline?: boolean;
@@ -222,10 +222,10 @@ const InputTextSPAR = React.forwardRef(function InputTextInternal(props, inputRe
222
222
  });
223
223
  const descriptionIdentifier = `descriptionUUID--${id}`;
224
224
  const hasDescription = props.description && !props.inline;
225
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
225
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
226
226
  return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autoFocus, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_b = props.clearable) !== null && _b !== void 0 ? _b : "never", onClear: handleClear, type: props.multiline ? "textarea" : "text", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, rows: rowRange.min, toolbar: props.toolbar, toolbarVisibility: props.toolbarVisibility },
227
227
  React.createElement(React.Fragment, null,
228
- props.multiline ? (React.createElement(TextArea, { id: id, name: name, className: inputStyle, value: props.value, rows: rowRange.min, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: FormField.mergeRefs([inputRefs, inputTextRef]) })) : (React.createElement(TextInput, { id: id, name: name, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, max: props.max, min: props.min, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: FormField.mergeRefs([inputRefs, inputTextRef]) })),
228
+ props.multiline ? (React.createElement(TextArea, { id: id, name: name, className: inputStyle, value: props.value, rows: rowRange.min, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: FormField.mergeRefs([inputRefs, inputTextRef]) })) : (React.createElement(TextInput, { id: id, name: name, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, max: props.max, min: props.min, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: FormField.mergeRefs([inputRefs, inputTextRef]) })),
229
229
  React.createElement(FormField.FormFieldPostFix, { variation: "spinner", visible: (_c = props.loading) !== null && _c !== void 0 ? _c : false }),
230
230
  props.children)));
231
231
  });
@@ -220,10 +220,10 @@ const InputTextSPAR = forwardRef(function InputTextInternal(props, inputRefs) {
220
220
  });
221
221
  const descriptionIdentifier = `descriptionUUID--${id}`;
222
222
  const hasDescription = props.description && !props.inline;
223
- const isInvalid = Boolean(props["aria-invalid"] || props.error || props.invalid);
223
+ const isInvalid = Boolean(props.ariaInvalid || props.error || props.invalid);
224
224
  return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autoFocus, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_b = props.clearable) !== null && _b !== void 0 ? _b : "never", onClear: handleClear, type: props.multiline ? "textarea" : "text", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, rows: rowRange.min, toolbar: props.toolbar, toolbarVisibility: props.toolbarVisibility },
225
225
  React__default.createElement(React__default.Fragment, null,
226
- props.multiline ? (React__default.createElement(TextArea, { id: id, name: name, className: inputStyle, value: props.value, rows: rowRange.min, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: mergeRefs([inputRefs, inputTextRef]) })) : (React__default.createElement(TextInput, { id: id, name: name, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, max: props.max, min: props.min, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props["aria-label"], "aria-describedby": hasDescription ? descriptionIdentifier : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: mergeRefs([inputRefs, inputTextRef]) })),
226
+ props.multiline ? (React__default.createElement(TextArea, { id: id, name: name, className: inputStyle, value: props.value, rows: rowRange.min, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: mergeRefs([inputRefs, inputTextRef]) })) : (React__default.createElement(TextInput, { id: id, name: name, className: inputStyle, value: props.value, disabled: props.disabled, readOnly: props.readOnly, required: props.required, autoFocus: props.autoFocus, autoComplete: props.autoComplete, maxLength: props.maxLength, minLength: props.minLength, max: props.max, min: props.min, pattern: props.pattern, inputMode: props.inputMode, tabIndex: props.tabIndex, role: props.role, "aria-label": props.ariaLabel, "aria-describedby": hasDescription ? descriptionIdentifier : props.ariaDescribedBy, "aria-invalid": isInvalid ? true : undefined, "aria-controls": props.ariaControls, "aria-expanded": props.ariaExpanded, "aria-activedescendant": props.ariaActiveDescendant, "aria-autocomplete": props.ariaAutocomplete, "aria-required": props.ariaRequired, invalid: isInvalid ? "true" : undefined, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: props.onKeyUp, ref: mergeRefs([inputRefs, inputTextRef]) })),
227
227
  React__default.createElement(FormFieldPostFix, { variation: "spinner", visible: (_c = props.loading) !== null && _c !== void 0 ? _c : false }),
228
228
  props.children)));
229
229
  });
@@ -28,18 +28,10 @@ export interface InputTimeRebuiltProps extends Omit<InputTimeProps, "defaultValu
28
28
  * Error message to display.
29
29
  */
30
30
  error?: string;
31
- /**
32
- * @deprecated Use `readOnly` (camelCase) instead.
33
- */
34
- readonly readonly?: boolean;
35
31
  /**
36
32
  * Whether the input is read-only.
37
33
  */
38
34
  readonly readOnly?: boolean;
39
- /**
40
- * @deprecated Use `autoComplete` (camelCase) instead.
41
- */
42
- readonly autocomplete?: boolean;
43
35
  /**
44
36
  * HTML autocomplete attribute for browser autofill.
45
37
  */
@@ -206,11 +206,9 @@ function timeStringToDate(timeString, baseDate) {
206
206
 
207
207
  const InputTimeRebuilt = React.forwardRef(function InputTimeRebuilt(_a, forwardedRef) {
208
208
  var _b;
209
- var { value, onChange,
210
- // Support both old and new prop names
211
- readonly, readOnly = readonly, autocomplete, autoComplete = typeof autocomplete === "string" ? autocomplete : undefined,
209
+ var { value, onChange, readOnly, autoComplete,
212
210
  // Deprecated props
213
- inputRef: deprecatedInputRef } = _a, params = tslib_es6.__rest(_a, ["value", "onChange", "readonly", "readOnly", "autocomplete", "autoComplete", "inputRef"]);
211
+ inputRef: deprecatedInputRef } = _a, params = tslib_es6.__rest(_a, ["value", "onChange", "readOnly", "autoComplete", "inputRef"]);
214
212
  const internalRef = React.useRef(null);
215
213
  const mergedRef = FormField.mergeRefs([
216
214
  internalRef,
@@ -231,7 +229,7 @@ const InputTimeRebuilt = React.forwardRef(function InputTimeRebuilt(_a, forwarde
231
229
  if (params.disabled || readOnly)
232
230
  return;
233
231
  !isNaN(parseInt(e.key, 10)) && setTypedTime(prev => prev + e.key);
234
- }, "data-testid": "ATL-InputTime-input", value: dateToTimeString(value), "aria-label": params["aria-label"], "aria-describedby": params["aria-describedby"], "aria-invalid": params["aria-invalid"], "aria-required": params["aria-required"] })));
232
+ }, "data-testid": "ATL-InputTime-input", value: dateToTimeString(value), "aria-label": params.ariaLabel, "aria-describedby": params.ariaDescribedBy, "aria-invalid": params.ariaInvalid, "aria-required": params.ariaRequired })));
235
233
  function handleChangeEvent(event) {
236
234
  handleChange(event.target.value);
237
235
  }
@@ -204,11 +204,9 @@ function timeStringToDate(timeString, baseDate) {
204
204
 
205
205
  const InputTimeRebuilt = forwardRef(function InputTimeRebuilt(_a, forwardedRef) {
206
206
  var _b;
207
- var { value, onChange,
208
- // Support both old and new prop names
209
- readonly, readOnly = readonly, autocomplete, autoComplete = typeof autocomplete === "string" ? autocomplete : undefined,
207
+ var { value, onChange, readOnly, autoComplete,
210
208
  // Deprecated props
211
- inputRef: deprecatedInputRef } = _a, params = __rest(_a, ["value", "onChange", "readonly", "readOnly", "autocomplete", "autoComplete", "inputRef"]);
209
+ inputRef: deprecatedInputRef } = _a, params = __rest(_a, ["value", "onChange", "readOnly", "autoComplete", "inputRef"]);
212
210
  const internalRef = useRef(null);
213
211
  const mergedRef = mergeRefs([
214
212
  internalRef,
@@ -229,7 +227,7 @@ const InputTimeRebuilt = forwardRef(function InputTimeRebuilt(_a, forwardedRef)
229
227
  if (params.disabled || readOnly)
230
228
  return;
231
229
  !isNaN(parseInt(e.key, 10)) && setTypedTime(prev => prev + e.key);
232
- }, "data-testid": "ATL-InputTime-input", value: dateToTimeString(value), "aria-label": params["aria-label"], "aria-describedby": params["aria-describedby"], "aria-invalid": params["aria-invalid"], "aria-required": params["aria-required"] })));
230
+ }, "data-testid": "ATL-InputTime-input", value: dateToTimeString(value), "aria-label": params.ariaLabel, "aria-describedby": params.ariaDescribedBy, "aria-invalid": params.ariaInvalid, "aria-required": params.ariaRequired })));
233
231
  function handleChangeEvent(event) {
234
232
  handleChange(event.target.value);
235
233
  }
@@ -15,10 +15,6 @@ export interface SelectRebuiltProps extends Omit<SelectLegacyProps, "defaultValu
15
15
  onChange?(newValue?: string | number): void;
16
16
  version: 2;
17
17
  error?: string;
18
- /**
19
- * @deprecated Use `autoFocus` (camelCase) instead.
20
- */
21
- readonly autofocus?: boolean;
22
18
  /**
23
19
  * Automatically focus the select when mounted.
24
20
  */
@@ -58,7 +58,7 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
58
58
  var styles = {"select":"-hmXAsAfH9U-","selectPostfix":"_5ST4c1fXDYU-","spinning":"oOACJmrVDf0-"};
59
59
 
60
60
  const SelectRebuilt = React.forwardRef(function SelectRebuilt(props, forwardedRef) {
61
- var _a, _b, _c;
61
+ var _a;
62
62
  // Deprecated props
63
63
  const { inputRef: deprecatedInputRef } = props;
64
64
  const internalRef = React.useRef(null);
@@ -80,12 +80,12 @@ const SelectRebuilt = React.forwardRef(function SelectRebuilt(props, forwardedRe
80
80
  onBlur: props.onBlur,
81
81
  onFocus: props.onFocus,
82
82
  });
83
- return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: (_a = props.autoFocus) !== null && _a !== void 0 ? _a : props.autofocus, name: name, wrapperRef: wrapperRef, error: (_b = props.error) !== null && _b !== void 0 ? _b : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
83
+ return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autoFocus, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
84
84
  React.createElement(React.Fragment, null,
85
- React.createElement("select", { id: id, name: name, disabled: props.disabled, autoFocus: (_c = props.autoFocus) !== null && _c !== void 0 ? _c : props.autofocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props["aria-label"], "aria-describedby": props["aria-describedby"] ||
85
+ React.createElement("select", { id: id, name: name, disabled: props.disabled, autoFocus: props.autoFocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props.ariaLabel, "aria-describedby": props.ariaDescribedBy ||
86
86
  (props.description && !props.inline
87
87
  ? descriptionIdentifier
88
- : undefined), "aria-invalid": props["aria-invalid"], "aria-required": props["aria-required"], ref: mergedRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }, props.children),
88
+ : undefined), "aria-invalid": props.ariaInvalid, "aria-required": props.ariaRequired, ref: mergedRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }, props.children),
89
89
  React.createElement(FormField.FormFieldPostFix, { variation: "select", className: styles.selectPostfix }))));
90
90
  });
91
91
  function useSelectId(props) {
@@ -56,7 +56,7 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
56
56
  var styles = {"select":"-hmXAsAfH9U-","selectPostfix":"_5ST4c1fXDYU-","spinning":"oOACJmrVDf0-"};
57
57
 
58
58
  const SelectRebuilt = forwardRef(function SelectRebuilt(props, forwardedRef) {
59
- var _a, _b, _c;
59
+ var _a;
60
60
  // Deprecated props
61
61
  const { inputRef: deprecatedInputRef } = props;
62
62
  const internalRef = useRef(null);
@@ -78,12 +78,12 @@ const SelectRebuilt = forwardRef(function SelectRebuilt(props, forwardedRef) {
78
78
  onBlur: props.onBlur,
79
79
  onFocus: props.onFocus,
80
80
  });
81
- return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: (_a = props.autoFocus) !== null && _a !== void 0 ? _a : props.autofocus, name: name, wrapperRef: wrapperRef, error: (_b = props.error) !== null && _b !== void 0 ? _b : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
81
+ return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autoFocus, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
82
82
  React__default.createElement(React__default.Fragment, null,
83
- React__default.createElement("select", { id: id, name: name, disabled: props.disabled, autoFocus: (_c = props.autoFocus) !== null && _c !== void 0 ? _c : props.autofocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props["aria-label"], "aria-describedby": props["aria-describedby"] ||
83
+ React__default.createElement("select", { id: id, name: name, disabled: props.disabled, autoFocus: props.autoFocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props.ariaLabel, "aria-describedby": props.ariaDescribedBy ||
84
84
  (props.description && !props.inline
85
85
  ? descriptionIdentifier
86
- : undefined), "aria-invalid": props["aria-invalid"], "aria-required": props["aria-required"], ref: mergedRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }, props.children),
86
+ : undefined), "aria-invalid": props.ariaInvalid, "aria-required": props.ariaRequired, ref: mergedRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }, props.children),
87
87
  React__default.createElement(FormFieldPostFix, { variation: "select", className: styles.selectPostfix }))));
88
88
  });
89
89
  function useSelectId(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.103.2-JOB-140609-fafe469.18+fafe4690a",
3
+ "version": "6.103.2-JOB-140609-9051081.26+90510815f",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -538,5 +538,5 @@
538
538
  "> 1%",
539
539
  "IE 10"
540
540
  ],
541
- "gitHead": "fafe4690a2eab7c65da608dc151b2bb4e6a5d696"
541
+ "gitHead": "90510815f31f3c04ee1c9d53cd024e26c94a3e2f"
542
542
  }