@jobber/components 4.1.1 → 4.1.3-pre.14
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/index.js +12 -12
- package/dist/Avatar/index.js +2 -2
- package/dist/{Avatar-89cfd0a6.js → Avatar-01c5ba8b.js} +3 -3
- package/dist/Banner/index.js +8 -8
- package/dist/Button/index.js +3 -3
- package/dist/Button-186ef2c1.js +57 -0
- package/dist/ButtonDismiss/index.js +4 -4
- package/dist/{ButtonDismiss-3fb1eaf9.js → ButtonDismiss-d2d16622.js} +1 -1
- package/dist/Card/index.js +6 -6
- package/dist/Card-c0f88c0f.js +93 -0
- package/dist/Checkbox/index.js +4 -4
- package/dist/Checkbox-1df46a4a.js +40 -0
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +1 -1
- package/dist/Chips/index.js +11 -11
- package/dist/ConfirmationModal/index.js +11 -11
- package/dist/{ConfirmationModal-6a7beee2.js → ConfirmationModal-ac668c46.js} +3 -3
- package/dist/Content/index.js +2 -2
- package/dist/{Content-05df8f7f.js → Content-af82acba.js} +5 -5
- package/dist/DataDump/index.js +8 -8
- package/dist/DataTable/index.js +17 -17
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker-e085dff4.js +106 -0
- package/dist/DescriptionList/index.js +4 -4
- package/dist/Disclosure/index.js +5 -5
- package/dist/Divider/index.js +3 -3
- package/dist/Drawer/index.js +9 -9
- package/dist/Emphasis/index.js +3 -3
- package/dist/{Emphasis-23dc2a0a.js → Emphasis-53e963b5.js} +1 -1
- package/dist/FeatureSwitch/index.js +11 -11
- package/dist/Form/index.js +2 -2
- package/dist/FormField/index.js +8 -8
- package/dist/{FormField-79a0a375.js → FormField-aff52a1d.js} +21 -13
- package/dist/FormatEmail/index.js +3 -3
- package/dist/FormatFile/index.js +13 -13
- package/dist/FormatFile-42ea7a6a.js +105 -0
- package/dist/Gallery/index.js +16 -16
- package/dist/Heading/index.js +3 -3
- package/dist/{Heading-7b203f7f.js → Heading-8c6e4e0b.js} +1 -1
- package/dist/InlineLabel/index.js +4 -4
- package/dist/InputAvatar/index.js +10 -10
- package/dist/InputDate/index.js +9 -9
- package/dist/InputEmail/index.js +8 -8
- package/dist/InputFile/index.js +6 -6
- package/dist/{InputFile-5e0ed2b5.js → InputFile-e7c15211.js} +7 -7
- package/dist/InputGroup/index.js +3 -3
- package/dist/InputNumber/index.js +8 -8
- package/dist/InputPassword/index.js +8 -8
- package/dist/InputText/InputText.d.ts +74 -17
- package/dist/InputText/index.js +9 -9
- package/dist/{InputText-95ea24f9.js → InputText-90bf6056.js} +1 -1
- package/dist/InputTime/index.js +652 -812
- package/dist/InputValidation/index.js +4 -4
- package/dist/{InputValidation-97dd0dcf.js → InputValidation-e09f5d20.js} +4 -4
- package/dist/LightBox/index.js +5 -5
- package/dist/{LightBox-dd1afa97.js → LightBox-8472bc9d.js} +5 -5
- package/dist/List/index.js +13 -13
- package/dist/Markdown/index.js +7 -7
- package/dist/{Markdown-be2dcd0c.js → Markdown-5d86d6e7.js} +4 -4
- package/dist/Menu/index.js +4 -4
- package/dist/{Menu-d6a7d17b.js → Menu-b5e8d8f9.js} +5 -5
- package/dist/Modal/index.js +6 -6
- package/dist/{Modal-757e83fd.js → Modal-e41f9284.js} +8 -8
- package/dist/MultiSelect/index.js +8 -8
- package/dist/{Option-4b665afd.js → Option-9aa09e72.js} +1 -1
- package/dist/Page/index.js +11 -11
- package/dist/Popover/index.js +6 -6
- package/dist/ProgressBar/index.js +2 -2
- package/dist/ProgressBar-d3178aa9.js +28 -0
- package/dist/RadioGroup/index.js +5 -5
- package/dist/Select/index.js +9 -9
- package/dist/Spinner/index.js +2 -2
- package/dist/Spinner-35cee923.js +24 -0
- package/dist/StatusLabel/index.js +5 -5
- package/dist/Switch/index.js +3 -3
- package/dist/Switch-21d7093a.js +56 -0
- package/dist/Table/index.js +5 -5
- package/dist/Tabs/index.js +4 -4
- package/dist/Text/index.js +3 -3
- package/dist/{Text-7ce00adb.js → Text-4c04ddc3.js} +1 -1
- package/dist/Toast/index.js +5 -5
- package/dist/Tooltip/index.js +4 -4
- package/dist/{Tooltip-1090a43d.js → Tooltip-27720f96.js} +4 -4
- package/dist/Typography/index.js +2 -2
- package/dist/Typography-dd9717e7.js +62 -0
- package/dist/{tslib.es6-efe27175.js → tslib.es6-5b8768b7.js} +16 -13
- package/package.json +7 -7
- package/dist/Button-16e043ec.js +0 -57
- package/dist/Card-edab9c3c.js +0 -93
- package/dist/Checkbox-c1efc2f6.js +0 -40
- package/dist/DatePicker-0696b0f0.js +0 -106
- package/dist/FormatFile-3512f838.js +0 -105
- package/dist/ProgressBar-f028b159.js +0 -28
- package/dist/Spinner-ae4c8a85.js +0 -24
- package/dist/Switch-7ac32f7b.js +0 -56
- package/dist/Typography-9262511f.js +0 -62
- /package/dist/{style-inject.es-dcee06b6.js → style-inject.es-9d2f5f4e.js} +0 -0
package/dist/InputEmail/index.js
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormField = require('../FormField-
|
|
7
|
-
require('../tslib.es6-
|
|
6
|
+
var FormField = require('../FormField-aff52a1d.js');
|
|
7
|
+
require('../tslib.es6-5b8768b7.js');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('react-hook-form');
|
|
10
|
-
require('../style-inject.es-
|
|
10
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-186ef2c1.js');
|
|
13
13
|
require('react-router-dom');
|
|
14
14
|
require('../Icon-405a216c.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
|
-
require('../Typography-
|
|
17
|
-
require('../Text-
|
|
18
|
-
require('../InputValidation-
|
|
16
|
+
require('../Typography-dd9717e7.js');
|
|
17
|
+
require('../Text-4c04ddc3.js');
|
|
18
|
+
require('../InputValidation-e09f5d20.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Spinner-
|
|
20
|
+
require('../Spinner-35cee923.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
package/dist/InputFile/index.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var InputFile = require('../InputFile-
|
|
6
|
-
require('../tslib.es6-
|
|
5
|
+
var InputFile = require('../InputFile-e7c15211.js');
|
|
6
|
+
require('../tslib.es6-5b8768b7.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('react-dropzone');
|
|
10
10
|
require('axios');
|
|
11
11
|
require('uuid');
|
|
12
|
-
require('../style-inject.es-
|
|
13
|
-
require('../Button-
|
|
12
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
13
|
+
require('../Button-186ef2c1.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
15
|
require('../Icon-405a216c.js');
|
|
16
16
|
require('@jobber/design');
|
|
17
|
-
require('../Typography-
|
|
18
|
-
require('../Content-
|
|
17
|
+
require('../Typography-dd9717e7.js');
|
|
18
|
+
require('../Content-af82acba.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-5b8768b7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactDropzone = require('react-dropzone');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var uuid = require('uuid');
|
|
9
|
-
var styleInject_es = require('./style-inject.es-
|
|
10
|
-
var Button = require('./Button-
|
|
11
|
-
var Content = require('./Content-
|
|
12
|
-
var Typography = require('./Typography-
|
|
9
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
10
|
+
var Button = require('./Button-186ef2c1.js');
|
|
11
|
+
var Content = require('./Content-af82acba.js');
|
|
12
|
+
var Typography = require('./Typography-dd9717e7.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
15
|
|
|
@@ -17,9 +17,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
17
17
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
18
18
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var css_248z = "._2CgKZHQp30gXtQyW8h2Ex_ {\n font-size: 0;\n line-height: 0;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n._2CgKZHQp30gXtQyW8h2Ex_:focus,\n._2CgKZHQp30gXtQyW8h2Ex_[focus-within] {\n border-color: var(--color-focus);\n outline: none;\n}\n\n._2CgKZHQp30gXtQyW8h2Ex_:focus,\n._2CgKZHQp30gXtQyW8h2Ex_[focus-within] {\n border-color: var(--color-focus);\n outline: none;\n}\n\n._2CgKZHQp30gXtQyW8h2Ex_:focus,\n._2CgKZHQp30gXtQyW8h2Ex_:focus-within {\n border-color: var(--color-focus);\n outline: none;\n}\n\n._3nre5MPe67v_oDs44x2IDC {\n padding: var(--space-base);\n border: var(--color-border) dashed var(--border-thick);\n border-radius: var(--radius-larger);\n text-align: center;\n}\n\n._3nre5MPe67v_oDs44x2IDC._1wLTm5Es7oqZzzwFiOySeN {\n border-color: var(--color-focus);\n background-color: var(--color-surface--hover);\n}\n";
|
|
21
21
|
var styles = {"dropZoneBase":"_2CgKZHQp30gXtQyW8h2Ex_","dropZone":"_3nre5MPe67v_oDs44x2IDC","active":"_1wLTm5Es7oqZzzwFiOySeN"};
|
|
22
|
-
styleInject_es.styleInject(
|
|
22
|
+
styleInject_es.styleInject(css_248z);
|
|
23
23
|
|
|
24
24
|
function InputFile({ variation = "dropzone", size = "base", buttonLabel: providedButtonLabel, allowMultiple = false, allowedTypes = "all", getUploadParams, onUploadStart, onUploadProgress, onUploadComplete, }) {
|
|
25
25
|
const options = {
|
package/dist/InputGroup/index.js
CHANGED
|
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var styleInject_es = require('../style-inject.es-
|
|
7
|
+
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var css_248z = "._1UKIybTcnyfJQlTx901rF5 > *:not(:last-child) {\n margin-bottom: -1px !important;\n}\n\n._26qQBed5Rzu9i2ZIDEaESr {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n\n._26qQBed5Rzu9i2ZIDEaESr > *:not(:last-child) {\n margin-bottom: auto;\n margin-right: -1px;\n}\n\n/* Border corners are rounded on the outside edges of the group */\n\n._3kywSyvvwSdmNSTOqX-AQA {\n --public-field--top-left-radius: 0;\n --public-field--top-right-radius: 0;\n --public-field--bottom-left-radius: 0;\n --public-field--bottom-right-radius: 0;\n}\n\n._1UKIybTcnyfJQlTx901rF5 > :first-child:not(._26qQBed5Rzu9i2ZIDEaESr) {\n --public-field--top-left-radius: var(--radius-base);\n --public-field--top-right-radius: var(--radius-base);\n}\n\n._1UKIybTcnyfJQlTx901rF5 > :last-child:not(._26qQBed5Rzu9i2ZIDEaESr) {\n --public-field--bottom-left-radius: var(--radius-base);\n --public-field--bottom-right-radius: var(--radius-base);\n}\n\n/* First Horizontal Input Group */\n\n._26qQBed5Rzu9i2ZIDEaESr:first-child > :first-child {\n --public-field--top-left-radius: var(--radius-base);\n}\n\n._26qQBed5Rzu9i2ZIDEaESr:first-child > :last-child {\n --public-field--top-right-radius: var(--radius-base);\n}\n\n/* Last Horizontal Input Group */\n\n._26qQBed5Rzu9i2ZIDEaESr:last-child > :first-child {\n --public-field--bottom-left-radius: var(--radius-base);\n}\n\n._26qQBed5Rzu9i2ZIDEaESr:last-child > :last-child {\n --public-field--bottom-right-radius: var(--radius-base);\n}\n";
|
|
15
15
|
var styles = {"vertical":"_1UKIybTcnyfJQlTx901rF5","horizontal":"_26qQBed5Rzu9i2ZIDEaESr","inputGroup":"_3kywSyvvwSdmNSTOqX-AQA"};
|
|
16
|
-
styleInject_es.styleInject(
|
|
16
|
+
styleInject_es.styleInject(css_248z);
|
|
17
17
|
|
|
18
18
|
function InputGroup({ children, flowDirection = "vertical", }) {
|
|
19
19
|
if (isInvalidGroupNesting(children))
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormField = require('../FormField-
|
|
7
|
-
require('../tslib.es6-
|
|
6
|
+
var FormField = require('../FormField-aff52a1d.js');
|
|
7
|
+
require('../tslib.es6-5b8768b7.js');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('react-hook-form');
|
|
10
|
-
require('../style-inject.es-
|
|
10
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-186ef2c1.js');
|
|
13
13
|
require('react-router-dom');
|
|
14
14
|
require('../Icon-405a216c.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
|
-
require('../Typography-
|
|
17
|
-
require('../Text-
|
|
18
|
-
require('../InputValidation-
|
|
16
|
+
require('../Typography-dd9717e7.js');
|
|
17
|
+
require('../Text-4c04ddc3.js');
|
|
18
|
+
require('../InputValidation-e09f5d20.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Spinner-
|
|
20
|
+
require('../Spinner-35cee923.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormField = require('../FormField-
|
|
7
|
-
require('../tslib.es6-
|
|
6
|
+
var FormField = require('../FormField-aff52a1d.js');
|
|
7
|
+
require('../tslib.es6-5b8768b7.js');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('react-hook-form');
|
|
10
|
-
require('../style-inject.es-
|
|
10
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-186ef2c1.js');
|
|
13
13
|
require('react-router-dom');
|
|
14
14
|
require('../Icon-405a216c.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
|
-
require('../Typography-
|
|
17
|
-
require('../Text-
|
|
18
|
-
require('../InputValidation-
|
|
16
|
+
require('../Typography-dd9717e7.js');
|
|
17
|
+
require('../Text-4c04ddc3.js');
|
|
18
|
+
require('../InputValidation-e09f5d20.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Spinner-
|
|
20
|
+
require('../Spinner-35cee923.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
|
@@ -1,29 +1,86 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
2
|
interface RowRange {
|
|
4
3
|
min: number;
|
|
5
4
|
max: number;
|
|
6
5
|
}
|
|
7
|
-
interface BaseProps extends CommonFormFieldProps, Pick<FormFieldProps, "maxLength" | "readonly" | "autocomplete" | "keyboard" | "onEnter" | "onFocus" | "onBlur" | "onChange" | "inputRef" | "validations" | "defaultValue" | "prefix" | "suffix"> {
|
|
8
|
-
multiline?: boolean;
|
|
9
|
-
}
|
|
10
6
|
export interface InputTextRef {
|
|
11
7
|
insert(text: string): void;
|
|
12
8
|
blur(): void;
|
|
13
9
|
focus(): void;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Use this when you're expecting a long answer.
|
|
18
|
-
*/
|
|
11
|
+
export declare const InputText: React.ForwardRefExoticComponent<({
|
|
19
12
|
readonly multiline: true;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
readonly rows?: number | RowRange | undefined;
|
|
14
|
+
readonly align?: "center" | "right" | undefined;
|
|
15
|
+
readonly description?: string | undefined;
|
|
16
|
+
readonly disabled?: boolean | undefined;
|
|
17
|
+
readonly invalid?: boolean | undefined;
|
|
18
|
+
readonly inline?: boolean | undefined;
|
|
19
|
+
loading?: boolean | undefined;
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
onChange?: ((newValue: string | number | boolean | Date, event?: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement> | undefined) => void) | undefined;
|
|
22
|
+
onValidation?: ((message: string) => void) | undefined;
|
|
23
|
+
readonly placeholder?: string | undefined;
|
|
24
|
+
readonly size?: "large" | "small" | undefined;
|
|
25
|
+
readonly value?: string | number | Date | undefined;
|
|
26
|
+
readonly defaultValue?: string | Date | undefined;
|
|
27
|
+
readonly prefix?: import("../FormField").Affix | undefined;
|
|
28
|
+
onFocus?: (() => void) | undefined;
|
|
29
|
+
onBlur?: (() => void) | undefined;
|
|
30
|
+
readonly autocomplete?: boolean | import("../FormField").AutocompleteTypes | undefined;
|
|
31
|
+
inputRef?: React.RefObject<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement> | undefined;
|
|
32
|
+
readonly keyboard?: "numeric" | "decimal" | undefined;
|
|
33
|
+
readonly maxLength?: number | undefined;
|
|
34
|
+
readonly suffix?: {
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
readonly ariaLabel: string;
|
|
37
|
+
readonly icon: import("@jobber/design").IconNames;
|
|
38
|
+
readonly label?: string | undefined;
|
|
39
|
+
} | {
|
|
40
|
+
onClick?: undefined;
|
|
41
|
+
ariaLabel?: undefined;
|
|
42
|
+
readonly label?: string | undefined;
|
|
43
|
+
readonly icon?: import("@jobber/design").IconNames | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
onEnter?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
46
|
+
readonly readonly?: boolean | undefined;
|
|
47
|
+
readonly validations?: import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string> | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
rows?: undefined;
|
|
50
|
+
multiline?: boolean | undefined;
|
|
51
|
+
readonly align?: "center" | "right" | undefined;
|
|
52
|
+
readonly description?: string | undefined;
|
|
53
|
+
readonly disabled?: boolean | undefined;
|
|
54
|
+
readonly invalid?: boolean | undefined;
|
|
55
|
+
readonly inline?: boolean | undefined;
|
|
56
|
+
loading?: boolean | undefined;
|
|
57
|
+
readonly name?: string | undefined;
|
|
58
|
+
onChange?: ((newValue: string | number | boolean | Date, event?: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement> | undefined) => void) | undefined;
|
|
59
|
+
onValidation?: ((message: string) => void) | undefined;
|
|
60
|
+
readonly placeholder?: string | undefined;
|
|
61
|
+
readonly size?: "large" | "small" | undefined;
|
|
62
|
+
readonly value?: string | number | Date | undefined;
|
|
63
|
+
readonly defaultValue?: string | Date | undefined;
|
|
64
|
+
readonly prefix?: import("../FormField").Affix | undefined;
|
|
65
|
+
onFocus?: (() => void) | undefined;
|
|
66
|
+
onBlur?: (() => void) | undefined;
|
|
67
|
+
readonly autocomplete?: boolean | import("../FormField").AutocompleteTypes | undefined;
|
|
68
|
+
inputRef?: React.RefObject<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement> | undefined;
|
|
69
|
+
readonly keyboard?: "numeric" | "decimal" | undefined;
|
|
70
|
+
readonly maxLength?: number | undefined;
|
|
71
|
+
readonly suffix?: {
|
|
72
|
+
onClick: () => void;
|
|
73
|
+
readonly ariaLabel: string;
|
|
74
|
+
readonly icon: import("@jobber/design").IconNames;
|
|
75
|
+
readonly label?: string | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
onClick?: undefined;
|
|
78
|
+
ariaLabel?: undefined;
|
|
79
|
+
readonly label?: string | undefined;
|
|
80
|
+
readonly icon?: import("@jobber/design").IconNames | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
onEnter?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
83
|
+
readonly readonly?: boolean | undefined;
|
|
84
|
+
readonly validations?: import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string> | undefined;
|
|
85
|
+
}) & React.RefAttributes<InputTextRef>>;
|
|
29
86
|
export {};
|
package/dist/InputText/index.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var InputText = require('../InputText-
|
|
5
|
+
var InputText = require('../InputText-90bf6056.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../FormField-
|
|
8
|
-
require('../tslib.es6-
|
|
7
|
+
require('../FormField-aff52a1d.js');
|
|
8
|
+
require('../tslib.es6-5b8768b7.js');
|
|
9
9
|
require('uuid');
|
|
10
10
|
require('react-hook-form');
|
|
11
|
-
require('../style-inject.es-
|
|
11
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
12
12
|
require('classnames');
|
|
13
|
-
require('../Button-
|
|
13
|
+
require('../Button-186ef2c1.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
15
|
require('../Icon-405a216c.js');
|
|
16
16
|
require('@jobber/design');
|
|
17
|
-
require('../Typography-
|
|
18
|
-
require('../Text-
|
|
19
|
-
require('../InputValidation-
|
|
17
|
+
require('../Typography-dd9717e7.js');
|
|
18
|
+
require('../Text-4c04ddc3.js');
|
|
19
|
+
require('../InputValidation-e09f5d20.js');
|
|
20
20
|
require('framer-motion');
|
|
21
|
-
require('../Spinner-
|
|
21
|
+
require('../Spinner-35cee923.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var FormField = require('./FormField-
|
|
4
|
+
var FormField = require('./FormField-aff52a1d.js');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|