@jobber/components 6.20.7 → 6.21.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/Banner/index.cjs +1 -0
- package/dist/Banner/index.mjs +1 -0
- package/dist/Button/Button.d.ts +8 -74
- package/dist/Button/Button.types.d.ts +92 -0
- package/dist/Button/ButtonInternals.d.ts +10 -0
- package/dist/Button/ButtonProvider.d.ts +10 -0
- package/dist/Button/index.cjs +4 -1
- package/dist/Button/index.d.ts +4 -1
- package/dist/Button/index.mjs +3 -2
- package/dist/Button/useButtonStyles.d.ts +17 -0
- package/dist/Button-cjs.js +67 -22
- package/dist/Button-es.js +67 -24
- package/dist/ButtonDismiss/index.cjs +2 -1
- package/dist/ButtonDismiss/index.mjs +2 -1
- package/dist/ButtonDismiss-cjs.js +1 -0
- package/dist/ButtonDismiss-es.js +1 -0
- package/dist/Card/index.cjs +1 -0
- package/dist/Card/index.mjs +1 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +1 -1
- package/dist/Chips/InternalChipDismissible/index.mjs +1 -1
- package/dist/Chips/index.cjs +1 -1
- package/dist/Chips/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxActivator/index.cjs +2 -2
- package/dist/Combobox/components/ComboboxActivator/index.mjs +2 -2
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +1 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +1 -0
- package/dist/ComboboxActivator-cjs.js +1 -0
- package/dist/ComboboxActivator-es.js +1 -0
- package/dist/ComboboxContentHeader-cjs.js +1 -0
- package/dist/ComboboxContentHeader-es.js +1 -0
- package/dist/ConfirmationModal/index.cjs +1 -0
- package/dist/ConfirmationModal/index.mjs +1 -0
- package/dist/DataDump/index.cjs +1 -0
- package/dist/DataDump/index.mjs +1 -0
- package/dist/DataList/components/DataListActions/index.cjs +1 -0
- package/dist/DataList/components/DataListActions/index.mjs +1 -0
- package/dist/DataList/components/DataListBulkActions/index.cjs +1 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +1 -0
- package/dist/DataList/components/DataListHeader/index.cjs +1 -1
- package/dist/DataList/components/DataListHeader/index.mjs +1 -1
- package/dist/DataList/components/DataListItem/index.cjs +1 -1
- package/dist/DataList/components/DataListItem/index.mjs +1 -1
- package/dist/DataList/components/DataListItemActions/index.cjs +1 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +1 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +2 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +2 -1
- package/dist/DataList/components/DataListItems/index.cjs +1 -1
- package/dist/DataList/components/DataListItems/index.mjs +1 -1
- package/dist/DataList/components/DataListLayout/index.cjs +1 -1
- package/dist/DataList/components/DataListLayout/index.mjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.cjs +2 -2
- package/dist/DataList/components/DataListLayoutActions/index.mjs +2 -2
- package/dist/DataList/components/DataListLoadMore/index.cjs +1 -0
- package/dist/DataList/components/DataListLoadMore/index.mjs +1 -0
- package/dist/DataList/components/DataListSearch/index.cjs +1 -1
- package/dist/DataList/components/DataListSearch/index.mjs +1 -1
- package/dist/DataListActions-cjs.js +1 -0
- package/dist/DataListActions-es.js +1 -0
- package/dist/DataListEmptyState-cjs.js +1 -0
- package/dist/DataListEmptyState-es.js +1 -0
- package/dist/DataListItemActionsOverflow-cjs.js +1 -0
- package/dist/DataListItemActionsOverflow-es.js +1 -0
- package/dist/DataListLoadMore-cjs.js +1 -0
- package/dist/DataListLoadMore-es.js +1 -0
- package/dist/DatePicker/index.cjs +1 -0
- package/dist/DatePicker/index.mjs +1 -0
- package/dist/Drawer/index.cjs +1 -0
- package/dist/Drawer/index.mjs +1 -0
- package/dist/FeatureSwitch/index.cjs +1 -0
- package/dist/FeatureSwitch/index.mjs +1 -0
- package/dist/FormField/index.cjs +1 -1
- package/dist/FormField/index.mjs +1 -1
- package/dist/FormatFile/index.cjs +1 -1
- package/dist/FormatFile/index.mjs +1 -1
- package/dist/InputAvatar-cjs.js +1 -0
- package/dist/InputAvatar-es.js +1 -0
- package/dist/InputDate/index.cjs +3 -3
- package/dist/InputDate/index.mjs +3 -3
- package/dist/InputEmail/index.cjs +1 -1
- package/dist/InputEmail/index.mjs +1 -1
- package/dist/InputEmail-cjs.js +1 -1
- package/dist/InputEmail-es.js +1 -1
- package/dist/InputNumber/index.cjs +1 -1
- package/dist/InputNumber/index.mjs +1 -1
- package/dist/InputNumber-cjs.js +1 -1
- package/dist/InputNumber-es.js +1 -1
- package/dist/InputPassword/index.cjs +1 -1
- package/dist/InputPassword/index.mjs +1 -1
- package/dist/InputPassword-cjs.js +1 -1
- package/dist/InputPassword-es.js +1 -1
- package/dist/InputPhoneNumber-cjs.js +1 -1
- package/dist/InputPhoneNumber-es.js +1 -1
- package/dist/InputText/index.cjs +3 -3
- package/dist/InputText/index.mjs +3 -3
- package/dist/InputTime-cjs.js +1 -1
- package/dist/InputTime-es.js +1 -1
- package/dist/LightBox/LightBox.d.ts +8 -1
- package/dist/LightBox/index.cjs +1 -0
- package/dist/LightBox/index.mjs +1 -0
- package/dist/LightBox-cjs.js +4 -2
- package/dist/LightBox-es.js +4 -2
- package/dist/Menu/index.cjs +1 -0
- package/dist/Menu/index.mjs +1 -0
- package/dist/Modal/index.cjs +1 -0
- package/dist/Modal/index.mjs +1 -0
- package/dist/Option-cjs.js +1 -1
- package/dist/Option-es.js +1 -1
- package/dist/Page/index.cjs +1 -0
- package/dist/Page/index.mjs +1 -0
- package/dist/Popover/index.cjs +1 -0
- package/dist/Popover/index.mjs +1 -0
- package/dist/RecurringSelect/index.cjs +1 -1
- package/dist/RecurringSelect/index.mjs +1 -1
- package/dist/Select/index.cjs +1 -1
- package/dist/Select/index.mjs +1 -1
- package/dist/SideDrawer/index.cjs +1 -0
- package/dist/SideDrawer/index.mjs +1 -0
- package/dist/Toast/index.cjs +2 -1
- package/dist/Toast/index.mjs +2 -1
- package/dist/Typography/Typography.d.ts +1 -2
- package/dist/index.cjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/showToast-cjs.js +1 -0
- package/dist/showToast-es.js +1 -0
- package/dist/styles.css +17 -18
- package/dist/utils/meta/meta.json +2 -0
- package/package.json +2 -2
package/dist/InputDate/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ require('react-hook-form');
|
|
|
8
8
|
require('framer-motion');
|
|
9
9
|
require('@jobber/design');
|
|
10
10
|
require('classnames');
|
|
11
|
-
require('
|
|
11
|
+
require('../Button-cjs.js');
|
|
12
12
|
var DatePicker = require('../DatePicker-cjs.js');
|
|
13
13
|
var InputText_index = require('../InputText/index.cjs');
|
|
14
14
|
require('../_commonjsHelpers-cjs.js');
|
|
@@ -22,13 +22,13 @@ require('../keysIn-cjs.js');
|
|
|
22
22
|
require('../_baseAssignValue-cjs.js');
|
|
23
23
|
require('../_baseFlatten-cjs.js');
|
|
24
24
|
require('../_setToString-cjs.js');
|
|
25
|
-
require('../Button-cjs.js');
|
|
26
25
|
require('../Icon-cjs.js');
|
|
27
|
-
require('../Typography-cjs.js');
|
|
28
26
|
require('../Text-cjs.js');
|
|
27
|
+
require('../Typography-cjs.js');
|
|
29
28
|
require('../useFormFieldFocus-cjs.js');
|
|
30
29
|
require('../InputValidation-cjs.js');
|
|
31
30
|
require('../Spinner-cjs.js');
|
|
31
|
+
require('react-router-dom');
|
|
32
32
|
require('../index-cjs.js');
|
|
33
33
|
require('react-dom');
|
|
34
34
|
require('react-popper');
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import 'react-hook-form';
|
|
|
6
6
|
import 'framer-motion';
|
|
7
7
|
import '@jobber/design';
|
|
8
8
|
import 'classnames';
|
|
9
|
-
import '
|
|
9
|
+
import '../Button-es.js';
|
|
10
10
|
import { D as DatePicker } from '../DatePicker-es.js';
|
|
11
11
|
import { InputText } from '../InputText/index.mjs';
|
|
12
12
|
import '../_commonjsHelpers-es.js';
|
|
@@ -20,13 +20,13 @@ import '../keysIn-es.js';
|
|
|
20
20
|
import '../_baseAssignValue-es.js';
|
|
21
21
|
import '../_baseFlatten-es.js';
|
|
22
22
|
import '../_setToString-es.js';
|
|
23
|
-
import '../Button-es.js';
|
|
24
23
|
import '../Icon-es.js';
|
|
25
|
-
import '../Typography-es.js';
|
|
26
24
|
import '../Text-es.js';
|
|
25
|
+
import '../Typography-es.js';
|
|
27
26
|
import '../useFormFieldFocus-es.js';
|
|
28
27
|
import '../InputValidation-es.js';
|
|
29
28
|
import '../Spinner-es.js';
|
|
29
|
+
import 'react-router-dom';
|
|
30
30
|
import '../index-es.js';
|
|
31
31
|
import 'react-dom';
|
|
32
32
|
import 'react-popper';
|
|
@@ -8,13 +8,13 @@ require('@jobber/design');
|
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
10
|
require('react-router-dom');
|
|
11
|
+
require('../tslib.es6-cjs.js');
|
|
11
12
|
require('../Icon-cjs.js');
|
|
12
13
|
require('../Typography-cjs.js');
|
|
13
14
|
require('../Text-cjs.js');
|
|
14
15
|
require('../useFormFieldFocus-cjs.js');
|
|
15
16
|
require('../InputValidation-cjs.js');
|
|
16
17
|
require('../Spinner-cjs.js');
|
|
17
|
-
require('../tslib.es6-cjs.js');
|
|
18
18
|
require('react-hook-form');
|
|
19
19
|
|
|
20
20
|
|
|
@@ -6,11 +6,11 @@ import '@jobber/design';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../Button-es.js';
|
|
8
8
|
import 'react-router-dom';
|
|
9
|
+
import '../tslib.es6-es.js';
|
|
9
10
|
import '../Icon-es.js';
|
|
10
11
|
import '../Typography-es.js';
|
|
11
12
|
import '../Text-es.js';
|
|
12
13
|
import '../useFormFieldFocus-es.js';
|
|
13
14
|
import '../InputValidation-es.js';
|
|
14
15
|
import '../Spinner-es.js';
|
|
15
|
-
import '../tslib.es6-es.js';
|
|
16
16
|
import 'react-hook-form';
|
package/dist/InputEmail-cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ require('react-hook-form');
|
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('classnames');
|
|
10
|
-
require('
|
|
10
|
+
require('./Button-cjs.js');
|
|
11
11
|
|
|
12
12
|
const validationMessage = "Please enter a valid email";
|
|
13
13
|
function InputEmail(props) {
|
package/dist/InputEmail-es.js
CHANGED
|
@@ -8,13 +8,13 @@ require('@jobber/design');
|
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
10
|
require('react-router-dom');
|
|
11
|
+
require('../tslib.es6-cjs.js');
|
|
11
12
|
require('../Icon-cjs.js');
|
|
12
13
|
require('../Typography-cjs.js');
|
|
13
14
|
require('../Text-cjs.js');
|
|
14
15
|
require('../useFormFieldFocus-cjs.js');
|
|
15
16
|
require('../InputValidation-cjs.js');
|
|
16
17
|
require('../Spinner-cjs.js');
|
|
17
|
-
require('../tslib.es6-cjs.js');
|
|
18
18
|
require('react-hook-form');
|
|
19
19
|
|
|
20
20
|
|
|
@@ -6,11 +6,11 @@ import '@jobber/design';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../Button-es.js';
|
|
8
8
|
import 'react-router-dom';
|
|
9
|
+
import '../tslib.es6-es.js';
|
|
9
10
|
import '../Icon-es.js';
|
|
10
11
|
import '../Typography-es.js';
|
|
11
12
|
import '../Text-es.js';
|
|
12
13
|
import '../useFormFieldFocus-es.js';
|
|
13
14
|
import '../InputValidation-es.js';
|
|
14
15
|
import '../Spinner-es.js';
|
|
15
|
-
import '../tslib.es6-es.js';
|
|
16
16
|
import 'react-hook-form';
|
package/dist/InputNumber-cjs.js
CHANGED
package/dist/InputNumber-es.js
CHANGED
|
@@ -8,13 +8,13 @@ require('@jobber/design');
|
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
10
|
require('react-router-dom');
|
|
11
|
+
require('../tslib.es6-cjs.js');
|
|
11
12
|
require('../Icon-cjs.js');
|
|
12
13
|
require('../Typography-cjs.js');
|
|
13
14
|
require('../Text-cjs.js');
|
|
14
15
|
require('../useFormFieldFocus-cjs.js');
|
|
15
16
|
require('../InputValidation-cjs.js');
|
|
16
17
|
require('../Spinner-cjs.js');
|
|
17
|
-
require('../tslib.es6-cjs.js');
|
|
18
18
|
require('react-hook-form');
|
|
19
19
|
|
|
20
20
|
|
|
@@ -6,11 +6,11 @@ import '@jobber/design';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../Button-es.js';
|
|
8
8
|
import 'react-router-dom';
|
|
9
|
+
import '../tslib.es6-es.js';
|
|
9
10
|
import '../Icon-es.js';
|
|
10
11
|
import '../Typography-es.js';
|
|
11
12
|
import '../Text-es.js';
|
|
12
13
|
import '../useFormFieldFocus-es.js';
|
|
13
14
|
import '../InputValidation-es.js';
|
|
14
15
|
import '../Spinner-es.js';
|
|
15
|
-
import '../tslib.es6-es.js';
|
|
16
16
|
import 'react-hook-form';
|
package/dist/InputPassword-es.js
CHANGED
|
@@ -7,7 +7,7 @@ var FormField = require('./FormField-cjs.js');
|
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('classnames');
|
|
10
|
-
require('
|
|
10
|
+
require('./Button-cjs.js');
|
|
11
11
|
|
|
12
12
|
var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","spinning":"T3VvmDmzs-4-"};
|
|
13
13
|
|
|
@@ -5,7 +5,7 @@ import { k as FormField } from './FormField-es.js';
|
|
|
5
5
|
import 'framer-motion';
|
|
6
6
|
import '@jobber/design';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import '
|
|
8
|
+
import './Button-es.js';
|
|
9
9
|
|
|
10
10
|
var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","spinning":"T3VvmDmzs-4-"};
|
|
11
11
|
|
package/dist/InputText/index.cjs
CHANGED
|
@@ -8,15 +8,15 @@ require('react-hook-form');
|
|
|
8
8
|
require('framer-motion');
|
|
9
9
|
require('@jobber/design');
|
|
10
10
|
require('classnames');
|
|
11
|
-
require('react-router-dom');
|
|
12
|
-
var omit = require('../omit-cjs.js');
|
|
13
11
|
require('../Button-cjs.js');
|
|
12
|
+
var omit = require('../omit-cjs.js');
|
|
14
13
|
require('../Icon-cjs.js');
|
|
15
|
-
require('../Typography-cjs.js');
|
|
16
14
|
require('../Text-cjs.js');
|
|
15
|
+
require('../Typography-cjs.js');
|
|
17
16
|
require('../useFormFieldFocus-cjs.js');
|
|
18
17
|
require('../InputValidation-cjs.js');
|
|
19
18
|
require('../Spinner-cjs.js');
|
|
19
|
+
require('react-router-dom');
|
|
20
20
|
require('../_commonjsHelpers-cjs.js');
|
|
21
21
|
require('../_baseGet-cjs.js');
|
|
22
22
|
require('../isTypedArray-cjs.js');
|
package/dist/InputText/index.mjs
CHANGED
|
@@ -6,15 +6,15 @@ import 'react-hook-form';
|
|
|
6
6
|
import 'framer-motion';
|
|
7
7
|
import '@jobber/design';
|
|
8
8
|
import 'classnames';
|
|
9
|
-
import 'react-router-dom';
|
|
10
|
-
import { o as omit } from '../omit-es.js';
|
|
11
9
|
import '../Button-es.js';
|
|
10
|
+
import { o as omit } from '../omit-es.js';
|
|
12
11
|
import '../Icon-es.js';
|
|
13
|
-
import '../Typography-es.js';
|
|
14
12
|
import '../Text-es.js';
|
|
13
|
+
import '../Typography-es.js';
|
|
15
14
|
import '../useFormFieldFocus-es.js';
|
|
16
15
|
import '../InputValidation-es.js';
|
|
17
16
|
import '../Spinner-es.js';
|
|
17
|
+
import 'react-router-dom';
|
|
18
18
|
import '../_commonjsHelpers-es.js';
|
|
19
19
|
import '../_baseGet-es.js';
|
|
20
20
|
import '../isTypedArray-es.js';
|
package/dist/InputTime-cjs.js
CHANGED
package/dist/InputTime-es.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
1
2
|
interface PresentedImage {
|
|
2
3
|
title?: string;
|
|
3
4
|
caption?: string;
|
|
@@ -32,6 +33,12 @@ interface LightBoxProps {
|
|
|
32
33
|
* that has the index of the image the user was on when LightBox was closed.
|
|
33
34
|
*/
|
|
34
35
|
onRequestClose(options: RequestCloseOptions): void;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the box-sizing for the thumbnails in the lightbox. This is a solution for a problem where
|
|
38
|
+
* tailwind was setting the box-sizing to `border-box` and causing issues with the lightbox.
|
|
39
|
+
* @default "content-box"
|
|
40
|
+
*/
|
|
41
|
+
readonly boxSizing?: CSSProperties["boxSizing"];
|
|
35
42
|
}
|
|
36
|
-
export declare function LightBox({ open, images, imageIndex, onRequestClose, }: LightBoxProps): JSX.Element;
|
|
43
|
+
export declare function LightBox({ boxSizing, open, images, imageIndex, onRequestClose, }: LightBoxProps): JSX.Element;
|
|
37
44
|
export {};
|
package/dist/LightBox/index.cjs
CHANGED
|
@@ -18,6 +18,7 @@ require('../isSymbol-cjs.js');
|
|
|
18
18
|
require('../ButtonDismiss-cjs.js');
|
|
19
19
|
require('../Button-cjs.js');
|
|
20
20
|
require('react-router-dom');
|
|
21
|
+
require('../tslib.es6-cjs.js');
|
|
21
22
|
require('../Icon-cjs.js');
|
|
22
23
|
require('@jobber/design');
|
|
23
24
|
require('../Typography-cjs.js');
|
package/dist/LightBox/index.mjs
CHANGED
package/dist/LightBox-cjs.js
CHANGED
|
@@ -103,7 +103,7 @@ const imageTransition = {
|
|
|
103
103
|
// https://github.com/framer/motion/issues/1769
|
|
104
104
|
const BUTTON_DEBOUNCE_DELAY = 250;
|
|
105
105
|
const MOVEMENT_DEBOUNCE_DELAY = 1000;
|
|
106
|
-
function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
106
|
+
function LightBox({ boxSizing = "content-box", open, images, imageIndex = 0, onRequestClose, }) {
|
|
107
107
|
const [currentImageIndex, setCurrentImageIndex] = React.useState(imageIndex);
|
|
108
108
|
const [direction, setDirection] = React.useState(0);
|
|
109
109
|
const [mouseIsStationary, setMouseIsStationary] = React.useState(true);
|
|
@@ -169,7 +169,9 @@ function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
|
169
169
|
images[currentImageIndex].title && (React.createElement("div", { className: styles.title },
|
|
170
170
|
React.createElement(Heading.Heading, { level: 4 }, images[currentImageIndex].title))),
|
|
171
171
|
images[currentImageIndex].caption && (React.createElement(Text.Text, { size: "large" }, images[currentImageIndex].caption))))),
|
|
172
|
-
images.length > 1 && (React.createElement("div", { className: styles.thumbnailBar,
|
|
172
|
+
images.length > 1 && (React.createElement("div", { className: styles.thumbnailBar, style: {
|
|
173
|
+
"--lightbox--box-sizing": boxSizing,
|
|
174
|
+
}, "data-testid": "ATL-Thumbnail-Bar" }, images.map((image, index) => (React.createElement("div", { key: index, className: classnames(styles.thumbnail, {
|
|
173
175
|
[styles.selected]: index === currentImageIndex,
|
|
174
176
|
}), onClick: () => handleThumbnailClick(index), ref: index === currentImageIndex ? selectedThumbnailRef : null },
|
|
175
177
|
React.createElement("img", { key: index, src: image.url, alt: image.alt || image.title || "", className: styles.thumbnailImage }))))))))));
|
package/dist/LightBox-es.js
CHANGED
|
@@ -101,7 +101,7 @@ const imageTransition = {
|
|
|
101
101
|
// https://github.com/framer/motion/issues/1769
|
|
102
102
|
const BUTTON_DEBOUNCE_DELAY = 250;
|
|
103
103
|
const MOVEMENT_DEBOUNCE_DELAY = 1000;
|
|
104
|
-
function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
104
|
+
function LightBox({ boxSizing = "content-box", open, images, imageIndex = 0, onRequestClose, }) {
|
|
105
105
|
const [currentImageIndex, setCurrentImageIndex] = useState(imageIndex);
|
|
106
106
|
const [direction, setDirection] = useState(0);
|
|
107
107
|
const [mouseIsStationary, setMouseIsStationary] = useState(true);
|
|
@@ -167,7 +167,9 @@ function LightBox({ open, images, imageIndex = 0, onRequestClose, }) {
|
|
|
167
167
|
images[currentImageIndex].title && (React.createElement("div", { className: styles.title },
|
|
168
168
|
React.createElement(Heading, { level: 4 }, images[currentImageIndex].title))),
|
|
169
169
|
images[currentImageIndex].caption && (React.createElement(Text, { size: "large" }, images[currentImageIndex].caption))))),
|
|
170
|
-
images.length > 1 && (React.createElement("div", { className: styles.thumbnailBar,
|
|
170
|
+
images.length > 1 && (React.createElement("div", { className: styles.thumbnailBar, style: {
|
|
171
|
+
"--lightbox--box-sizing": boxSizing,
|
|
172
|
+
}, "data-testid": "ATL-Thumbnail-Bar" }, images.map((image, index) => (React.createElement("div", { key: index, className: classnames(styles.thumbnail, {
|
|
171
173
|
[styles.selected]: index === currentImageIndex,
|
|
172
174
|
}), onClick: () => handleThumbnailClick(index), ref: index === currentImageIndex ? selectedThumbnailRef : null },
|
|
173
175
|
React.createElement("img", { key: index, src: image.url, alt: image.alt || image.title || "", className: styles.thumbnailImage }))))))))));
|
package/dist/Menu/index.cjs
CHANGED
package/dist/Menu/index.mjs
CHANGED
package/dist/Modal/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ require('../Heading-cjs.js');
|
|
|
12
12
|
require('../Typography-cjs.js');
|
|
13
13
|
require('../Button-cjs.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
|
+
require('../tslib.es6-cjs.js');
|
|
15
16
|
require('../Icon-cjs.js');
|
|
16
17
|
require('@jobber/design');
|
|
17
18
|
require('../ButtonDismiss-cjs.js');
|
package/dist/Modal/index.mjs
CHANGED
package/dist/Option-cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ require('react-hook-form');
|
|
|
7
7
|
require('framer-motion');
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('classnames');
|
|
10
|
-
require('
|
|
10
|
+
require('./Button-cjs.js');
|
|
11
11
|
|
|
12
12
|
function Select(props) {
|
|
13
13
|
return React.createElement(FormField.FormField, Object.assign({ type: "select" }, props));
|
package/dist/Option-es.js
CHANGED
|
@@ -5,7 +5,7 @@ import 'react-hook-form';
|
|
|
5
5
|
import 'framer-motion';
|
|
6
6
|
import '@jobber/design';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import '
|
|
8
|
+
import './Button-es.js';
|
|
9
9
|
|
|
10
10
|
function Select(props) {
|
|
11
11
|
return React.createElement(FormField, Object.assign({ type: "select" }, props));
|
package/dist/Page/index.cjs
CHANGED
|
@@ -19,6 +19,7 @@ require('../index-cjs.js');
|
|
|
19
19
|
require('../_polyfill-node.process-cjs.js');
|
|
20
20
|
require('../Button-cjs.js');
|
|
21
21
|
require('react-router-dom');
|
|
22
|
+
require('../tslib.es6-cjs.js');
|
|
22
23
|
require('../Icon-cjs.js');
|
|
23
24
|
require('@jobber/design');
|
|
24
25
|
require('../Menu-cjs.js');
|
package/dist/Page/index.mjs
CHANGED
package/dist/Popover/index.cjs
CHANGED
package/dist/Popover/index.mjs
CHANGED
|
@@ -12,11 +12,11 @@ require('framer-motion');
|
|
|
12
12
|
require('@jobber/design');
|
|
13
13
|
require('../Button-cjs.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
|
+
require('../tslib.es6-cjs.js');
|
|
15
16
|
require('../Icon-cjs.js');
|
|
16
17
|
require('../useFormFieldFocus-cjs.js');
|
|
17
18
|
require('../InputValidation-cjs.js');
|
|
18
19
|
require('../Spinner-cjs.js');
|
|
19
|
-
require('../tslib.es6-cjs.js');
|
|
20
20
|
require('react-hook-form');
|
|
21
21
|
require('../InputNumber-cjs.js');
|
|
22
22
|
require('../InputGroup-cjs.js');
|
|
@@ -10,11 +10,11 @@ import 'framer-motion';
|
|
|
10
10
|
import '@jobber/design';
|
|
11
11
|
import '../Button-es.js';
|
|
12
12
|
import 'react-router-dom';
|
|
13
|
+
import '../tslib.es6-es.js';
|
|
13
14
|
import '../Icon-es.js';
|
|
14
15
|
import '../useFormFieldFocus-es.js';
|
|
15
16
|
import '../InputValidation-es.js';
|
|
16
17
|
import '../Spinner-es.js';
|
|
17
|
-
import '../tslib.es6-es.js';
|
|
18
18
|
import 'react-hook-form';
|
|
19
19
|
import '../InputNumber-es.js';
|
|
20
20
|
import '../InputGroup-es.js';
|
package/dist/Select/index.cjs
CHANGED
|
@@ -8,13 +8,13 @@ require('@jobber/design');
|
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
10
|
require('react-router-dom');
|
|
11
|
+
require('../tslib.es6-cjs.js');
|
|
11
12
|
require('../Icon-cjs.js');
|
|
12
13
|
require('../Typography-cjs.js');
|
|
13
14
|
require('../Text-cjs.js');
|
|
14
15
|
require('../useFormFieldFocus-cjs.js');
|
|
15
16
|
require('../InputValidation-cjs.js');
|
|
16
17
|
require('../Spinner-cjs.js');
|
|
17
|
-
require('../tslib.es6-cjs.js');
|
|
18
18
|
require('react-hook-form');
|
|
19
19
|
|
|
20
20
|
|
package/dist/Select/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ import '@jobber/design';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../Button-es.js';
|
|
8
8
|
import 'react-router-dom';
|
|
9
|
+
import '../tslib.es6-es.js';
|
|
9
10
|
import '../Icon-es.js';
|
|
10
11
|
import '../Typography-es.js';
|
|
11
12
|
import '../Text-es.js';
|
|
12
13
|
import '../useFormFieldFocus-es.js';
|
|
13
14
|
import '../InputValidation-es.js';
|
|
14
15
|
import '../Spinner-es.js';
|
|
15
|
-
import '../tslib.es6-es.js';
|
|
16
16
|
import 'react-hook-form';
|
package/dist/Toast/index.cjs
CHANGED
|
@@ -7,8 +7,9 @@ require('framer-motion');
|
|
|
7
7
|
require('../Icon-cjs.js');
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
|
-
require('classnames');
|
|
11
10
|
require('react-router-dom');
|
|
11
|
+
require('classnames');
|
|
12
|
+
require('../tslib.es6-cjs.js');
|
|
12
13
|
require('../Typography-cjs.js');
|
|
13
14
|
|
|
14
15
|
|
package/dist/Toast/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import emphasis from "./css/Emphasis.module.css";
|
|
|
7
7
|
import alignment from "./css/TextAlignment.module.css";
|
|
8
8
|
import fontFamilies from "./css/FontFamilies.module.css";
|
|
9
9
|
import { UnderlineStyle, UnderlineStyleWithColor } from "./types";
|
|
10
|
-
interface TypographyProps {
|
|
10
|
+
export interface TypographyProps {
|
|
11
11
|
readonly id?: string;
|
|
12
12
|
/**
|
|
13
13
|
* @default "p"
|
|
@@ -45,4 +45,3 @@ interface TypographyProps {
|
|
|
45
45
|
}
|
|
46
46
|
export type TypographyOptions = Omit<TypographyProps, "children">;
|
|
47
47
|
export declare function Typography({ id, children, element: Tag, size, align, fontWeight, textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, }: TypographyProps): JSX.Element;
|
|
48
|
-
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -197,6 +197,8 @@ exports.Avatar = Avatar.Avatar;
|
|
|
197
197
|
exports.Banner = Banner.Banner;
|
|
198
198
|
exports.Box = Box.Box;
|
|
199
199
|
exports.Button = Button.Button;
|
|
200
|
+
exports.useButton = Button.useButton;
|
|
201
|
+
exports.useButtonStyles = Button.useButtonStyles;
|
|
200
202
|
exports.ButtonDismiss = ButtonDismiss.ButtonDismiss;
|
|
201
203
|
exports.Card = Card.Card;
|
|
202
204
|
exports.Checkbox = Checkbox_index.Checkbox;
|
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import 'react-dom';
|
|
|
16
16
|
export { A as Avatar } from './Avatar-es.js';
|
|
17
17
|
export { B as Banner } from './Banner-es.js';
|
|
18
18
|
export { B as Box } from './Box-es.js';
|
|
19
|
-
export { B as Button } from './Button-es.js';
|
|
19
|
+
export { B as Button, a as useButton, u as useButtonStyles } from './Button-es.js';
|
|
20
20
|
export { B as ButtonDismiss } from './ButtonDismiss-es.js';
|
|
21
21
|
export { C as Card } from './Card-es.js';
|
|
22
22
|
export { Checkbox } from './Checkbox/index.mjs';
|
package/dist/showToast-cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ var client = require('react-dom/client');
|
|
|
5
5
|
var framerMotion = require('framer-motion');
|
|
6
6
|
var Icon = require('./Icon-cjs.js');
|
|
7
7
|
var Button = require('./Button-cjs.js');
|
|
8
|
+
require('classnames');
|
|
8
9
|
var Typography = require('./Typography-cjs.js');
|
|
9
10
|
|
|
10
11
|
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-","spinning":"_5Wy5Wra20Vk-"};
|
package/dist/showToast-es.js
CHANGED
|
@@ -3,6 +3,7 @@ import { createRoot } from 'react-dom/client';
|
|
|
3
3
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
4
4
|
import { I as Icon } from './Icon-es.js';
|
|
5
5
|
import { B as Button } from './Button-es.js';
|
|
6
|
+
import 'classnames';
|
|
6
7
|
import { T as Typography } from './Typography-es.js';
|
|
7
8
|
|
|
8
9
|
var styles = {"wrapper":"_0Tvq24WjeX8-","container":"GznHKPkdb1s-","toast":"W8zgWZqmIlk-","slice":"ol3srk7PviM-","button":"ibhpdUt9YLo-","spinning":"_5Wy5Wra20Vk-"};
|