@jobber/components 4.91.2-implement-.13 → 4.92.0
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 +8 -8
- package/dist/Banner/index.js +3 -3
- package/dist/Button/index.js +2 -2
- package/dist/{Button-6b922fc1.js → Button-0c831b03.js} +1 -1
- package/dist/ButtonDismiss/index.js +3 -3
- package/dist/{ButtonDismiss-a3ba1de2.js → ButtonDismiss-101366b5.js} +1 -1
- package/dist/Card/index.js +5 -5
- package/dist/{Card-01d6ba19.js → Card-2e03b887.js} +3 -3
- package/dist/Checkbox/index.js +3 -3
- package/dist/{Checkbox-e481a4b1.js → Checkbox-67a8c60f.js} +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/{Chip-76f18555.js → Chip-6395df79.js} +1 -1
- package/dist/Chips/index.js +3 -3
- package/dist/Combobox/index.js +5 -5
- package/dist/{Combobox-6d864202.js → Combobox-2f357a96.js} +4 -4
- package/dist/ConfirmationModal/index.js +9 -9
- package/dist/{ConfirmationModal-b7da32ac.js → ConfirmationModal-c0b5e893.js} +2 -2
- package/dist/DataDump/index.js +6 -6
- package/dist/DataList/index.js +11 -11
- package/dist/DataTable/index.js +8 -8
- package/dist/DatePicker/index.js +3 -3
- package/dist/{DatePicker-305a5b82.js → DatePicker-3b086bf8.js} +2 -2
- package/dist/DescriptionList/index.js +1 -1
- package/dist/Disclosure/index.js +1 -1
- package/dist/Drawer/index.js +4 -4
- package/dist/Emphasis/index.js +2 -2
- package/dist/{Emphasis-a77d8ee9.js → Emphasis-f298e0bd.js} +1 -1
- package/dist/FeatureSwitch/index.js +7 -7
- package/dist/FormField/FormFieldTypes.d.ts +0 -8
- package/dist/FormField/FormFieldWrapper.d.ts +1 -1
- package/dist/FormField/index.js +7 -7
- package/dist/{FormField-8eea4d86.js → FormField-cea3a4f7.js} +16 -72
- package/dist/FormatFile/index.js +10 -10
- package/dist/{FormatFile-b771c7fd.js → FormatFile-9cc4c85a.js} +4 -4
- package/dist/Gallery/index.js +11 -11
- package/dist/Heading/index.js +2 -2
- package/dist/{Heading-23d382a1.js → Heading-ffc87a2a.js} +2 -2
- package/dist/InlineLabel/index.js +2 -2
- package/dist/{InlineLabel-c8fc28f0.js → InlineLabel-79098f71.js} +1 -1
- package/dist/InputAvatar/index.js +5 -5
- package/dist/InputDate/index.js +8 -8
- package/dist/InputEmail/index.js +7 -7
- package/dist/InputFile/index.js +5 -5
- package/dist/{InputFile-20b9074a.js → InputFile-07c0c738.js} +3 -3
- package/dist/InputNumber/index.js +8 -8
- package/dist/{InputNumber-d085fb59.js → InputNumber-f1990039.js} +1 -1
- package/dist/InputPassword/index.js +7 -7
- package/dist/InputPhoneNumber/index.js +7 -7
- package/dist/InputText/InputText.d.ts +0 -4
- package/dist/InputText/index.js +8 -8
- package/dist/{InputText-ce8cf268.js → InputText-375a415c.js} +3 -5
- package/dist/InputTime/index.js +7 -7
- package/dist/InputValidation/index.js +3 -3
- package/dist/{InputValidation-a92bb519.js → InputValidation-ba5f81cb.js} +1 -1
- package/dist/LightBox/index.js +4 -4
- package/dist/{LightBox-7efe8932.js → LightBox-ec2c0094.js} +2 -2
- package/dist/List/index.js +5 -5
- package/dist/Markdown/index.js +5 -5
- package/dist/{Markdown-0f24de70.js → Markdown-bee813fc.js} +3 -3
- package/dist/Menu/index.js +3 -3
- package/dist/{Menu-d6dd673e.js → Menu-9477e5e3.js} +2 -2
- package/dist/Modal/index.js +5 -5
- package/dist/{Modal-4ce1ec79.js → Modal-03731670.js} +5 -5
- package/dist/MultiSelect/index.js +3 -3
- package/dist/{Option-754131da.js → Option-085a96d7.js} +1 -1
- package/dist/Page/index.js +7 -7
- package/dist/Popover/index.js +3 -3
- package/dist/RadioGroup/index.js +3 -3
- package/dist/{RadioGroup-678f4932.js → RadioGroup-2a8824e9.js} +1 -1
- package/dist/RecurringSelect/index.js +10 -10
- package/dist/Select/index.js +8 -8
- package/dist/StatusLabel/index.js +1 -1
- package/dist/Switch/index.js +2 -2
- package/dist/{Switch-eac89586.js → Switch-e9503dbd.js} +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Text/index.js +2 -2
- package/dist/{Text-fbeaaca6.js → Text-94b5c2e5.js} +1 -1
- package/dist/Toast/index.js +2 -2
- package/dist/Typography/index.js +1 -1
- package/dist/{Typography-e2a23b7e.js → Typography-8c397b84.js} +1 -1
- package/package.json +3 -3
- package/dist/FormField/hooks/useFormFieldFocus.d.ts +0 -7
- package/dist/FormField/hooks/useToolbar.d.ts +0 -16
|
@@ -6,12 +6,10 @@ var reactHookForm = require('react-hook-form');
|
|
|
6
6
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var useShowClear = require('@jobber/hooks/useShowClear');
|
|
9
|
-
var
|
|
10
|
-
var design = require('@jobber/design');
|
|
11
|
-
var Button = require('./Button-6b922fc1.js');
|
|
9
|
+
var Button = require('./Button-0c831b03.js');
|
|
12
10
|
var Icon = require('./Icon-405a216c.js');
|
|
13
|
-
var Text = require('./Text-
|
|
14
|
-
var InputValidation = require('./InputValidation-
|
|
11
|
+
var Text = require('./Text-94b5c2e5.js');
|
|
12
|
+
var InputValidation = require('./InputValidation-ba5f81cb.js');
|
|
15
13
|
var Spinner = require('./Spinner-9d8fc7ff.js');
|
|
16
14
|
|
|
17
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -19,8 +17,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
17
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
18
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
21
19
|
|
|
22
|
-
var css_248z$1 = ":root {\n /**\n * These `--public-field` properties are used in other components such\n * as InputGroup, therefore they must stay on :root\n **/\n --public-field--top-left-radius: var(--radius-base);\n --public-field--top-right-radius: var(--radius-base);\n --public-field--bottom-left-radius: var(--radius-base);\n --public-field--bottom-right-radius: var(--radius-base);\n\n --field--placeholder-color: var(--color-greyBlue--light);\n --field--value-color: var(--color-heading);\n --field--border-color: var(--color-border);\n}\n\n.geR7qBhrMfk- {\n width: 100%;\n}\n\n/**\n * Wrapper\n **/\n\n.nPGhTEEzsoU- {\n --field--placeholder-offset: 50%;\n --field--placeholder-transform: -50%;\n\n --field--textAlign: left;\n\n --field--height: var(--space-largest);\n\n --field--padding-top: calc(var(--space-base) - var(--space-smallest));\n --field--padding-bottom: calc(var(--space-base) - var(--space-smallest));\n --field--padding-left: var(--space-base);\n --field--padding-right: var(--space-base);\n\n --field--value-lineHeight: calc(var(--base-unit) * 1.25);\n\n --field--background-color: var(--color-surface);\n\n --field--base-elevation: var(--elevation-base);\n --field--label-elevation: calc(var(--field--base-elevation) + 1);\n --field--postfix-elevation: calc(var(--field--base-elevation) - 1);\n --field--postfix-action-elevation: calc(var(--field--base-elevation) + 2);\n\n display: -ms-flexbox;\n\n display: flex;\n width: 100%;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--field--border-color);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n border-top-right-radius: calc(16px / 8);\n border-top-right-radius: var(--public-field--top-right-radius);\n border-bottom-right-radius: calc(16px / 8);\n border-bottom-right-radius: var(--public-field--bottom-right-radius);\n border-bottom-left-radius: calc(16px / 8);\n border-bottom-left-radius: var(--public-field--bottom-left-radius);\n border-top-left-radius: calc(16px / 8);\n border-top-left-radius: var(--public-field--top-left-radius);\n color: rgb(1, 41, 57);\n color: var(--field--value-color);\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--field--background-color);\n}\n\n.nPGhTEEzsoU- * {\n box-sizing: border-box;\n}\n\n.nPGhTEEzsoU-:focus-within {\n position: relative;\n z-index: var(--field--base-elevation);\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n}\n\n.YhserUiOeFE-:not(:focus-within) input {\n color: var(--field--background-color);\n -webkit-text-fill-color: var(--field--background-color);\n}\n\n.YhserUiOeFE-:focus-within,\n.UIZq8hTmJVU- {\n --field--placeholder-color: var(--color-text--secondary);\n --field--placeholder-offset: var(--space-smallest);\n --field--placeholder-transform: 0;\n --field--padding-top: calc(var(--space-base) + var(--space-smaller));\n --field--padding-bottom: var(--space-small);\n}\n\n.YhserUiOeFE-.Ku8sWS0mLew-:focus-within,\n.UIZq8hTmJVU-.Ku8sWS0mLew- {\n --field--padding-top: calc(var(--space-large) + var(--space-smaller));\n}\n\n.nPGhTEEzsoU-.e4VYDAkWHAg- {\n --field--placeholder-offset: 0;\n --field--placeholder-transform: 0;\n height: auto;\n min-height: auto;\n}\n\n.gJ-15M615eY-,\n.gJ-15M615eY-:focus-within {\n --field--border-color: var(--color-critical);\n position: relative;\n}\n\n._1rsTLm5GwcM- {\n --field--placeholder-color: var(--color-disabled);\n --field--value-color: var(--color-disabled);\n --field--background-color: var(--color-surface--background);\n --field--border-color: var(--color-disabled--secondary);\n}\n\n/* override iOS default styling for disabled input */\n\n._1rsTLm5GwcM- :disabled {\n -webkit-text-fill-color: rgb(1, 41, 57);\n -webkit-text-fill-color: var(--field--value-color);\n opacity: 1;\n}\n\n.o8D-H-lKfDk- {\n --field--padding-left: calc(var(--space-base) - var(--space-smaller));\n --field--padding-right: calc(var(--space-base) - var(--space-smaller));\n --field--padding-top: var(--space-small);\n --field--padding-bottom: var(--space-small);\n --field--height: calc(var(--space-larger) + var(--space-smaller));\n}\n\n.Ku8sWS0mLew- {\n --field--padding-left: var(--space-large);\n --field--padding-right: var(--space-large);\n --field--height: calc(var(--space-extravagant));\n}\n\n._5Hu2F3cBvng- {\n display: inline-block;\n width: auto;\n}\n\n.s1WLQs6ffD8- {\n --field--textAlign: center;\n}\n\n.a2r4QheWYIA- {\n --field--textAlign: right;\n}\n\n/**\n * The custom property --formField-maxLength is getting defined inside the\n * component.\n */\n\n.KdAnXK1gClo- {\n width: calc(\n (16px * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n width: calc(\n (var(--base-unit) * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n}\n\n/**\n * Input Wrapper\n **/\n\n.iQFhpFYnz-8- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n /* Ensure input stays with the rest of the element stack */\n z-index: 0;\n z-index: var(--elevation-default);\n}\n\n.Yo2Wi9dpa-Y- {\n position: relative;\n -ms-flex: 1;\n flex: 1;\n}\n\n/**\n * Input\n **/\n\n.LSHPV7PwOTg- {\n position: relative;\n z-index: var(--field--base-elevation);\n width: 100%;\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n border: none;\n border-radius: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n background: transparent;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.LSHPV7PwOTg-:focus {\n outline: none;\n}\n\n.mgPacJ6Z71Y- .Yo2Wi9dpa-Y- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n min-height: var(--field--height);\n resize: vertical;\n overflow: auto;\n}\n\n.mgPacJ6Z71Y- .LSHPV7PwOTg- {\n -ms-flex: 1;\n flex: 1;\n resize: none;\n scroll-padding-bottom: calc(16px * 1);\n scroll-padding-bottom: var(--space-base);\n}\n\n.i31GQXcMz54- .LSHPV7PwOTg- {\n z-index: var(--field--label-elevation);\n}\n\n.LSHPV7PwOTg-:-webkit-autofill,\n.LSHPV7PwOTg-:-webkit-autofill:hover,\n.LSHPV7PwOTg-:-webkit-autofill:focus,\n.LSHPV7PwOTg-:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 1) inset !important;\n -webkit-box-shadow: 0 0 0 30px var(--color-surface) inset !important;\n}\n\n/**\n * Label\n **/\n\n._3xREbTN5pPg- {\n position: absolute;\n top: var(--field--placeholder-offset);\n z-index: var(--field--label-elevation);\n width: 100%;\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n overflow: hidden;\n color: rgb(147, 161, 169);\n color: var(--field--placeholder-color);\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n transition: all 100ms;\n transition: all var(--timing-quick);\n}\n\n.e4VYDAkWHAg- ._3xREbTN5pPg- {\n padding-top: var(--field--padding-top);\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n}\n\n.mgPacJ6Z71Y- ._3xREbTN5pPg- {\n /* Changes the width so that the scrollbar on the textarea doesn't get cut off */\n width: calc(100% - var(--field--padding-right));\n /* Remove padding on right to make use of the entire width */\n padding-right: 0;\n}\n\n.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-:focus-within ._3xREbTN5pPg- {\n font-size: calc((16px * 1) * 0.75);\n font-size: calc(calc(16px * 1) * 0.75);\n font-size: var(--typography--fontSize-small);\n}\n\n.e4VYDAkWHAg-.UIZq8hTmJVU- ._3xREbTN5pPg- {\n padding-top: calc(16px / 8);\n padding-top: var(--space-smallest);\n background-color: var(--field--background-color);\n}\n\n.o8D-H-lKfDk-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.o8D-H-lKfDk-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n display: none;\n}\n\n/**This is valid cascading order **/\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n.Ku8sWS0mLew-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.Ku8sWS0mLew-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n/**\n * Postfix\n **/\n\n.VtnAk1HYMMk- {\n position: absolute;\n top: 50%;\n right: calc(16px * 1);\n right: var(--space-base);\n z-index: var(--field--postfix-elevation);\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n/**\n * Affix\n **/\n\n.uPLklxvtfJw- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin: 0 calc(var(--field--padding-left) * -1) 0 0;\n padding: 0 var(--field--padding-right) 0 var(--field--padding-left);\n}\n\n@supports (aspect-ratio: 1/1) {\n .uPLklxvtfJw- {\n /*\n * disabling property-no-unknown here as this is a real property\n * that stylelint just doesn't know about. We may be able to remove\n * this when we update our stylelint to not care about IE11.\n */\n /* stylelint-disable-next-line property-no-unknown */\n aspect-ratio: 1/1;\n padding: 0;\n }\n}\n\n.uPLklxvtfJw-.pYqqDvv57JE- {\n margin: 0 0 0 calc(var(--field--padding-right) * -1);\n}\n\n.uPLklxvtfJw-.eI44oQpuVlk- {\n position: relative;\n z-index: var(--field--postfix-action-elevation);\n}\n\n.jO8P2iSHilM- {\n display: -ms-flexbox;\n display: flex;\n margin: 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1) 0 0;\n margin: 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1) 0 0;\n padding: 0 0 0 var(--field--padding-left);\n line-height: var(--field--value-lineHeight);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.jO8P2iSHilM-.pYqqDvv57JE- {\n margin: 0 0 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1);\n margin: 0 0 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1);\n padding: 0 var(--field--padding-left) 0 0;\n}\n\n.UIZq8hTmJVU-:not(.o8D-H-lKfDk-) .jO8P2iSHilM- {\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n}\n\n._2GfgzNnLOSI- {\n margin-top: calc(16px / 4);\n margin-top: var(--space-smaller);\n}\n\n._3GtIRFCkZMg- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n margin: calc(16px / 2) var(--field--padding-right) calc(16px / 2)\n var(--field--padding-left);\n margin: var(--space-small) var(--field--padding-right) var(--space-small)\n var(--field--padding-left);\n}\n\n._3GtIRFCkZMg-::before {\n content: \"\";\n display: block;\n position: absolute;\n top: calc(-1.25 * (16px * 1));\n top: calc(-1.25 * calc(16px * 1));\n top: calc(-1.25 * var(--space-base));\n right: 0;\n left: 0;\n z-index: 2;\n height: calc(16px * 1);\n height: var(--space-base);\n background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 1) 60%);\n background: linear-gradient(to bottom, transparent, var(--color-surface) 60%);\n}\n";
|
|
23
|
-
var styles$1 = {"container":"geR7qBhrMfk-","wrapper":"nPGhTEEzsoU-","timeInputLabel":"YhserUiOeFE-","miniLabel":"UIZq8hTmJVU-","large":"Ku8sWS0mLew-","
|
|
20
|
+
var css_248z$1 = ":root {\n /**\n * These `--public-field` properties are used in other components such\n * as InputGroup, therefore they must stay on :root\n **/\n --public-field--top-left-radius: var(--radius-base);\n --public-field--top-right-radius: var(--radius-base);\n --public-field--bottom-left-radius: var(--radius-base);\n --public-field--bottom-right-radius: var(--radius-base);\n\n --field--placeholder-color: var(--color-greyBlue--light);\n --field--value-color: var(--color-heading);\n --field--border-color: var(--color-border);\n}\n\n.geR7qBhrMfk- {\n width: 100%;\n}\n\n/**\n * Wrapper\n **/\n\n.nPGhTEEzsoU- {\n --field--placeholder-offset: 50%;\n --field--placeholder-transform: -50%;\n\n --field--textAlign: left;\n\n --field--height: var(--space-largest);\n\n --field--padding-top: calc(var(--space-base) - var(--space-smallest));\n --field--padding-bottom: calc(var(--space-base) - var(--space-smallest));\n --field--padding-left: var(--space-base);\n --field--padding-right: var(--space-base);\n\n --field--value-lineHeight: calc(var(--base-unit) * 1.25);\n\n --field--background-color: var(--color-surface);\n\n --field--base-elevation: var(--elevation-base);\n --field--label-elevation: calc(var(--field--base-elevation) + 1);\n --field--postfix-elevation: calc(var(--field--base-elevation) - 1);\n --field--postfix-action-elevation: calc(var(--field--base-elevation) + 2);\n\n display: -ms-flexbox;\n\n display: flex;\n width: 100%;\n height: calc(16px * 3);\n height: var(--field--height);\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--field--border-color);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n border-top-right-radius: calc(16px / 8);\n border-top-right-radius: var(--public-field--top-right-radius);\n border-bottom-right-radius: calc(16px / 8);\n border-bottom-right-radius: var(--public-field--bottom-right-radius);\n border-bottom-left-radius: calc(16px / 8);\n border-bottom-left-radius: var(--public-field--bottom-left-radius);\n border-top-left-radius: calc(16px / 8);\n border-top-left-radius: var(--public-field--top-left-radius);\n color: rgb(1, 41, 57);\n color: var(--field--value-color);\n font-size: calc((16px * 1) * 0.875);\n font-size: calc(calc(16px * 1) * 0.875);\n font-size: var(--typography--fontSize-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--field--background-color);\n}\n\n.nPGhTEEzsoU- * {\n box-sizing: border-box;\n}\n\n.nPGhTEEzsoU-:focus-within {\n position: relative;\n z-index: var(--field--base-elevation);\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n}\n\n.YhserUiOeFE-:not(:focus-within) input {\n color: var(--field--background-color);\n -webkit-text-fill-color: var(--field--background-color);\n}\n\n.YhserUiOeFE-:focus-within,\n.UIZq8hTmJVU- {\n --field--placeholder-color: var(--color-text--secondary);\n --field--placeholder-offset: var(--space-smallest);\n --field--placeholder-transform: 0;\n --field--padding-top: calc(var(--space-base) + var(--space-smaller));\n --field--padding-bottom: var(--space-small);\n}\n\n.YhserUiOeFE-.Ku8sWS0mLew-:focus-within,\n.UIZq8hTmJVU-.Ku8sWS0mLew- {\n --field--padding-top: calc(var(--space-large) + var(--space-smaller));\n}\n\n.nPGhTEEzsoU-.mgPacJ6Z71Y- {\n --field--placeholder-offset: 0;\n --field--placeholder-transform: 0;\n height: auto;\n min-height: auto;\n}\n\n.gJ-15M615eY-,\n.gJ-15M615eY-:focus-within {\n --field--border-color: var(--color-critical);\n position: relative;\n}\n\n._1rsTLm5GwcM- {\n --field--placeholder-color: var(--color-disabled);\n --field--value-color: var(--color-disabled);\n --field--background-color: var(--color-surface--background);\n --field--border-color: var(--color-disabled--secondary);\n}\n\n/* override iOS default styling for disabled input */\n\n._1rsTLm5GwcM- :disabled {\n -webkit-text-fill-color: rgb(1, 41, 57);\n -webkit-text-fill-color: var(--field--value-color);\n opacity: 1;\n}\n\n.o8D-H-lKfDk- {\n --field--padding-left: calc(var(--space-base) - var(--space-smaller));\n --field--padding-right: calc(var(--space-base) - var(--space-smaller));\n --field--padding-top: var(--space-small);\n --field--padding-bottom: var(--space-small);\n --field--height: calc(var(--space-larger) + var(--space-smaller));\n}\n\n.Ku8sWS0mLew- {\n --field--padding-left: var(--space-large);\n --field--padding-right: var(--space-large);\n --field--height: calc(var(--space-extravagant));\n}\n\n._5Hu2F3cBvng- {\n display: inline-block;\n width: auto;\n}\n\n.s1WLQs6ffD8- {\n --field--textAlign: center;\n}\n\n.a2r4QheWYIA- {\n --field--textAlign: right;\n}\n\n/**\n * The custom property --formField-maxLength is getting defined inside the\n * component.\n */\n\n.KdAnXK1gClo- {\n width: calc(\n (16px * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n width: calc(\n (var(--base-unit) * var(--formField-maxLength)) + var(--field--padding-left) +\n var(--field--padding-right)\n );\n}\n\n/**\n * Input Wrapper\n **/\n\n.iQFhpFYnz-8- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n /* Ensure input stays with the rest of the element stack */\n z-index: 0;\n z-index: var(--elevation-default);\n}\n\n.Yo2Wi9dpa-Y- {\n position: relative;\n -ms-flex: 1;\n flex: 1;\n}\n\n/**\n * Input\n **/\n\n.LSHPV7PwOTg- {\n position: relative;\n z-index: var(--field--base-elevation);\n width: 100%;\n height: 100%;\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n border: none;\n border-radius: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n background: transparent;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.LSHPV7PwOTg-:focus {\n outline: none;\n}\n\n.mgPacJ6Z71Y- .LSHPV7PwOTg- {\n resize: vertical;\n}\n\n.i31GQXcMz54- .LSHPV7PwOTg- {\n z-index: var(--field--label-elevation);\n}\n\n.LSHPV7PwOTg-:-webkit-autofill,\n.LSHPV7PwOTg-:-webkit-autofill:hover,\n.LSHPV7PwOTg-:-webkit-autofill:focus,\n.LSHPV7PwOTg-:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 1) inset !important;\n -webkit-box-shadow: 0 0 0 30px var(--color-surface) inset !important;\n}\n\n/**\n * Label\n **/\n\n._3xREbTN5pPg- {\n position: absolute;\n top: var(--field--placeholder-offset);\n z-index: var(--field--label-elevation);\n width: 100%;\n padding-left: var(--field--padding-left);\n padding-right: var(--field--padding-right);\n overflow: hidden;\n color: rgb(147, 161, 169);\n color: var(--field--placeholder-color);\n line-height: var(--field--value-lineHeight);\n text-align: var(--field--textAlign);\n text-overflow: ellipsis;\n white-space: nowrap;\n pointer-events: none;\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n transition: all 100ms;\n transition: all var(--timing-quick);\n}\n\n.mgPacJ6Z71Y- ._3xREbTN5pPg- {\n /* Changes the width so that the scrollbar on the textarea doesn't get cut off */\n width: calc(100% - var(--field--padding-right));\n padding-top: var(--field--padding-top);\n /* Remove padding on right to make use of the entire width */\n padding-right: 0;\n -webkit-transform: translateY(var(--field--placeholder-transform));\n transform: translateY(var(--field--placeholder-transform));\n}\n\n.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-:focus-within ._3xREbTN5pPg- {\n font-size: calc((16px * 1) * 0.75);\n font-size: calc(calc(16px * 1) * 0.75);\n font-size: var(--typography--fontSize-small);\n}\n\n.mgPacJ6Z71Y-.UIZq8hTmJVU- ._3xREbTN5pPg- {\n padding-top: calc(16px / 8);\n padding-top: var(--space-smallest);\n background-color: var(--field--background-color);\n}\n\n.o8D-H-lKfDk-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.o8D-H-lKfDk-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n display: none;\n}\n\n/**This is valid cascading order **/\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n.Ku8sWS0mLew-.UIZq8hTmJVU- ._3xREbTN5pPg-,\n.YhserUiOeFE-.Ku8sWS0mLew-.UIZq8hTmJVU-:focus-within ._3xREbTN5pPg- {\n padding-top: calc(16px / 2);\n padding-top: var(--space-small);\n}\n\n/**\n * Postfix\n **/\n\n.VtnAk1HYMMk- {\n position: absolute;\n top: 50%;\n right: calc(16px * 1);\n right: var(--space-base);\n z-index: var(--field--postfix-elevation);\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n/**\n * Affix\n **/\n\n.uPLklxvtfJw- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin: 0 calc(var(--field--padding-left) * -1) 0 0;\n padding: 0 var(--field--padding-right) 0 var(--field--padding-left);\n}\n\n@supports (aspect-ratio: 1/1) {\n .uPLklxvtfJw- {\n /*\n * disabling property-no-unknown here as this is a real property\n * that stylelint just doesn't know about. We may be able to remove\n * this when we update our stylelint to not care about IE11.\n */\n /* stylelint-disable-next-line property-no-unknown */\n aspect-ratio: 1/1;\n padding: 0;\n }\n}\n\n.uPLklxvtfJw-.pYqqDvv57JE- {\n margin: 0 0 0 calc(var(--field--padding-right) * -1);\n}\n\n.uPLklxvtfJw-.eI44oQpuVlk- {\n position: relative;\n z-index: var(--field--postfix-action-elevation);\n}\n\n.jO8P2iSHilM- {\n display: -ms-flexbox;\n display: flex;\n margin: 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1) 0 0;\n margin: 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1) 0 0;\n padding: 0 0 0 var(--field--padding-left);\n line-height: var(--field--value-lineHeight);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n\n.jO8P2iSHilM-.pYqqDvv57JE- {\n margin: 0 0 0 calc((var(--field--padding-left) - calc(16px / 8)) * -1);\n margin: 0 0 0 calc((var(--field--padding-left) - var(--space-smallest)) * -1);\n padding: 0 var(--field--padding-left) 0 0;\n}\n\n.UIZq8hTmJVU-:not(.o8D-H-lKfDk-) .jO8P2iSHilM- {\n padding-top: var(--field--padding-top);\n padding-bottom: var(--field--padding-bottom);\n}\n\n._2GfgzNnLOSI- {\n margin-top: calc(16px / 4);\n margin-top: var(--space-smaller);\n}\n";
|
|
21
|
+
var styles$1 = {"container":"geR7qBhrMfk-","wrapper":"nPGhTEEzsoU-","timeInputLabel":"YhserUiOeFE-","miniLabel":"UIZq8hTmJVU-","large":"Ku8sWS0mLew-","textarea":"mgPacJ6Z71Y-","invalid":"gJ-15M615eY-","disabled":"_1rsTLm5GwcM-","small":"o8D-H-lKfDk-","inline":"_5Hu2F3cBvng-","center":"s1WLQs6ffD8-","right":"a2r4QheWYIA-","maxLength":"KdAnXK1gClo-","inputWrapper":"iQFhpFYnz-8-","childrenWrapper":"Yo2Wi9dpa-Y-","input":"LSHPV7PwOTg-","select":"i31GQXcMz54-","label":"_3xREbTN5pPg-","postfix":"VtnAk1HYMMk-","affixIcon":"uPLklxvtfJw-","suffix":"pYqqDvv57JE-","hasAction":"eI44oQpuVlk-","affixLabel":"jO8P2iSHilM-","description":"_2GfgzNnLOSI-"};
|
|
24
22
|
styleInject_es.styleInject(css_248z$1);
|
|
25
23
|
|
|
26
24
|
function AffixLabel({ label, variation = "prefix", labelRef, }) {
|
|
@@ -55,63 +53,22 @@ function FormFieldDescription({ id, description, }) {
|
|
|
55
53
|
React__default["default"].createElement(Text.Text, { size: "small", variation: "subdued" }, description)));
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
var css_248z = ".t1fFX8kDJh8- {\n display: -ms-flexbox;\n display: flex;\n position:
|
|
59
|
-
var styles = {"clearInput":"t1fFX8kDJh8-"};
|
|
56
|
+
var css_248z = "._07kZJ5ltI5E- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding-left: calc(16px / 2);\n padding-left: var(--space-small);\n}\n\n.t1fFX8kDJh8- {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n right: calc(16px / 2);\n right: var(--space-small);\n z-index: 1002;\n z-index: var(--elevation-tooltip);\n width: calc(16px * 1.5);\n width: var(--space-large);\n height: calc(16px * 1.5);\n height: var(--space-large);\n padding: 0;\n border: none;\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n cursor: pointer;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.t1fFX8kDJh8-:focus {\n outline: none;\n}\n\n.t1fFX8kDJh8-:hover,\n.t1fFX8kDJh8-:focus-visible {\n outline: none;\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.t1fFX8kDJh8-:focus-visible {\n box-shadow: 0px 0px 0px calc(16px / 8) rgba(255, 255, 255, 1),\n 0px 0px 0px calc(16px / 4) rgb(147, 161, 169);\n box-shadow: var(--shadow-focus);\n}\n";
|
|
57
|
+
var styles = {"clearContainer":"_07kZJ5ltI5E-","clearInput":"t1fFX8kDJh8-"};
|
|
60
58
|
styleInject_es.styleInject(css_248z);
|
|
61
59
|
|
|
62
60
|
function ClearAction({ onClick }) {
|
|
63
|
-
return (React__default["default"].createElement("
|
|
64
|
-
React__default["default"].createElement(
|
|
61
|
+
return (React__default["default"].createElement("div", { className: styles.clearContainer },
|
|
62
|
+
React__default["default"].createElement("button", { className: styles.clearInput, onClick: onClick, type: "button", "aria-label": "Clear input" },
|
|
63
|
+
React__default["default"].createElement(Icon.Icon, { name: "remove", size: "small" }))));
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
function
|
|
68
|
-
const isToolbarVisible = props.toolbar !== undefined &&
|
|
69
|
-
(props.toolbarVisibility === "always" || props.focused);
|
|
70
|
-
const animationInitial = props.toolbarVisibility === "always" ? false : { opacity: 0, height: 0 };
|
|
71
|
-
return {
|
|
72
|
-
isToolbarVisible,
|
|
73
|
-
animationInitial,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function useFormFieldFocus() {
|
|
78
|
-
const [focused, setFocused] = React.useState(false);
|
|
79
|
-
const inputWrapperRef = React.useRef(null);
|
|
80
|
-
React.useEffect(() => {
|
|
81
|
-
var _a, _b;
|
|
82
|
-
function handleFocusIn() {
|
|
83
|
-
setFocused(true);
|
|
84
|
-
}
|
|
85
|
-
function handleFocusOut() {
|
|
86
|
-
setTimeout(() => {
|
|
87
|
-
var _a;
|
|
88
|
-
const focusedElementWithinWrapper = (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement);
|
|
89
|
-
if (!focusedElementWithinWrapper) {
|
|
90
|
-
setFocused(false);
|
|
91
|
-
}
|
|
92
|
-
}, 1);
|
|
93
|
-
}
|
|
94
|
-
(_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("focusin", handleFocusIn);
|
|
95
|
-
(_b = inputWrapperRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener("focusout", handleFocusOut);
|
|
96
|
-
return () => {
|
|
97
|
-
var _a, _b;
|
|
98
|
-
(_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener("focusin", handleFocusIn);
|
|
99
|
-
(_b = inputWrapperRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener("focusout", handleFocusOut);
|
|
100
|
-
};
|
|
101
|
-
}, [inputWrapperRef.current]);
|
|
102
|
-
return {
|
|
103
|
-
focused,
|
|
104
|
-
inputWrapperRef,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function FormFieldWrapper({ align, description, descriptionIdentifier, placeholder, value, children, invalid, error, size, prefix, suffix, max, maxLength, type, disabled, inline, identifier, clearable, onClear, toolbar, toolbarVisibility = "while-editing", }) {
|
|
66
|
+
function FormFieldWrapper({ align, description, descriptionIdentifier, placeholder, value, children, invalid, error, size, prefix, suffix, max, maxLength, type, disabled, inline, identifier, clearable, onClear, }) {
|
|
109
67
|
const wrapperClasses = classnames__default["default"](styles$1.wrapper, size && styles$1[size], align && styles$1[align], {
|
|
110
68
|
[styles$1.miniLabel]: (placeholder && value !== "") ||
|
|
111
69
|
(placeholder && type === "select") ||
|
|
112
70
|
// Naively assume that if the the type is tel, it is the InputPhoneNumber
|
|
113
71
|
(placeholder && type === "tel"),
|
|
114
|
-
[styles$1.text]: type === "textarea" || type === "text",
|
|
115
72
|
[styles$1.textarea]: type === "textarea",
|
|
116
73
|
[styles$1.select]: type === "select",
|
|
117
74
|
[styles$1.invalid]: invalid !== null && invalid !== void 0 ? invalid : error,
|
|
@@ -134,7 +91,7 @@ function FormFieldWrapper({ align, description, descriptionIdentifier, placehold
|
|
|
134
91
|
React.useEffect(() => {
|
|
135
92
|
setLabelStyle(getAffixPaddding);
|
|
136
93
|
}, [value]);
|
|
137
|
-
const
|
|
94
|
+
const [focused, setFocused] = React.useState(false);
|
|
138
95
|
const showClear = useShowClear.useShowClear({
|
|
139
96
|
clearable,
|
|
140
97
|
multiline: type === "textarea",
|
|
@@ -142,28 +99,15 @@ function FormFieldWrapper({ align, description, descriptionIdentifier, placehold
|
|
|
142
99
|
hasValue: Boolean(value),
|
|
143
100
|
disabled,
|
|
144
101
|
});
|
|
145
|
-
|
|
146
|
-
focused,
|
|
147
|
-
toolbar,
|
|
148
|
-
toolbarVisibility,
|
|
149
|
-
});
|
|
150
|
-
return (React__default["default"].createElement("div", { className: containerClasses },
|
|
102
|
+
return (React__default["default"].createElement("div", { className: containerClasses, onFocus: () => setFocused(true), onBlur: () => setFocused(false) },
|
|
151
103
|
React__default["default"].createElement("div", { className: wrapperClasses, style: wrapperInlineStyle, "data-testid": "Form-Field-Wrapper" },
|
|
152
104
|
(prefix === null || prefix === void 0 ? void 0 : prefix.icon) && React__default["default"].createElement(AffixIcon, Object.assign({}, prefix, { size: size })),
|
|
153
|
-
React__default["default"].createElement("div", {
|
|
105
|
+
React__default["default"].createElement("div", { className: styles$1.inputWrapper },
|
|
154
106
|
placeholder && (React__default["default"].createElement("label", { className: styles$1.label, htmlFor: identifier, style: (prefixRef === null || prefixRef === void 0 ? void 0 : prefixRef.current) || (suffixRef === null || suffixRef === void 0 ? void 0 : suffixRef.current)
|
|
155
107
|
? labelStyle
|
|
156
108
|
: undefined }, placeholder)),
|
|
157
109
|
(prefix === null || prefix === void 0 ? void 0 : prefix.label) && React__default["default"].createElement(AffixLabel, Object.assign({}, prefix, { labelRef: prefixRef })),
|
|
158
|
-
React__default["default"].createElement("div", { className: styles$1.childrenWrapper
|
|
159
|
-
children,
|
|
160
|
-
React__default["default"].createElement(framerMotion.AnimatePresence, null, isToolbarVisible && (React__default["default"].createElement(framerMotion.motion.div, { key: "toolbar", initial: animationInitial, animate: {
|
|
161
|
-
opacity: 1,
|
|
162
|
-
height: "auto",
|
|
163
|
-
}, exit: { opacity: 0, height: 0 }, transition: {
|
|
164
|
-
duration: design.tokens["timing-base"] / 1000,
|
|
165
|
-
ease: "easeInOut",
|
|
166
|
-
}, tabIndex: -1, className: styles$1.toolbar }, toolbar)))),
|
|
110
|
+
React__default["default"].createElement("div", { className: styles$1.childrenWrapper }, children),
|
|
167
111
|
(suffix === null || suffix === void 0 ? void 0 : suffix.label) && (React__default["default"].createElement(AffixLabel, Object.assign({}, suffix, { labelRef: suffixRef, variation: "suffix" })))),
|
|
168
112
|
showClear && React__default["default"].createElement(ClearAction, { onClick: onClear }),
|
|
169
113
|
(suffix === null || suffix === void 0 ? void 0 : suffix.icon) && (React__default["default"].createElement(AffixIcon, Object.assign({}, suffix, { variation: "suffix", size: size })))),
|
|
@@ -242,7 +186,7 @@ function FormField(props) {
|
|
|
242
186
|
case "textarea":
|
|
243
187
|
return (React__default["default"].createElement("textarea", Object.assign({}, textFieldProps, { rows: rows, ref: inputRef })));
|
|
244
188
|
default:
|
|
245
|
-
return (React__default["default"].createElement("
|
|
189
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
246
190
|
React__default["default"].createElement("input", Object.assign({}, textFieldProps, { autoComplete: setAutocomplete(autocomplete), type: type, maxLength: maxLength, max: max, min: min, ref: inputRef, onKeyUp: onKeyUp })),
|
|
247
191
|
loading && React__default["default"].createElement(FormFieldPostFix, { variation: "spinner" }),
|
|
248
192
|
children));
|
package/dist/FormatFile/index.js
CHANGED
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var FormatFile = require('../FormatFile-
|
|
5
|
+
var FormatFile = require('../FormatFile-9cc4c85a.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('filesize');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
-
require('../Button-
|
|
10
|
+
require('../Button-0c831b03.js');
|
|
11
11
|
require('react-router-dom');
|
|
12
12
|
require('../Icon-405a216c.js');
|
|
13
13
|
require('@jobber/design');
|
|
14
|
-
require('../Typography-
|
|
15
|
-
require('../ConfirmationModal-
|
|
14
|
+
require('../Typography-8c397b84.js');
|
|
15
|
+
require('../ConfirmationModal-c0b5e893.js');
|
|
16
16
|
require('@jobber/hooks/useOnKeyDown');
|
|
17
|
-
require('../Modal-
|
|
17
|
+
require('../Modal-03731670.js');
|
|
18
18
|
require('react-dom');
|
|
19
19
|
require('framer-motion');
|
|
20
20
|
require('@jobber/hooks/useRefocusOnActivator');
|
|
21
21
|
require('@jobber/hooks/useFocusTrap');
|
|
22
|
-
require('../Heading-
|
|
22
|
+
require('../Heading-ffc87a2a.js');
|
|
23
23
|
require('../useAtlantisConfig-ed0bee66.js');
|
|
24
24
|
require('@jobber/hooks/useSafeLayoutEffect');
|
|
25
|
-
require('../ButtonDismiss-
|
|
25
|
+
require('../ButtonDismiss-101366b5.js');
|
|
26
26
|
require('../Content-e3f7b6fc.js');
|
|
27
|
-
require('../Markdown-
|
|
27
|
+
require('../Markdown-bee813fc.js');
|
|
28
28
|
require('react-markdown');
|
|
29
|
-
require('../Text-
|
|
30
|
-
require('../Emphasis-
|
|
29
|
+
require('../Text-94b5c2e5.js');
|
|
30
|
+
require('../Emphasis-f298e0bd.js');
|
|
31
31
|
require('../Glimmer-84dee1ed.js');
|
|
32
32
|
require('../tslib.es6-754e2961.js');
|
|
33
33
|
require('../ProgressBar-b68edc8f.js');
|
|
@@ -4,12 +4,12 @@ var React = require('react');
|
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var getHumanReadableFileSize = require('filesize');
|
|
6
6
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
|
-
var Button = require('./Button-
|
|
8
|
-
var ConfirmationModal = require('./ConfirmationModal-
|
|
7
|
+
var Button = require('./Button-0c831b03.js');
|
|
8
|
+
var ConfirmationModal = require('./ConfirmationModal-c0b5e893.js');
|
|
9
9
|
var Glimmer = require('./Glimmer-84dee1ed.js');
|
|
10
10
|
var Icon = require('./Icon-405a216c.js');
|
|
11
|
-
var Typography = require('./Typography-
|
|
12
|
-
var Text = require('./Text-
|
|
11
|
+
var Typography = require('./Typography-8c397b84.js');
|
|
12
|
+
var Text = require('./Text-94b5c2e5.js');
|
|
13
13
|
var ProgressBar = require('./ProgressBar-b68edc8f.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
package/dist/Gallery/index.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
var LightBox = require('../LightBox-
|
|
9
|
-
var FormatFile = require('../FormatFile-
|
|
10
|
-
var Button = require('../Button-
|
|
8
|
+
var LightBox = require('../LightBox-ec2c0094.js');
|
|
9
|
+
var FormatFile = require('../FormatFile-9cc4c85a.js');
|
|
10
|
+
var Button = require('../Button-0c831b03.js');
|
|
11
11
|
require('framer-motion');
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('lodash/debounce');
|
|
@@ -15,19 +15,19 @@ require('@jobber/hooks/useRefocusOnActivator');
|
|
|
15
15
|
require('@jobber/hooks/useOnKeyDown');
|
|
16
16
|
require('@jobber/hooks/useFocusTrap');
|
|
17
17
|
require('@jobber/hooks/useIsMounted');
|
|
18
|
-
require('../ButtonDismiss-
|
|
18
|
+
require('../ButtonDismiss-101366b5.js');
|
|
19
19
|
require('filesize');
|
|
20
|
-
require('../ConfirmationModal-
|
|
21
|
-
require('../Modal-
|
|
22
|
-
require('../Heading-
|
|
23
|
-
require('../Typography-
|
|
20
|
+
require('../ConfirmationModal-c0b5e893.js');
|
|
21
|
+
require('../Modal-03731670.js');
|
|
22
|
+
require('../Heading-ffc87a2a.js');
|
|
23
|
+
require('../Typography-8c397b84.js');
|
|
24
24
|
require('../useAtlantisConfig-ed0bee66.js');
|
|
25
25
|
require('@jobber/hooks/useSafeLayoutEffect');
|
|
26
26
|
require('../Content-e3f7b6fc.js');
|
|
27
|
-
require('../Markdown-
|
|
27
|
+
require('../Markdown-bee813fc.js');
|
|
28
28
|
require('react-markdown');
|
|
29
|
-
require('../Text-
|
|
30
|
-
require('../Emphasis-
|
|
29
|
+
require('../Text-94b5c2e5.js');
|
|
30
|
+
require('../Emphasis-f298e0bd.js');
|
|
31
31
|
require('../Glimmer-84dee1ed.js');
|
|
32
32
|
require('../tslib.es6-754e2961.js');
|
|
33
33
|
require('../Icon-405a216c.js');
|
package/dist/Heading/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Heading = require('../Heading-
|
|
5
|
+
var Heading = require('../Heading-ffc87a2a.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../Typography-
|
|
7
|
+
require('../Typography-8c397b84.js');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
10
|
require('../useAtlantisConfig-ed0bee66.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var Typography = require('./Typography-
|
|
4
|
+
var Typography = require('./Typography-8c397b84.js');
|
|
5
5
|
var useAtlantisConfig = require('./useAtlantisConfig-ed0bee66.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -45,7 +45,7 @@ function Heading({ level = 5, children, element }) {
|
|
|
45
45
|
element: "h6",
|
|
46
46
|
size: "small",
|
|
47
47
|
textCase: "uppercase",
|
|
48
|
-
fontWeight:
|
|
48
|
+
fontWeight: "bold",
|
|
49
49
|
textColor: "heading",
|
|
50
50
|
},
|
|
51
51
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var InlineLabel = require('../InlineLabel-
|
|
5
|
+
var InlineLabel = require('../InlineLabel-79098f71.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('../Typography-
|
|
9
|
+
require('../Typography-8c397b84.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
var Typography = require('./Typography-
|
|
6
|
+
var Typography = require('./Typography-8c397b84.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -6,19 +6,19 @@ var tslib_es6 = require('../tslib.es6-754e2961.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
8
|
var Avatar = require('../Avatar-76a799fa.js');
|
|
9
|
-
var InputFile = require('../InputFile-
|
|
9
|
+
var InputFile = require('../InputFile-07c0c738.js');
|
|
10
10
|
var ProgressBar = require('../ProgressBar-b68edc8f.js');
|
|
11
|
-
var Button = require('../Button-
|
|
11
|
+
var Button = require('../Button-0c831b03.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('color');
|
|
14
14
|
require('../Icon-405a216c.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
16
|
require('react-dropzone');
|
|
17
17
|
require('axios');
|
|
18
|
-
require('../InputValidation-
|
|
18
|
+
require('../InputValidation-ba5f81cb.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Text-
|
|
21
|
-
require('../Typography-
|
|
20
|
+
require('../Text-94b5c2e5.js');
|
|
21
|
+
require('../Typography-8c397b84.js');
|
|
22
22
|
require('../Content-e3f7b6fc.js');
|
|
23
23
|
require('react-router-dom');
|
|
24
24
|
|
package/dist/InputDate/index.js
CHANGED
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var omit = require('lodash/omit');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var FormField = require('../FormField-
|
|
8
|
-
var DatePicker = require('../DatePicker-
|
|
7
|
+
var FormField = require('../FormField-cea3a4f7.js');
|
|
8
|
+
var DatePicker = require('../DatePicker-3b086bf8.js');
|
|
9
9
|
require('../tslib.es6-754e2961.js');
|
|
10
10
|
require('react-hook-form');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@jobber/hooks/useShowClear');
|
|
14
|
-
require('
|
|
15
|
-
require('@jobber/design');
|
|
16
|
-
require('../Button-6b922fc1.js');
|
|
14
|
+
require('../Button-0c831b03.js');
|
|
17
15
|
require('react-router-dom');
|
|
18
16
|
require('../Icon-405a216c.js');
|
|
19
|
-
require('
|
|
20
|
-
require('../
|
|
21
|
-
require('../
|
|
17
|
+
require('@jobber/design');
|
|
18
|
+
require('../Typography-8c397b84.js');
|
|
19
|
+
require('../Text-94b5c2e5.js');
|
|
20
|
+
require('../InputValidation-ba5f81cb.js');
|
|
21
|
+
require('framer-motion');
|
|
22
22
|
require('../Spinner-9d8fc7ff.js');
|
|
23
23
|
require('react-datepicker');
|
|
24
24
|
require('@jobber/hooks/useRefocusOnActivator');
|
package/dist/InputEmail/index.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormField = require('../FormField-
|
|
6
|
+
var FormField = require('../FormField-cea3a4f7.js');
|
|
7
7
|
require('../tslib.es6-754e2961.js');
|
|
8
8
|
require('react-hook-form');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@jobber/hooks/useShowClear');
|
|
12
|
-
require('
|
|
13
|
-
require('@jobber/design');
|
|
14
|
-
require('../Button-6b922fc1.js');
|
|
12
|
+
require('../Button-0c831b03.js');
|
|
15
13
|
require('react-router-dom');
|
|
16
14
|
require('../Icon-405a216c.js');
|
|
17
|
-
require('
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
15
|
+
require('@jobber/design');
|
|
16
|
+
require('../Typography-8c397b84.js');
|
|
17
|
+
require('../Text-94b5c2e5.js');
|
|
18
|
+
require('../InputValidation-ba5f81cb.js');
|
|
19
|
+
require('framer-motion');
|
|
20
20
|
require('../Spinner-9d8fc7ff.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
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-
|
|
5
|
+
var InputFile = require('../InputFile-07c0c738.js');
|
|
6
6
|
require('../tslib.es6-754e2961.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('react-dropzone');
|
|
10
10
|
require('axios');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
-
require('../InputValidation-
|
|
12
|
+
require('../InputValidation-ba5f81cb.js');
|
|
13
13
|
require('framer-motion');
|
|
14
|
-
require('../Text-
|
|
15
|
-
require('../Typography-
|
|
14
|
+
require('../Text-94b5c2e5.js');
|
|
15
|
+
require('../Typography-8c397b84.js');
|
|
16
16
|
require('../Icon-405a216c.js');
|
|
17
17
|
require('@jobber/design');
|
|
18
|
-
require('../Button-
|
|
18
|
+
require('../Button-0c831b03.js');
|
|
19
19
|
require('react-router-dom');
|
|
20
20
|
require('../Content-e3f7b6fc.js');
|
|
21
21
|
|
|
@@ -6,10 +6,10 @@ var classnames = require('classnames');
|
|
|
6
6
|
var reactDropzone = require('react-dropzone');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var InputValidation = require('./InputValidation-
|
|
10
|
-
var Button = require('./Button-
|
|
9
|
+
var InputValidation = require('./InputValidation-ba5f81cb.js');
|
|
10
|
+
var Button = require('./Button-0c831b03.js');
|
|
11
11
|
var Content = require('./Content-e3f7b6fc.js');
|
|
12
|
-
var Typography = require('./Typography-
|
|
12
|
+
var Typography = require('./Typography-8c397b84.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
15
|
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var InputNumber = require('../InputNumber-
|
|
5
|
+
var InputNumber = require('../InputNumber-f1990039.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../FormField-
|
|
7
|
+
require('../FormField-cea3a4f7.js');
|
|
8
8
|
require('../tslib.es6-754e2961.js');
|
|
9
9
|
require('react-hook-form');
|
|
10
10
|
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('@jobber/hooks/useShowClear');
|
|
13
|
-
require('
|
|
14
|
-
require('@jobber/design');
|
|
15
|
-
require('../Button-6b922fc1.js');
|
|
13
|
+
require('../Button-0c831b03.js');
|
|
16
14
|
require('react-router-dom');
|
|
17
15
|
require('../Icon-405a216c.js');
|
|
18
|
-
require('
|
|
19
|
-
require('../
|
|
20
|
-
require('../
|
|
16
|
+
require('@jobber/design');
|
|
17
|
+
require('../Typography-8c397b84.js');
|
|
18
|
+
require('../Text-94b5c2e5.js');
|
|
19
|
+
require('../InputValidation-ba5f81cb.js');
|
|
20
|
+
require('framer-motion');
|
|
21
21
|
require('../Spinner-9d8fc7ff.js');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -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-cea3a4f7.js');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormField = require('../FormField-
|
|
6
|
+
var FormField = require('../FormField-cea3a4f7.js');
|
|
7
7
|
require('../tslib.es6-754e2961.js');
|
|
8
8
|
require('react-hook-form');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@jobber/hooks/useShowClear');
|
|
12
|
-
require('
|
|
13
|
-
require('@jobber/design');
|
|
14
|
-
require('../Button-6b922fc1.js');
|
|
12
|
+
require('../Button-0c831b03.js');
|
|
15
13
|
require('react-router-dom');
|
|
16
14
|
require('../Icon-405a216c.js');
|
|
17
|
-
require('
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
15
|
+
require('@jobber/design');
|
|
16
|
+
require('../Typography-8c397b84.js');
|
|
17
|
+
require('../Text-94b5c2e5.js');
|
|
18
|
+
require('../InputValidation-ba5f81cb.js');
|
|
19
|
+
require('framer-motion');
|
|
20
20
|
require('../Spinner-9d8fc7ff.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -6,17 +6,17 @@ var tslib_es6 = require('../tslib.es6-754e2961.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactHookForm = require('react-hook-form');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var FormField = require('../FormField-
|
|
9
|
+
var FormField = require('../FormField-cea3a4f7.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@jobber/hooks/useShowClear');
|
|
12
|
-
require('
|
|
13
|
-
require('@jobber/design');
|
|
14
|
-
require('../Button-6b922fc1.js');
|
|
12
|
+
require('../Button-0c831b03.js');
|
|
15
13
|
require('react-router-dom');
|
|
16
14
|
require('../Icon-405a216c.js');
|
|
17
|
-
require('
|
|
18
|
-
require('../
|
|
19
|
-
require('../
|
|
15
|
+
require('@jobber/design');
|
|
16
|
+
require('../Typography-8c397b84.js');
|
|
17
|
+
require('../Text-94b5c2e5.js');
|
|
18
|
+
require('../InputValidation-ba5f81cb.js');
|
|
19
|
+
require('framer-motion');
|
|
20
20
|
require('../Spinner-9d8fc7ff.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -27,7 +27,6 @@ export declare const InputText: React.ForwardRefExoticComponent<({
|
|
|
27
27
|
readonly clearable?: "always" | "never" | undefined;
|
|
28
28
|
onFocus?: (() => void) | undefined;
|
|
29
29
|
onBlur?: (() => void) | undefined;
|
|
30
|
-
readonly toolbar?: React.ReactNode;
|
|
31
30
|
readonly defaultValue?: string | Date | undefined;
|
|
32
31
|
readonly prefix?: import("../FormField").Affix | undefined;
|
|
33
32
|
readonly autocomplete?: boolean | import("../FormField").AutocompleteTypes | undefined;
|
|
@@ -48,7 +47,6 @@ export declare const InputText: React.ForwardRefExoticComponent<({
|
|
|
48
47
|
onEnter?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
49
48
|
readonly readonly?: boolean | undefined;
|
|
50
49
|
readonly validations?: import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string> | undefined;
|
|
51
|
-
readonly toolbarVisibility?: "always" | "while-editing" | undefined;
|
|
52
50
|
} | {
|
|
53
51
|
rows?: undefined;
|
|
54
52
|
multiline?: boolean | undefined;
|
|
@@ -67,7 +65,6 @@ export declare const InputText: React.ForwardRefExoticComponent<({
|
|
|
67
65
|
readonly clearable?: "always" | "never" | undefined;
|
|
68
66
|
onFocus?: (() => void) | undefined;
|
|
69
67
|
onBlur?: (() => void) | undefined;
|
|
70
|
-
readonly toolbar?: React.ReactNode;
|
|
71
68
|
readonly defaultValue?: string | Date | undefined;
|
|
72
69
|
readonly prefix?: import("../FormField").Affix | undefined;
|
|
73
70
|
readonly autocomplete?: boolean | import("../FormField").AutocompleteTypes | undefined;
|
|
@@ -88,5 +85,4 @@ export declare const InputText: React.ForwardRefExoticComponent<({
|
|
|
88
85
|
onEnter?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
89
86
|
readonly readonly?: boolean | undefined;
|
|
90
87
|
readonly validations?: import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string> | undefined;
|
|
91
|
-
readonly toolbarVisibility?: "always" | "while-editing" | undefined;
|
|
92
88
|
}) & React.RefAttributes<InputTextRef>>;
|