@jobber/components 4.79.0 → 4.79.1-JOB-85851.2
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/StatusIndicator.d.ts +1 -0
- package/StatusIndicator.js +17 -0
- package/dist/AnimatedPresence/index.js +5 -99
- package/dist/AnimatedPresence-20a02aaa.js +104 -0
- package/dist/Autocomplete/Menu.d.ts +2 -2
- package/dist/Autocomplete/index.js +16 -11
- package/dist/Banner/index.js +8 -7
- package/dist/Button/index.js +2 -2
- package/dist/{Button-b73a5e01.js → Button-6b922fc1.js} +1 -1
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +1 -1
- package/dist/ButtonDismiss/index.js +3 -3
- package/dist/{ButtonDismiss-350af163.js → ButtonDismiss-a3ba1de2.js} +1 -1
- package/dist/Card/CardClickable.d.ts +1 -1
- package/dist/Card/index.js +7 -7
- package/dist/{Card-426a68a8.js → Card-74f078a4.js} +4 -4
- package/dist/Checkbox/index.js +3 -4
- package/dist/{Checkbox-99f6297f.js → Checkbox-e481a4b1.js} +2 -3
- package/dist/Chip/index.js +5 -3
- package/dist/{Chip-c91fd6c8.js → Chip-76f18555.js} +2 -2
- package/dist/Chips/index.js +9 -8
- package/dist/Combobox/Combobox.types.d.ts +4 -0
- package/dist/Combobox/components/ComboboxOption/ComboboxOption.d.ts +2 -1
- package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
- package/dist/Combobox/index.js +12 -8
- package/dist/{Combobox-d4b84edf.js → Combobox-6d864202.js} +25 -20
- package/dist/ConfirmationModal/index.js +11 -10
- package/dist/{ConfirmationModal-f1a049fb.js → ConfirmationModal-387aa1b5.js} +2 -2
- package/dist/DataDump/index.js +8 -8
- package/dist/DataList/DataList.const.d.ts +1 -0
- package/dist/DataList/DataList.types.d.ts +0 -1
- package/dist/DataList/components/DataListActionsMenu/DataListActionsMenu.d.ts +2 -2
- package/dist/DataList/components/DataListTotalCount/DataListTotalCount.d.ts +2 -2
- package/dist/DataList/index.js +40 -40
- package/dist/DataTable/BodyLoading.d.ts +1 -1
- package/dist/DataTable/Footer.d.ts +2 -2
- package/dist/DataTable/SortIcon.d.ts +1 -1
- package/dist/DataTable/index.js +7 -8
- package/dist/DatePicker/index.js +3 -3
- package/dist/{DatePicker-64c5ab1a.js → DatePicker-dd9173c7.js} +2 -2
- package/dist/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/DescriptionList/index.js +2 -2
- package/dist/Disclosure/index.js +1 -1
- package/dist/Drawer/DrawerGrid.d.ts +1 -1
- package/dist/Drawer/index.js +11 -11
- package/dist/Emphasis/Emphasis.d.ts +2 -2
- package/dist/Emphasis/index.js +2 -2
- package/dist/{Emphasis-bda56d3b.js → Emphasis-a77d8ee9.js} +1 -1
- package/dist/FeatureSwitch/index.js +9 -8
- package/dist/Flex/index.js +5 -33
- package/dist/Flex-d490c4db.js +38 -0
- package/dist/FormField/FormFieldAffix.d.ts +2 -2
- package/dist/FormField/index.js +5 -6
- package/dist/{FormField-b4e6c549.js → FormField-3ec1c85d.js} +5 -6
- package/dist/FormatFile/FormatFileDeleteButton.d.ts +2 -2
- package/dist/FormatFile/index.js +13 -12
- package/dist/{FormatFile-652edda8.js → FormatFile-5ba4cf69.js} +7 -7
- package/dist/Gallery/index.js +15 -13
- package/dist/Glimmer/index.js +1 -1
- package/dist/{Glimmer-7c317864.js → Glimmer-84dee1ed.js} +1 -1
- package/dist/Heading/index.js +4 -3
- package/dist/{Heading-1e8e4bd3.js → Heading-bae3c69e.js} +3 -3
- package/dist/InlineLabel/InlineLabel.d.ts +3 -3
- package/dist/InlineLabel/index.js +2 -2
- package/dist/{InlineLabel-a6557829.js → InlineLabel-4d463bd6.js} +1 -1
- package/dist/InputAvatar/index.js +5 -6
- package/dist/InputDate/index.js +6 -7
- package/dist/InputEmail/index.js +5 -6
- package/dist/InputFile/InputFile.d.ts +1 -1
- package/dist/InputFile/index.js +5 -6
- package/dist/{InputFile-c9eeb04b.js → InputFile-20b9074a.js} +7 -5
- package/dist/InputNumber/InputNumber.d.ts +1 -1
- package/dist/InputNumber/index.js +6 -7
- package/dist/{InputNumber-ceae3872.js → InputNumber-75ae72b9.js} +1 -1
- package/dist/InputPassword/InputPassword.d.ts +2 -2
- package/dist/InputPassword/index.js +5 -6
- package/dist/InputPhoneNumber/index.js +5 -6
- package/dist/InputText/index.js +7 -7
- package/dist/{InputText-6e356985.js → InputText-de22af8c.js} +3 -2
- package/dist/InputTime/index.js +5 -6
- package/dist/InputValidation/index.js +3 -3
- package/dist/{InputValidation-05e839fa.js → InputValidation-a92bb519.js} +1 -1
- package/dist/LightBox/LightBox.d.ts +2 -2
- package/dist/LightBox/index.js +5 -4
- package/dist/{LightBox-a89d8863.js → LightBox-7efe8932.js} +7 -3
- package/dist/List/index.js +7 -6
- package/dist/Markdown/index.js +7 -6
- package/dist/{Markdown-f7c55304.js → Markdown-b1b65457.js} +3 -3
- package/dist/Menu/Menu.d.ts +4 -4
- package/dist/Menu/index.js +4 -4
- package/dist/{Menu-81b12936.js → Menu-d6dd673e.js} +6 -6
- package/dist/Modal/Modal.d.ts +2 -2
- package/dist/Modal/index.js +7 -6
- package/dist/{Modal-a0627c92.js → Modal-5b866c72.js} +7 -5
- package/dist/MultiSelect/index.js +3 -4
- package/dist/{Option-8565da71.js → Option-c4b05656.js} +1 -1
- package/dist/Page/index.js +9 -9
- package/dist/Popover/index.js +8 -4
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup/index.js +3 -4
- package/dist/{RadioGroup-ca7a5978.js → RadioGroup-678f4932.js} +3 -4
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +2 -2
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +2 -2
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +2 -2
- package/dist/RecurringSelect/components/MonthlySelect.d.ts +2 -2
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +2 -2
- package/dist/RecurringSelect/index.js +10 -11
- package/dist/Select/index.js +6 -7
- package/dist/StatusIndicator/StatusIndicator.d.ts +7 -0
- package/dist/StatusIndicator/StatusIndicator.type.d.ts +1 -0
- package/dist/StatusIndicator/index.d.ts +2 -0
- package/dist/StatusIndicator/index.js +11 -0
- package/dist/StatusIndicator-7b5258ea.js +18 -0
- package/dist/StatusLabel/StatusLabel.d.ts +3 -3
- package/dist/StatusLabel/index.js +8 -10
- package/dist/Switch/index.js +2 -2
- package/dist/{Switch-7d4aa7c3.js → Switch-eac89586.js} +1 -1
- package/dist/Table/Body.d.ts +1 -1
- package/dist/Table/Cells/Cell.d.ts +2 -2
- package/dist/Table/Cells/CellCurrency.d.ts +2 -2
- package/dist/Table/Cells/CellNumeric.d.ts +1 -1
- package/dist/Table/Footer.d.ts +1 -1
- package/dist/Table/Header.d.ts +1 -1
- package/dist/Table/Row.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Text/Text.d.ts +1 -1
- package/dist/Text/index.js +2 -2
- package/dist/{Text-259af966.js → Text-fbeaaca6.js} +1 -1
- package/dist/Toast/index.js +2 -2
- package/dist/Tooltip/index.js +3 -1
- package/dist/{Tooltip-27771182.js → Tooltip-b9de6e57.js} +6 -3
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/css/TextColors.css.d.ts +1 -0
- package/dist/Typography/index.js +1 -1
- package/dist/{Typography-c45bf216.js → Typography-e2a23b7e.js} +2 -2
- package/dist/useAtlantisConfig-ed0bee66.js +16 -0
- package/dist/utils/useAtlantisConfig.d.ts +3 -0
- package/package.json +8 -12
- package/rollup.config.js +0 -1
- package/dist/getAtlantisConfig-0f3e8af2.js +0 -13
- package/dist/utils/getAtlantisConfig.d.ts +0 -3
|
@@ -8,9 +8,9 @@ var useRefocusOnActivator = require('@jobber/hooks/useRefocusOnActivator');
|
|
|
8
8
|
var useOnKeyDown = require('@jobber/hooks/useOnKeyDown');
|
|
9
9
|
var useFocusTrap = require('@jobber/hooks/useFocusTrap');
|
|
10
10
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
11
|
-
var Heading = require('./Heading-
|
|
12
|
-
var Button = require('./Button-
|
|
13
|
-
var ButtonDismiss = require('./ButtonDismiss-
|
|
11
|
+
var Heading = require('./Heading-bae3c69e.js');
|
|
12
|
+
var Button = require('./Button-6b922fc1.js');
|
|
13
|
+
var ButtonDismiss = require('./ButtonDismiss-a3ba1de2.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
18
18
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
19
19
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
20
20
|
|
|
21
|
-
var css_248z$1 = ":root {\n --modal--width: calc(var(--base-unit) * 37.5);\n --modal--padding-horizontal: var(--space-base);\n --modal--padding-vertical: var(--space-base);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n\n@media (min-width: 768px) {\n\n:root {\n --modal--padding-horizontal: var(--space-large);\n}\n }\n\n@media (--medium-screens-and-up) {\n\n:root {\n --modal--padding-horizontal: var(--space-large);\n}\n }\n\n:root .jobber-retheme {\n --modal--shadow: var(--shadow-base);\n}\n\n@media (min-width: 768px) {\n\n:root .jobber-retheme {\n --modal--padding-horizontal: var(--space-large);\n --modal--padding-vertical: var(--space-large);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n }\n\n@media (--medium-screens-and-up) {\n\n:root .jobber-retheme {\n --modal--padding-horizontal: var(--space-large);\n --modal--padding-vertical: var(--space-large);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n }\n\n.QGRLFHPoV5E- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n z-index: 1001;\n z-index: var(--elevation-modal);\n padding: calc(16px / 2);\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: rgba(0, 0, 0, 0.32);\n background-color: var(--color-overlay);\n}\n\n.WLId2NJBQcQ- {\n position: relative;\n width: 100%;\n max-width: calc(16px * 37.5);\n max-width: var(--modal--width);\n box-shadow: var(--modal--shadow);\n margin: auto;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n}\n\n/* Adjust `Content` and `Tab` components public padding to match the modal */\n\n.WLId2NJBQcQ- > * {\n --public-content--padding: var(--modal--padding);\n --public-tab--inset: var(--modal--padding-horizontal);\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: calc(16px * 1)\n calc(16px * 1);\n padding: var(--modal--padding);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.jobber-retheme .wjrPpIUNNrk- {\n background-color: transparent;\n}\n\n.jobber-retheme .wjrPpIUNNrk- h3 {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-size: calc((16px * 1) * 1.5);\n font-size: calc(calc(16px * 1) * 1.5);\n font-size: var(--typography--fontSize-largest);\n}\n\n/**\n * Ensure there's no extra padding top on the next element. This mostly negates\n * the <Content /> padding\n */\n\n.jobber-retheme .wjrPpIUNNrk- + * {\n padding-top: 0;\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: calc(16px * 1)\n calc(16px * 1);\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/* This is in a correct position and order */\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n.p2s7GtpoZz0- > * {\n margin-left: calc(16px / 2);\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";
|
|
21
|
+
var css_248z$1 = ":root {\n --modal--width: calc(var(--base-unit) * 37.5);\n --modal--padding-horizontal: var(--space-base);\n --modal--padding-vertical: var(--space-base);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n\n@media (min-width: 768px) {\n\n:root {\n --modal--padding-horizontal: var(--space-large);\n}\n }\n\n@media (--medium-screens-and-up) {\n\n:root {\n --modal--padding-horizontal: var(--space-large);\n}\n }\n\n:root .jobber-retheme {\n --modal--shadow: var(--shadow-base);\n}\n\n@media (min-width: 768px) {\n\n:root .jobber-retheme {\n --modal--padding-horizontal: var(--space-large);\n --modal--padding-vertical: var(--space-large);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n }\n\n@media (--medium-screens-and-up) {\n\n:root .jobber-retheme {\n --modal--padding-horizontal: var(--space-large);\n --modal--padding-vertical: var(--space-large);\n --modal--padding: var(--modal--padding-vertical)\n var(--modal--padding-horizontal);\n}\n }\n\n.QGRLFHPoV5E- {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n z-index: 1001;\n z-index: var(--elevation-modal);\n padding: calc(16px / 2);\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: rgba(0, 0, 0, 0.32);\n background-color: var(--color-overlay);\n}\n\n.WLId2NJBQcQ- {\n position: relative;\n width: 100%;\n max-width: calc(16px * 37.5);\n max-width: var(--modal--width);\n box-shadow: var(--modal--shadow);\n margin: auto;\n border: calc(16px / 16) solid rgb(217, 223, 225);\n border: var(--border-base) solid var(--color-border);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--color-surface);\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n outline-color: rgb(147, 161, 169);\n outline-color: var(--color-focus);\n}\n\n/* Adjust `Content` and `Tab` components public padding to match the modal */\n\n.WLId2NJBQcQ- > * {\n --public-content--padding: var(--modal--padding);\n --public-tab--inset: var(--modal--padding-horizontal);\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: calc(16px * 1)\n calc(16px * 1);\n padding: var(--modal--padding);\n background-color: rgb(238, 240, 242);\n background-color: var(--color-surface--background);\n}\n\n.jobber-retheme .wjrPpIUNNrk- {\n background-color: transparent;\n}\n\n.jobber-retheme .wjrPpIUNNrk- h3 {\n font-family: \"Inter\", Helvetica, Arial, sans-serif;\n font-family: var(--typography--fontFamily-normal);\n font-size: calc((16px * 1) * 1.5);\n font-size: calc(calc(16px * 1) * 1.5);\n font-size: var(--typography--fontSize-largest);\n}\n\n/**\n * Ensure there's no extra padding top on the next element. This mostly negates\n * the <Content /> padding\n */\n\n.jobber-retheme .wjrPpIUNNrk- + * {\n padding-top: 0;\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: calc(16px * 1)\n calc(16px * 1);\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/* This is in a correct position and order */\n\n/* stylelint-disable-next-line no-descending-specificity */\n\n.p2s7GtpoZz0- > * {\n margin-left: calc(16px / 2);\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";
|
|
22
22
|
var styles = {"container":"QGRLFHPoV5E-","overlay":"_4WzGOMUGj5I-","modal":"WLId2NJBQcQ-","header":"wjrPpIUNNrk-","closeButton":"rKvigUnOyYE-","actionBar":"_62c8HLZFwvs-","leftAction":"Xl1Ptn-P9Ew-","rightAction":"p2s7GtpoZz0-"};
|
|
23
23
|
styleInject_es.styleInject(css_248z$1);
|
|
24
24
|
|
|
@@ -40,7 +40,9 @@ function Modal({ open = false, title, size, dismissible = true, children, primar
|
|
|
40
40
|
title != undefined && (React__default["default"].createElement(Header, { title: title, dismissible: dismissible, onRequestClose: onRequestClose })),
|
|
41
41
|
children,
|
|
42
42
|
React__default["default"].createElement(Actions, { primary: primaryAction, secondary: secondaryAction, tertiary: tertiaryAction }))))));
|
|
43
|
-
return
|
|
43
|
+
return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)
|
|
44
|
+
? ReactDOM__default["default"].createPortal(template, document.body)
|
|
45
|
+
: template;
|
|
44
46
|
function handleRequestClose() {
|
|
45
47
|
if (open && onRequestClose) {
|
|
46
48
|
onRequestClose();
|
|
@@ -5,13 +5,12 @@ 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 Checkbox = require('../Checkbox-
|
|
9
|
-
var Text = require('../Text-
|
|
8
|
+
var Checkbox = require('../Checkbox-e481a4b1.js');
|
|
9
|
+
var Text = require('../Text-fbeaaca6.js');
|
|
10
10
|
var Icon = require('../Icon-405a216c.js');
|
|
11
11
|
require('../tslib.es6-754e2961.js');
|
|
12
|
-
require('uuid');
|
|
13
12
|
require('react-hook-form');
|
|
14
|
-
require('../Typography-
|
|
13
|
+
require('../Typography-e2a23b7e.js');
|
|
15
14
|
require('@jobber/design');
|
|
16
15
|
|
|
17
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -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-3ec1c85d.js');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|
package/dist/Page/index.js
CHANGED
|
@@ -6,20 +6,20 @@ var React = require('react');
|
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
var jobberHooks = require('@jobber/hooks/useResizeObserver');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var Heading = require('../Heading-
|
|
10
|
-
var Text = require('../Text-
|
|
9
|
+
var Heading = require('../Heading-bae3c69e.js');
|
|
10
|
+
var Text = require('../Text-fbeaaca6.js');
|
|
11
11
|
var Content = require('../Content-e3f7b6fc.js');
|
|
12
|
-
var Markdown = require('../Markdown-
|
|
13
|
-
var Button = require('../Button-
|
|
14
|
-
var Menu = require('../Menu-
|
|
15
|
-
var Emphasis = require('../Emphasis-
|
|
16
|
-
require('../Typography-
|
|
17
|
-
require('../
|
|
12
|
+
var Markdown = require('../Markdown-b1b65457.js');
|
|
13
|
+
var Button = require('../Button-6b922fc1.js');
|
|
14
|
+
var Menu = require('../Menu-d6dd673e.js');
|
|
15
|
+
var Emphasis = require('../Emphasis-a77d8ee9.js');
|
|
16
|
+
require('../Typography-e2a23b7e.js');
|
|
17
|
+
require('../useAtlantisConfig-ed0bee66.js');
|
|
18
|
+
require('@jobber/hooks/useSafeLayoutEffect');
|
|
18
19
|
require('react-markdown');
|
|
19
20
|
require('react-router-dom');
|
|
20
21
|
require('../Icon-405a216c.js');
|
|
21
22
|
require('@jobber/design');
|
|
22
|
-
require('uuid');
|
|
23
23
|
require('framer-motion');
|
|
24
24
|
require('@jobber/hooks/useOnKeyDown');
|
|
25
25
|
require('@jobber/hooks/useRefocusOnActivator');
|
package/dist/Popover/index.js
CHANGED
|
@@ -6,13 +6,13 @@ var React = require('react');
|
|
|
6
6
|
var reactPopper = require('react-popper');
|
|
7
7
|
var useRefocusOnActivator = require('@jobber/hooks/useRefocusOnActivator');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
var ButtonDismiss = require('../ButtonDismiss-
|
|
10
|
-
require('../Button-
|
|
9
|
+
var ButtonDismiss = require('../ButtonDismiss-a3ba1de2.js');
|
|
10
|
+
require('../Button-6b922fc1.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('react-router-dom');
|
|
13
13
|
require('../Icon-405a216c.js');
|
|
14
14
|
require('@jobber/design');
|
|
15
|
-
require('../Typography-
|
|
15
|
+
require('../Typography-e2a23b7e.js');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ styleInject_es.styleInject(css_248z);
|
|
|
25
25
|
function Popover({ onRequestClose, children, attachTo, open, preferredPlacement = "auto", }) {
|
|
26
26
|
const [popperElement, setPopperElement] = React.useState();
|
|
27
27
|
const [arrowElement, setArrowElement] = React.useState();
|
|
28
|
-
const { styles: popperStyles, attributes } = reactPopper.usePopper(attachTo
|
|
28
|
+
const { styles: popperStyles, attributes } = reactPopper.usePopper(isHTMLElement(attachTo) ? attachTo : attachTo.current, popperElement, {
|
|
29
29
|
modifiers: buildModifiers(arrowElement),
|
|
30
30
|
placement: preferredPlacement,
|
|
31
31
|
});
|
|
@@ -57,5 +57,9 @@ function buildModifiers(arrowElement) {
|
|
|
57
57
|
];
|
|
58
58
|
return modifiers;
|
|
59
59
|
}
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
61
|
+
function isHTMLElement(el) {
|
|
62
|
+
return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) && el instanceof Element;
|
|
63
|
+
}
|
|
60
64
|
|
|
61
65
|
exports.Popover = Popover;
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('../RadioGroup-
|
|
5
|
+
var RadioGroup = require('../RadioGroup-678f4932.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('uuid');
|
|
8
7
|
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('../Text-
|
|
10
|
-
require('../Typography-
|
|
8
|
+
require('../Text-fbeaaca6.js');
|
|
9
|
+
require('../Typography-e2a23b7e.js');
|
|
11
10
|
require('classnames');
|
|
12
11
|
|
|
13
12
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var uuid = require('uuid');
|
|
5
4
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
var Text = require('./Text-
|
|
5
|
+
var Text = require('./Text-fbeaaca6.js');
|
|
7
6
|
|
|
8
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
8
|
|
|
@@ -21,7 +20,7 @@ function RadioOption({ children }) {
|
|
|
21
20
|
return React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
22
21
|
}
|
|
23
22
|
function InternalRadioOption({ value, name, label, description, disabled, checked, children, onChange, }) {
|
|
24
|
-
const inputId = `${value.toString()}_${
|
|
23
|
+
const inputId = `${value.toString()}_${React.useId()}`;
|
|
25
24
|
const shouldRenderIndependentChildren = label && children;
|
|
26
25
|
return (React__default["default"].createElement("div", null,
|
|
27
26
|
React__default["default"].createElement("input", { onChange: handleChange, type: "radio", name: name, value: value, disabled: disabled, checked: checked, id: inputId, className: styles.input, "aria-describedby": description ? `${inputId}_description` : undefined }),
|
|
@@ -34,7 +33,7 @@ function InternalRadioOption({ value, name, label, description, disabled, checke
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
function RadioGroup({ children, value, ariaLabel, onChange, name =
|
|
36
|
+
function RadioGroup({ children, value, ariaLabel, onChange, name = React.useId(), }) {
|
|
38
37
|
return (React__default["default"].createElement("div", { role: "radiogroup", "aria-label": ariaLabel, className: styles.radioGroup }, React__default["default"].Children.map(children, option => (React__default["default"].createElement(InternalRadioOption, Object.assign({ checked: value === option.props.value, name: name, onChange: handleChange }, option.props), option.props.children)))));
|
|
39
38
|
function handleChange(newValue) {
|
|
40
39
|
if (newValue !== value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RecurrenceRule } from "./types";
|
|
3
3
|
interface RecurringSelectProps {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
recurrenceRule: RecurrenceRule;
|
|
4
|
+
readonly disabled?: boolean;
|
|
5
|
+
readonly recurrenceRule: RecurrenceRule;
|
|
6
6
|
onChange(newRecurrence: RecurrenceRule): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function CurrentRecurrenceComponent({ recurrenceRule, disabled, onChange, }: RecurringSelectProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DayOfMonth } from "../types";
|
|
3
3
|
interface DayOfMonthSelectProps {
|
|
4
|
-
selectedDays: Set<DayOfMonth>;
|
|
5
|
-
disabled: boolean;
|
|
4
|
+
readonly selectedDays: Set<DayOfMonth>;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
6
|
onChange(selectedDays: Set<DayOfMonth>): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function DayOfMonthSelect({ selectedDays, disabled, onChange, }: DayOfMonthSelectProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WeekDay } from "../types";
|
|
3
3
|
interface MonthlyDayOfWeekSelectProps {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
selectedWeeks: Set<WeekDay>[];
|
|
4
|
+
readonly disabled: boolean;
|
|
5
|
+
readonly selectedWeeks: Set<WeekDay>[];
|
|
6
6
|
onChange(nextSelectedWeeks: Set<WeekDay>[]): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function MonthlyDayOfWeekSelect({ disabled, selectedWeeks, onChange, }: MonthlyDayOfWeekSelectProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DurationPeriod } from "../types";
|
|
3
3
|
interface MonthlySelectProps {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
selectedMonthOption: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth;
|
|
4
|
+
readonly disabled: boolean;
|
|
5
|
+
readonly selectedMonthOption: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth;
|
|
6
6
|
onChange(type: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function MonthlySelect({ disabled, onChange, selectedMonthOption, }: MonthlySelectProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WeekDay } from "../types";
|
|
3
3
|
interface WeeklySelectProps {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
selectedDays: Set<WeekDay>;
|
|
4
|
+
readonly disabled: boolean;
|
|
5
|
+
readonly selectedDays: Set<WeekDay>;
|
|
6
6
|
onChange(selectedDays: Set<WeekDay>): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function WeeklySelect({ onChange, selectedDays, disabled, }: WeeklySelectProps): JSX.Element;
|
|
@@ -3,25 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var uuid = require('uuid');
|
|
7
6
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
-
var RadioGroup = require('../RadioGroup-
|
|
9
|
-
var Text = require('../Text-
|
|
7
|
+
var RadioGroup = require('../RadioGroup-678f4932.js');
|
|
8
|
+
var Text = require('../Text-fbeaaca6.js');
|
|
10
9
|
require('classnames');
|
|
11
|
-
require('../Typography-
|
|
12
|
-
var Option = require('../Option-
|
|
13
|
-
var InputNumber = require('../InputNumber-
|
|
10
|
+
require('../Typography-e2a23b7e.js');
|
|
11
|
+
var Option = require('../Option-c4b05656.js');
|
|
12
|
+
var InputNumber = require('../InputNumber-75ae72b9.js');
|
|
14
13
|
var InputGroup = require('../InputGroup-8d4fd4eb.js');
|
|
15
14
|
var Content = require('../Content-e3f7b6fc.js');
|
|
16
|
-
require('../FormField-
|
|
15
|
+
require('../FormField-3ec1c85d.js');
|
|
17
16
|
require('../tslib.es6-754e2961.js');
|
|
18
17
|
require('react-hook-form');
|
|
19
18
|
require('@jobber/hooks/useShowClear');
|
|
20
|
-
require('../Button-
|
|
19
|
+
require('../Button-6b922fc1.js');
|
|
21
20
|
require('react-router-dom');
|
|
22
21
|
require('../Icon-405a216c.js');
|
|
23
22
|
require('@jobber/design');
|
|
24
|
-
require('../InputValidation-
|
|
23
|
+
require('../InputValidation-a92bb519.js');
|
|
25
24
|
require('framer-motion');
|
|
26
25
|
require('../Spinner-9d8fc7ff.js');
|
|
27
26
|
|
|
@@ -99,7 +98,7 @@ function WeeklySelect({ onChange, selectedDays, disabled, }) {
|
|
|
99
98
|
};
|
|
100
99
|
return (React__default["default"].createElement("div", { className: styles$4.container }, weekDays.map(weekDay => {
|
|
101
100
|
const isSelected = selectedDays.has(weekDay);
|
|
102
|
-
const inputId =
|
|
101
|
+
const inputId = React.useId();
|
|
103
102
|
return (React__default["default"].createElement("div", { key: `${weekDay}`, className: checkboxStyles.checkboxWrapper },
|
|
104
103
|
React__default["default"].createElement("input", { className: checkboxStyles.dayCheckboxInput, disabled: disabled, type: "checkbox", onChange: onChangeWeekDays, id: `weekly-select-${weekDay}${inputId}`, "aria-checked": isSelected, checked: isSelected, value: weekDay }),
|
|
105
104
|
React__default["default"].createElement("label", { className: checkboxStyles.dayCheckbox, htmlFor: `weekly-select-${weekDay}${inputId}` }, `${exports.WeekDay[weekDay].substr(0, 1).toUpperCase()}`)));
|
|
@@ -144,7 +143,7 @@ const daysInMonth = [...Array.from({ length: 31 }, (_, i) => i + 1), "LAST"];
|
|
|
144
143
|
function DayOfMonthSelect({ selectedDays, disabled, onChange, }) {
|
|
145
144
|
return (React__default["default"].createElement("div", { className: styles$1.container }, daysInMonth.map(day => {
|
|
146
145
|
const isSelected = selectedDays.has(day);
|
|
147
|
-
const inputId =
|
|
146
|
+
const inputId = React.useId();
|
|
148
147
|
return (React__default["default"].createElement("div", { key: `${day}`, className: checkboxStyles.checkboxWrapper },
|
|
149
148
|
React__default["default"].createElement("input", { className: checkboxStyles.dayCheckboxInput, disabled: disabled, type: "checkbox", id: `${day}-${inputId}`, onChange: handleChangeDayOfMonth, "aria-checked": isSelected, checked: isSelected, value: day }),
|
|
150
149
|
React__default["default"].createElement("label", { className: checkboxStyles.dayCheckbox, htmlFor: `${day}-${inputId}` }, `${day === "LAST" ? "Last day" : day}`)));
|
package/dist/Select/index.js
CHANGED
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Option = require('../Option-
|
|
5
|
+
var Option = require('../Option-c4b05656.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../FormField-
|
|
7
|
+
require('../FormField-3ec1c85d.js');
|
|
8
8
|
require('../tslib.es6-754e2961.js');
|
|
9
|
-
require('uuid');
|
|
10
9
|
require('react-hook-form');
|
|
11
10
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
11
|
require('classnames');
|
|
13
12
|
require('@jobber/hooks/useShowClear');
|
|
14
|
-
require('../Button-
|
|
13
|
+
require('../Button-6b922fc1.js');
|
|
15
14
|
require('react-router-dom');
|
|
16
15
|
require('../Icon-405a216c.js');
|
|
17
16
|
require('@jobber/design');
|
|
18
|
-
require('../Typography-
|
|
19
|
-
require('../Text-
|
|
20
|
-
require('../InputValidation-
|
|
17
|
+
require('../Typography-e2a23b7e.js');
|
|
18
|
+
require('../Text-fbeaaca6.js');
|
|
19
|
+
require('../InputValidation-a92bb519.js');
|
|
21
20
|
require('framer-motion');
|
|
22
21
|
require('../Spinner-9d8fc7ff.js');
|
|
23
22
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StatusIndicatorType } from "./StatusIndicator.type";
|
|
3
|
+
interface StatusIndicatorProps {
|
|
4
|
+
readonly status: StatusIndicatorType;
|
|
5
|
+
}
|
|
6
|
+
export declare function StatusIndicator({ status }: StatusIndicatorProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StatusIndicatorType = "success" | "warning" | "critical" | "inactive" | "informative";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var StatusIndicator = require('../StatusIndicator-7b5258ea.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('../style-inject.es-9d2f5f4e.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.StatusIndicator = StatusIndicator.StatusIndicator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
+
|
|
10
|
+
var css_248z = ":root {\n --statusLabel-icon-diameter: 8px;\n}\n\n.ob7nhx1U-HQ- {\n display: inline-block;\n width: 8px;\n width: var(--statusLabel-icon-diameter);\n height: 8px;\n height: var(--statusLabel-icon-diameter);\n border-radius: 50%;\n background-color: rgb(125, 176, 14);\n background-color: var(--color-success);\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n";
|
|
11
|
+
var styles = {"statusIndicator":"ob7nhx1U-HQ-"};
|
|
12
|
+
styleInject_es.styleInject(css_248z);
|
|
13
|
+
|
|
14
|
+
function StatusIndicator({ status }) {
|
|
15
|
+
return (React__default["default"].createElement("span", { style: { backgroundColor: `var(--color-${status})` }, className: styles.statusIndicator, "data-testid": `ATL-Status-Indicator-${status}` }));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.StatusIndicator = StatusIndicator;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { StatusIndicatorType } from "../StatusIndicator/StatusIndicator.type";
|
|
3
3
|
export interface StatusLabelType {
|
|
4
4
|
readonly statusLabel: string;
|
|
5
|
-
readonly statusType?:
|
|
5
|
+
readonly statusType?: StatusIndicatorType;
|
|
6
6
|
}
|
|
7
7
|
interface StatusLabelProps {
|
|
8
8
|
/**
|
|
@@ -20,7 +20,7 @@ interface StatusLabelProps {
|
|
|
20
20
|
*
|
|
21
21
|
* @default "inactive"
|
|
22
22
|
*/
|
|
23
|
-
readonly status:
|
|
23
|
+
readonly status: StatusIndicatorType;
|
|
24
24
|
}
|
|
25
25
|
export declare function StatusLabel({ label, alignment, status, }: StatusLabelProps): JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -5,26 +5,24 @@ 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
|
|
9
|
-
require('../
|
|
8
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
9
|
+
var StatusIndicator = require('../StatusIndicator-7b5258ea.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
15
15
|
|
|
16
|
-
var css_248z = ":root {\n --
|
|
17
|
-
var styles = {"
|
|
16
|
+
var css_248z = ":root {\n --labelBackgroundColor: var(--color-success--surface);\n}\n\n.WBxCEgPiC98- {\n --labelBackgroundColor: var(--color-success--surface);\n}\n\n.ok6hVljkqSE- {\n --labelBackgroundColor: var(--color-warning--surface);\n}\n\n.-YTFHnzpkRE- {\n --labelBackgroundColor: var(--color-critical--surface);\n}\n\n._2F0I59nddP8- {\n --labelBackgroundColor: var(--color-inactive--surface);\n}\n\n.BQd6Hylvxh0- {\n --labelBackgroundColor: var(--color-informative--surface);\n}\n\n.MB0ycTR4PHg- {\n display: -ms-flexbox;\n display: flex;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0.375rem 0.625rem 0.375rem 0.5rem;\n border-radius: 0.75rem;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n gap: 0.375rem;\n background-color: rgb(236, 243, 219);\n background-color: var(--labelBackgroundColor);\n}\n\n/* Reset the <Text> line height so we can reliably get 24px tall */\n\n.MB0ycTR4PHg- p {\n line-height: 1;\n}\n\n._0kNfkSPBETw- {\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n\n.NYMNxZSup30- {\n display: -ms-flexbox;\n display: flex;\n padding-top: 0.125rem;\n}\n";
|
|
17
|
+
var styles = {"success":"WBxCEgPiC98-","warning":"ok6hVljkqSE-","critical":"-YTFHnzpkRE-","inactive":"_2F0I59nddP8-","informative":"BQd6Hylvxh0-","statusLabelRow":"MB0ycTR4PHg-","labelTextEndAligned":"_0kNfkSPBETw-","statusIndicatorWrapper":"NYMNxZSup30-"};
|
|
18
18
|
styleInject_es.styleInject(css_248z);
|
|
19
19
|
|
|
20
20
|
function StatusLabel({ label, alignment = "start", status = "inactive", }) {
|
|
21
|
-
const containerClassNames = classnames__default["default"](styles.statusLabelRow, alignment === "end" && styles.labelTextEndAligned);
|
|
21
|
+
const containerClassNames = classnames__default["default"](styles.statusLabelRow, styles[status], alignment === "end" && styles.labelTextEndAligned);
|
|
22
22
|
return (React__default["default"].createElement("div", { role: "status", className: containerClassNames },
|
|
23
|
-
React__default["default"].createElement(
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
function StatusLabelIcon({ status }) {
|
|
27
|
-
return (React__default["default"].createElement("div", { style: { backgroundColor: `var(--color-${status}` }, className: styles.statusIndicator }));
|
|
23
|
+
React__default["default"].createElement("div", { className: styles.statusIndicatorWrapper },
|
|
24
|
+
React__default["default"].createElement(StatusIndicator.StatusIndicator, { status: status })),
|
|
25
|
+
React__default["default"].createElement(Typography.Typography, { size: "small", textColor: status, align: alignment }, label)));
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
exports.StatusLabel = StatusLabel;
|
package/dist/Switch/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Switch = require('../Switch-
|
|
5
|
+
var Switch = require('../Switch-eac89586.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
require('../Typography-
|
|
9
|
+
require('../Typography-e2a23b7e.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-e2a23b7e.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
package/dist/Table/Body.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
interface CellProps {
|
|
3
|
-
children?: ReactNode | ReactNode[];
|
|
4
|
-
align?: "left" | "center" | "right";
|
|
3
|
+
readonly children?: ReactNode | ReactNode[];
|
|
4
|
+
readonly align?: "left" | "center" | "right";
|
|
5
5
|
}
|
|
6
6
|
export declare function Cell({ children, align }: CellProps): JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { CurrencyType } from "@jobber/formatters";
|
|
3
3
|
import { CellNumericProps } from "./CellNumeric";
|
|
4
4
|
interface CellCurrencyProps extends CellNumericProps {
|
|
5
|
-
value: number;
|
|
6
|
-
currency?: CurrencyType;
|
|
5
|
+
readonly value: number;
|
|
6
|
+
readonly currency?: CurrencyType;
|
|
7
7
|
}
|
|
8
8
|
export declare function CellCurrency({ value, currency, }: CellCurrencyProps): JSX.Element;
|
|
9
9
|
export {};
|
package/dist/Table/Footer.d.ts
CHANGED
package/dist/Table/Header.d.ts
CHANGED
package/dist/Table/Row.d.ts
CHANGED
package/dist/Table/Table.d.ts
CHANGED
package/dist/Tabs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ 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 Typography = require('../Typography-
|
|
8
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
interface TextProps {
|
|
3
|
-
maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
|
|
3
|
+
readonly maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
|
|
4
4
|
readonly variation?: "default" | "subdued" | "success" | "error" | "warn" | "info" | "disabled";
|
|
5
5
|
readonly align?: "start" | "center" | "end";
|
|
6
6
|
readonly size?: "small" | "base" | "large";
|
package/dist/Text/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Text = require('../Text-
|
|
5
|
+
var Text = require('../Text-fbeaaca6.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../Typography-
|
|
7
|
+
require('../Typography-e2a23b7e.js');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
10
|
|
|
@@ -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-e2a23b7e.js');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|
package/dist/Toast/index.js
CHANGED
|
@@ -7,8 +7,8 @@ var client = require('react-dom/client');
|
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
9
|
var Icon = require('../Icon-405a216c.js');
|
|
10
|
-
var Button = require('../Button-
|
|
11
|
-
var Typography = require('../Typography-
|
|
10
|
+
var Button = require('../Button-6b922fc1.js');
|
|
11
|
+
var Typography = require('../Typography-e2a23b7e.js');
|
|
12
12
|
require('@jobber/design');
|
|
13
13
|
require('classnames');
|
|
14
14
|
require('react-router-dom');
|