@jobber/components 6.116.4 → 6.116.5
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/Autocomplete/Autocomplete.types.d.ts +3 -0
- package/dist/Checkbox/Checkbox.types.d.ts +3 -0
- package/dist/InputDate/InputDate.types.d.ts +3 -0
- package/dist/InputDate/index.cjs +1 -0
- package/dist/InputDate/index.mjs +1 -0
- package/dist/InputEmail/InputEmail.types.d.ts +3 -0
- package/dist/InputEmail/index.cjs +1 -0
- package/dist/InputEmail/index.mjs +1 -0
- package/dist/InputNumber/InputNumber.d.ts +3 -0
- package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +3 -0
- package/dist/InputText/InputText.types.d.ts +1 -1
- package/dist/InputText/index.cjs +3 -1
- package/dist/InputText/index.mjs +3 -1
- package/dist/InputTime/InputTime.types.d.ts +3 -0
- package/dist/Select/Select.types.d.ts +3 -0
- package/dist/Select/index.cjs +1 -0
- package/dist/Select/index.mjs +1 -0
- package/package.json +2 -2
|
@@ -68,6 +68,9 @@ export interface AutocompleteBaseProps<GenericOption extends AnyOption = AnyOpti
|
|
|
68
68
|
*/
|
|
69
69
|
readonly customRenderMenu?: (props: CustomOptionsMenuProp<GenericOption | GenericGetOptionsValue, GenericOptionValue>) => React.ReactElement;
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Use the v2 Autocomplete component instead (version={2}).
|
|
73
|
+
*/
|
|
71
74
|
export interface AutocompleteLegacyProps<GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option, GenericGetOptionsValue extends AnyOption = AnyOption> extends AutocompleteBaseProps<GenericOption, GenericOptionValue, GenericGetOptionsValue> {
|
|
72
75
|
/**
|
|
73
76
|
* Version of the component to use.
|
|
@@ -95,6 +95,9 @@ export type CheckboxRebuiltProps = CheckboxCoreProps & AriaInputProps & FocusEve
|
|
|
95
95
|
*/
|
|
96
96
|
onChange?(newValue: boolean, event: React.ChangeEvent<HTMLInputElement>): void;
|
|
97
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Use the v2 Checkbox component instead (version={2}).
|
|
100
|
+
*/
|
|
98
101
|
export type CheckboxLegacyProps = XOR<CheckboxLabelProps, CheckboxChildrenProps> & {
|
|
99
102
|
version?: 1;
|
|
100
103
|
};
|
|
@@ -34,6 +34,9 @@ export interface InputDateRebuiltProps extends HTMLInputBaseProps, FocusEvents<H
|
|
|
34
34
|
*/
|
|
35
35
|
readonly emptyValueLabel?: string;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use the v2 InputDate component instead (version={2}).
|
|
39
|
+
*/
|
|
37
40
|
export interface InputDateProps extends Omit<CommonFormFieldProps, "clearable">, Pick<FormFieldProps, "readonly" | "disabled" | "onEnter" | "onFocus" | "inputRef" | "validations" | "placeholder" | "onChange" | "onBlur"> {
|
|
38
41
|
/**
|
|
39
42
|
* A Date object value
|
package/dist/InputDate/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ require('react-dom');
|
|
|
37
37
|
require('../AtlantisContext-cjs.js');
|
|
38
38
|
require('../filterDataAttributes-cjs.js');
|
|
39
39
|
|
|
40
|
+
// eslint-disable-next-line import/no-deprecated
|
|
40
41
|
function InputDate$1(inputProps) {
|
|
41
42
|
const formFieldActionsRef = React.useRef(null);
|
|
42
43
|
return (React.createElement(DatePicker.DatePicker, { selected: inputProps.value, onChange: inputProps.onChange, disabled: inputProps.disabled, readonly: inputProps.readonly, fullWidth: !inputProps.inline, minDate: inputProps.minDate, maxDate: inputProps.maxDate, smartAutofocus: false, activator: activatorProps => {
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ import 'react-dom';
|
|
|
35
35
|
import '../AtlantisContext-es.js';
|
|
36
36
|
import '../filterDataAttributes-es.js';
|
|
37
37
|
|
|
38
|
+
// eslint-disable-next-line import/no-deprecated
|
|
38
39
|
function InputDate$1(inputProps) {
|
|
39
40
|
const formFieldActionsRef = useRef(null);
|
|
40
41
|
return (React__default.createElement(DatePicker, { selected: inputProps.value, onChange: inputProps.onChange, disabled: inputProps.disabled, readonly: inputProps.readonly, fullWidth: !inputProps.inline, minDate: inputProps.minDate, maxDate: inputProps.maxDate, smartAutofocus: false, activator: activatorProps => {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
2
2
|
import type { FocusEvents, HTMLInputBaseProps, KeyboardEvents, MouseEvents, RebuiltInputCommonProps } from "../sharedHelpers/types";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use the v2 InputEmail component instead (version={2}).
|
|
5
|
+
*/
|
|
3
6
|
export type InputEmailLegacyProps = CommonFormFieldProps & Pick<FormFieldProps, "maxLength" | "readonly" | "validations" | "defaultValue">;
|
|
4
7
|
export declare const validationMessage = "Please enter a valid email";
|
|
5
8
|
export type InputEmailVersion = 1 | 2 | undefined;
|
|
@@ -20,6 +20,7 @@ require('react-router-dom');
|
|
|
20
20
|
|
|
21
21
|
const validationMessage = "Please enter a valid email";
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line import/no-deprecated
|
|
23
24
|
function InputEmail$1(props) {
|
|
24
25
|
const { validations } = props;
|
|
25
26
|
return (React.createElement(FormField.FormField, Object.assign({}, props, { type: "email", validations: Object.assign(Object.assign({}, validations), { validate: checkForValidEmail }) })));
|
|
@@ -18,6 +18,7 @@ import 'react-router-dom';
|
|
|
18
18
|
|
|
19
19
|
const validationMessage = "Please enter a valid email";
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line import/no-deprecated
|
|
21
22
|
function InputEmail$1(props) {
|
|
22
23
|
const { validations } = props;
|
|
23
24
|
return (React__default.createElement(FormField, Object.assign({}, props, { type: "email", validations: Object.assign(Object.assign({}, validations), { validate: checkForValidEmail }) })));
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use the v2 InputNumber component instead (version={2}).
|
|
5
|
+
*/
|
|
3
6
|
export interface InputNumberProps extends Omit<CommonFormFieldProps, "version">, Pick<FormFieldProps, "maxLength" | "autocomplete" | "max" | "min" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "readonly" | "defaultValue" | "keyboard" | "prefix" | "suffix"> {
|
|
4
7
|
readonly value?: number;
|
|
5
8
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { InputMaskProps } from "./InputMask";
|
|
2
2
|
import type { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
3
|
import type { FocusEvents, HTMLInputBaseProps, KeyboardEvents, MouseEvents, RebuiltInputCommonProps } from "../sharedHelpers/types";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use the v2 InputPhoneNumber component instead (version={2}).
|
|
6
|
+
*/
|
|
4
7
|
export interface InputPhoneNumberLegacyProps extends Omit<CommonFormFieldProps, "align">, Pick<FormFieldProps, "autocomplete" | "onEnter" | "onFocus" | "onBlur" | "validations" | "readonly" | "prefix" | "suffix"> {
|
|
5
8
|
readonly value: string;
|
|
6
9
|
readonly onChange: (value: string) => void;
|
|
@@ -77,7 +77,7 @@ interface MultilineProps extends BaseProps {
|
|
|
77
77
|
readonly rows?: number | RowRange;
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* @deprecated Use the v2 InputText component instead (version={2}).
|
|
81
81
|
*/
|
|
82
82
|
export type InputTextLegacyProps = XOR<BaseProps, MultilineProps>;
|
|
83
83
|
export {};
|
package/dist/InputText/index.cjs
CHANGED
|
@@ -83,7 +83,9 @@ function getRowRange(rows) {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
function InputTextInternal(
|
|
86
|
+
function InputTextInternal(
|
|
87
|
+
// eslint-disable-next-line import/no-deprecated
|
|
88
|
+
props, ref) {
|
|
87
89
|
const inputRef = React.useRef(null);
|
|
88
90
|
const actionsRef = React.useRef(null);
|
|
89
91
|
const wrapperRef = React.useRef(null);
|
package/dist/InputText/index.mjs
CHANGED
|
@@ -81,7 +81,9 @@ function getRowRange(rows) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
function InputTextInternal(
|
|
84
|
+
function InputTextInternal(
|
|
85
|
+
// eslint-disable-next-line import/no-deprecated
|
|
86
|
+
props, ref) {
|
|
85
87
|
const inputRef = useRef(null);
|
|
86
88
|
const actionsRef = useRef(null);
|
|
87
89
|
const wrapperRef = useRef(null);
|
|
@@ -17,6 +17,9 @@ export interface InputTimeProps extends Pick<CommonFormFieldProps, "id" | "align
|
|
|
17
17
|
*/
|
|
18
18
|
onChange?(newValue?: Date): void;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use the v2 InputTime component instead (version={2}).
|
|
22
|
+
*/
|
|
20
23
|
export interface InputTimeLegacyProps extends InputTimeProps {
|
|
21
24
|
version?: 1;
|
|
22
25
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Ref } from "react";
|
|
2
2
|
import type { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
3
|
import type { FocusEvents, HTMLInputBaseProps, RebuiltInputCommonProps } from "../sharedHelpers/types";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use the v2 Select component instead (version={2}).
|
|
6
|
+
*/
|
|
4
7
|
export interface SelectLegacyProps extends Pick<CommonFormFieldProps, "id" | "align" | "description" | "disabled" | "invalid" | "inline" | "name" | "onValidation" | "placeholder" | "size" | "value" | "onChange">, Pick<FormFieldProps, "autofocus" | "onEnter" | "onBlur" | "onFocus" | "inputRef" | "wrapperRef" | "validations" | "children" | "prefix" | "suffix" | "defaultValue" | "version"> {
|
|
5
8
|
/**
|
|
6
9
|
* Changes the width to roughly the same size as the maximum character length
|
package/dist/Select/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ require('../InputValidation-cjs.js');
|
|
|
30
30
|
require('../Spinner-cjs.js');
|
|
31
31
|
require('react-router-dom');
|
|
32
32
|
|
|
33
|
+
// eslint-disable-next-line import/no-deprecated
|
|
33
34
|
function Select$1(props) {
|
|
34
35
|
const formFieldProps = omit.omit(Object.assign({}, props), ["version"]);
|
|
35
36
|
return React.createElement(FormField.FormField, Object.assign({ type: "select" }, formFieldProps));
|
package/dist/Select/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ import '../InputValidation-es.js';
|
|
|
28
28
|
import '../Spinner-es.js';
|
|
29
29
|
import 'react-router-dom';
|
|
30
30
|
|
|
31
|
+
// eslint-disable-next-line import/no-deprecated
|
|
31
32
|
function Select$1(props) {
|
|
32
33
|
const formFieldProps = omit(Object.assign({}, props), ["version"]);
|
|
33
34
|
return React__default.createElement(FormField, Object.assign({ type: "select" }, formFieldProps));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.116.
|
|
3
|
+
"version": "6.116.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -539,5 +539,5 @@
|
|
|
539
539
|
"> 1%",
|
|
540
540
|
"IE 10"
|
|
541
541
|
],
|
|
542
|
-
"gitHead": "
|
|
542
|
+
"gitHead": "32a7c3acc520be4a8014e3ff2c1206f9ea6dc349"
|
|
543
543
|
}
|