@jobber/components 4.2.2-pre.0 → 4.2.2-pre.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete/index.js +10 -10
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-01c5ba8b.js → Avatar-98b59e17.js} +2 -2
- package/dist/Banner/index.js +7 -7
- package/dist/Button/index.js +2 -2
- package/dist/Button-e2452625.js +57 -0
- package/dist/ButtonDismiss/index.js +3 -3
- package/dist/{ButtonDismiss-37e08aaa.js → ButtonDismiss-64740d0a.js} +1 -1
- package/dist/Card/index.js +5 -5
- package/dist/Card-bf3d96e0.js +93 -0
- package/dist/Checkbox/index.js +3 -3
- package/dist/Checkbox-ff77e7ef.js +40 -0
- package/dist/Chips/index.js +10 -10
- package/dist/ConfirmationModal/index.js +10 -10
- package/dist/{ConfirmationModal-518c358c.js → ConfirmationModal-3b5b2d06.js} +3 -3
- package/dist/Content/index.js +1 -1
- package/dist/{Content-af82acba.js → Content-db546523.js} +4 -4
- package/dist/Countdown/Countdown.d.ts +2 -2
- package/dist/Countdown/index.js +4 -2
- package/dist/DataDump/index.js +7 -7
- package/dist/DataTable/index.js +15 -15
- package/dist/DatePicker/index.js +3 -3
- package/dist/DatePicker-90fd1823.js +109 -0
- package/dist/DescriptionList/index.js +3 -3
- package/dist/Disclosure/index.js +9 -7
- package/dist/Divider/index.js +2 -2
- package/dist/Drawer/index.js +8 -8
- package/dist/Emphasis/index.js +2 -2
- package/dist/{Emphasis-a7d3244d.js → Emphasis-1d1a2601.js} +1 -1
- package/dist/FeatureSwitch/index.js +10 -10
- package/dist/FormField/index.js +6 -6
- package/dist/{FormField-db002008.js → FormField-bdfb7a5a.js} +6 -6
- package/dist/FormatDate/FormatDate.d.ts +2 -2
- package/dist/FormatEmail/index.js +2 -2
- package/dist/FormatFile/index.js +12 -12
- package/dist/FormatFile-a23d9ccd.js +105 -0
- package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +2 -2
- package/dist/FormatTime/FormatTime.d.ts +2 -2
- package/dist/Gallery/index.js +15 -15
- package/dist/Heading/index.js +2 -2
- package/dist/{Heading-76337105.js → Heading-4dc407a9.js} +1 -1
- package/dist/InlineLabel/index.js +3 -3
- package/dist/InputAvatar/index.js +8 -8
- package/dist/InputDate/index.js +7 -7
- package/dist/InputEmail/index.js +6 -6
- package/dist/InputFile/InputFile.d.ts +4 -0
- package/dist/InputFile/index.js +4 -4
- package/dist/{InputFile-67b695c5.js → InputFile-33d7d2fb.js} +8 -7
- package/dist/InputGroup/index.js +2 -2
- package/dist/InputNumber/index.js +6 -6
- package/dist/InputPassword/index.js +6 -6
- package/dist/InputText/index.js +7 -7
- package/dist/{InputText-3f38bf99.js → InputText-c056703c.js} +1 -1
- package/dist/InputTime/InputTimeProps.d.ts +7 -4
- package/dist/InputTime/atlantisTimeConversions.d.ts +3 -0
- package/dist/InputTime/index.d.ts +1 -0
- package/dist/InputTime/index.js +21 -19
- package/dist/InputValidation/index.js +3 -3
- package/dist/{InputValidation-4f3c999d.js → InputValidation-1b86b467.js} +3 -3
- package/dist/LightBox/index.js +4 -4
- package/dist/{LightBox-beb79505.js → LightBox-3753b459.js} +4 -4
- package/dist/List/index.js +12 -12
- package/dist/Markdown/index.js +6 -6
- package/dist/{Markdown-cab97b43.js → Markdown-c6caca6d.js} +4 -4
- package/dist/Menu/index.js +3 -3
- package/dist/{Menu-f90ae9a9.js → Menu-e6f88c8e.js} +4 -4
- package/dist/Modal/index.js +5 -5
- package/dist/{Modal-069a1669.js → Modal-e493144d.js} +7 -7
- package/dist/MultiSelect/index.js +7 -7
- package/dist/{Option-1e7f69a1.js → Option-73a5502d.js} +1 -1
- package/dist/Page/index.js +10 -10
- package/dist/Popover/index.js +5 -5
- package/dist/ProgressBar/index.js +1 -1
- package/dist/ProgressBar-8438dd4c.js +28 -0
- package/dist/RadioGroup/index.js +4 -4
- package/dist/Select/index.js +7 -7
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-3480bc34.js +24 -0
- package/dist/StatusLabel/index.js +4 -4
- package/dist/Switch/index.js +2 -2
- package/dist/Switch-4fab8779.js +56 -0
- package/dist/Table/index.js +4 -4
- package/dist/Tabs/index.js +3 -3
- package/dist/Text/index.js +2 -2
- package/dist/{Text-38cce49b.js → Text-668ba4fe.js} +1 -1
- package/dist/Toast/index.js +4 -4
- package/dist/Tooltip/index.js +3 -3
- package/dist/{Tooltip-c99d861f.js → Tooltip-dba62da5.js} +3 -3
- package/dist/Typography/index.js +1 -1
- package/dist/Typography-1aeeb56e.js +62 -0
- package/package.json +9 -8
- package/rollup.config.js +2 -0
- package/dist/Button-329807e5.js +0 -57
- package/dist/Card-9b6452c5.js +0 -93
- package/dist/Checkbox-dc76c57c.js +0 -40
- package/dist/DatePicker-a09330ba.js +0 -109
- package/dist/FormatFile-aeb83929.js +0 -105
- package/dist/InputTime/civilTimeConversions.d.ts +0 -3
- package/dist/ProgressBar-d3178aa9.js +0 -28
- package/dist/Spinner-35cee923.js +0 -24
- package/dist/Switch-0c5e4faa.js +0 -56
- package/dist/Typography-3f61c2b0.js +0 -62
|
@@ -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-
|
|
6
|
+
var FormField = require('../FormField-bdfb7a5a.js');
|
|
7
7
|
require('../tslib.es6-5b8768b7.js');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('react-hook-form');
|
|
10
10
|
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-e2452625.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-1aeeb56e.js');
|
|
17
|
+
require('../Text-668ba4fe.js');
|
|
18
|
+
require('../InputValidation-1b86b467.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Spinner-
|
|
20
|
+
require('../Spinner-3480bc34.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-
|
|
6
|
+
var FormField = require('../FormField-bdfb7a5a.js');
|
|
7
7
|
require('../tslib.es6-5b8768b7.js');
|
|
8
8
|
require('uuid');
|
|
9
9
|
require('react-hook-form');
|
|
10
10
|
require('../style-inject.es-9d2f5f4e.js');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-e2452625.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-1aeeb56e.js');
|
|
17
|
+
require('../Text-668ba4fe.js');
|
|
18
|
+
require('../InputValidation-1b86b467.js');
|
|
19
19
|
require('framer-motion');
|
|
20
|
-
require('../Spinner-
|
|
20
|
+
require('../Spinner-3480bc34.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
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-c056703c.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../FormField-
|
|
7
|
+
require('../FormField-bdfb7a5a.js');
|
|
8
8
|
require('../tslib.es6-5b8768b7.js');
|
|
9
9
|
require('uuid');
|
|
10
10
|
require('react-hook-form');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
12
|
require('classnames');
|
|
13
|
-
require('../Button-
|
|
13
|
+
require('../Button-e2452625.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-1aeeb56e.js');
|
|
18
|
+
require('../Text-668ba4fe.js');
|
|
19
|
+
require('../InputValidation-1b86b467.js');
|
|
20
20
|
require('framer-motion');
|
|
21
|
-
require('../Spinner-
|
|
21
|
+
require('../Spinner-3480bc34.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-bdfb7a5a.js');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
+
import { CivilDate, CivilTime } from "@std-proposal/temporal";
|
|
2
3
|
import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
4
|
+
export type AtlantisTemporalPlainDateTime = Temporal.PlainDateTime | CivilDate;
|
|
5
|
+
export type AtlantisTemporalPlainTime = Temporal.PlainTime | CivilTime;
|
|
3
6
|
export interface InputTimeProps extends Pick<CommonFormFieldProps, "align" | "description" | "disabled" | "invalid" | "inline" | "loading" | "name" | "onValidation" | "placeholder" | "size">, Pick<FormFieldProps, "maxLength" | "readonly" | "autocomplete" | "max" | "min" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations"> {
|
|
4
7
|
/**
|
|
5
8
|
* Intial value of the input. Only use this when you need to prepopulate the
|
|
6
9
|
* field with a data that is not controlled by the components state. If a
|
|
7
10
|
* state is controlling the value, use the `value` prop instead.
|
|
8
11
|
*/
|
|
9
|
-
readonly defaultValue?:
|
|
12
|
+
readonly defaultValue?: AtlantisTemporalPlainTime;
|
|
10
13
|
/**
|
|
11
14
|
* Set the component to the given value.
|
|
12
15
|
*/
|
|
13
|
-
readonly value?:
|
|
16
|
+
readonly value?: AtlantisTemporalPlainTime;
|
|
14
17
|
/**
|
|
15
18
|
* Function called when user changes input value.
|
|
16
19
|
*/
|
|
17
|
-
onChange?(newValue?:
|
|
20
|
+
onChange?(newValue?: AtlantisTemporalPlainTime): void;
|
|
18
21
|
}
|
package/dist/InputTime/index.js
CHANGED
|
@@ -5,21 +5,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../tslib.es6-5b8768b7.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var debounce = require('lodash/debounce');
|
|
8
|
-
var
|
|
9
|
-
var FormField = require('../FormField-
|
|
8
|
+
var polyfill = require('@js-temporal/polyfill');
|
|
9
|
+
var FormField = require('../FormField-bdfb7a5a.js');
|
|
10
10
|
require('uuid');
|
|
11
11
|
require('react-hook-form');
|
|
12
12
|
require('../style-inject.es-9d2f5f4e.js');
|
|
13
13
|
require('classnames');
|
|
14
|
-
require('../Button-
|
|
14
|
+
require('../Button-e2452625.js');
|
|
15
15
|
require('react-router-dom');
|
|
16
16
|
require('../Icon-405a216c.js');
|
|
17
17
|
require('@jobber/design');
|
|
18
|
-
require('../Typography-
|
|
19
|
-
require('../Text-
|
|
20
|
-
require('../InputValidation-
|
|
18
|
+
require('../Typography-1aeeb56e.js');
|
|
19
|
+
require('../Text-668ba4fe.js');
|
|
20
|
+
require('../InputValidation-1b86b467.js');
|
|
21
21
|
require('framer-motion');
|
|
22
|
-
require('../Spinner-
|
|
22
|
+
require('../Spinner-3480bc34.js');
|
|
23
23
|
|
|
24
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
25
|
|
|
@@ -720,16 +720,16 @@ if (window) {
|
|
|
720
720
|
|
|
721
721
|
var index_cjs = TimePolyfill;
|
|
722
722
|
|
|
723
|
-
function
|
|
724
|
-
if (
|
|
723
|
+
function atlantisTimeToHTMLTime(atlantisTime) {
|
|
724
|
+
if (atlantisTime == undefined) {
|
|
725
725
|
return "";
|
|
726
726
|
}
|
|
727
|
-
const timeString =
|
|
727
|
+
const timeString = atlantisTime.toString();
|
|
728
728
|
return timeString.slice(0, 5);
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function htmlTimeToAtlantisTime(timeString) {
|
|
731
731
|
try {
|
|
732
|
-
return
|
|
732
|
+
return polyfill.Temporal.PlainTime.from(timeString + ":00.000000000");
|
|
733
733
|
}
|
|
734
734
|
catch (_a) {
|
|
735
735
|
return undefined;
|
|
@@ -746,11 +746,11 @@ function InputTimeSafari(_a) {
|
|
|
746
746
|
const input = inputTime.current;
|
|
747
747
|
new index_cjs(input);
|
|
748
748
|
if (value) {
|
|
749
|
-
input.value =
|
|
749
|
+
input.value = atlantisTimeToHTMLTime(value);
|
|
750
750
|
input.polyfill.update();
|
|
751
751
|
}
|
|
752
752
|
if (defaultValue) {
|
|
753
|
-
input.value =
|
|
753
|
+
input.value = atlantisTimeToHTMLTime(defaultValue);
|
|
754
754
|
input.polyfill.update();
|
|
755
755
|
}
|
|
756
756
|
input.addEventListener("change", changeHandler);
|
|
@@ -763,17 +763,17 @@ function InputTimeSafari(_a) {
|
|
|
763
763
|
React.useLayoutEffect(() => {
|
|
764
764
|
const input = inputTime.current;
|
|
765
765
|
if (value) {
|
|
766
|
-
input.value =
|
|
766
|
+
input.value = atlantisTimeToHTMLTime(value);
|
|
767
767
|
input.polyfill.update();
|
|
768
768
|
}
|
|
769
769
|
if (defaultValue) {
|
|
770
|
-
input.value =
|
|
770
|
+
input.value = atlantisTimeToHTMLTime(defaultValue);
|
|
771
771
|
input.polyfill.update();
|
|
772
772
|
}
|
|
773
773
|
}, [value, defaultValue]);
|
|
774
774
|
return React__default["default"].createElement(FormField.FormField, Object.assign({ inputRef: inputTime, type: "time" }, params));
|
|
775
775
|
function handleChange(newValue) {
|
|
776
|
-
onChange && onChange(
|
|
776
|
+
onChange && onChange(htmlTimeToAtlantisTime(newValue));
|
|
777
777
|
}
|
|
778
778
|
function generateEventHandler(handler) {
|
|
779
779
|
return (event) => {
|
|
@@ -788,10 +788,12 @@ function InputTimeSafari(_a) {
|
|
|
788
788
|
function InputTime(_a) {
|
|
789
789
|
var { defaultValue, value, onChange } = _a, params = tslib_es6.__rest(_a, ["defaultValue", "value", "onChange"]);
|
|
790
790
|
const handleChange = (newValue) => {
|
|
791
|
-
onChange && onChange(
|
|
791
|
+
onChange && onChange(htmlTimeToAtlantisTime(newValue));
|
|
792
792
|
};
|
|
793
793
|
if (supportsTime) {
|
|
794
|
-
const fieldProps = Object.assign(Object.assign(Object.assign({ onChange: handleChange }, (defaultValue && {
|
|
794
|
+
const fieldProps = Object.assign(Object.assign(Object.assign({ onChange: handleChange }, (defaultValue && {
|
|
795
|
+
defaultValue: atlantisTimeToHTMLTime(defaultValue),
|
|
796
|
+
})), (!defaultValue && { value: atlantisTimeToHTMLTime(value) })), params);
|
|
795
797
|
return React__default["default"].createElement(FormField.FormField, Object.assign({ type: "time" }, fieldProps));
|
|
796
798
|
}
|
|
797
799
|
else {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var InputValidation = require('../InputValidation-
|
|
5
|
+
var InputValidation = require('../InputValidation-1b86b467.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('../Text-
|
|
10
|
-
require('../Typography-
|
|
9
|
+
require('../Text-668ba4fe.js');
|
|
10
|
+
require('../Typography-1aeeb56e.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('../Icon-405a216c.js');
|
|
13
13
|
require('@jobber/design');
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var framerMotion = require('framer-motion');
|
|
5
5
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
var Text = require('./Text-
|
|
6
|
+
var Text = require('./Text-668ba4fe.js');
|
|
7
7
|
var Icon = require('./Icon-405a216c.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
|
|
|
13
|
-
var css_248z = ".
|
|
14
|
-
var styles = {"hasValidationMessage":"
|
|
13
|
+
var css_248z = ".sc-bFJieXBA- {\n margin-top: var(--space-smaller);\n}\n\n.xybhC5Y6mk4- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--space-smaller);\n padding-left: 0;\n}\n\n.xybhC5Y6mk4- > svg {\n margin-right: var(--space-smaller);\n}\n\n.xybhC5Y6mk4-:focus {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n";
|
|
14
|
+
var styles = {"hasValidationMessage":"sc-bFJieXBA-","message":"xybhC5Y6mk4-"};
|
|
15
15
|
styleInject_es.styleInject(css_248z);
|
|
16
16
|
|
|
17
17
|
function InputValidation({ message }) {
|
package/dist/LightBox/index.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var LightBox = require('../LightBox-
|
|
5
|
+
var LightBox = require('../LightBox-3753b459.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('react-dom');
|
|
9
9
|
require('lodash/debounce');
|
|
10
10
|
require('@jobber/hooks');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
-
require('../ButtonDismiss-
|
|
13
|
-
require('../Button-
|
|
12
|
+
require('../ButtonDismiss-64740d0a.js');
|
|
13
|
+
require('../Button-e2452625.js');
|
|
14
14
|
require('classnames');
|
|
15
15
|
require('react-router-dom');
|
|
16
16
|
require('../Icon-405a216c.js');
|
|
17
17
|
require('@jobber/design');
|
|
18
|
-
require('../Typography-
|
|
18
|
+
require('../Typography-1aeeb56e.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -6,8 +6,8 @@ var ReactDOM = require('react-dom');
|
|
|
6
6
|
var debounce = require('lodash/debounce');
|
|
7
7
|
var jobberHooks = require('@jobber/hooks');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var ButtonDismiss = require('./ButtonDismiss-
|
|
10
|
-
var Button = require('./Button-
|
|
9
|
+
var ButtonDismiss = require('./ButtonDismiss-64740d0a.js');
|
|
10
|
+
var Button = require('./Button-e2452625.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -15,8 +15,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
15
15
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
16
16
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
17
17
|
|
|
18
|
-
var css_248z = ".
|
|
19
|
-
var styles = {"next":"
|
|
18
|
+
var css_248z = "._3JgBCebdbNU-,\n.JJOBEL7d-10- {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n top: 50%;\n z-index: var(--elevation-base);\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n._3JgBCebdbNU- {\n right: var(--space-base);\n}\n\n.JJOBEL7d-10- {\n left: var(--space-base);\n}\n\n.fAep1A-0xIU- {\n display: -ms-flexbox;\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--elevation-modal);\n width: 100%;\n height: 100%;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.AfUUWErd5S4- {\n display: -ms-flexbox;\n display: flex;\n z-index: var(--elevation-base);\n padding: var(--space-small) var(--space-base);\n color: var(--color-text--reverse--secondary);\n font-size: var(--typography--fontSize-large);\n background-color: var(--color-surface--reverse);\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.ysUYbBTaORk- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.GSOVtN1Y3IU- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n min-height: 0;\n}\n\n.-V917BdNqSs- {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--color-overlay);\n}\n\n.sjwUjzb3a5c- {\n position: absolute;\n top: 50%;\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n}\n";
|
|
19
|
+
var styles = {"next":"_3JgBCebdbNU-","prev":"JJOBEL7d-10-","lightboxWrapper":"fAep1A-0xIU-","toolbar":"AfUUWErd5S4-","title":"ysUYbBTaORk-","imagesWrapper":"GSOVtN1Y3IU-","overlay":"-V917BdNqSs-","image":"sjwUjzb3a5c-"};
|
|
20
20
|
styleInject_es.styleInject(css_248z);
|
|
21
21
|
|
|
22
22
|
/* eslint-disable max-statements */
|
package/dist/List/index.js
CHANGED
|
@@ -7,30 +7,30 @@ var classnames = require('classnames');
|
|
|
7
7
|
var lodash = require('lodash');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
9
|
var Icon = require('../Icon-405a216c.js');
|
|
10
|
-
var Text = require('../Text-
|
|
11
|
-
var Heading = require('../Heading-
|
|
12
|
-
var Typography = require('../Typography-
|
|
13
|
-
var Markdown = require('../Markdown-
|
|
14
|
-
var Emphasis = require('../Emphasis-
|
|
10
|
+
var Text = require('../Text-668ba4fe.js');
|
|
11
|
+
var Heading = require('../Heading-4dc407a9.js');
|
|
12
|
+
var Typography = require('../Typography-1aeeb56e.js');
|
|
13
|
+
var Markdown = require('../Markdown-c6caca6d.js');
|
|
14
|
+
var Emphasis = require('../Emphasis-1d1a2601.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
16
|
require('react-markdown');
|
|
17
|
-
require('../Content-
|
|
17
|
+
require('../Content-db546523.js');
|
|
18
18
|
|
|
19
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
20
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
23
23
|
|
|
24
|
-
var css_248z$2 = ".
|
|
25
|
-
var styles$1 = {"list":"
|
|
24
|
+
var css_248z$2 = ".u853Ql4cj50- {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.ig9l6LfEgwo-:not(:last-child) {\n border-bottom: var(--border-base) solid var(--color-border);\n}\n\n.KIYTQdrufzY- {\n position: relative;\n}\n\n.KIYTQdrufzY-:not(:last-child) .u853Ql4cj50- {\n padding-bottom: var(--space-large);\n}\n";
|
|
25
|
+
var styles$1 = {"list":"u853Ql4cj50-","item":"ig9l6LfEgwo-","section":"KIYTQdrufzY-"};
|
|
26
26
|
styleInject_es.styleInject(css_248z$2);
|
|
27
27
|
|
|
28
|
-
var css_248z$1 = ".
|
|
29
|
-
var sectionStyles = {"sectionHeader":"
|
|
28
|
+
var css_248z$1 = ".LUlooG82UJA- {\n position: sticky;\n top: 0;\n padding: var(--space-small) var(--space-base);\n border-bottom: 1px solid var(--color-border--section);\n background-color: var(--color-surface);\n}\n\n._4LVpgNq-SLM- {\n border-bottom-color: var(--color-greyBlue--light);\n color: var(--color-greyBlue--light);\n}\n\n._0QhWokyE9PY- {\n border-bottom-color: var(--color-green);\n color: var(--color-green);\n}\n\n.J8wB3qqOlBc-,\n.Ujqj17pKDIE- {\n border-bottom-color: var(--color-blue);\n color: var(--color-blue);\n}\n\n._0lNxLGXhrfY- {\n border-bottom-color: var(--color-orange);\n color: var(--color-orange);\n}\n\n._4qPymF0CAAE- {\n border-bottom-color: var(--color-red);\n color: var(--color-red);\n}\n\n.kKYNLBSu9IQ- {\n border-bottom-color: var(--color-teal);\n color: var(--color-teal);\n}\n";
|
|
29
|
+
var sectionStyles = {"sectionHeader":"LUlooG82UJA-","greyBlue":"_4LVpgNq-SLM-","green":"_0QhWokyE9PY-","blue":"J8wB3qqOlBc-","archived":"Ujqj17pKDIE-","orange":"_0lNxLGXhrfY-","red":"_4qPymF0CAAE-","teal":"kKYNLBSu9IQ-"};
|
|
30
30
|
styleInject_es.styleInject(css_248z$1);
|
|
31
31
|
|
|
32
|
-
var css_248z = ".
|
|
33
|
-
var styles = {"action":"
|
|
32
|
+
var css_248z = ".XPLf4Jp6feU- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n padding: var(--space-small);\n border: none;\n text-align: left;\n text-decoration: none;\n background-color: transparent;\n transition: background-color var(--timing-base);\n -webkit-appearance: none;\n appearance: none;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n.XPLf4Jp6feU- > * {\n padding: var(--space-small);\n}\n\n.RseHYbVm4MA- {\n cursor: pointer;\n}\n\n.RseHYbVm4MA-:hover,\n.RseHYbVm4MA-:focus {\n outline: none;\n background-color: var(--color-surface--hover);\n}\n\n.d1-zQvxPH-M- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: var(--space-large);\n height: var(--space-large);\n box-sizing: content-box;\n}\n\n._-58VuZf1TtM- {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n min-width: 0;\n -ms-flex-item-align: center;\n align-self: center;\n}\n\n.wHB5zXYWW3E- {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n text-align: right;\n}\n\n/* States */\n\n.C4DznaxLKiw- {\n background-color: var(--color-surface--active);\n}\n\n/* TODO: Move truncate in typography */\n\n.Brob-IpVv4o- {\n display: block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
|
|
33
|
+
var styles = {"action":"XPLf4Jp6feU-","hoverable":"RseHYbVm4MA-","icon":"d1-zQvxPH-M-","info":"_-58VuZf1TtM-","amount":"wHB5zXYWW3E-","isActive":"C4DznaxLKiw-","truncate":"Brob-IpVv4o-"};
|
|
34
34
|
styleInject_es.styleInject(css_248z);
|
|
35
35
|
|
|
36
36
|
function ListItem({ caption, content, icon, iconColor, id, isActive, onClick, title, url, value, }) {
|
package/dist/Markdown/index.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Markdown = require('../Markdown-
|
|
5
|
+
var Markdown = require('../Markdown-c6caca6d.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-markdown');
|
|
8
|
-
require('../Text-
|
|
9
|
-
require('../Typography-
|
|
8
|
+
require('../Text-668ba4fe.js');
|
|
9
|
+
require('../Typography-1aeeb56e.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
-
require('../Emphasis-
|
|
13
|
-
require('../Heading-
|
|
14
|
-
require('../Content-
|
|
12
|
+
require('../Emphasis-1d1a2601.js');
|
|
13
|
+
require('../Heading-4dc407a9.js');
|
|
14
|
+
require('../Content-db546523.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var ReactMarkdown = require('react-markdown');
|
|
5
|
-
var Text = require('./Text-
|
|
6
|
-
var Emphasis = require('./Emphasis-
|
|
7
|
-
var Heading = require('./Heading-
|
|
8
|
-
var Content = require('./Content-
|
|
5
|
+
var Text = require('./Text-668ba4fe.js');
|
|
6
|
+
var Emphasis = require('./Emphasis-1d1a2601.js');
|
|
7
|
+
var Heading = require('./Heading-4dc407a9.js');
|
|
8
|
+
var Content = require('./Content-db546523.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
package/dist/Menu/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Menu = require('../Menu-
|
|
5
|
+
var Menu = require('../Menu-e6f88c8e.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('uuid');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('framer-motion');
|
|
10
10
|
require('@jobber/hooks');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
-
require('../Button-
|
|
12
|
+
require('../Button-e2452625.js');
|
|
13
13
|
require('react-router-dom');
|
|
14
14
|
require('../Icon-405a216c.js');
|
|
15
15
|
require('@jobber/design');
|
|
16
|
-
require('../Typography-
|
|
16
|
+
require('../Typography-1aeeb56e.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -6,8 +6,8 @@ var classnames = require('classnames');
|
|
|
6
6
|
var framerMotion = require('framer-motion');
|
|
7
7
|
var jobberHooks = require('@jobber/hooks');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Button = require('./Button-
|
|
10
|
-
var Typography = require('./Typography-
|
|
9
|
+
var Button = require('./Button-e2452625.js');
|
|
10
|
+
var Typography = require('./Typography-1aeeb56e.js');
|
|
11
11
|
var Icon = require('./Icon-405a216c.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -15,8 +15,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
17
17
|
|
|
18
|
-
var css_248z = ".
|
|
19
|
-
var styles = {"wrapper":"
|
|
18
|
+
var css_248z = ".dT6M9tp1sZc- * {\n box-sizing: border-box;\n}\n\n.dT6M9tp1sZc- {\n display: inline-block;\n position: relative;\n}\n\n.Qmxlsj0D3qM- {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: var(--elevation-menu);\n width: 100%;\n max-height: 72vh;\n padding: var(--space-small);\n padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-small));\n border-radius: var(--radius-base) var(--radius-base) 0 0;\n -webkit-overflow-scrolling: touch;\n overflow-y: scroll;\n background-color: var(--color-surface)\n}\n\n@media (min-width: 640px) {\n\n.Qmxlsj0D3qM- {\n position: absolute;\n left: auto;\n width: calc(var(--base-unit) * 12.5);\n box-shadow: var(--shadow-base);\n padding: var(--space-small);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-base);\n overflow: auto\n}\n }\n\n@media (--medium-screens) {\n\n.Qmxlsj0D3qM- {\n position: absolute;\n left: auto;\n width: calc(var(--base-unit) * 12.5);\n box-shadow: var(--shadow-base);\n padding: var(--space-small);\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-base);\n overflow: auto\n}\n }\n\n@media (min-width: 640px) {\n\n.QTisUfiHwL4- {\n bottom: 100%;\n margin-bottom: var(--space-smallest)\n}\n }\n\n@media (--medium-screens) {\n\n.QTisUfiHwL4- {\n bottom: 100%;\n margin-bottom: var(--space-smallest)\n}\n }\n\n@media (min-width: 640px) {\n\n.qsch1dlpOHc- {\n top: 100%;\n bottom: auto;\n margin-top: var(--space-smallest)\n}\n }\n\n@media (--medium-screens) {\n\n.qsch1dlpOHc- {\n top: 100%;\n bottom: auto;\n margin-top: var(--space-smallest)\n}\n }\n\n@media (min-width: 640px) {\n\n._0xR9-oxWMOU- {\n right: 0;\n left: auto\n}\n }\n\n@media (--medium-screens) {\n\n._0xR9-oxWMOU- {\n right: 0;\n left: auto\n}\n }\n\n@media (min-width: 640px) {\n\n.gaZwsdyoG0k- {\n right: auto;\n left: 0\n}\n }\n\n@media (--medium-screens) {\n\n.gaZwsdyoG0k- {\n right: auto;\n left: 0\n}\n }\n\n.LaKFjYCLHZc- {\n padding: var(--space-small) 0;\n border-bottom: var(--border-base) dotted var(--color-border);\n}\n\n.LaKFjYCLHZc-:first-of-type {\n padding-top: 0;\n}\n\n.LaKFjYCLHZc-:last-of-type {\n padding-bottom: 0;\n border-bottom: none;\n}\n\n._7HB7dWnqCi0- {\n padding: var(--space-small);\n}\n\n.ZuceCiefKqw- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n padding: var(--space-small);\n border: none;\n border-radius: var(--radius-base);\n background-color: transparent;\n cursor: pointer;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.ZuceCiefKqw-:hover,\n.ZuceCiefKqw-:focus {\n background-color: var(--color-surface--hover);\n outline-color: var(--color-focus);\n}\n\n.Bz8TONF8kws- {\n margin-right: var(--space-base);\n}\n\n.eKnUAucwwWU- {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--elevation-menu);\n background-color: var(--color-overlay)\n}\n\n@media (min-width: 640px) {\n\n.eKnUAucwwWU- {\n background-color: transparent\n}\n }\n\n@media (--medium-screens) {\n\n.eKnUAucwwWU- {\n background-color: transparent\n}\n }\n\n.oaxefr58z-E- {\n width: 100%;\n}\n\n.vz9opIdwHFg- {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n}\n";
|
|
19
|
+
var styles = {"wrapper":"dT6M9tp1sZc-","menu":"Qmxlsj0D3qM-","above":"QTisUfiHwL4-","below":"qsch1dlpOHc-","left":"_0xR9-oxWMOU-","right":"gaZwsdyoG0k-","section":"LaKFjYCLHZc-","sectionHeader":"_7HB7dWnqCi0-","action":"ZuceCiefKqw-","icon":"Bz8TONF8kws-","overlay":"eKnUAucwwWU-","fullWidth":"oaxefr58z-E-","screenReaderOnly":"vz9opIdwHFg-"};
|
|
20
20
|
styleInject_es.styleInject(css_248z);
|
|
21
21
|
|
|
22
22
|
const variation = {
|
package/dist/Modal/index.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Modal = require('../Modal-
|
|
5
|
+
var Modal = require('../Modal-e493144d.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-dom');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('framer-motion');
|
|
10
10
|
require('@jobber/hooks');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
|
-
require('../Heading-
|
|
13
|
-
require('../Typography-
|
|
14
|
-
require('../Button-
|
|
12
|
+
require('../Heading-4dc407a9.js');
|
|
13
|
+
require('../Typography-1aeeb56e.js');
|
|
14
|
+
require('../Button-e2452625.js');
|
|
15
15
|
require('react-router-dom');
|
|
16
16
|
require('../Icon-405a216c.js');
|
|
17
17
|
require('@jobber/design');
|
|
18
|
-
require('../ButtonDismiss-
|
|
18
|
+
require('../ButtonDismiss-64740d0a.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -6,9 +6,9 @@ var classnames = require('classnames');
|
|
|
6
6
|
var framerMotion = require('framer-motion');
|
|
7
7
|
var jobberHooks = require('@jobber/hooks');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Heading = require('./Heading-
|
|
10
|
-
var Button = require('./Button-
|
|
11
|
-
var ButtonDismiss = require('./ButtonDismiss-
|
|
9
|
+
var Heading = require('./Heading-4dc407a9.js');
|
|
10
|
+
var Button = require('./Button-e2452625.js');
|
|
11
|
+
var ButtonDismiss = require('./ButtonDismiss-64740d0a.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
@@ -16,12 +16,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
16
16
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
17
17
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
18
18
|
|
|
19
|
-
var css_248z$1 = ":root {\n --modal--width: calc(var(--base-unit) * 37.5);\n --modal--padding: var(--space-base);\n}\n\n@media (min-width: 640px) {\n :root {\n --modal--padding: var(--space-base) var(--space-large);\n }\n}\n\n@media (
|
|
20
|
-
var styles = {"container":"
|
|
19
|
+
var css_248z$1 = ":root {\n --modal--width: calc(var(--base-unit) * 37.5);\n --modal--padding: var(--space-base);\n}\n\n@media (min-width: 640px) {\n :root {\n --modal--padding: var(--space-base) var(--space-large);\n }\n}\n\n@media (--medium-screens) {\n :root {\n --modal--padding: var(--space-base) var(--space-large);\n }\n}\n\n.QGRLFHPoV5E- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n z-index: var(--elevation-modal);\n padding: var(--space-small);\n overflow: auto;\n}\n\n.QGRLFHPoV5E-,\n._4WzGOMUGj5I- {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n._4WzGOMUGj5I- {\n background-color: var(--color-overlay);\n}\n\n.WLId2NJBQcQ- {\n --public-tab--inset: var(--space-large);\n\n position: relative;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: 100%;\n max-width: calc(var(--base-unit) * 37.5);\n max-width: var(--modal--width);\n margin: auto;\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-base);\n outline-color: var(--color-focus);\n background-color: var(--color-surface);\n}\n\n/* Adjust `Content` components public padding to match the modal */\n\n.WLId2NJBQcQ- > * {\n --public-content--padding: var(--modal--padding);\n}\n\n/* Remove the nested `Content` components public padding */\n\n.WLId2NJBQcQ- > * > * {\n --public-content--padding: 0;\n}\n\n.wjrPpIUNNrk- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--space-base);\n padding: var(--modal--padding);\n background-color: var(--color-surface--background);\n}\n\n.rKvigUnOyYE- {\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n}\n\n._62c8HLZFwvs- {\n display: -ms-flexbox;\n display: flex;\n padding: var(--space-base);\n padding: var(--modal--padding);\n padding-top: 0;\n -ms-flex: 1 1 100%;\n flex: 1 1 100%;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n\n/**\n * 1. Use CSS `order` to adjust the buttons position on the UI\n */\n\n.Xl1Ptn-P9Ew- {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n -ms-flex-order: 1;\n order: 1; /* 1 */\n}\n\n.p2s7GtpoZz0- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n -ms-flex-order: 2;\n order: 2; /* 1 */\n}\n\n.p2s7GtpoZz0- > * {\n margin-left: var(--space-small);\n}\n\n.p2s7GtpoZz0- *:first-child {\n -ms-flex-order: 2;\n order: 2; /* 1 */\n}\n\n.p2s7GtpoZz0- *:nth-child(2) {\n -ms-flex-order: 1;\n order: 1; /* 1 */\n}\n";
|
|
20
|
+
var styles = {"container":"QGRLFHPoV5E-","overlay":"_4WzGOMUGj5I-","modal":"WLId2NJBQcQ-","header":"wjrPpIUNNrk-","closeButton":"rKvigUnOyYE-","actionBar":"_62c8HLZFwvs-","leftAction":"Xl1Ptn-P9Ew-","rightAction":"p2s7GtpoZz0-"};
|
|
21
21
|
styleInject_es.styleInject(css_248z$1);
|
|
22
22
|
|
|
23
|
-
var css_248z = ".
|
|
24
|
-
var sizes = {"small":"
|
|
23
|
+
var css_248z = "._65IpUjOZiBg- {\n --modal--padding: var(--space-base);\n max-width: calc(var(--base-unit) * 25);\n}\n\n.Cpwnmw65caA- {\n max-width: calc(var(--base-unit) * 58.75);\n}\n";
|
|
24
|
+
var sizes = {"small":"_65IpUjOZiBg-","large":"Cpwnmw65caA-"};
|
|
25
25
|
styleInject_es.styleInject(css_248z);
|
|
26
26
|
|
|
27
27
|
function Modal({ open = false, title, size, dismissible = true, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }) {
|
|
@@ -6,10 +6,10 @@ var React = require('react');
|
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
var jobberHooks = require('@jobber/hooks');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Checkbox = require('../Checkbox-
|
|
10
|
-
var Text = require('../Text-
|
|
9
|
+
var Checkbox = require('../Checkbox-ff77e7ef.js');
|
|
10
|
+
var Text = require('../Text-668ba4fe.js');
|
|
11
11
|
var Icon = require('../Icon-405a216c.js');
|
|
12
|
-
require('../Typography-
|
|
12
|
+
require('../Typography-1aeeb56e.js');
|
|
13
13
|
require('@jobber/design');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -17,12 +17,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
18
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
19
19
|
|
|
20
|
-
var css_248z$1 = ".
|
|
21
|
-
var styles$1 = {"multiSelectContainer":"
|
|
20
|
+
var css_248z$1 = ".D-J03az6XL4- {\n position: relative;\n width: 100%;\n}\n\n.D-J03az6XL4- * {\n box-sizing: border-box;\n}\n\n.EzNdHgwsT40- {\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 display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n height: var(--field--height);\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: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-base);\n}\n\n.EzNdHgwsT40- p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.D-J03az6XL4-:hover,\n.D-J03az6XL4-.EzNdHgwsT40- {\n cursor: pointer;\n caret-color: transparent;\n}\n\n.EzNdHgwsT40-:focus,\n.EzNdHgwsT40-.bu7HWKRu6HI- {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n.eQ6yfQg6zLc- {\n --field--padding-left: calc(var(--space-base) - var(--space-smaller));\n --field--padding-right: calc(var(--space-base) - var(--space-smaller));\n --field--height: calc(var(--space-larger) + var(--space-smaller));\n}\n\n.pM-ts4-QMZY- {\n --field--padding-left: var(--space-large);\n --field--padding-right: var(--space-large);\n --field--height: calc(var(--space-extravagant));\n}\n";
|
|
21
|
+
var styles$1 = {"multiSelectContainer":"D-J03az6XL4-","multiSelect":"EzNdHgwsT40-","active":"bu7HWKRu6HI-","small":"eQ6yfQg6zLc-","large":"pM-ts4-QMZY-"};
|
|
22
22
|
styleInject_es.styleInject(css_248z$1);
|
|
23
23
|
|
|
24
|
-
var css_248z = ".
|
|
25
|
-
var styles = {"dropDownMenuContainer":"
|
|
24
|
+
var css_248z = "._0SStdD4KRHs- {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: var(--elevation-menu);\n width: 100%;\n max-height: calc(var(--space-extravagant) * 5);\n box-shadow: var(--shadow-base);\n margin: 0;\n padding: 0;\n border: var(--border-base) solid var(--color-border);\n border-radius: var(--radius-large);\n overflow: auto;\n background-color: var(--color-surface);\n -ms-flex-direction: column;\n flex-direction: column;\n scroll-behavior: smooth;\n}\n\n._0SStdD4KRHs- li {\n list-style: none;\n}\n\n.mFSgwOQZJm0- {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n padding: var(--space-small) var(--space-base);\n cursor: pointer;\n transition: all var(--timing-base);\n}\n\n.mFSgwOQZJm0-:focus,\n.mFSgwOQZJm0-.SepF4gvOxq8- {\n background-color: var(--color-surface--hover);\n outline-color: var(--color-focus);\n}\n";
|
|
25
|
+
var styles = {"dropDownMenuContainer":"_0SStdD4KRHs-","option":"mFSgwOQZJm0-","active":"SepF4gvOxq8-"};
|
|
26
26
|
styleInject_es.styleInject(css_248z);
|
|
27
27
|
|
|
28
28
|
function handleKeyboardShortcut(setupKeyListeners) {
|